@jstn-sdk/ma 0.1.12 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/.codex/agents/Architect.toml +1 -2
  2. package/.codex/agents/Auditor.toml +1 -2
  3. package/.codex/agents/Builder.toml +1 -2
  4. package/.codex/agents/Flow.toml +1 -2
  5. package/.codex/agents/Sage.toml +1 -2
  6. package/.codex/agents/Vibe.toml +1 -2
  7. package/.codex/hooks.json +24 -13
  8. package/.codex/prompts/enforcement.md +4 -0
  9. package/.codex/prompts/onboarding.md +6 -1
  10. package/.codex/prompts/release-rules.md +0 -0
  11. package/.codex/prompts/skill-contract.md +4 -0
  12. package/COVERAGE.md +211 -0
  13. package/DEMO.md +274 -0
  14. package/LICENSE +0 -0
  15. package/README.md +132 -656
  16. package/bin/ma.js +748 -55
  17. package/data/clone-data.ledger.json +41 -0
  18. package/data/clone-data.proof.json +50 -0
  19. package/data/clone-data.rvf +37 -0
  20. package/docs/README.md +10 -1
  21. package/docs/autonomous-tasks.md +46 -0
  22. package/docs/codex-integration.md +16 -0
  23. package/docs/getting-started.md +62 -22
  24. package/docs/mcp-setup.md +64 -0
  25. package/docs/qa/release-issue-gates-0.14.0.json +644 -0
  26. package/docs/qa/release-readiness-0.1.5.md +1 -1
  27. package/docs/qa/{release-readiness-0.1.12.md → release-readiness-0.14.0.md} +25 -9
  28. package/docs/quality.md +24 -0
  29. package/docs/reference/native-security-playbooks.md +6 -0
  30. package/docs/reference/native-source-selection.md +6 -0
  31. package/docs/release-spec.md +39 -10
  32. package/docs/skills.md +14 -1
  33. package/index.js +295 -2
  34. package/mcp/collections.json +23 -6
  35. package/mcp/fallback.json +0 -0
  36. package/mcp/local/code-intel.js +179 -41
  37. package/mcp/local/context.js +180 -0
  38. package/mcp/local/memory.js +17 -6
  39. package/mcp/local/quality.js +39 -0
  40. package/mcp/local/state.js +7 -3
  41. package/mcp/local/team-run.js +56 -4
  42. package/mcp/local-capabilities.json +9 -0
  43. package/mcp/servers.json +24 -0
  44. package/package.json +29 -4
  45. package/plugins/meta-architect/.app.json +1 -1
  46. package/plugins/meta-architect/.codex-plugin/plugin.json +1 -1
  47. package/plugins/meta-architect/.mcp.json +1 -1
  48. package/plugins/meta-architect/README.md +8 -1
  49. package/plugins/meta-architect/obsidian/main.js +534 -0
  50. package/plugins/meta-architect/obsidian/manifest.json +9 -0
  51. package/plugins/meta-architect/obsidian/styles.css +7 -0
  52. package/plugins/meta-architect/skills/arch/SKILL.md +2 -0
  53. package/plugins/meta-architect/skills/build/SKILL.md +3 -0
  54. package/plugins/meta-architect/skills/flow/SKILL.md +2 -0
  55. package/plugins/meta-architect/skills/sage/SKILL.md +2 -0
  56. package/plugins/meta-architect/skills/sage/references/source-selection.md +8 -0
  57. package/plugins/meta-architect/skills/vet/SKILL.md +2 -0
  58. package/plugins/meta-architect/skills/vet/references/security-playbooks.md +7 -0
  59. package/plugins/meta-architect/skills/vibe/SKILL.md +2 -0
  60. package/schemas/autonomous-task-queue.schema.json +56 -0
  61. package/schemas/handoff-packet.schema.json +36 -0
  62. package/schemas/setup-receipt.schema.json +28 -0
  63. package/schemas/skill-frontmatter.schema.json +20 -0
  64. package/schemas/support-bundle.schema.json +37 -0
  65. package/schemas/task-contract.schema.json +31 -0
  66. package/scripts/active-autonomy-hook.mjs +226 -0
  67. package/scripts/build-linux-packages.mjs +7 -3
  68. package/scripts/cleanup-test-fixtures.sh +55 -0
  69. package/scripts/context-hydration-hook.mjs +89 -0
  70. package/scripts/demo-smoke.js +285 -0
  71. package/scripts/doctor.js +27 -12
  72. package/scripts/install.sh +57 -0
  73. package/scripts/install.sh.sha256 +1 -0
  74. package/scripts/linux-package-smoke.mjs +2 -2
  75. package/scripts/package-size-check.mjs +26 -0
  76. package/scripts/plugin-sync.js +83 -17
  77. package/scripts/postinstall.js +17 -10
  78. package/scripts/prepack.js +9 -0
  79. package/scripts/ralph/prompt.md +35 -0
  80. package/scripts/release-sync.js +72 -7
  81. package/scripts/release-verify.js +260 -2
  82. package/scripts/setup-npmrc.js +48 -23
  83. package/scripts/skills-install.js +9 -2
  84. package/scripts/skills-manifest.js +2 -21
  85. package/scripts/skills-pack.js +2 -2
  86. package/scripts/skills-validate.js +5 -55
  87. package/skills/arch/SKILL.md +2 -0
  88. package/skills/build/SKILL.md +3 -0
  89. package/skills/flow/SKILL.md +2 -0
  90. package/skills/index.json +0 -0
  91. package/skills/sage/SKILL.md +2 -0
  92. package/skills/sage/references/source-selection.md +8 -0
  93. package/skills/vet/SKILL.md +2 -0
  94. package/skills/vet/references/security-playbooks.md +7 -0
  95. package/skills/vibe/SKILL.md +2 -0
  96. package/sprint/00-idea.md +0 -0
  97. package/sprint/01-architecture.md +0 -0
  98. package/sprint/02-oss-evidence.md +0 -0
  99. package/sprint/03-logic.md +0 -0
  100. package/sprint/04-security.md +0 -0
  101. package/sprint/05-dx-ux.md +0 -0
  102. package/sprint/06-build-plan.md +0 -0
  103. package/sprint/07-release.md +0 -0
  104. package/src/agents.js +279 -0
  105. package/src/bootstrap.js +268 -62
  106. package/src/build-gate.js +2 -2
  107. package/src/codex-app-server.js +291 -0
  108. package/src/decision-log.js +0 -0
  109. package/src/fs-utils.js +175 -4
  110. package/src/launcher.js +28 -21
  111. package/src/mcp-config.js +9 -1
  112. package/src/mcp-live-client.js +422 -3
  113. package/src/paths.js +10 -1
  114. package/src/policy.js +3 -3
  115. package/src/prelaunch.js +189 -0
  116. package/src/quality/ai-quality-orchestrator.js +328 -0
  117. package/src/release-issue-gates.js +252 -0
  118. package/src/release-operations.js +62 -0
  119. package/src/release-state.js +0 -0
  120. package/src/runtime/active-autonomy-core.js +208 -0
  121. package/src/runtime/agent-compat.js +31 -0
  122. package/src/runtime/alignment-sentinel.js +165 -0
  123. package/src/runtime/architect-review.js +326 -0
  124. package/src/runtime/autonomous-tasks.js +408 -0
  125. package/src/runtime/build-readiness.js +28 -4
  126. package/src/runtime/code-graph-rehearse.js +113 -0
  127. package/src/runtime/codeburn-core.js +112 -0
  128. package/src/runtime/context-authority.js +40 -0
  129. package/src/runtime/context-economy-core.js +316 -0
  130. package/src/runtime/continuity-graph.js +201 -0
  131. package/src/runtime/continuity-notes.js +71 -26
  132. package/src/runtime/core-source-ingest.js +379 -0
  133. package/src/runtime/detached-provider.js +142 -0
  134. package/src/runtime/doctor-report.js +18 -0
  135. package/src/runtime/environment-awareness-core.js +460 -0
  136. package/src/runtime/exposure-catalog.js +276 -0
  137. package/src/runtime/graphify-core.js +167 -0
  138. package/src/runtime/guidance-stack.js +9 -2
  139. package/src/runtime/handoff-packets.js +92 -0
  140. package/src/runtime/headroom-core.js +104 -0
  141. package/src/runtime/helper-orchestration-core.js +307 -0
  142. package/src/runtime/hook-profiles.js +20 -0
  143. package/src/runtime/learning-loop-core.js +344 -0
  144. package/src/runtime/live-agent-verification.js +122 -0
  145. package/src/runtime/maestro-events.js +18 -0
  146. package/src/runtime/maestro-manager.js +19 -0
  147. package/src/runtime/maestro-output.js +58 -0
  148. package/src/runtime/maestro-state.js +125 -0
  149. package/src/runtime/managed-markdown.js +29 -0
  150. package/src/runtime/mcp-authority.js +147 -0
  151. package/src/runtime/mcp-policy.js +192 -0
  152. package/src/runtime/obsidian-integration-core.js +1089 -0
  153. package/src/runtime/obsidian-plugin-bridge.js +1045 -0
  154. package/src/runtime/pi-maestro-core.js +89 -0
  155. package/src/runtime/preferences.js +79 -0
  156. package/src/runtime/project-context.js +636 -0
  157. package/src/runtime/prompt-strategy-core.js +230 -0
  158. package/src/runtime/quorum-review.js +90 -0
  159. package/src/runtime/ralph-execution-core.js +217 -0
  160. package/src/runtime/redaction-gateway.js +373 -0
  161. package/src/runtime/runtime-state.js +935 -2
  162. package/src/runtime/schema-migrations.js +162 -0
  163. package/src/runtime/semantic-recording-core.js +147 -0
  164. package/src/runtime/signal-hooks.js +28 -0
  165. package/src/runtime/skills-registry-export.js +754 -0
  166. package/src/runtime/task-contracts.js +83 -0
  167. package/src/runtime/universal-plugin-broker-core.js +898 -0
  168. package/src/runtime/workspace-intelligence-runtime.js +674 -0
  169. package/src/runtime/workspace-virtualizer.js +102 -0
  170. package/src/runtime-artifacts.js +225 -62
  171. package/src/setup-lifecycle.js +359 -0
  172. package/src/skill-frontmatter.js +78 -0
  173. package/src/skill-installer.js +226 -71
  174. package/src/skills.js +1166 -96
  175. package/src/state-sync.js +0 -0
  176. package/src/test-fixtures.js +543 -0
  177. package/src/tui/grid.js +67 -0
  178. package/src/tui/status-grid.js +23 -0
  179. package/support-bundle.json +114 -0
  180. package/templates/AGENTS.md +6 -2
  181. package/templates/catalog-manifest.json +0 -0
  182. package/templates/model-instructions/core.md +0 -0
  183. package/templates/model-instructions/release.md +0 -0
  184. package/templates/model-instructions/security.md +0 -0
  185. package/templates/quality/ai-quality-rules.yml +37 -0
  186. package/docs/assets/image/Screenshot(1).png +0 -0
  187. package/docs/assets/image/Screenshot(2).png +0 -0
  188. package/docs/assets/image/Screenshot(3).png +0 -0
  189. package/docs/assets/image/Screenshot(4).png +0 -0
  190. package/docs/assets/image/Screenshot(5).png +0 -0
  191. package/docs/assets/image/Screenshot(6).png +0 -0
  192. package/docs/assets/image/Screenshot(7).png +0 -0
  193. package/docs/assets/image/Screenshot(8).png +0 -0
  194. package/docs/assets/image/Screenshot(9).png +0 -0
  195. package/docs/assets/meta-architect-logo.png +0 -0
  196. package/docs/assets/meta-architect-logo.svg +0 -8
  197. package/docs/onboarding.md +0 -65
  198. package/docs/skills-publishing.md +0 -255
