@jstn-sdk/ma 0.1.11 → 0.1.13

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 (159) hide show
  1. package/.codex/agents/Architect.toml +0 -2
  2. package/.codex/agents/Auditor.toml +0 -2
  3. package/.codex/agents/Builder.toml +0 -2
  4. package/.codex/agents/Flow.toml +0 -2
  5. package/.codex/agents/Sage.toml +0 -2
  6. package/.codex/agents/Vibe.toml +0 -2
  7. package/.codex/hooks.json +14 -13
  8. package/.codex/prompts/enforcement.md +4 -0
  9. package/.codex/prompts/skill-contract.md +4 -0
  10. package/COVERAGE.md +211 -0
  11. package/DEMO.md +265 -0
  12. package/README.md +287 -37
  13. package/bin/ma.js +232 -71
  14. package/data/clone-data.ledger.json +41 -0
  15. package/data/clone-data.proof.json +50 -0
  16. package/data/clone-data.rvf +37 -0
  17. package/docs/README.md +7 -1
  18. package/docs/getting-started.md +108 -37
  19. package/docs/installed-sdk.md +23 -0
  20. package/docs/mcp-setup.md +65 -1
  21. package/docs/onboarding.md +18 -2
  22. package/docs/prompt-guidance-contract.md +17 -0
  23. package/docs/prompt-guidance-fragments/active-autonomy-core.md +7 -0
  24. package/docs/qa/release-issue-gates-0.1.13.json +644 -0
  25. package/docs/qa/release-readiness-0.1.13.md +116 -0
  26. package/docs/qa/release-readiness-0.1.5.md +1 -1
  27. package/docs/reference/native-engineering-patterns.md +35 -0
  28. package/docs/reference/native-security-playbooks.md +27 -0
  29. package/docs/reference/native-source-selection.md +27 -0
  30. package/docs/reference/native-style-and-deslop.md +20 -0
  31. package/docs/release-spec.md +37 -10
  32. package/docs/skills-publishing.md +25 -1
  33. package/docs/skills.md +37 -12
  34. package/index.js +222 -2
  35. package/mcp/collections.json +23 -6
  36. package/mcp/local/code-intel.js +113 -0
  37. package/mcp/local/memory.js +46 -0
  38. package/mcp/local/playbooks.js +168 -0
  39. package/mcp/local/state.js +71 -0
  40. package/mcp/local/team-run.js +113 -0
  41. package/mcp/local/trace.js +60 -0
  42. package/mcp/local-capabilities.json +56 -0
  43. package/mcp/native-playbooks.json +117 -0
  44. package/mcp/servers.json +34 -0
  45. package/package.json +8 -2
  46. package/plugins/meta-architect/.app.json +1 -1
  47. package/plugins/meta-architect/.codex-plugin/plugin.json +4 -4
  48. package/plugins/meta-architect/.mcp.json +1 -1
  49. package/plugins/meta-architect/README.md +34 -1
  50. package/plugins/meta-architect/obsidian/main.js +401 -0
  51. package/plugins/meta-architect/obsidian/manifest.json +9 -0
  52. package/plugins/meta-architect/obsidian/styles.css +7 -0
  53. package/plugins/meta-architect/skills/align/SKILL.md +24 -0
  54. package/plugins/meta-architect/skills/align/agents/openai.yaml +4 -0
  55. package/plugins/meta-architect/skills/align/references/shared-language.md +24 -0
  56. package/plugins/meta-architect/skills/arch/SKILL.md +2 -0
  57. package/plugins/meta-architect/skills/build/SKILL.md +3 -0
  58. package/plugins/meta-architect/skills/cleanup/SKILL.md +23 -0
  59. package/plugins/meta-architect/skills/cleanup/agents/openai.yaml +4 -0
  60. package/plugins/meta-architect/skills/cleanup/references/style-and-deslop.md +18 -0
  61. package/plugins/meta-architect/skills/diagnose/SKILL.md +24 -0
  62. package/plugins/meta-architect/skills/diagnose/agents/openai.yaml +4 -0
  63. package/plugins/meta-architect/skills/flow/SKILL.md +2 -0
  64. package/plugins/meta-architect/skills/maestro/SKILL.md +36 -3
  65. package/plugins/meta-architect/skills/maestro/agents/openai.yaml +2 -2
  66. package/plugins/meta-architect/skills/maestro/references/native-ingest-map.md +44 -0
  67. package/plugins/meta-architect/skills/sage/SKILL.md +5 -1
  68. package/plugins/meta-architect/skills/sage/references/source-selection.md +36 -0
  69. package/plugins/meta-architect/skills/tdd/SKILL.md +24 -0
  70. package/plugins/meta-architect/skills/tdd/agents/openai.yaml +4 -0
  71. package/plugins/meta-architect/skills/vet/SKILL.md +5 -1
  72. package/plugins/meta-architect/skills/vet/references/security-playbooks.md +30 -0
  73. package/plugins/meta-architect/skills/vibe/SKILL.md +2 -0
  74. package/scripts/active-autonomy-hook.mjs +96 -0
  75. package/scripts/build-linux-packages.mjs +328 -0
  76. package/scripts/doctor.js +36 -4
  77. package/scripts/install.sh +28 -0
  78. package/scripts/linux-package-lib.mjs +40 -0
  79. package/scripts/linux-package-smoke.mjs +103 -0
  80. package/scripts/ralph/prompt.md +35 -0
  81. package/scripts/release-sync.js +13 -6
  82. package/scripts/release-verify.js +166 -1
  83. package/skills/align/SKILL.md +24 -0
  84. package/skills/align/agents/openai.yaml +4 -0
  85. package/skills/align/references/shared-language.md +24 -0
  86. package/skills/arch/SKILL.md +2 -0
  87. package/skills/build/SKILL.md +3 -0
  88. package/skills/cleanup/SKILL.md +23 -0
  89. package/skills/cleanup/agents/openai.yaml +4 -0
  90. package/skills/cleanup/references/style-and-deslop.md +18 -0
  91. package/skills/diagnose/SKILL.md +24 -0
  92. package/skills/diagnose/agents/openai.yaml +4 -0
  93. package/skills/flow/SKILL.md +2 -0
  94. package/skills/index.json +21 -6
  95. package/skills/maestro/SKILL.md +36 -3
  96. package/skills/maestro/agents/openai.yaml +2 -2
  97. package/skills/maestro/references/native-ingest-map.md +44 -0
  98. package/skills/sage/SKILL.md +5 -1
  99. package/skills/sage/references/source-selection.md +36 -0
  100. package/skills/tdd/SKILL.md +24 -0
  101. package/skills/tdd/agents/openai.yaml +4 -0
  102. package/skills/vet/SKILL.md +5 -1
  103. package/skills/vet/references/security-playbooks.md +30 -0
  104. package/skills/vibe/SKILL.md +2 -0
  105. package/src/bootstrap.js +141 -24
  106. package/src/build-gate.js +2 -2
  107. package/src/decision-log.js +12 -9
  108. package/src/launcher.js +4 -0
  109. package/src/mcp-config.js +130 -8
  110. package/src/mcp-live-client.js +289 -3
  111. package/src/paths.js +37 -1
  112. package/src/policy.js +1 -1
  113. package/src/release-issue-gates.js +190 -0
  114. package/src/release-state.js +30 -1
  115. package/src/runtime/active-autonomy-core.js +208 -0
  116. package/src/runtime/alignment-sentinel.js +165 -0
  117. package/src/runtime/architect-review.js +88 -0
  118. package/src/runtime/build-readiness.js +62 -0
  119. package/src/runtime/code-graph-rehearse.js +113 -0
  120. package/src/runtime/context-economy-core.js +276 -0
  121. package/src/runtime/continuity-notes.js +79 -0
  122. package/src/runtime/core-source-ingest.js +379 -0
  123. package/src/runtime/detached-provider.js +74 -0
  124. package/src/runtime/environment-awareness-core.js +460 -0
  125. package/src/runtime/exposure-catalog.js +276 -0
  126. package/src/runtime/guidance-stack.js +42 -0
  127. package/src/runtime/helper-orchestration-core.js +307 -0
  128. package/src/runtime/learning-loop-core.js +238 -0
  129. package/src/runtime/maestro-events.js +18 -0
  130. package/src/runtime/maestro-manager.js +605 -0
  131. package/src/runtime/maestro-state.js +125 -0
  132. package/src/runtime/mcp-policy.js +192 -0
  133. package/src/runtime/obsidian-integration-core.js +851 -0
  134. package/src/runtime/obsidian-plugin-bridge.js +739 -0
  135. package/src/runtime/orchestrator.js +158 -0
  136. package/src/runtime/prompt-strategy-core.js +230 -0
  137. package/src/runtime/quorum-review.js +90 -0
  138. package/src/runtime/ralph-execution-core.js +217 -0
  139. package/src/runtime/redaction-gateway.js +174 -0
  140. package/src/runtime/runtime-state.js +1223 -0
  141. package/src/runtime/semantic-recording-core.js +147 -0
  142. package/src/runtime/signal-hooks.js +67 -0
  143. package/src/runtime/skills-registry-export.js +670 -0
  144. package/src/runtime/startup-path.js +14 -0
  145. package/src/runtime/universal-plugin-broker-core.js +575 -0
  146. package/src/runtime/workspace-intelligence-runtime.js +674 -0
  147. package/src/runtime/workspace-virtualizer.js +102 -0
  148. package/src/runtime/workspaces.js +25 -0
  149. package/src/runtime-artifacts.js +407 -84
  150. package/src/skill-installer.js +53 -5
  151. package/src/skills.js +1454 -78
  152. package/src/state-sync.js +51 -8
  153. package/docs/qa/release-readiness-0.1.11.md +0 -79
  154. package/plugins/meta-architect/skills/meta-architect/SKILL.md +0 -32
  155. package/plugins/meta-architect/skills/meta-architect/agents/openai.yaml +0 -4
  156. package/skills/meta-architect/SKILL.md +0 -32
  157. package/skills/meta-architect/agents/openai.yaml +0 -4
  158. /package/plugins/meta-architect/skills/{meta-architect → maestro}/references/core-release-rules.md +0 -0
  159. /package/skills/{meta-architect → maestro}/references/core-release-rules.md +0 -0
