@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
@@ -1,4 +1,3 @@
1
1
  name = "Architect"
2
- role = "architecture-design"
3
- trigger = "$arch"
4
2
  description = "Produces blueprint architecture, stack rationale, tradeoffs, and subsystem design."
3
+ developer_instructions = "Use repository evidence, preserve boundaries, and state verification gaps explicitly."
@@ -1,4 +1,3 @@
1
1
  name = "Auditor"
2
- role = "security-review"
3
- trigger = "$vet"
4
2
  description = "Evaluates security posture, CVE signals, and safer alternatives."
3
+ developer_instructions = "Audit trust boundaries, fail closed on unsafe behavior, and report concrete evidence."
@@ -1,4 +1,3 @@
1
1
  name = "Builder"
2
- role = "build-planning"
3
- trigger = "$build"
4
2
  description = "Checks gates, splits bounded work, and proposes branch/worktree execution paths."
3
+ developer_instructions = "Implement only verified scope, keep changes reviewable, and run the required checks."
@@ -1,4 +1,3 @@
1
1
  name = "Flow"
2
- role = "logic-validation"
3
- trigger = "$flow"
4
2
  description = "Validates business logic, state transitions, and unresolved blockers."
3
+ developer_instructions = "Trace state transitions end to end and identify blockers with reproducible evidence."
@@ -1,4 +1,3 @@
1
1
  name = "Sage"
2
- role = "oss-evidence"
3
- trigger = "$sage"
4
2
  description = "Maps architectural choices to approved OSS sources through GitMCP-backed collections."
3
+ developer_instructions = "Prefer authoritative sources and keep external claims versioned and cited."
@@ -1,4 +1,3 @@
1
1
  name = "Vibe"
2
- role = "experience-review"
3
- trigger = "$vibe"
4
2
  description = "Reviews developer and user experience risks before implementation."
3
+ developer_instructions = "Review workflows for clarity, accessibility, and regressions using concrete checks."
package/.codex/hooks.json CHANGED
@@ -1,15 +1,26 @@
1
1
  {
2
- "version": 1,
3
- "hooks": [
4
- {
5
- "event": "prebuild",
6
- "action": "deny-unless-gates-green",
7
- "source": ".ma/decisions.json"
8
- },
9
- {
10
- "event": "prerelease",
11
- "action": "deny-unless-release-origin-valid",
12
- "allowedOrigins": ["development", "release/*"]
13
- }
14
- ]
2
+ "hooks": {
3
+ "SessionStart": [
4
+ {
5
+ "type": "command",
6
+ "command": "ma hook context-hydration"
7
+ }
8
+ ],
9
+ "UserPromptSubmit": [
10
+ {
11
+ "type": "command",
12
+ "command": "ma hook context-hydration"
13
+ },
14
+ {
15
+ "type": "command",
16
+ "command": "ma hook active-autonomy"
17
+ }
18
+ ],
19
+ "Stop": [
20
+ {
21
+ "type": "command",
22
+ "command": "node ./scripts/active-autonomy-hook.mjs"
23
+ }
24
+ ]
25
+ }
15
26
  }
@@ -1,5 +1,9 @@
1
1
  # Meta-Architect Repo Enforcement Rules
2
2
 
3
+ ## Active Autonomy Core
4
+
5
+ Use `AUTO-CONTINUE` for clear, safe, reversible, already-requested workspace work. `ASK` only for destructive, irreversible, credential-gated, external-production, materially scope-changing actions, or missing authority. Do not use permission-handoff phrasing on AUTO-CONTINUE branches. Terminal workflow replies must name `finished`, `blocked`, `failed`, `cancelled`, or `askuserQuestion` with evidence or blocker.
6
+
3
7
  You are operating inside Meta-Architect, a Codex skill system for verified project building.
4
8
 
5
9
  ## Mission
@@ -5,6 +5,7 @@ Meta-Architect is a skills-first system for Codex with a strict kernel.
5
5
  ## What is implemented
6
6
 
7
7
  The primary product surface is the in-session skill flow:
8
+ - `$maestro` (the umbrella manager and recommended first step)
8
9
  - `$arch`
9
10
  - `$sage`
10
11
  - `$flow`
@@ -13,6 +14,10 @@ The primary product surface is the in-session skill flow:
13
14
  - `$build`
14
15
 
15
16
  Secondary helper commands remain available through:
17
+ - `ma setup`
18
+ - `ma doctor`
19
+ - `ma welcome`
20
+ - `ma context refresh`
16
21
  - `ma init`