@@ -0,0 +1,41 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "record_type": "clone_data_ledger",
4
+ "product": "Meta-Architect",
5
+ "package": "@jstn-sdk/ma",
6
+ "release_version": "0.1.13",
7
+ "records_as": "production_evidence",
8
+ "build_evidence": true,
9
+ "entries": [
10
+ {
11
+ "id": "clone-data-proof",
12
+ "path": "data/clone-data.proof.json",
13
+ "type": "proof",
14
+ "purpose": "Records the clone-data proof claims and verification commands.",
15
+ "required": true
16
+ },
17
+ {
18
+ "id": "clone-data-ledger",
19
+ "path": "data/clone-data.ledger.json",
20
+ "type": "ledger",
21
+ "purpose": "Tracks clone-data artifact inventory and package visibility.",
22
+ "required": true
23
+ },
24
+ {
25
+ "id": "clone-data-rvf",
26
+ "path": "data/clone-data.rvf",
27
+ "type": "runtime_verification_file",
28
+ "purpose": "Defines pass/fail verification criteria for clone-data artifacts.",
29
+ "required": true
30
+ }
31
+ ],
32
+ "package_visibility": {
33
+ "package_json_files_entry": "data/",
34
+ "pack_dry_run_required": true
35
+ },
36
+ "integrity_policy": {
37
+ "empty_files_allowed": false,
38
+ "placeholder_claims_allowed": false,
39
+ "must_reference_real_paths": true
40
+ }
41
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "record_type": "clone_data_proof",
4
+ "product": "Meta-Architect",
5
+ "package": "@jstn-sdk/ma",
6
+ "release_version": "0.1.13",
7
+ "records_as": "production_evidence",
8
+ "build_evidence": true,
9
+ "subject": "clone data install and package proof contract",
10
+ "claims": [
11
+ {
12
+ "id": "jsdelivr_posix_installer",
13
+ "claim": "The recommended POSIX CLI install path is backed by a repository script addressable through jsDelivr.",
14
+ "evidence": [
15
+ "scripts/install.sh",
16
+ "README.md",
17
+ "docs/getting-started.md",
18
+ "docs/onboarding.md",
19
+ "docs/skills.md",
20
+ "plugins/meta-architect/README.md",
21
+ "docs/release-spec.md"
22
+ ]
23
+ },
24
+ {
25
+ "id": "clone_data_artifacts",
26
+ "claim": "Clone-data proof, ledger, and RVF artifacts exist as package-visible data files.",
27
+ "evidence": [
28
+ "data/clone-data.proof.json",
29
+ "data/clone-data.ledger.json",
30
+ "data/clone-data.rvf",
31
+ "package.json files includes data/"
32
+ ]
33
+ },
34
+ {
35
+ "id": "release_gate_contract",
36
+ "claim": "Release verification must preserve the jsDelivr installer and canonical npm install command in public install docs.",
37
+ "evidence": ["scripts/release-verify.js", "npm run release:check"]
38
+ }
39
+ ],
40
+ "verification_commands": [
41
+ "sh -n scripts/install.sh",
42
+ "node scripts/release-verify.js",
43
+ "node --test test/clone-data-artifacts.test.js",
44
+ "npm run release:check"
45
+ ],
46
+ "authority_boundary": {
47
+ "may_mutate_release_state": false,
48
+ "authoritative_changes_return_through": "$maestro_or_owning_lane"
49
+ }
50
+ }
@@ -0,0 +1,37 @@
1
+ # Clone Data RVF
2
+
3
+ schemaVersion: 1.0.0
4
+ record_type: clone_data_runtime_verification_file
5
+ product: Meta-Architect
6
+ package: @jstn-sdk/ma
7
+ release_version: 0.1.13
8
+
9
+ ## Purpose
10
+
11
+ This RVF defines the pass criteria for the clone-data proof and ledger artifacts.
12
+
13
+ ## Required Artifacts
14
+
15
+ - `data/clone-data.proof.json`
16
+ - `data/clone-data.ledger.json`
17
+ - `data/clone-data.rvf`
18
+
19
+ ## Pass Criteria
20
+
21
+ - Proof JSON has `record_type: clone_data_proof`.
22
+ - Ledger JSON has `record_type: clone_data_ledger`.
23
+ - Both JSON files use `schemaVersion: 1.0.0`.
24
+ - Both JSON files record as `production_evidence`.
25
+ - Ledger entries reference all required clone-data artifacts.
26
+ - `package.json` includes `data/` so clone-data artifacts are visible in package dry-runs.
27
+ - `scripts/install.sh` remains POSIX-shell syntax valid.
28
+ - Public install docs preserve the jsDelivr one-line installer.
29
+
30
+ ## Verification Commands
31
+
32
+ ```bash
33
+ sh -n scripts/install.sh
34
+ node scripts/release-verify.js
35
+ node --test test/clone-data-artifacts.test.js
36
+ npm run release:check
37
+ ```
package/docs/README.md CHANGED
@@ -5,10 +5,17 @@ Meta-Architect documentation is organized by operator task.
5
5
  ## Start here