@@ -20,9 +20,36 @@ By the end of this guide you should be able to:
20
20
  - an MCP-capable runtime
21
21
  - network access if you want live `$sage` verification against a real GitMCP server
22
22
 
23
- ## 1. Canonical install and launch
23
+ ## 1. Default install and launch
24
24
 
25
- Canonical public install:
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 -fsSL https://cdn.jsdelivr.net/gh/JustineDevs/meta-architect@main/scripts/install.sh | sh
30
+ ```
31
+
32
+ The jsDelivr installer runs `npm i -g @openai/codex@latest @jstn-sdk/ma@latest`, then `ma setup`.
33
+
34
+ Debian-family install:
35
+
36
+ ```bash
37
+ sudo apt install ./meta-architect_<version>_all.deb
38
+ ```
39
+
40
+ Arch-family install:
41
+
42
+ ```bash
43
+ sudo pacman -U ./meta-architect-<version>-1-any.pkg.tar.xz
44
+ ```
45
+
46
+ Fedora/openSUSE install:
47
+
48
+ ```bash
49
+ sudo dnf install ./meta-architect-<version>-1.noarch.rpm
50
+ ```
51
+
52
+ Default supported npm fallback:
26
53
 
27
54
  ```bash
28
55
  # Install
@@ -38,11 +65,11 @@ npm uninstall -g @jstn-sdk/ma
38
65
  npm uninstall -g @jstn-sdk/ma @openai/codex