17
22
  - `ma idea`
18
23
  - `ma skills`
@@ -32,7 +37,7 @@ Secondary helper commands remain available through:
32
37
  2. Read `docs/getting-started.md`
33
38
  3. Read `docs/release-spec.md`
34
39
  4. Read `docs/skills.md`
35
- 5. Start Codex context if needed, then use `$arch` before assuming the workflow is ready
40
+ 5. Start Codex context if needed, then use `$maestro` to select the next safe lane
36
41
 
37
42
  ## What not to do
38
43
 
File without changes
@@ -1,5 +1,9 @@
1
1
  # Skill Contract
2
2
 
3
+ ## Active Autonomy Core
4
+
5
+ Use `AUTO-CONTINUE` for clear, safe, reversible, already-requested workspace work. `ASK` only for destructive, irreversible, credential-gated, external-production, materially scope-changing actions, or missing authority. Do not use permission-handoff phrasing on AUTO-CONTINUE branches. Terminal workflow replies must name `finished`, `blocked`, `failed`, `cancelled`, or `askuserQuestion` with evidence or blocker.
6
+
3
7
  Every Meta-Architect skill result must include:
4
8
  - `decision`
5
9
  - `status`
package/COVERAGE.md ADDED
@@ -0,0 +1,211 @@
1
+ # Meta-Architect Coverage Matrix
2
+
3
+ Target release: `v0.14.0`
4
+ Last verified: 2026-06-03
5
+ Package: `@jstn-sdk/ma@0.14.0`
6
+
7
+ This file is the canonical operator-facing coverage map for the current release line.
8
+ It records what MA can prove today through repository tests, runtime artifacts, package dry-runs, and release gates.
9
+
10
+ > [!IMPORTANT]
11
+ > Coverage entries are production claims only when they point to concrete files, commands, or seeded runtime artifacts.
12
+ > Candidate learnings and vault context may inform planning, but they do not become build evidence without owning-lane promotion.
13
+
14
+ ## Coverage summary
15
+
16
+ | Category | Current state | Evidence |
17
+ | --- | --- | --- |
18
+ | Canonical install/launch contract | DONE | `README.md`, `DEMO.md`, `scripts/install.sh`, `scripts/release-verify.js` |
19
+ | `ma` launcher into Codex | DONE | `bin/ma.js`, `test/cli-smoke.test.js`, `test/package-install-smoke.test.js` |
20
+ | `$maestro` orchestration | DONE | `src/runtime/maestro-manager.js`, `src/runtime/maestro-state.js`, `test/runtime-state.test.js` |
21
+ | Core skill surface | DONE | `skills/`, `skills/index.json`, `npm run skills:validate` |
22
+ | Helper skill surface | DONE | `$align`, `$diagnose`, `$tdd`, `$cleanup` contracts in `skills/`, plugin mirror, and Helper Orchestration Core |
23
+ | Build gate enforcement | DONE | `src/build-gate.js`, `test/build-gate.test.js`, `test/cli-smoke.test.js` |
24
+ | Release issue gates | DONE | `src/release-issue-gates.js`, `docs/qa/release-issue-gates-0.14.0.json`, `test/release-issue-gates.test.js` |
25
+ | Live GitMCP probe support | DONE | `src/mcp-live-client.js`, `src/skills.js`, `test/mcp-config.test.js` |
26
+ | MCP policy and exposure control | DONE | `src/runtime/mcp-policy.js`, `src/runtime/exposure-catalog.js`, `test/mcp-policy.test.js`, `test/exposure-catalog.test.js` |
27
+ | Plugin mirror discipline | DONE | `scripts/plugin-sync.js`, `npm run plugin:verify`, package dry-run |
28
+ | Package dry-run | DONE | `npm run pack:inspect` |
29
+ | Release check pipeline | DONE | `npm run release:check` |
30
+
31
+ ## Runtime and workflow coverage
32
+
33
+ | Surface | Status | Notes |
34
+ | --- | --- | --- |
35
+ | `ma setup` scaffolding | DONE | seeds `.ma`, `.codex`, docs, sprint, MCP baseline files, and semantic runtime cores |
36
+ | `ma bootstrap` | DONE | repairs packaged assets, support bundle, local runtime files, and optional starter MCP files |
37
+ | `ma doctor` | DONE | reports check-only readiness without mutating local state |
38
+ | `ma idea` | DONE | records a project brief and clears the idea gate |
39
+ | `ma skills` | DONE | lists the 11 public runtime triggers |
40
+ | `ma status --maestro-view` | DONE | reports release state, manager state, and next allowed actions |
41
+ | `ma run '$maestro'` | DONE | bounded autonomous manager; coordinates without bypassing lane authority |
42
+ | `ma run '$arch'` | DONE | architecture gate and spec artifacts |
43
+ | `ma run '$sage'` | DONE | evidence gate with live MCP support and fallback classification |
44
+ | `ma run '$flow'` | DONE | logic gate and transition review |
45
+ | `ma run '$vet'` | DONE | security/compliance gate and package exposure intake |
46
+ | `ma run '$vibe'` | DONE | DX/UX gate and outcome recording |
47
+ | `ma run '$build'` | DONE | build-readiness gate with fail-closed prerequisites |
48
+ | `ma merge` | DONE | branch policy enforcement |
49
+ | `ma release` | DONE | release policy enforcement |
50
+
51
+ ## Semantic core coverage
52
+
53
+ | Core | Status | Seeded artifact | Test evidence |
54
+ | --- | --- | --- | --- |
55
+ | Semantic Recording Core | DONE | `.ma/context/recording-core.json` | `test/runtime-state.test.js` |
56
+ | Helper Orchestration Core | DONE | `.ma/context/helper-orchestration-core.json` | `test/helper-orchestration-core.test.js`, `test/full-flow.test.js` |
57
+ | Environment Awareness Core | DONE | `.ma/context/environment-awareness-core.json` | `test/environment-awareness-core.test.js`, `test/runtime-state.test.js` |
58
+ | Universal Plugin Broker Core | DONE | `.ma/context/universal-plugin-broker-core.json` | `test/universal-plugin-broker-core.test.js`, `test/runtime-state.test.js` |
59
+ | Workspace Intelligence Runtime | DONE | `.ma/context/workspace-context-pack.json`, `.ma/context/workspace-effectiveness.json` | `test/workspace-intelligence-runtime.test.js` |
60
+ | Learning Loop Core | DONE | `.ma/context/learning-loop-core.json` | `test/learning-loop-core.test.js` |
61
+ | Active Autonomy Core | DONE | `.ma/context/active-autonomy-core.json` | `test/active-autonomy-contract.test.js` |
62
+ | Context Economy Core | DONE | `.ma/context/context-economy-core.json` | `test/context-economy-core.test.js` |
63
+ | Prompt Strategy Core | DONE | `.ma/context/prompt-strategy-core.json` | `test/prompt-strategy-core.test.js` |
64
+ | Obsidian Integration Core | DONE | `.ma/context/obsidian-bridge.json`, `.ma/context/obsidian-vault-index.json` | `test/obsidian-integration-core.test.js` |
65
+ | Obsidian Plugin Bridge | DONE | `plugins/meta-architect/obsidian/` | `test/obsidian-plugin-bridge.test.js` |
66
+ | Ralph Execution Core | DONE | `scripts/ralph/prompt.md`, `.ma/plans/`, story contracts | `test/ralph-execution-core.test.js` |
67
+ | Redaction Gateway | DONE | provider-bound redaction receipts | `test/redaction-gateway.test.js` |
68
+ | Quorum Review Engine | DONE | review/confidence receipts | `test/quorum-review.test.js` |
69
+ | Workspace Virtualizer | DONE | `.ma/context/workspace-virtualizer.json` | `test/workspace-virtualizer.test.js` |
70
+ | Code Graph Rehearse | DONE | `.ma/context/code-graph-rehearse.json` | `test/code-graph-rehearse.test.js` |
71
+ | Skills Registry Export | DONE | `.ma/context/skills-registry-export.json` | `test/skills-registry-export.test.js` |
72
+
73
+ ## Learning-loop reliability domains
74
+
75
+ | Domain | Current coverage |
76
+ | --- | --- |
77
+ | Core & Orchestration | manager runs, lane handoffs, autonomy rules, and runtime-state repair |
78
+ | Memory & Knowledge | `.ma/memory/notes.md`, semantic receipts, Obsidian vault context, project context |
79
+ | Intelligence & Learning | prompt strategy, context economy, learning-loop records, workspace effectiveness checks |
80
+ | Code Quality & Testing | sequential `node --test`, Biome checks, package install smoke, release check |
81
+ | Security & Compliance | `$vet`, exposure catalog, MCP policy, redaction gateway, security playbooks |
82
+ | Architecture & Methodology | `$arch`, decisions, architecture spec, native engineering patterns |
83
+ | DevOps & Observability | hooks, audit logs, release sync, Linux package smoke, package dry-run |
84
+ | Extensibility | skills, plugin mirror, MCP config, cross-agent skill export, Obsidian plugin |
85
+ | Domain-Specific | MA release-hardening scenario, clone-data proof artifacts, trusted GitMCP source mapping |
86
+
87
+ ## Skill surface coverage
88
+
89
+ Canonical public skills:
90
+
91
+ - `maestro`
92
+ - `arch`
93
+ - `sage`
94
+ - `flow`
95
+ - `vet`
96
+ - `vibe`
97
+ - `build`
98
+ - `align`
99
+ - `diagnose`
100
+ - `tdd`
101
+ - `cleanup`
102
+
103
+ Coverage state:
104
+
105
+ - source skill contracts in `skills/`: DONE
106
+ - generated manifest in `skills/index.json`: DONE
107
+ - plugin-mirrored skill contracts in `plugins/meta-architect/skills/`: DONE
108
+ - installable package skill surface via `postinstall`: DONE
109
+
110
+ ## Test coverage actually present
111
+
112
+ | Test file | What it proves |
113
+ | --- | --- |
114
+ | `test/active-autonomy-contract.test.js` | anti-passive behavior contract and prompt surfaces |
115
+ | `test/alignment-sentinel.test.js` | runtime drift detection and bounded recovery recommendations |
116
+ | `test/build-gate.test.js` | build gate evaluation helpers |
117
+ | `test/cli-smoke.test.js` | scaffold creation, build lock, launcher delegation, exit-code propagation |
118
+ | `test/clone-data-artifacts.test.js` | production clone-data proof, ledger, RVF, and package visibility |
119
+ | `test/code-graph-rehearse.test.js` | non-mutating code graph rehearsal and touchpoint extraction |
120
+ | `test/context-economy-core.test.js` | context budget rules and exact-preserve safety boundaries |
121
+ | `test/core-source-ingest.test.js` | local core-source ingest contracts |
122
+ | `test/exposure-catalog.test.js` | package exposure and dependency-risk finding generation |
123
+ | `test/environment-awareness-core.test.js` | existing skill, MCP, plugin, and opt-in global capability discovery with path redaction and non-evidence boundaries |
124
+ | `test/full-flow.test.js` | full helper workflow reaches build-ready state |
125
+ | `test/helper-orchestration-core.test.js` | `$align`, `$diagnose`, `$tdd`, `$cleanup` route composition, receipts, and non-gating boundaries |
126
+ | `test/learning-loop-core.test.js` | nine-domain learning loop and fail-closed learning records |
127
+ | `test/linux-package-artifacts.test.js` | Linux package artifact naming |
128
+ | `test/mcp-config.test.js` | MCP endpoint validation and live-bridge behavior |
129
+ | `test/mcp-policy.test.js` | runtime MCP policy validation |
130
+ | `test/obsidian-integration-core.test.js` | vault-context indexing and graph-link behavior |
131
+ | `test/obsidian-plugin-bridge.test.js` | in-app plugin bridge, metadata, queue, frontmatter, attachments, protocol helpers |
132
+ | `test/package-exports.test.js` | public package API exports core runtime capabilities |
133
+ | `test/package-install-smoke.test.js` | packed npm install, postinstall skill installation, launcher behavior, helper flow |
134
+ | `test/policy.test.js` | merge/release branch policy enforcement |
135
+ | `test/prompt-strategy-core.test.js` | prompt strategy policy and high-risk preservation |
136
+ | `test/quorum-review.test.js` | review vote confidence and minority reports |
137
+ | `test/ralph-execution-core.test.js` | PRD/story execution contract and progress loop |
138
+ | `test/redaction-gateway.test.js` | provider-bound context redaction |
139
+ | `test/release-issue-gates.test.js` | issue gate schema and production-pass requirements |
140
+ | `test/release-state.test.js` | release-state persistence and validation |
141
+ | `test/release-sync.test.js` | release metadata synchronization |
142
+ | `test/runtime-state.test.js` | runtime snapshot, repair, seeded artifacts, manager state, Obsidian, learning-loop integration |
143
+ | `test/skills-registry-export.test.js` | multi-agent skill export and compatibility matrix |
144
+ | `test/universal-plugin-broker-core.test.js` | hybrid plugin broker manifest validation, local bundle isolation, MCP wrapper generation, vendor config injection, idempotency, and MA context skill export |
145
+ | `test/workspace-intelligence-runtime.test.js` | capability composition, semantic receipts, workspace effectiveness |
146
+ | `test/workspace-virtualizer.test.js` | bounded verification sandbox receipts |
147
+
148
+ Current automated verification count:
149
+
150
+ - 36 test files executed by `npm test`
151
+ - 36/36 passing on the latest full release verification run
152
+
153
+ ## Packaging and plugin coverage
154
+
155
+ | Surface | Status | Mechanism |
156
+ | --- | --- | --- |
157
+ | npm package identity | DONE | `@jstn-sdk/ma@0.14.0` |
158
+ | public scoped package config | DONE | `publishConfig.access = public` |
159
+ | package files allowlist | DONE | `package.json > files` |
160
+ | production ignore policy | DONE | `.npmignore` plus `npm pack --dry-run` |
161
+ | production data artifacts | DONE | `data/clone-data.proof.json`, `data/clone-data.ledger.json`, `data/clone-data.rvf` |
162
+ | demo guide package visibility | DONE | `DEMO.md` included in dry-run package output |
163
+ | skill bundle tarball | DONE | `npm run skills:pack` |
164
+ | package dry-run | DONE | `npm run pack:inspect` |
165
+ | plugin mirror sync | DONE | `npm run plugin:sync` |
166
+ | plugin mirror verification | DONE | `npm run plugin:verify` |
167
+ | plugin manifest | DONE | `plugins/meta-architect/.codex-plugin/plugin.json` |
168
+ | local marketplace metadata | DONE | `.agents/plugins/marketplace.json` |
169
+
170
+ ## Release and docs coverage
171
+
172
+ | Surface | Status | Notes |
173
+ | --- | --- | --- |
174
+ | `README.md` canonical install block | DONE | jsDelivr installer, npm fallback, `ma --madmax --high`, uninstall commands |
175
+ | `DEMO.md` production demo | DONE | real MA release-hardening scenario and end-to-end smoke commands |
176
+ | `docs/getting-started.md` onboarding | DONE | source checkout, helper path, gates, runtime artifacts |
177
+ | `docs/skills.md` skill reference | DONE | trigger-by-trigger contract guide |
178
+ | `docs/mcp-setup.md` evidence policy | DONE | GitMCP endpoint semantics and bridge guidance |
179
+ | `docs/release-spec.md` release policy | DONE | `v0.14.0` aligned |
180
+ | `docs/qa/release-readiness-0.14.0.md` | DONE | current QA evidence |
181
+ | `scripts/release-verify.js` | DONE | checks install docs, demo doc, issue gates, package metadata, `.npmignore` |
182
+
183
+ ## Known limits
184
+
185
+ These are explicit operating limits, not stale gaps:
186
+
187
+ 1. Live `$sage` verification depends on reachable GitMCP endpoints or a trusted local bridge.
188
+ 2. Obsidian context records as `vault_context`; it does not become `build_evidence` without owning-lane promotion.
189
+ 3. Candidate learning records can inform context, but cannot mutate release state or durable policy.
190
+ 4. Linux native package build/smoke checks require a Linux environment for full distro-package validation.
191
+ 5. A local shell publish cannot generate npm provenance; provenance requires a supported CI/CD provider.
192
+
193
+ ## Current truth statement
194
+
195
+ Meta-Architect currently covers the `v0.14.0` release bar for:
196
+
197
+ - canonical install and launch
198
+ - Codex-hosted runtime entry
199
+ - `$maestro` bounded orchestration
200
+ - gated architecture/evidence/logic/security/DX/build workflow
201
+ - helper skills backed by Helper Orchestration Core receipts that do not mutate release gates
202
+ - existing workspace skill, MCP, and plugin discovery through Environment Awareness Core without auto-running or promoting capabilities to build evidence
203
+ - universal plugin brokering through MCP vendor injection plus `.agents/skills` context payloads across supported agents
204
+ - Obsidian as semantic brain context
205
+ - learning-loop reliability across nine domains
206
+ - Ralph-style story execution after gates
207
+ - context economy and prompt strategy cores
208
+ - plugin mirroring, MCP policy, skill packaging, package proof, and release verification
209
+
210
+ This repository is not a toy demo.
211
+ Coverage claims above are tied to concrete files, commands, tests, or package dry-run evidence.
package/DEMO.md ADDED
@@ -0,0 +1,274 @@
1
+ # Meta-Architect Demo Guide
2
+
3
+ Last verified: 2026-06-03
4
+ Release line: `v0.14.0`
5
+ Package: `@jstn-sdk/ma`
6
+
7
+ This demo uses a real existing project: this Meta-Architect repository.
8
+ It highlights how MA helps a workspace move from idea and context to gated architecture, evidence, review, build readiness, package proof, and release hygiene.
9
+
10
+ ## What this proves
11
+
12
+ | Capability area | Real project surface |
13
+ | --- | --- |
14
+ | Core & Orchestration | `$maestro`, `.ma/state/manager-runs.json`, `.ma/state/maestro-state.json` |
15
+ | Memory & Knowledge | `.ma/memory/notes.md`, `.ma/context/project.md`, `.ma/context/learning-loop-core.json` |
16
+ | Intelligence & Learning | `.ma/context/prompt-strategy-core.json`, `.ma/context/context-economy-core.json`, `.ma/context/workspace-effectiveness.json` |
17
+ | Code Quality & Testing | `npm test`, `npm run check`, `test/*` |
18
+ | Security & Compliance | `$vet`, `.ma/specs/security.md`, `.ma/evidence/audits.json`, redaction gateway |
19
+ | Architecture & Methodology | `$arch`, `.ma/specs/architecture.md`, `.ma/decisions.json` |
20
+ | DevOps & Observability | `npm run release:check`, `.ma/hooks/audit.log`, `.ma/runbook.md` |
21
+ | Extensibility | `skills/`, `plugins/meta-architect/`, `mcp/servers.json`, Obsidian plugin bridge |
22
+ | Domain-Specific | real MA release/package workflow, clone-data proof files, Obsidian vault context boundaries |
23
+
24
+ > [!IMPORTANT]
25
+ > This is not a mock demo.
26
+ > The commands below use the current package scripts, seeded `.ma` runtime files, real skill contracts, and package dry-run output.
27
+
28
+ ## 1. Install and enter MA
29
+
30
+ Recommended POSIX install:
31
+
32
+ ```bash
33
+ 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
34
+ ```
35
+
36
+ Canonical npm fallback:
37
+
38
+ ```bash
39
+ npm i -g @openai/codex@latest @jstn-sdk/ma@latest
40
+ ma --madmax --high
41
+ ```
42
+
43
+ Remove only MA:
44
+
45
+ ```bash
46
+ npm uninstall -g @jstn-sdk/ma
47
+ ```
48
+
49
+ Remove MA and Codex:
50
+
51
+ ```bash
52
+ npm uninstall -g @jstn-sdk/ma @openai/codex
53
+ ```
54
+
55
+ Expected result:
56
+
57
+ - `ma` launches the Codex runtime posture.
58
+ - the MA skill surface is installed into the active Codex home.
59
+ - the in-session workflow can start with `$maestro`.
60
+
61
+ ## 2. Run the real repo-local setup
62
+
63
+ Use this when demonstrating from a source checkout.
64
+
65
+ ```bash
66
+ git clone https://github.com/JustineDevs/meta-architect.git
67
+ cd meta-architect
68
+ npm install
69
+ npm link
70
+ ma setup
71
+ ma doctor
72
+ ma status --maestro-view
73
+ ```
74
+
75
+ Expected seeded runtime files include:
76
+
77
+ | Runtime file | Why it matters |
78
+ | --- | --- |
79
+ | `.ma/release.json` | release gate source of truth |
80
+ | `.ma/decisions.json` | lane decision log |
81
+ | `.ma/context/recording-core.json` | semantic recording map |
82
+ | `.ma/context/learning-loop-core.json` | verified-learning loop across reliability domains |
83
+ | `.ma/context/obsidian-bridge.json` | Obsidian brain-context boundary |
84
+ | `.ma/context/prompt-strategy-core.json` | prompt strategy policy |
85
+ | `.ma/context/context-economy-core.json` | terse-output/context-budget policy |
86
+ | `.ma/context/workspace-context-pack.json` | shared workspace intelligence |
87
+ | `.ma/context/environment-awareness-core.json` | existing skill, MCP, and plugin capability inventory |
88
+ | `.ma/context/universal-plugin-broker-core.json` | hybrid MCP + MA skill plugin broker contract |
89
+ | `.ma/evidence/semantic-receipts.json` | semantic receipt registry |
90
+ | `.ma/runbook.md` | local helper workflow |
91
+
92
+ ## 3. Demo the MA release-hardening workflow
93
+
94
+ Scenario: make this repository release-ready without bypassing architecture, evidence, logic, security, DX, or build gates.
95
+
96
+ Terminal helper path:
97
+
98
+ ```bash
99
+ 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."
100
+ ma run '$maestro'
101
+ ma status --maestro-view
102
+ ```
103
+
104
+ Direct in-session path inside Codex:
105
+
106
+ ```text
107
+ $maestro
108
+ $arch
109
+ $sage
110
+ $flow
111
+ $vet
112
+ $vibe
113
+ $build
114
+ ```
115
+
116
+ Expected behavior:
117
+
118
+ - `$maestro` chooses the next safe lane instead of passively asking what to do.
119
+ - `$arch` records architecture intent and constraints.
120
+ - `$sage` separates technical evidence from discovery or vault context.
121
+ - `$flow` checks logic/state transitions.
122
+ - `$vet` preserves security and compliance blockers.
123
+ - `$vibe` reviews developer/user experience risk.
124
+ - `$build` stays locked until upstream gates are green.
125
+
126
+ ## 4. Demo learning loop reliability
127
+
128
+ The learning loop turns verified outcomes into future reliability context.
129
+ It does not auto-promote guesses.
130
+
131
+ ```bash
132
+ node --test test/learning-loop-core.test.js
133
+ node -e "import('./index.js').then(({createDefaultLearningLoopCore, evaluateLearningLoopReadiness}) => console.log(evaluateLearningLoopReadiness(createDefaultLearningLoopCore())))"
134
+ ```
135
+
136
+ Expected:
137
+
138
+ - all nine reliability domains exist
139
+ - candidate learnings cannot mutate release state
140
+ - verified learnings require source, evidence, authority, and next verification
141
+
142
+ ## 5. Demo Obsidian as brain context, not build evidence
143
+
144
+ MA treats Obsidian notes as semantic brain context.
145
+ They can inform planning and workspace understanding, but they are not build evidence unless an owning lane promotes a claim with proof.
146
+
147
+ ```bash
148
+ node --test test/obsidian-integration-core.test.js test/obsidian-plugin-bridge.test.js
149
+ ```
150
+
151
+ Expected:
152
+
153
+ - vault notes are indexed as `vault_context`
154
+ - graph links are represented with Obsidian wikilinks
155
+ - plugin bridge APIs support active note context, frontmatter authority, request queue, attachments, protocol handling, rename-safe links, and metadata graph extraction
156
+ - plugin-side actions do not directly mutate `.ma/release.json`, `.ma/decisions.json`, `.ma/plans/`, or `.ma/specs/`
157
+
158
+ ## 6. Demo Ralph-style execution handoff
159
+
160
+ Ralph execution is a core execution contract after MA gates, not a separate release authority.
161
+
162
+ ```bash
163
+ node --test test/ralph-execution-core.test.js
164
+ ```
165
+
166
+ Expected:
167
+
168
+ - approved PRD/story contracts are story-sized
169
+ - progress is append-only and scoped
170
+ - execution cannot bypass `$arch -> $sage -> $flow -> $vet -> $vibe -> $build`
171
+
172
+ ## 7. Demo context economy and prompt strategy
173
+
174
+ MA uses first-party context economy and prompt strategy cores to keep responses concise without removing technical precision, security warnings, schemas, or verification gaps.
175
+
176
+ ```bash
177
+ node --test test/context-economy-core.test.js test/prompt-strategy-core.test.js
178
+ ```
179
+
180
+ Expected:
181
+
182
+ - terse summaries preserve exact code, commands, warnings, and authority fields
183
+ - prompt techniques are selected through MA lane policy
184
+ - security and high-risk content bypasses unsafe compression
185
+
186
+ ## 8. Demo extensibility and package surfaces
187
+
188
+ ```bash
189
+ npm run skills:manifest
190
+ npm run plugin:sync
191
+ npm run skills:validate
192
+ npm run plugin:verify
193
+ npm run skills:pack
194
+ node --test test/skills-registry-export.test.js test/mcp-policy.test.js test/environment-awareness-core.test.js test/universal-plugin-broker-core.test.js
195
+ ```
196
+
197
+ Expected:
198
+
199
+ - `skills/index.json` is current
200
+ - `plugins/meta-architect/skills/` mirrors `skills/`
201
+ - all public skills validate
202
+ - MCP policy prevents unsafe or ambiguous evidence surfaces
203
+ - cross-agent skill export uses canonical `.agents/skills` semantics where applicable
204
+ - Environment Awareness Core discovers repo-local skills, MCP servers, and plugin manifests as `available_capability`, never `build_evidence`
205
+ - Universal Plugin Broker Core installs local plugin bundles into an isolated MA home, generates executable MCP wrappers, injects detected Claude Code / Antigravity / Cursor / Codex configs, and exports MA context skills
206
+
207
+ ## 9. Demo production package proof
208
+
209
+ ```bash
210
+ npm run demo:smoke
211
+ node scripts/release-verify.js
212
+ npm run check
213
+ npm test
214
+ npm pack --dry-run --ignore-scripts --cache ./.npm-cache
215
+ ```
216
+
217
+ Expected package proof:
218
+
219
+ - package name is `@jstn-sdk/ma`
220
+ - version line is `0.14.0`
221
+ - `npm run demo:smoke` creates a realistic Northstar Logistics workspace and Obsidian vault under `/tmp/ma-real-demo-*`
222
+ - the smoke writes `.ma/evidence/real-demo-smoke-proof.json` in that temporary workspace
223
+ - `DEMO.md` is included
224
+ - `COVERAGE.md` is included
225
+ - `data/clone-data.proof.json`, `data/clone-data.ledger.json`, and `data/clone-data.rvf` are included
226
+ - runtime state such as canonical `.ma/` (plus legacy `.omx/` orchestration state), `node_modules/`, `test/`, and local caches are excluded
227
+
228
+ ## 10. Full release demo
229
+
230
+ For a buyer-facing walkthrough, use the real demo kit:
231
+
232
+ - [Real Demo Runbook](./docs/demo/REAL_DEMO_RUNBOOK.md)
233
+ - [Demo Story](./docs/demo/DEMO_STORY.md)
234
+ - [Prospect Checklist](./docs/demo/PROSPECT_CHECKLIST.md)
235
+
236
+ The strongest single command:
237
+
238
+ ```bash
239
+ npm run release:check
240
+ ```
241
+
242
+ What it proves:
243
+
244
+ - release metadata is coherent
245
+ - public install docs include jsDelivr and npm fallback paths
246
+ - skills manifest, plugin mirror, skill validation, and skill packing work
247
+ - Biome check passes
248
+ - full sequential test suite passes
249
+ - npm dry-run package contents are production-safe
250
+
251
+ ## Current verified inventory
252
+
253
+ | Surface | Current reality |
254
+ | --- | --- |
255
+ | Release line | `v0.14.0` |
256
+ | Package | `@jstn-sdk/ma` |
257
+ | Public skills | 11 (`maestro`, `arch`, `sage`, `flow`, `vet`, `vibe`, `build`, `align`, `diagnose`, `tdd`, `cleanup`) |
258
+ | Runtime namespace | `.ma/` |
259
+ | Production data artifacts | `data/clone-data.proof.json`, `data/clone-data.ledger.json`, `data/clone-data.rvf` |
260
+ | Coverage artifact | `COVERAGE.md` |
261
+ | Obsidian plugin payload | `plugins/meta-architect/obsidian/` |
262
+ | Learning loop artifact | `.ma/context/learning-loop-core.json` |
263
+ | Helper orchestration artifact | `.ma/context/helper-orchestration-core.json` |
264
+ | Environment awareness artifact | `.ma/context/environment-awareness-core.json` |
265
+ | Universal plugin broker artifact | `.ma/context/universal-plugin-broker-core.json` |
266
+ | Package hygiene | `.npmignore` plus `package.json#files` allowlist |
267
+
268
+ ## Troubleshooting
269
+
270
+ - If `ma --madmax --high` does not launch Codex, confirm `@openai/codex` is installed globally and callable on `PATH`.
271
+ - If `$sage` cannot verify evidence, inspect `mcp/servers.json` and use repository-form GitMCP endpoints such as `https://gitmcp.io/{owner}/{repo}`.
272
+ - If `$build` stays locked, run `ma status --maestro-view` and resolve the blocking gate.
273
+ - If Obsidian context looks empty, verify the vault path and that notes contain links, tags, headings, or frontmatter.
274
+ - If package output includes runtime state, inspect `.npmignore`, `package.json#files`, and `npm pack --dry-run`.
package/LICENSE CHANGED
File without changes