6
6
 
7
7
  - [Getting Started](./getting-started.md)
8
+ - [Production Demo Guide](../DEMO.md)
9
+ - [Real Demo Runbook](./demo/REAL_DEMO_RUNBOOK.md)
10
+ - [Demo Story](./demo/DEMO_STORY.md)
11
+ - [Prospect Checklist](./demo/PROSPECT_CHECKLIST.md)
12
+ - [Coverage Matrix](../COVERAGE.md)
8
13
  - [Release Spec](./release-spec.md)
9
14
  - [Skills Reference](./skills.md)
10
15
  - umbrella, gated lanes, and helper skill distinctions live in the Skills Reference
11
16
  - [Installed Support Bundle](./installed-sdk.md)
17
+ - [Runtime retention](./runtime-retention.md)
18
+ - [External architect review](./architect-review.md)
12
19
 
13
20
  ## Packaging and installation
14
21
 
@@ -16,11 +23,13 @@ Meta-Architect documentation is organized by operator task.
16
23
  - published helper-skill and plugin-mirror expectations live in Skills Publishing
17
24
  - Linux-native distro package expectations live in the Release Spec and release-readiness docs
18
25
  - [MCP Setup](./mcp-setup.md)
26
+ - [Continuity Graph](./continuity-graph.md)
19
27
  - [Plugin Bundle](../plugins/meta-architect/README.md)