39
66
  ```
40
67
 
41
- That is the default product path. The product experience is 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.
68
+ 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.
42
69
 
43
70
  ## 2. Real usage workflow
44
71
 
45
- Start with the structured `$arch` prompt:
72
+ Start with `$maestro` when you want the bounded autonomous manager to inspect the workflow state and choose the next step. Start with the structured `$arch` prompt when you already know architecture is the next gated lane:
46
73
 
47
74
  ```text
48
75
  $arch I want to build: [PROJECT IDEA]
@@ -74,7 +101,7 @@ Required output:
74
101
  5. Data model and storage choices
75
102
  6. Auth/security considerations
76
103
  7. DX/UX considerations
77
- 8. Delivery plan for v0.1.11
104
+ 8. Delivery plan for v0.1.13
78
105
  9. Risks and trade-offs
79
106
  10. Decision log
80
107
  11. Exact next trigger to run after this
@@ -92,6 +119,17 @@ $build
92
119
 
93
120
  Use the full prompt blocks from [example/usage-workflow.md](../example/usage-workflow.md) when you want the exact handoff format between lanes.
94
121
 
122
+ Optional helper skills around that path:
123
+
124
+ ```text
125
+ $align
126
+ $diagnose
127
+ $tdd
128
+ $cleanup
129
+ ```
130
+
131
+ These helpers are publishable skills, but they do not change gate ownership, move release states, or replace the fixed release sequence.
132
+
95
133
  ## 3. Contributor clone and link
96
134
 