20
28
 
21
29
  ## QA and readiness
22
30
 
23
- - [Release Readiness 0.1.12](./qa/release-readiness-0.1.12.md)
31
+ - [Release Readiness 0.14.0](./qa/release-readiness-0.14.0.md)
32
+ - [Release Issue Gates 0.14.0](./qa/release-issue-gates-0.14.0.json)
24
33
 
25
34
  ## Repo structure references
26
35
 
@@ -0,0 +1,46 @@
1
+ # Autonomous tasks
2
+
3
+ Meta-Architect persists autonomous work in `.ma/tasks/autonomous-queue.json`.
4
+ The queue is separate from the team-run registry and is driven by the existing
5
+ Maestro manager.
6
+
7
+ ## Intake
8
+
9
+ ```bash
10
+ ma task add "Implement the parser" --priority high --label backend
11
+ ma task bulk tasks.json
12
+ cat tasks.yaml | ma task bulk - --format yaml
13
+ ma task list --json
14
+ ```
15
+
16
+ Each task receives a durable contract, status, retry budget, dependencies,
17
+ labels, optional deadline, selected environment capabilities, and evidence.
18
+ Duplicate IDs, malformed contracts, unknown dependencies, and dependency
19
+ cycles are rejected before persistence.
20
+
21
+ ## Execution
22
+
23
+ ```bash
24
+ ma task run --concurrency 3
25
+ ma task run --max-tasks 20 --json
26
+ ma task cancel task-123 "No longer needed"
27
+ ```
28
+
29
+ Independent queued tasks run up to the configured concurrency. Dependencies
30
+ run first; failed, blocked, cancelled, expired, or unsafe tasks do not run
31
+ their downstream work. A failed task is retried up to `maxAttempts`, and the
32
+ queue remains resumable after interruption.
33
+
34
+ Environment discovery records installed project and user capabilities before
35
+ execution. Existing skills are observed rather than claimed or modified, and
36
+ vendor invocation metadata uses the environment's native `$`, `/`, or plain
37
+ command convention when a vendor is selected.
38
+
39
+ Every state transition emits a Maestro event under `.ma/events/` and persists
40
+ the latest queue atomically. Safe local work proceeds automatically; goals
41
+ that imply credentials, destructive changes, publication, production, or
42
+ other external mutations are blocked with an actionable reason.
43
+
44
+ The default runner delegates to the existing Maestro manager. Tests and host
45
+ integrations can inject `execute(task)` into `runAutonomousTasks` without
46
+ changing the queue contract.
@@ -0,0 +1,16 @@
1
+ # Codex integration
2
+
3
+ Meta-Architect drives the installed Codex binary; it does not reproduce Codex's TUI or runtime.
4
+
5
+ `CodexAppServerClient` uses the real stdio JSON-RPC app-server lifecycle: initialize, thread start/resume/fork/list/archive, turn start/interrupt, configuration read/write, and streamed notifications. `runCodexExec()` uses `codex exec --json` for bounded automation, and `generateCodexBindings()` delegates type/schema generation to the running Codex binary.
6
+
7
+ All child processes use argument arrays with `shell: false`, time out, and surface non-zero exits. Goal support remains Codex-owned: prompts may request the installed `create_goal`, `get_goal`, and `update_goal` tools, while Meta-Architect only consumes the resulting notifications.
8
+
9
+ ```js
10
+ import { CodexAppServerClient } from "@jstn-sdk/ma";
11
+
12
+ const codex = new CodexAppServerClient();
13
+ await codex.initialize();
14
+ const thread = await codex.startThread({ ephemeral: true });
15
+ await codex.startTurn({ threadId: thread.id, input: [{ type: "text", text: "Run the quality gate" }] });
16
+ ```
@@ -22,6 +22,20 @@ By the end of this guide you should be able to:
22
22
 
23
23
  ## 1. Default install and launch
24
24
 
25
+ Recommended CLI install for macOS, Linux, WSL, and Git-Bash:
26
+
27
+ ```bash
28
+ # One-line install (POSIX shells only; use WSL/Git-Bash on Windows)
29
+ curl -fsSLo install.sh https://cdn.jsdelivr.net/gh/JustineDevs/meta-architect@latest/scripts/install.sh && curl -fsSLo install.sh.sha256 https://cdn.jsdelivr.net/gh/JustineDevs/meta-architect@latest/scripts/install.sh.sha256 && sed 's#scripts/install.sh#install.sh#' install.sh.sha256 | sha256sum -c - && sh install.sh
30
+ ```
31
+
32
+ The jsDelivr installer runs `npm i -g @openai/codex@latest @jstn-sdk/ma@latest`, then `ma setup`.
33
+ Use `sh install.sh --dry-run` to inspect the plan, `--no-setup` to skip local
34
+ runtime writes, or `--no-skills` to skip skill/support-bundle writes. The
35
+ installer prints Node/npm/Codex versions and an uninstall command after a real
36
+ install. Package postinstall supports `MA_SKIP_AUTO_INSTALL=1`,
37
+ `MA_SKIP_SKILLS=1`, and `MA_POSTINSTALL_DRY_RUN=1`.
38
+
25
39
  Debian-family install:
26
40
 
27
41
  ```bash
@@ -42,6 +56,11 @@ sudo dnf install ./meta-architect-<version>-1.noarch.rpm
42
56
 
43
57
  Default supported npm fallback:
44
58
 
59
+ On the first interactive `ma` launch, Meta-Architect detects supported CLI and
60
+ IDE host markers and asks once for the installation scope and targets. The
61
+ selection is recorded in `.ma/prelaunch.json`; CI and piped/non-interactive
62
+ launches skip the prompt and preserve the default Codex bootstrap behavior.
63
+
45
64
  ```bash
46
65
  # Install
47
66
  npm i -g @openai/codex@latest @jstn-sdk/ma@latest
@@ -56,7 +75,7 @@ npm uninstall -g @jstn-sdk/ma
56
75
  npm uninstall -g @jstn-sdk/ma @openai/codex