97
135
  ```bash
@@ -150,6 +188,8 @@ Meta-Architect works in two simple ways:
150
188
  - terminal commands
151
189
  - in-session skills
152
190
 
191
+ The umbrella in-session entry point is `$maestro`. The package does not ship a separate `$meta-architect` skill surface.
192
+
153
193
  Terminal commands are normal shell commands:
154
194
 
155
195
  ```bash
@@ -170,12 +210,22 @@ $flow
170
210
  $vet
171
211
  $vibe
172
212
  $build
213
+ $align
214
+ $diagnose
215
+ $tdd
216
+ $cleanup
173
217
  ```
174
218
 
175
219
  Easy rule:
176
220
  - `ma ...` = terminal helper command
177
221
  - `$...` = in-session skill
178
222
 
223
+ Contract split:
224
+ - terminal helper commands support setup, local state, and scripted verification
225
+ - in-session skills are the product workflow surface
226
+ - `$maestro` is the only umbrella surface inside the session
227
+ - `$align`, `$diagnose`, `$tdd`, and `$cleanup` stay publishable but non-gating
228
+
179
229
  `ma setup` and `ma init` currently do the same thing:
180
230
  - they create local `.ma/` support files
181
231
  - they prepare context, specs, plans, evidence, and runbook files
@@ -205,16 +255,16 @@ Minimum live example:
205
255
 
206
256
  ```json
207
257
  {
208
- "category": "meta-list",
209
- "repo": "sindresorhus/awesome",
210
- "endpoint": "https://gitmcp.io/sindresorhus/awesome"
258
+ "category": "candidate",
259
+ "repo": "owner/repo",
260
+ "endpoint": "https://gitmcp.io/owner/repo"
211
261
  }
212
262
  ```
213
263
 
214
- Recommended first set:
215
- - `sindresorhus/awesome`
216
- - `dzharii/awesome-typescript`
217
- - `sbilly/awesome-security`
264
+ Recommended source-selection posture:
265
+ - use the packaged native references to narrow candidate families first
266
+ - map serious candidates to exact upstream GitMCP repo endpoints
267
+ - verify final choices against upstream repos and official docs before treating them as approved evidence
218
268
 
219
269
  Core discovery standard:
220
270
  - use `https://ossium.live/home` to find trending OSS, curated repos, YC-backed repos, GSoC orgs, and contribution leads faster than browsing GitHub directly
@@ -225,6 +275,11 @@ Core discovery standard:
225
275
  - use `https://www.opensourceprojects.dev/` to inspect curated OSS selections and detailed project writeups
226
276
  - move any promising discovery result into `mcp/servers.json` as an exact upstream GitMCP repo endpoint before treating it as VERIFIED evidence
227
277
 
278
+ Useful native reference packs:
279
+ - `skills/maestro/references/native-ingest-map.md`
280
+ - `skills/sage/references/source-selection.md`
281
+ - `skills/vet/references/security-playbooks.md`
282
+
228
283
  Canonical `$sage` order:
229
284
  - known upstream repo/docs first
230
285
  - discovery accelerators second
@@ -236,7 +291,7 @@ See [docs/mcp-setup.md](./mcp-setup.md) for endpoint policy and evidence semanti
236
291
  ## 6. Secondary helper flow
237
292
 
238
293
  ```bash
239
- ma idea "Build a real-time collaborative whiteboard for product teams"
294
+ ma idea "Prepare Meta-Architect v0.1.13 for a production package release with real install docs, Obsidian brain-context support, learning-loop reliability, and package proof artifacts."
240
295
  ```
241
296
 
242
297
  Expected effects:
@@ -249,7 +304,7 @@ If this fails:
249
304
 
250
305
  ## 7. Run the helper skill sequence
251
306
 
252
- ### 5.0 Workflow manager
307
+ ### 7.1 Autonomous manager
253
308
 
254
309
  ```bash
255
310
  ma run '$maestro'
@@ -257,7 +312,10 @@ ma run '$maestro'
257
312
 
258
313
  Expected effects:
259
314
  - reads the current gate state
260
- - recommends the best next step
315
+ - acts as the bounded umbrella in-session workflow manager
316
+ - recommends the best next step or lane assignment
317
+ - can hand work to a publishable non-gating helper skill when that is enough
318
+ - does not move release gates by itself
261
319
  - writes `.ma/plans/maestro.md`
262
320
  - records an advisory decision entry
263
321
 
@@ -265,7 +323,13 @@ Generated or updated:
265
323
  - `.ma/decisions.json`
266
324
  - `.ma/plans/maestro.md`
267
325
 
268
- ### 5.1 Architecture
326
+ Optional non-gating helper skills that can run before or between gated lanes:
327
+ - `$align` for scope/language cleanup
328
+ - `$diagnose` for blocked-lane triage
329
+ - `$tdd` for regression-first execution setup
330
+ - `$cleanup` for simplification and final-pass polish
331
+
332
+ ### 7.2 Architecture
269
333
 
270
334
  ```bash
271
335
  ma run '$arch'
@@ -282,7 +346,7 @@ Generated or updated:
282
346
  - `.ma/specs/architecture.md`
283
347
  - `.ma/plans/implementation.md`
284
348
 
285
- ### 5.2 Evidence
349
+ ### 7.3 Evidence
286
350
 
287
351
  ```bash
288
352
  ma run '$sage'
@@ -311,7 +375,7 @@ If this fails:
311
375
  - verify network access
312
376
  - rerun after correcting the endpoint or environment
313
377
 
314
- ### 5.3 Logic
378
+ ### 7.4 Logic
315
379
 
316
380
  ```bash
317
381
  ma run '$flow'
@@ -325,7 +389,7 @@ Expected effects:
325
389
  Generated or updated:
326
390
  - `.ma/specs/logic.md`
327
391
 
328
- ### 5.4 Security
392
+ ### 7.5 Security
329
393
 
330
394
  ```bash
331
395
  ma run '$vet'
@@ -339,7 +403,7 @@ Expected effects:
339
403
  Generated or updated:
340
404
  - `.ma/specs/security.md`
341
405
 
342
- ### 5.5 Experience
406
+ ### 7.6 Experience
343
407
 
344
408
  ```bash
345
409
  ma run '$vibe'
@@ -395,11 +459,11 @@ Expected output shape:
395
459
  ```text
396
460
  Build gate is green.
397
461
  Suggested branches:
398
- - feature/ui
399
- - feature/api
462
+ - feature/implementation
463
+ - feature/verification
400
464
  Optional worktree commands:
401
- git worktree add ../ui feature/ui
402
- git worktree add ../api feature/api
465
+ git worktree add ../implementation feature/implementation
466
+ git worktree add ../verification feature/verification
403
467
  ```
404
468
 
405
469
  If `$build` fails:
@@ -408,11 +472,11 @@ If `$build` fails:
408
472
  - fix the corresponding upstream lane
409
473
  - rerun that lane, then rerun `$build`
410
474
 
411
- ## 10. Example walkthrough: collaborative whiteboard
475
+ ## 10. Example walkthrough: MA release hardening
412
476
 