57
76
  ```
58
77
 
59
- Linux-native distro packages are the default install surface. The npm path remains a supported fallback. The product experience is still the in-session skill workflow in [example/usage-workflow.md](../example/usage-workflow.md). The `ma` command is only a helper for starting or supporting that flow.
78
+ The jsDelivr CLI installer is the recommended quick-start path for POSIX shells. Linux-native distro packages remain supported release assets, and the npm path remains the canonical package install underneath the installer. The product experience is still the in-session skill workflow in [example/usage-workflow.md](../example/usage-workflow.md). The `ma` command is only a helper for starting or supporting that flow.
60
79
 
61
80
  ## 2. Real usage workflow
62
81
 
@@ -92,7 +111,7 @@ Required output:
92
111
  5. Data model and storage choices
93
112
  6. Auth/security considerations
94
113
  7. DX/UX considerations
95
- 8. Delivery plan for v0.1.12
114
+ 8. Delivery plan for v0.14.0
96
115
  9. Risks and trade-offs
97
116
  10. Decision log
98
117
  11. Exact next trigger to run after this
@@ -152,6 +171,10 @@ Expected effects:
152
171
  - `mcp/`, `docs/`, and `sprint/` surfaces exist
153
172
  - `ma` opens Codex with the Meta-Architect helper posture when run with no arguments
154
173
 
174
+ `.ma/` is the canonical Meta-Architect project namespace. A legacy `.omx/` directory may
175
+ exist for oh-my-codex orchestration history, but new MA setup and generated guidance never
176
+ use it as runtime state.
177
+
155
178
  Expected output:
156
179
 
157
180
  ```text
@@ -233,6 +256,11 @@ Contract split:
233
256
  - it runs the same environment checks without changing files
234
257
  - it prints the current readiness state and exact next step
235
258
 
259
+ Maintainers use `npm run package:doctor` (also available as
260
+ `npm run release:doctor`) for release and package artifact completeness. It
261
+ does not inspect the installed user environment; both commands use the same
262
+ status vocabulary so their scopes remain explicit.
263
+
236
264
  `ma sdk-path` prints the installed packaged support-bundle root for relevant files such as prompts, MCP files, sprint files, scripts, plugin metadata, and templates.
237
265
 
238
266
  ## 5. Configure MCP / GitMCP
@@ -282,7 +310,7 @@ See [docs/mcp-setup.md](./mcp-setup.md) for endpoint policy and evidence semanti
282
310
  ## 6. Secondary helper flow
283
311
 
284
312
  ```bash
285
- ma idea "Build a real-time collaborative whiteboard for product teams"
313
+ ma idea "Prepare Meta-Architect v0.14.0 for a production package release with real install docs, Obsidian brain-context support, learning-loop reliability, and package proof artifacts."
286
314
  ```
287
315
 
288
316
  Expected effects:
@@ -295,7 +323,7 @@ If this fails:
295
323
 
296
324
  ## 7. Run the helper skill sequence
297
325
 
298
- ### 5.0 Autonomous manager
326
+ ### 7.1 Autonomous manager
299
327
 
300
328
  ```bash
301
329
  ma run '$maestro'
@@ -320,7 +348,7 @@ Optional non-gating helper skills that can run before or between gated lanes:
320
348
  - `$tdd` for regression-first execution setup
321
349
  - `$cleanup` for simplification and final-pass polish
322
350
 
323
- ### 5.1 Architecture
351
+ ### 7.2 Architecture
324
352
 
325
353
  ```bash
326
354
  ma run '$arch'
@@ -337,7 +365,7 @@ Generated or updated:
337
365
  - `.ma/specs/architecture.md`
338
366
  - `.ma/plans/implementation.md`
339
367
 
340
- ### 5.2 Evidence
368
+ ### 7.3 Evidence
341
369
 
342
370
  ```bash
343
371
  ma run '$sage'
@@ -366,7 +394,7 @@ If this fails:
366
394
  - verify network access
367
395
  - rerun after correcting the endpoint or environment
368
396
 
369
- ### 5.3 Logic
397
+ ### 7.4 Logic
370
398
 
371
399
  ```bash
372
400
  ma run '$flow'
@@ -380,7 +408,7 @@ Expected effects:
380
408
  Generated or updated:
381
409
  - `.ma/specs/logic.md`
382
410
 
383
- ### 5.4 Security
411
+ ### 7.5 Security
384
412
 
385
413
  ```bash
386
414
  ma run '$vet'
@@ -394,7 +422,7 @@ Expected effects:
394
422
  Generated or updated:
395
423
  - `.ma/specs/security.md`
396
424
 
397
- ### 5.5 Experience
425
+ ### 7.6 Experience
398
426
 
399
427
  ```bash
400
428
  ma run '$vibe'
@@ -463,11 +491,11 @@ If `$build` fails:
463
491
  - fix the corresponding upstream lane
464
492
  - rerun that lane, then rerun `$build`
465
493
 