413
477
  ```bash
414
478
  ma setup
415
- ma idea "Build a collaborative whiteboard with live cursors and shared boards"
479
+ ma idea "Prepare Meta-Architect v0.1.13 for a production package release with real install docs, Obsidian brain-context support, learning-loop reliability, and package proof artifacts."
416
480
  ma run '$arch'
417
481
  ma run '$sage'
418
482
  ma run '$flow'
@@ -425,17 +489,17 @@ ma run '$build'
425
489
  If you want an interactive Codex session during the walkthrough, start it separately with `ma`.
426
490
 
427
491
  What should happen:
428
- - `$arch` records a structured first-pass blueprint
429
- - `$sage` binds major choices to configured GitMCP-backed sources
430
- - `$flow` records the kernel’s baseline state review for the mission
431
- - `$vet` records a baseline security review
432
- - `$vibe` records baseline DX/UX guidance
433
- - `$build` suggests bounded concerns like `feature/ui` and `feature/api`
492
+ - `$arch` records the architecture and release-hardening blueprint
493
+ - `$sage` binds package, Obsidian, prompt-strategy, and MCP choices to configured evidence sources
494
+ - `$flow` records state-transition and gate-order review
495
+ - `$vet` records security, package exposure, and provider-bound context review
496
+ - `$vibe` records operator/demo/docs usability guidance
497
+ - `$build` suggests bounded implementation and verification branches after gates pass
434
498
 
435
- Related mission:
436
- - [missions/collaborative-whiteboard/mission.md](../missions/collaborative-whiteboard/mission.md)
499
+ Canonical demo reference:
500
+ - [DEMO.md](../DEMO.md)
437
501
 
438
- ## 9. Merge and release path
502
+ ## 11. Merge and release path
439
503
 
440
504
  After implementation work is complete:
441
505
 
@@ -452,7 +516,7 @@ Expected effects:
452
516
  - `merge_status = MERGED_TO_DEVELOPMENT`
453
517
  - `release_status = SHIPPED_TO_PROD`
454
518
 
455
- ## 10. Files generated or updated during a normal run
519
+ ## 12. Files generated or updated during a normal run
456
520
 
457
521
  - `.ma/decisions.json`
458
522
  - `.ma/release.json`
@@ -461,6 +525,13 @@ Expected effects:
461
525
  - `.ma/evidence/cves.json`
462
526
  - `.ma/evidence/outcomes.json`
463
527
  - `.ma/context/project.md`
528
+ - `.ma/context/recording-core.json`
529
+ - `.ma/context/learning-loop-core.json`
530
+ - `.ma/context/workspace-context-pack.json`
531
+ - `.ma/context/workspace-effectiveness.json`
532
+ - `.ma/context/prompt-strategy-core.json`
533
+ - `.ma/context/context-economy-core.json`
534
+ - `.ma/context/obsidian-bridge.json`
464
535
  - `.ma/specs/architecture.md`
465
536
  - `.ma/specs/evidence.md`
466
537
  - `.ma/specs/logic.md`
@@ -472,7 +543,7 @@ Expected effects:
472
543
 
473
544
  These are local product artifacts created by the runtime. They are not a reason to bypass gate logic manually.
474
545
 
475
- ## 11. If a gate fails
546
+ ## 13. If a gate fails
476
547
 
477
548
  Rule:
478
549
  - do not edit statuses manually
@@ -7,6 +7,8 @@ Meta-Architect installs two things into the active Codex home:
7
7
 
8
8
  The support bundle exists so skills and helper paths can use relevant packaged files without guessing where they live.
9
9
 
10
+ The singular umbrella in-session skill is `maestro`. It is the bounded autonomous manager for the in-session workflow, and the installed skill set does not include a separate `meta-architect` skill folder.
11
+
10
12
  ## Canonical support bundle path
11
13
 
12
14
  Default:
@@ -30,12 +32,15 @@ ma sdk-path
30
32
  ## What is installed there
31
33
 
32
34
  - `mcp/`
35
+ - `mcp/native-playbooks.json`
36
+ - `mcp/local/playbooks.js`
33
37
  - `sprint/`
34
38
  - `prompts/`
35
39
  - `scripts/`
36
40
  - `plugins/meta-architect/`
37
41
  - `templates/`
38
42
  - `docs/README.md`
43
+ - `docs/reference/` when packaged native reference packs are present
39
44
  - `asset-manifest.json`
40
45
 
41
46
  ## Why this exists
@@ -51,10 +56,28 @@ When Meta-Architect needs packaged support files, prefer the installed support b
51
56
 
52
57
  Examples:
53
58
  - MCP starter files -> `meta-architect-sdk/mcp/`
59
+ - native playbooks manifest -> `meta-architect-sdk/mcp/native-playbooks.json`
60
+ - read-only playbooks capability module -> `meta-architect-sdk/mcp/local/playbooks.js`
54
61
  - sprint references -> `meta-architect-sdk/sprint/`
55
62
  - Codex prompt assets -> `meta-architect-sdk/prompts/`
56
63
  - helper scripts -> `meta-architect-sdk/scripts/`
57
64
  - plugin metadata -> `meta-architect-sdk/plugins/meta-architect/`
58
65
  - templates -> `meta-architect-sdk/templates/`
66
+ - bundled reference packs -> `meta-architect-sdk/docs/reference/`
59
67
 
60
68
  The in-session skill flow is still primary. This bundle only standardizes packaged asset access.
69
+
70
+ Surface split:
71
+ - in-session skills consume these packaged assets as product workflow inputs
72
+ - terminal helper commands may inspect or scaffold against the same bundle, but they remain secondary support tooling
73
+ - helper skills remain publishable and installable, but they do not own release-gate transitions
74
+
75
+ ## Playbooks contract
76
+
77
+ `playbooks` is a first-party read-only local capability. Its packaged inputs live in the support bundle:
78
+
79
+ - `mcp/native-playbooks.json` is the repo-owned curation manifest
80
+ - `mcp/local/playbooks.js` is the packaged read-only resource surface
81
+ - `docs/reference/` is where bundled native reference packs land when the release includes them
82
+
83
+ Readiness should treat those assets as package-owned bundle contents, not as repo-local user setup steps or upstream mirrors.
package/docs/mcp-setup.md CHANGED
@@ -3,7 +3,29 @@
3
3
  1. Use approved discovery accelerators when you need to find OSS candidates faster than browsing GitHub directly.
4
4
  2. Add repo-specific GitMCP endpoints in `mcp/servers.json` for any project you want to treat as approved evidence.
5
5
  3. Confirm categories in `mcp/collections.json`.
6
- 4. Use `https://gitmcp.io/docs` only when no approved exact endpoint exists.
6
+ 4. Do not add `https://gitmcp.io/docs` to `mcp/servers.json`; verified evidence requires exact repo-form GitMCP endpoints only.
7
+
8
+ ## First-party local capabilities
9
+
10
+ `mcp/local-capabilities.json` is separate from `mcp/servers.json`. It is the allowlist for Meta-Architect's packaged local capabilities:
11
+
12
+ - `_state`
13
+ - `memory`
14
+ - `trace`
15
+ - `team_run`
16
+ - `code_intel`
17
+ - `playbooks`
18
+
19
+ `playbooks` is a read-only packaged capability. It does not point at external MCP servers and it does not repurpose `mcp/collections.json`.
20
+
21
+ Its contract for this release is:
22
+
23
+ - manifest: `mcp/native-playbooks.json`
24
+ - module: `mcp/local/playbooks.js`
25
+ - transport: `inproc`
26
+ - behavior: packaged resource reads only, no mutating local tools
27
+
28
+ If bootstrap or doctor reports a `playbooks` readiness warning, repair the packaged support bundle inputs rather than adding more GitMCP sources.
7
29
 