466
- ## 10. Example walkthrough: collaborative whiteboard
494
+ ## 10. Example walkthrough: MA release hardening
467
495
 
468
496
  ```bash
469
497
  ma setup
470
- ma idea "Build a collaborative whiteboard with live cursors and shared boards"
498
+ ma idea "Prepare Meta-Architect v0.14.0 for a production package release with real install docs, Obsidian brain-context support, learning-loop reliability, and package proof artifacts."
471
499
  ma run '$arch'
472
500
  ma run '$sage'
473
501
  ma run '$flow'
@@ -480,17 +508,17 @@ ma run '$build'
480
508
  If you want an interactive Codex session during the walkthrough, start it separately with `ma`.
481
509
 
482
510
  What should happen:
483
- - `$arch` records a structured first-pass blueprint
484
- - `$sage` binds major choices to configured GitMCP-backed sources
485
- - `$flow` records the kernel’s baseline state review for the mission
486
- - `$vet` records a baseline security review
487
- - `$vibe` records baseline DX/UX guidance
488
- - `$build` suggests bounded concerns like `feature/implementation` and `feature/verification`
511
+ - `$arch` records the architecture and release-hardening blueprint
512
+ - `$sage` binds package, Obsidian, prompt-strategy, and MCP choices to configured evidence sources
513
+ - `$flow` records state-transition and gate-order review
514
+ - `$vet` records security, package exposure, and provider-bound context review
515
+ - `$vibe` records operator/demo/docs usability guidance
516
+ - `$build` suggests bounded implementation and verification branches after gates pass
489
517
 
490
- Related mission:
491
- - [missions/collaborative-whiteboard/mission.md](../missions/collaborative-whiteboard/mission.md)
518
+ Canonical demo reference:
519
+ - [DEMO.md](../DEMO.md)
492
520
 
493
- ## 9. Merge and release path
521
+ ## 11. Merge and release path
494
522
 
495
523
  After implementation work is complete:
496
524
 
@@ -499,6 +527,11 @@ ma merge feature/ui development
499
527
  ma release development prod
500
528
  ```
501
529
 
530
+ These commands record approval by default; they do not execute Git. Use
531
+ `--dry-run` to run preflight and print the exact merge command without changing
532
+ state, or `--execute` to run the checked, explicit merge on the target branch.
533
+ Both modes require a clean worktree and a valid source branch.
534
+
502
535
  Expected effects:
503
536
  - merge only succeeds for `feature/* -> development`
504
537
  - release only succeeds for `development|release/* -> prod`
@@ -507,7 +540,7 @@ Expected effects:
507
540
  - `merge_status = MERGED_TO_DEVELOPMENT`
508
541
  - `release_status = SHIPPED_TO_PROD`
509
542
 
510
- ## 10. Files generated or updated during a normal run
543
+ ## 12. Files generated or updated during a normal run
511
544
 
512
545
  - `.ma/decisions.json`
513
546
  - `.ma/release.json`
@@ -516,6 +549,13 @@ Expected effects:
516
549
  - `.ma/evidence/cves.json`
517
550
  - `.ma/evidence/outcomes.json`
518
551
  - `.ma/context/project.md`
552
+ - `.ma/context/recording-core.json`
553
+ - `.ma/context/learning-loop-core.json`
554
+ - `.ma/context/workspace-context-pack.json`
555
+ - `.ma/context/workspace-effectiveness.json`
556
+ - `.ma/context/prompt-strategy-core.json`
557
+ - `.ma/context/context-economy-core.json`
558
+ - `.ma/context/obsidian-bridge.json`
519
559
  - `.ma/specs/architecture.md`
520
560
  - `.ma/specs/evidence.md`
521
561
  - `.ma/specs/logic.md`
@@ -527,7 +567,7 @@ Expected effects:
527
567
 
528
568
  These are local product artifacts created by the runtime. They are not a reason to bypass gate logic manually.
529
569
 
530
- ## 11. If a gate fails
570
+ ## 13. If a gate fails
531
571
 
532
572
  Rule:
533
573
  - do not edit statuses manually
package/docs/mcp-setup.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # MCP / GitMCP Setup
2
2
 
3
+ The MCP client advertises the installed Meta-Architect version read from the
4
+ package metadata. `ma doctor` reports the same value, while `0.0.0-dev` is used
5
+ only when development metadata is unavailable.
6
+
3
7
  1. Use approved discovery accelerators when you need to find OSS candidates faster than browsing GitHub directly.
4
8
  2. Add repo-specific GitMCP endpoints in `mcp/servers.json` for any project you want to treat as approved evidence.
5
9
  3. Confirm categories in `mcp/collections.json`.
@@ -15,6 +19,7 @@
15
19
  - `team_run`
16
20
  - `code_intel`
17
21
  - `playbooks`
22
+ - `context`
18
23
 
19
24
  `playbooks` is a read-only packaged capability. It does not point at external MCP servers and it does not repurpose `mcp/collections.json`.
20
25
 
@@ -69,9 +74,68 @@ To move from discovery to VERIFIED evidence:
69
74
  - map that repo to an exact `https://gitmcp.io/{owner}/{repo}` endpoint in `mcp/servers.json`
70
75
  - validate the choice against the upstream repo and official docs through `$sage`
71
76
 
77
+ ## Remote MCP transport
78
+
79
+ `$sage` opens configured GitMCP endpoints as live MCP servers. Some remote MCP hosts reject direct SSE probes with HTTP 405 and require a host-supported remote MCP bridge. Meta-Architect treats that as a transport blocker, not as verified evidence.
80
+
81
+ To enable bridge-backed live verification, configure a trusted local bridge command:
82
+
83
+ ```bash
84
+ export MA_MCP_REMOTE_BRIDGE_CMD="mcp-remote {url}"
85
+ export MA_MCP_REMOTE_BRIDGE_ALLOWLIST="mcp-remote"
86
+ ```
87
+
88
+ The `{url}` placeholder is replaced with the exact repo endpoint from `mcp/servers.json`. The command must be explicitly allowlisted by basename or exact path in `MA_MCP_REMOTE_BRIDGE_ALLOWLIST`, or by a project-local `mcp/bridge.json` file such as `{ "allowedCommands": ["mcp-remote"] }`. Use a preinstalled, trusted bridge binary or wrapper; do not depend on automatic package downloads in production verification.
89
+
90
+ Bridge startup, exit, failure, and bounded stderr diagnostics are recorded as
91
+ redacted receipts under `.ma/evidence/mcp-bridge-receipts/`. The bridge receives
92
+ only a minimal environment allowlist, and request timeouts are bounded by
93
+ `MA_MCP_REQUEST_TIMEOUT_MS` (15 seconds by default). `ma doctor` should be used
94
+ to verify the command policy before live evidence collection.
95
+
96
+ When no bridge is configured:
97
+ - direct-SSE-compatible MCP servers can still verify normally
98
+ - GitMCP 405 responses are recorded as bridge-required blockers
99
+ - `evidence_status` remains `PARTIAL`, so `$flow` and `$build` stay locked
100
+
72
101
  ## Separation of concerns
73
102
 
74
103
  - `mcp/servers.json` remains for repo-specific GitMCP evidence sources
75
104
  - `mcp/collections.json` remains GitMCP-oriented evidence categorization for this release
76
105
  - `mcp/local-capabilities.json` is the first-party in-process capability registry
77
106
  - `mcp/native-playbooks.json` is internal native curation metadata, not an upstream mirror or user-edited evidence source list
107
+
108
+ ## Current semantic source routing
109
+
110
+ `mcp/collections.json` maps configured repository evidence into MA lanes.
111
+ The current release intentionally includes both broad discovery lists and core-specific upstream sources.
112
+
113
+ | Collection | Why it exists | Typical lanes |
114
+ | --- | --- | --- |
115
+ | `meta-list` and language collections | broad OSS candidate discovery before exact upstream selection | `$arch`, `$sage` |
116
+ | `system-design` | architecture and flow reasoning references | `$arch`, `$sage`, `$flow`, `$build` |
117
+ | `security` | trust-boundary and security review evidence | `$vet` |
118
+ | `obsidian-api-docs` | Obsidian API evidence for vault, metadata, workspace, and plugin behavior | `$arch`, `$sage`, `$vibe` |
119
+ | `obsidian-plugin-scaffold` | compatibility reference for MA's in-app Obsidian plugin surface | `$arch`, `$sage` |
120
+ | `context-economy` | context-budget and terse-output source evidence | `$sage`, `$vet`, `$vibe`, `$build` |
121
+ | `prompt-techniques` | prompt strategy source evidence for MA-owned prompt policies | `$arch`, `$sage`, `$flow`, `$vet`, `$vibe`, `$build` |
122
+
123
+ Obsidian-derived notes remain `vault_context`.
124
+ They do not count as `build_evidence` unless `$sage`, `$vet`, or another owning lane promotes a specific claim with source-backed proof.
125
+ ## Local context capability
126
+
127
+ The setup-owned local MCP registry exposes read-only context evidence through
128
+ the `context` capability. Its resources are:
129
+
130
+ - `context://project-index` — source-truth project fingerprint and file metadata.
131
+ - `context://freshness` — incremental refresh status and changed-file evidence.
132
+ - `context://learning` — validated learning-loop state.
133
+ - `context://obsidian` — validated vault index and operation receipts when configured.
134
+ - `context://hooks` — hook configuration and audit evidence.
135
+ - `context://commands` — source-derived command map.
136
+ - `context://agent-brief` — bounded first-read generated context.
137
+ - `context://architecture` — bounded generated architecture map.
138
+
139
+ Every response includes `record_type`, `authority`, `source`, and `available`
140
+ metadata. Missing optional artifacts return an unavailable result; writes are
141
+ not exposed by this capability.