8
30
  ## Discovery vs verification
9
31
 
@@ -46,3 +68,45 @@ To move from discovery to VERIFIED evidence:
46
68
  - identify the upstream GitHub repository or official package/docs source from the discovery surface
47
69
  - map that repo to an exact `https://gitmcp.io/{owner}/{repo}` endpoint in `mcp/servers.json`
48
70
  - validate the choice against the upstream repo and official docs through `$sage`
71
+
72
+ ## Remote MCP transport
73
+
74
+ `$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.
75
+
76
+ To enable bridge-backed live verification, configure a trusted local bridge command:
77
+
78
+ ```bash
79
+ export MA_MCP_REMOTE_BRIDGE_CMD="mcp-remote {url}"
80
+ ```
81
+
82
+ The `{url}` placeholder is replaced with the exact repo endpoint from `mcp/servers.json`. Use a preinstalled, trusted bridge binary or wrapper; do not depend on automatic package downloads in production verification.
83
+
84
+ When no bridge is configured:
85
+ - direct-SSE-compatible MCP servers can still verify normally
86
+ - GitMCP 405 responses are recorded as bridge-required blockers
87
+ - `evidence_status` remains `PARTIAL`, so `$flow` and `$build` stay locked
88
+
89
+ ## Separation of concerns
90
+
91
+ - `mcp/servers.json` remains for repo-specific GitMCP evidence sources
92
+ - `mcp/collections.json` remains GitMCP-oriented evidence categorization for this release
93
+ - `mcp/local-capabilities.json` is the first-party in-process capability registry
94
+ - `mcp/native-playbooks.json` is internal native curation metadata, not an upstream mirror or user-edited evidence source list
95
+
96
+ ## Current semantic source routing
97
+
98
+ `mcp/collections.json` maps configured repository evidence into MA lanes.
99
+ The current release intentionally includes both broad discovery lists and core-specific upstream sources.
100
+
101
+ | Collection | Why it exists | Typical lanes |
102
+ | --- | --- | --- |
103
+ | `meta-list` and language collections | broad OSS candidate discovery before exact upstream selection | `$arch`, `$sage` |
104
+ | `system-design` | architecture and flow reasoning references | `$arch`, `$sage`, `$flow`, `$build` |
105
+ | `security` | trust-boundary and security review evidence | `$vet` |
106
+ | `obsidian-api-docs` | Obsidian API evidence for vault, metadata, workspace, and plugin behavior | `$arch`, `$sage`, `$vibe` |
107
+ | `obsidian-plugin-scaffold` | compatibility reference for MA's in-app Obsidian plugin surface | `$arch`, `$sage` |
108
+ | `context-economy` | context-budget and terse-output source evidence | `$sage`, `$vet`, `$vibe`, `$build` |
109
+ | `prompt-techniques` | prompt strategy source evidence for MA-owned prompt policies | `$arch`, `$sage`, `$flow`, `$vet`, `$vibe`, `$build` |
110
+
111
+ Obsidian-derived notes remain `vault_context`.
112
+ They do not count as `build_evidence` unless `$sage`, `$vet`, or another owning lane promotes a specific claim with source-backed proof.
@@ -12,6 +12,15 @@ This is the shortest entrypoint for the real first-run Meta-Architect path.
12
12
 
13
13
  ## Canonical install and start
14
14
 
15
+ Recommended CLI install for macOS, Linux, WSL, and Git-Bash:
16
+
17
+ ```bash
18
+ # One-line install (POSIX shells only; use WSL/Git-Bash on Windows)
19
+ curl -fsSL https://cdn.jsdelivr.net/gh/JustineDevs/meta-architect@main/scripts/install.sh | sh
20
+ ```
21
+
22
+ The installer uses jsDelivr to fetch this repo's POSIX install script and runs the canonical npm install path.
23
+
15
24
  ```bash
16
25
  # Install
17
26
  npm i -g @openai/codex@latest @jstn-sdk/ma@latest
@@ -28,7 +37,13 @@ npm uninstall -g @jstn-sdk/ma @openai/codex
28
37
 
29
38
  ## First runtime action
30
39
 
31
- Start with the structured `$arch` prompt from [example/usage-workflow.md](../example/usage-workflow.md):
40
+ Start with `$maestro` when you want MA to choose and drive the next safe lane:
41
+
42
+ ```text
43
+ $maestro
44
+ ```
45
+
46
+ Use the structured `$arch` prompt from [example/usage-workflow.md](../example/usage-workflow.md) when you already know the project brief and want to begin directly with architecture:
32
47
 
33
48
  ```text
34
49
  $arch I want to build: [PROJECT IDEA]
@@ -48,7 +63,8 @@ Only use this when you need local repo scaffolding or scripted validation:
48
63
  ```bash
49
64
  ma setup
50
65
  ma
51
- ma idea "..."
66
+ ma idea "Prepare Meta-Architect v0.1.13 for a production package release with real install docs, Obsidian brain-context support, learning-loop reliability, and package proof artifacts."
67
+ ma run '$maestro'
52
68
  ma run '$arch'
53
69
  ma run '$sage'
54
70
  ma run '$flow'
@@ -0,0 +1,17 @@
1
+ # Prompt Guidance Contract
2
+
3
+ Meta-Architect prompt surfaces must preserve the Active Autonomy Core contract.
4
+
5
+ ## Required Patterns
6
+
7
+ 1. `AUTO-CONTINUE` and `ASK` must be named explicitly.
8
+ 2. The `ASK` list is closed: destructive, irreversible, credential-gated, external-production, materially scope-changing, or missing authority.
9
+ 3. Permission-handoff phrasing is banned on AUTO-CONTINUE branches.
10
+ 4. Skills and role prompts must describe completion as a loop with explicit stop conditions.
11
+ 5. Workflow terminal replies must name an outcome: `finished`, `blocked`, `failed`, `cancelled`, or `askuserQuestion`.
12
+ 6. Completion claims require fresh verification evidence or an explicit validation gap.
13
+ 7. Runtime hook policy must include stall-pattern coverage for passive permission handoffs.
14
+
15
+ ## Contributor Rule
16
+
17
+ Do not weaken the anti-passive contract when editing prompts, skills, hooks, or exported host payloads. If a prompt surface cannot execute safely, it must name the exact closed-list ASK reason instead of asking a vague permission question.
@@ -0,0 +1,7 @@
1
+ <!-- ACTIVE AUTONOMY CORE - DO NOT REMOVE -->
2
+ - AUTO-CONTINUE: clear, already-requested, local/workspace-scoped, low-risk, reversible, non-destructive work with an available verification path. Continue executing, inspecting, editing, testing, and verifying without permission handoff.
3
+ - ASK only for destructive, irreversible, credential-gated, external-production, materially scope-changing actions, or when missing authority blocks progress.
4
+ - On AUTO-CONTINUE branches, do not say "Should I proceed?", "Would you like me to continue?", "If you want, I can ...", or equivalent permission-handoff phrasing. State the next action or evidence-backed result.
5
+ - Do not instruct humans to perform ordinary safe reversible workspace actions; execute them through MA/runtime tools and report evidence.
6
+ - Completion requires a terminal outcome (`finished`, `blocked`, `failed`, `cancelled`, or `askuserQuestion`) plus fresh verification evidence or an explicit validation gap.
7
+ <!-- END ACTIVE AUTONOMY CORE -->