@jstn-sdk/ma 0.1.12 → 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 (177) hide show
  1. package/.agents/plugins/marketplace.json +0 -0
  2. package/.codex/agents/Architect.toml +0 -2
  3. package/.codex/agents/Auditor.toml +0 -2
  4. package/.codex/agents/Builder.toml +0 -2
  5. package/.codex/agents/Flow.toml +0 -2
  6. package/.codex/agents/Sage.toml +0 -2
  7. package/.codex/agents/Vibe.toml +0 -2
  8. package/.codex/hooks.json +14 -13
  9. package/.codex/prompts/enforcement.md +4 -0
  10. package/.codex/prompts/skill-contract.md +4 -0
  11. package/COVERAGE.md +211 -0
  12. package/DEMO.md +265 -0
  13. package/README.md +159 -16
  14. package/bin/ma.js +219 -14
  15. package/data/clone-data.ledger.json +41 -0
  16. package/data/clone-data.proof.json +50 -0
  17. package/data/clone-data.rvf +37 -0
  18. package/docs/README.md +4 -1
  19. package/docs/assets/image/Screenshot(1).png +0 -0
  20. package/docs/assets/image/Screenshot(2).png +0 -0
  21. package/docs/assets/image/Screenshot(3).png +0 -0
  22. package/docs/assets/image/Screenshot(4).png +0 -0
  23. package/docs/assets/image/Screenshot(5).png +0 -0
  24. package/docs/assets/image/Screenshot(6).png +0 -0
  25. package/docs/assets/image/Screenshot(7).png +0 -0
  26. package/docs/assets/image/Screenshot(8).png +0 -0
  27. package/docs/assets/image/Screenshot(9).png +0 -0
  28. package/docs/assets/meta-architect-logo.png +0 -0
  29. package/docs/assets/meta-architect-logo.svg +0 -0
  30. package/docs/getting-started.md +38 -22
  31. package/docs/installed-sdk.md +0 -0
  32. package/docs/mcp-setup.md +35 -0
  33. package/docs/onboarding.md +18 -2
  34. package/docs/prompt-guidance-contract.md +17 -0
  35. package/docs/prompt-guidance-fragments/active-autonomy-core.md +7 -0
  36. package/docs/qa/release-issue-gates-0.1.13.json +644 -0
  37. package/docs/qa/{release-readiness-0.1.12.md → release-readiness-0.1.13.md} +25 -9
  38. package/docs/qa/release-readiness-0.1.5.md +1 -1
  39. package/docs/reference/native-engineering-patterns.md +0 -0
  40. package/docs/reference/native-security-playbooks.md +6 -0
  41. package/docs/reference/native-source-selection.md +6 -0
  42. package/docs/reference/native-style-and-deslop.md +0 -0
  43. package/docs/release-spec.md +25 -9
  44. package/docs/skills.md +14 -1
  45. package/index.js +222 -2
  46. package/mcp/collections.json +23 -6
  47. package/mcp/local/code-intel.js +0 -0
  48. package/mcp/local/memory.js +0 -0
  49. package/mcp/local/playbooks.js +0 -0
  50. package/mcp/local/state.js +0 -0
  51. package/mcp/local/team-run.js +48 -1
  52. package/mcp/local/trace.js +0 -0
  53. package/mcp/local-capabilities.json +0 -0
  54. package/mcp/native-playbooks.json +0 -0
  55. package/mcp/servers.json +24 -0
  56. package/package.json +5 -2
  57. package/plugins/meta-architect/.app.json +1 -1
  58. package/plugins/meta-architect/.codex-plugin/plugin.json +1 -1
  59. package/plugins/meta-architect/.mcp.json +1 -1
  60. package/plugins/meta-architect/README.md +8 -1
  61. package/plugins/meta-architect/obsidian/main.js +401 -0
  62. package/plugins/meta-architect/obsidian/manifest.json +9 -0
  63. package/plugins/meta-architect/obsidian/styles.css +7 -0
  64. package/plugins/meta-architect/skills/align/SKILL.md +0 -0
  65. package/plugins/meta-architect/skills/align/agents/openai.yaml +0 -0
  66. package/plugins/meta-architect/skills/align/references/shared-language.md +0 -0
  67. package/plugins/meta-architect/skills/arch/SKILL.md +2 -0
  68. package/plugins/meta-architect/skills/arch/agents/openai.yaml +0 -0
  69. package/plugins/meta-architect/skills/build/SKILL.md +3 -0
  70. package/plugins/meta-architect/skills/build/agents/openai.yaml +0 -0
  71. package/plugins/meta-architect/skills/cleanup/SKILL.md +0 -0
  72. package/plugins/meta-architect/skills/cleanup/agents/openai.yaml +0 -0
  73. package/plugins/meta-architect/skills/cleanup/references/style-and-deslop.md +0 -0
  74. package/plugins/meta-architect/skills/diagnose/SKILL.md +0 -0
  75. package/plugins/meta-architect/skills/diagnose/agents/openai.yaml +0 -0
  76. package/plugins/meta-architect/skills/flow/SKILL.md +2 -0
  77. package/plugins/meta-architect/skills/flow/agents/openai.yaml +0 -0
  78. package/plugins/meta-architect/skills/maestro/SKILL.md +0 -0
  79. package/plugins/meta-architect/skills/maestro/agents/openai.yaml +0 -0
  80. package/plugins/meta-architect/skills/maestro/references/core-release-rules.md +0 -0
  81. package/plugins/meta-architect/skills/maestro/references/native-ingest-map.md +0 -0
  82. package/plugins/meta-architect/skills/sage/SKILL.md +2 -0
  83. package/plugins/meta-architect/skills/sage/agents/openai.yaml +0 -0
  84. package/plugins/meta-architect/skills/sage/references/source-selection.md +8 -0
  85. package/plugins/meta-architect/skills/tdd/SKILL.md +0 -0
  86. package/plugins/meta-architect/skills/tdd/agents/openai.yaml +0 -0
  87. package/plugins/meta-architect/skills/vet/SKILL.md +2 -0
  88. package/plugins/meta-architect/skills/vet/agents/openai.yaml +0 -0
  89. package/plugins/meta-architect/skills/vet/references/security-playbooks.md +7 -0
  90. package/plugins/meta-architect/skills/vibe/SKILL.md +2 -0
  91. package/plugins/meta-architect/skills/vibe/agents/openai.yaml +0 -0
  92. package/scripts/active-autonomy-hook.mjs +96 -0
  93. package/scripts/biome-staged.js +0 -0
  94. package/scripts/build-linux-packages.mjs +0 -0
  95. package/scripts/doctor.js +17 -4
  96. package/scripts/install.sh +28 -0
  97. package/scripts/linux-package-lib.mjs +0 -0
  98. package/scripts/linux-package-smoke.mjs +0 -0
  99. package/scripts/plugin-sync.js +0 -0
  100. package/scripts/postinstall.js +0 -0
  101. package/scripts/ralph/prompt.md +35 -0
  102. package/scripts/release-metadata.js +0 -0
  103. package/scripts/release-sync.js +0 -0
  104. package/scripts/release-verify.js +166 -1
  105. package/scripts/setup-npmrc.js +0 -0
  106. package/skills/align/SKILL.md +0 -0
  107. package/skills/align/agents/openai.yaml +0 -0
  108. package/skills/align/references/shared-language.md +0 -0
  109. package/skills/arch/SKILL.md +2 -0
  110. package/skills/arch/agents/openai.yaml +0 -0
  111. package/skills/build/SKILL.md +3 -0
  112. package/skills/build/agents/openai.yaml +0 -0
  113. package/skills/cleanup/SKILL.md +0 -0
  114. package/skills/cleanup/agents/openai.yaml +0 -0
  115. package/skills/cleanup/references/style-and-deslop.md +0 -0
  116. package/skills/diagnose/SKILL.md +0 -0
  117. package/skills/diagnose/agents/openai.yaml +0 -0
  118. package/skills/flow/SKILL.md +2 -0
  119. package/skills/flow/agents/openai.yaml +0 -0
  120. package/skills/maestro/SKILL.md +0 -0
  121. package/skills/maestro/agents/openai.yaml +0 -0
  122. package/skills/maestro/references/core-release-rules.md +0 -0
  123. package/skills/maestro/references/native-ingest-map.md +0 -0
  124. package/skills/sage/SKILL.md +2 -0
  125. package/skills/sage/agents/openai.yaml +0 -0
  126. package/skills/sage/references/source-selection.md +8 -0
  127. package/skills/tdd/SKILL.md +0 -0
  128. package/skills/tdd/agents/openai.yaml +0 -0
  129. package/skills/vet/SKILL.md +2 -0
  130. package/skills/vet/agents/openai.yaml +0 -0
  131. package/skills/vet/references/security-playbooks.md +7 -0
  132. package/skills/vibe/SKILL.md +2 -0
  133. package/skills/vibe/agents/openai.yaml +0 -0
  134. package/src/bootstrap.js +17 -0
  135. package/src/build-gate.js +2 -2
  136. package/src/launcher.js +4 -0
  137. package/src/mcp-live-client.js +289 -3
  138. package/src/paths.js +4 -0
  139. package/src/policy.js +1 -1
  140. package/src/release-issue-gates.js +190 -0
  141. package/src/runtime/active-autonomy-core.js +208 -0
  142. package/src/runtime/alignment-sentinel.js +165 -0
  143. package/src/runtime/architect-review.js +88 -0
  144. package/src/runtime/build-readiness.js +28 -4
  145. package/src/runtime/code-graph-rehearse.js +113 -0
  146. package/src/runtime/context-economy-core.js +276 -0
  147. package/src/runtime/continuity-notes.js +0 -0
  148. package/src/runtime/core-source-ingest.js +379 -0
  149. package/src/runtime/detached-provider.js +74 -0
  150. package/src/runtime/environment-awareness-core.js +460 -0
  151. package/src/runtime/exposure-catalog.js +276 -0
  152. package/src/runtime/guidance-stack.js +0 -0
  153. package/src/runtime/helper-orchestration-core.js +307 -0
  154. package/src/runtime/learning-loop-core.js +238 -0
  155. package/src/runtime/maestro-events.js +18 -0
  156. package/src/runtime/maestro-manager.js +19 -0
  157. package/src/runtime/maestro-state.js +125 -0
  158. package/src/runtime/mcp-policy.js +192 -0
  159. package/src/runtime/obsidian-integration-core.js +851 -0
  160. package/src/runtime/obsidian-plugin-bridge.js +739 -0
  161. package/src/runtime/orchestrator.js +0 -0
  162. package/src/runtime/prompt-strategy-core.js +230 -0
  163. package/src/runtime/quorum-review.js +90 -0
  164. package/src/runtime/ralph-execution-core.js +217 -0
  165. package/src/runtime/redaction-gateway.js +174 -0
  166. package/src/runtime/runtime-state.js +843 -2
  167. package/src/runtime/semantic-recording-core.js +147 -0
  168. package/src/runtime/signal-hooks.js +15 -0
  169. package/src/runtime/skills-registry-export.js +670 -0
  170. package/src/runtime/startup-path.js +0 -0
  171. package/src/runtime/universal-plugin-broker-core.js +575 -0
  172. package/src/runtime/workspace-intelligence-runtime.js +674 -0
  173. package/src/runtime/workspace-virtualizer.js +102 -0
  174. package/src/runtime/workspaces.js +0 -0
  175. package/src/runtime-artifacts.js +225 -62
  176. package/src/skill-installer.js +0 -0
  177. package/src/skills.js +876 -84
@@ -1,26 +1,26 @@
1
- # Release Readiness 0.1.12
1
+ # Release Readiness 0.1.13
2
2
 
3
3
  ## Production bar
4
4
 
5
- `v0.1.12` is treated as production only when:
5
+ `v0.1.13` is treated as production only when:
6
6
  - the package installs cleanly from the canonical public install command
7
7
  - the Codex-hosted runtime path works end to end
8
8
  - the helper flow remains valid for scripted verification
9
9
  - the singular `$maestro` umbrella and helper-skill contract stay coherent
10
- - release docs, package metadata, and workflows all agree on `0.1.12`
10
+ - release docs, package metadata, and workflows all agree on `0.1.13`
11
11
 
12
12
  Target release state:
13
- - npm package: `@jstn-sdk/ma@0.1.12`
13
+ - npm package: `@jstn-sdk/ma@0.1.13`
14
14
  - npm registry state: pending publish
15
- - publishability note: this branch is prepared for the next publishable package line, `0.1.12`
16
- - git tag: `v0.1.12`
17
- - GitHub release: pending publish for `v0.1.12`
15
+ - publishability note: `0.1.12` is already published, so `0.1.13` is the next publishable package line
16
+ - git tag: `v0.1.13`
17
+ - GitHub release: pending publish for `v0.1.13`
18
18
 
19
19
  ## Production checklist
20
20
 
21
21
  - skills-first product identity: PASS
22
22
  - package/plugin identity aligned to `@jstn-sdk/ma`: PASS
23
- - version/tag alignment `0.1.12` / `v0.1.12`: PASS
23
+ - version/tag alignment `0.1.13` / `v0.1.13`: PASS
24
24
  - install/uninstall docs aligned: PASS
25
25
  - onboarding is concise and sequential: PASS
26
26
  - helper command documented as secondary: PASS
@@ -36,6 +36,7 @@ Target release state:
36
36
  - workflow/release/provenance docs aligned: PASS
37
37
  - no stale package names remain in tracked repo surfaces: PASS
38
38
  - no conflicting CLI-first product story remains in tracked product docs: PASS
39
+ - issue proof gates for `v0.1.13`: PASS; `release-issue-gates-0.1.13.json` marks issues `#13-#29` passed with implementation, verification, and production evidence, so release verification can enforce the gate artifact instead of blocking on pending issue states
39
40
 
40
41
  ## Automated checks run
41
42
 
@@ -65,6 +66,21 @@ That should prove:
65
66
  - the GitHub release asset set is complete
66
67
  - the packaged support bundle contains the playbooks and reference assets expected by the runtime
67
68
 
69
+ ## Issue proof gates
70
+
71
+ Issue gate artifact:
72
+
73
+ ```text
74
+ docs/qa/release-issue-gates-0.1.13.json
75
+ ```
76
+
77
+ Every open issue assigned to `v0.1.13` must remain in this file until it is production-passed. A passed issue requires:
78
+ - implementation evidence
79
+ - verification evidence
80
+ - production evidence
81
+
82
+ If any issue is `pending`, `in_progress`, `blocked`, or `failed`, `npm run release:verify` must fail and the issue must continue through its recorded loop action.
83
+
68
84
  ## Manual/behavioral checks run
69
85
 
70
86
  Canonical launch:
@@ -77,7 +93,7 @@ Helper-path validation:
77
93
 
78
94
  ```bash
79
95
  ma setup
80
- ma idea "Build a demo app"
96
+ ma idea "Harden Meta-Architect v0.1.13 semantic core with Obsidian vault context, Ralph execution proof, context economy, and package-gated release evidence"
81
97
  ma run '$arch'
82
98
  ma run '$sage'
83
99
  ma run '$flow'
@@ -58,7 +58,7 @@ Helper-path validation:
58
58
 
59
59
  ```bash
60
60
  ma setup
61
- ma idea "Build a demo app"
61
+ ma idea "Harden Meta-Architect semantic core with evidence-backed gate readiness and package-visible proof"
62
62
  ma run '$arch'
63
63
  ma run '$sage'
64
64
  ma run '$flow'
File without changes
@@ -19,3 +19,9 @@ Security-oriented external patterns are absorbed into Meta-Architect as `$vet` g
19
19
  ## Product rule
20
20
 
21
21
  Meta-Architect can absorb security arsenal patterns aggressively while still presenting them only as native guidance and packaged references.
22
+
23
+ ## Adversarial hardening
24
+
25
+ - For higher-risk changes, run a bounded adversarial hardening pass before final approval.
26
+ - Keep the hardening work inside the private scratchpad/runtime layer.
27
+ - Return structured findings, not direct gate mutations.
@@ -19,3 +19,9 @@ Meta-Architect uses external discovery surfaces as inputs to native source-selec
19
19
 
20
20
  - `$sage` owns source selection and evidence quality
21
21
  - helper skills can support preparation, but they do not replace `$sage`
22
+
23
+ ## Evidence grades
24
+
25
+ - `VERIFIED`: exact upstream mapping plus primary-source confirmation
26
+ - `PARTIAL`: candidate is mapped, but live proof or maturity proof is incomplete
27
+ - `MISSING`: no trustworthy exact upstream mapping yet
File without changes
@@ -1,16 +1,17 @@
1
- # v0.1.12 Requirements & Rules
1
+ # v0.1.13 Requirements & Rules
2
2
 
3
3
  ## Production definition
4
4
 
5
- Meta-Architect `v0.1.12` is production only when:
5
+ Meta-Architect `v0.1.13` is production only when:
6
6
  1. the package/install surface works
7
7
  2. the in-session skill workflow from `$arch` through `$build` works
8
8
  3. the release evidence matches the actual package and git tag
9
9
 
10
- ## What `v0.1.12` must have
10
+ ## What `v0.1.13` must have
11
11
 
12
12
  ### 1. Canonical package/runtime path
13
13
 
14
+ - recommended POSIX one-line install: `curl -fsSL https://cdn.jsdelivr.net/gh/JustineDevs/meta-architect@main/scripts/install.sh | sh`
14
15
  - install: `npm i -g @openai/codex@latest @jstn-sdk/ma@latest`
15
16
  - optional helper launch: `ma --madmax --high`
16
17
  - uninstall Meta-Architect only: `npm uninstall -g @jstn-sdk/ma`
@@ -49,15 +50,16 @@ Canonical state files:
49
50
 
50
51
  ### 4. Required release evidence
51
52
 
52
- - `package.json` version `0.1.12`
53
- - git tag `v0.1.12`
53
+ - `package.json` version `0.1.13`
54
+ - git tag `v0.1.13`
54
55
  - `RELEASE.md`
55
56
  - `CHANGELOG.md`
56
- - `docs/qa/release-readiness-0.1.12.md`
57
+ - `docs/qa/release-readiness-0.1.13.md`
58
+ - `docs/qa/release-issue-gates-0.1.13.json`
57
59
  - green `npm run release:check`
58
- - GitHub release asset `meta-architect_0.1.12_all.deb`
59
- - GitHub release asset `meta-architect-0.1.12-1-any.pkg.tar.xz`
60
- - GitHub release asset `meta-architect-0.1.12-1.noarch.rpm`
60
+ - GitHub release asset `meta-architect_0.1.13_all.deb`
61
+ - GitHub release asset `meta-architect-0.1.13-1-any.pkg.tar.xz`
62
+ - GitHub release asset `meta-architect-0.1.13-1.noarch.rpm`
61
63
  - green `npm run linux:packages:build`
62
64
  - green `npm run linux:packages:smoke`
63
65
  - green `npm run release:assets`
@@ -97,6 +99,20 @@ Canonical state files:
97
99
  - `.github/workflows/release-sync.yml` automates the sync path on `main`
98
100
  - `.github/workflows/release-advance.yml` advances the repo to the next patch line after a published release
99
101
 
102
+ ### 6.2 Issue proof gates
103
+
104
+ Every open next-release issue must be represented in `docs/qa/release-issue-gates-0.1.13.json`.
105
+
106
+ Production pass rule:
107
+ - issue status must be `passed`
108
+ - issue milestone must match `v0.1.13`
109
+ - implementation evidence must be present
110
+ - verification evidence must be present
111
+ - production evidence must be present
112
+ - pending, blocked, failed, or in-progress issues must continue through their loop action instead of being treated as release-ready
113
+
114
+ `npm run release:verify` enforces this file. If any issue is not production-passed, the release remains blocked.
115
+
100
116
  ### 7. Provenance rule
101
117
 
102
118
  - `npm publish --provenance` is valid only from a supported cloud CI/CD provider
package/docs/skills.md CHANGED
@@ -12,6 +12,13 @@ The package does not ship a separate `$meta-architect` in-session skill. `$maest
12
12
 
13
13
  Install the package once, start Codex context if needed, and use the skills directly in-session.
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
+
15
22
  ```bash
16
23
  # Install
17
24
  npm i -g @openai/codex@latest @jstn-sdk/ma@latest
@@ -46,7 +53,10 @@ ma setup
46
53
  ma init
47
54
  ma idea "Build a product"
48
55
  ma status
56
+ ma status --maestro-view
57
+ ma verify --architect
49
58
  ma run '$arch'
59
+ ma run '$maestro' --auto-heal --parallel
50
60
  ```
51
61
 
52
62
  In-session skills are used inside the Codex conversation:
@@ -78,6 +88,8 @@ Manager contract:
78
88
  - `$maestro` is the only umbrella in-session surface
79
89
  - `$maestro` manages the next allowed step, but gated outputs still belong to `$arch -> $sage -> $flow -> $vet -> $vibe -> $build`
80
90
  - helper skills are publishable mirrors that can assist a lane, but they do not move release gates
91
+ - `ma run '$maestro' --auto-heal --parallel` enables the bounded runtime repair path and records conductor state in the private scratchpad layer when eligible
92
+ - `ma verify --architect` runs an external architect reviewer command when `MA_ARCHITECT_REVIEW_CMD` is configured
81
93
 
82
94
  ## Installed support bundle
83
95
 
@@ -105,6 +117,7 @@ Relevant packaged assets there include:
105
117
  - `plugins/meta-architect/`
106
118
  - `templates/`
107
119
  - native skill references such as `skills/maestro/references/`, `skills/sage/references/`, `skills/vet/references/`, `skills/align/references/`, and `skills/cleanup/references/`
120
+ - runtime scratchpad state such as `.ma/state/manager-runs.json` and `.ma/state/maestro-state.json` when local execution is active
108
121
 
109
122
  This exists so Meta-Architect can use relevant packaged files without guessing paths.
110
123
 
@@ -128,7 +141,7 @@ Every skill result must include:
128
141
  - `$vibe` -> `experience_status`
129
142
  - `$build` -> `build_status`
130
143
 
131
- Helper skills do not own release-state fields. They are publishable but non-gating, so they support the current lane and then hand work back to `$maestro` or the gated lane that owns the decision.
144
+ `$maestro` may dispatch a gated lane, but it does not own that lane's artifact or release-state field. Helper skills do not own release-state fields. They are publishable but non-gating, so they support the current lane and then hand work back to `$maestro` or the gated lane that owns the decision.
132
145
 
133
146
  ## Operator note
134
147
 
package/index.js CHANGED
@@ -6,9 +6,16 @@ export {
6
6
  export {
7
7
  appendDecision,
8
8
  loadDecisionLog,
9
- updateDecisionStatuses,
10
9
  } from "./src/decision-log.js";
11
- export { isValidGitMcpEndpoint, loadMcpServers, validateMcpServers } from "./src/mcp-config.js";
10
+ export {
11
+ getSupportedLocalCapabilities,
12
+ isValidGitMcpEndpoint,
13
+ loadLocalCapabilities,
14
+ loadMcpServers,
15
+ runLocalCapabilityReadinessChecks,
16
+ validateLocalCapabilities,
17
+ validateMcpServers,
18
+ } from "./src/mcp-config.js";
12
19
  export {
13
20
  canMarkBuildDone,
14
21
  rejectsDirectProdPromotion,
@@ -16,6 +23,218 @@ export {
16
23
  validateReleaseOrigin,
17
24
  } from "./src/policy.js";
18
25
  export { loadReleaseState, saveReleaseState, validateReleaseState } from "./src/release-state.js";
26
+ export {
27
+ classifyAutonomyBranch,
28
+ createDefaultActiveAutonomyCore,
29
+ detectPassivePermissionHandoff,
30
+ loadActiveAutonomyCore,
31
+ validateActiveAutonomyCore,
32
+ } from "./src/runtime/active-autonomy-core.js";
33
+ export {
34
+ createAlignmentRecoveryPlan,
35
+ createDefaultAlignmentSentinelReport,
36
+ evaluateAlignmentDrift,
37
+ loadAlignmentSentinelReportOrDefault,
38
+ saveAlignmentSentinelReport,
39
+ } from "./src/runtime/alignment-sentinel.js";
40
+ export {
41
+ createCodeGraphTouchpoint,
42
+ createCodeGraphTouchpointFromFile,
43
+ createDefaultCodeGraphRehearse,
44
+ createRehearsalTrace,
45
+ extractStaticImports,
46
+ loadCodeGraphRehearse,
47
+ validateCodeGraphRehearse,
48
+ } from "./src/runtime/code-graph-rehearse.js";
49
+ export {
50
+ createContextEconomyPayload,
51
+ createContextEconomyView,
52
+ createDefaultContextEconomyCore,
53
+ createMcpDescriptorEconomy,
54
+ loadContextEconomyCore,
55
+ shouldBypassContextEconomy,
56
+ validateContextEconomyCore,
57
+ } from "./src/runtime/context-economy-core.js";
58
+ export {
59
+ coreSourceDefinitions,
60
+ createDefaultCoreSourceIngest,
61
+ findIngestedCoreSourceForRepo,
62
+ ingestCoreSources,
63
+ loadCoreSourceIngest,
64
+ validateCoreSourceIngest,
65
+ } from "./src/runtime/core-source-ingest.js";
66
+ export {
67
+ createDefaultEnvironmentAwarenessCore,
68
+ createDiscoveredEnvironmentAwarenessCore,
69
+ createEnvironmentCapability,
70
+ discoverEnvironmentCapabilities,
71
+ loadEnvironmentAwarenessCore,
72
+ refreshEnvironmentAwarenessCore,
73
+ selectEnvironmentCapabilitiesForTask,
74
+ validateEnvironmentAwarenessCore,
75
+ } from "./src/runtime/environment-awareness-core.js";
76
+ export {
77
+ scanExposureProfile,
78
+ scanLockfilePackageExposure,
79
+ scanPackageExposureFromLockfile,
80
+ scanPackageExposureFromManifest,
81
+ validateMcpPolicyExposure,
82
+ } from "./src/runtime/exposure-catalog.js";
83
+ export {
84
+ chooseHelperRoute,
85
+ createDefaultHelperOrchestrationCore,
86
+ createHelperReceipt,
87
+ evaluateHelperCoreCoverage,
88
+ helperSkillNames,
89
+ loadHelperOrchestrationCore,
90
+ resolveHelperContract,
91
+ validateHelperOrchestrationCore,
92
+ } from "./src/runtime/helper-orchestration-core.js";
93
+ export {
94
+ addLearningRecord,
95
+ createDefaultLearningLoopCore,
96
+ createLearningRecord,
97
+ evaluateLearningLoopReadiness,
98
+ learningLoopDomains,
99
+ loadLearningLoopCore,
100
+ validateLearningLoopCore,
101
+ } from "./src/runtime/learning-loop-core.js";
102
+ export {
103
+ validateRuntimeMcpPolicy,
104
+ validateRuntimeMcpPolicyFile,
105
+ } from "./src/runtime/mcp-policy.js";
106
+ export {
107
+ appendObsidianOperationReceipt,
108
+ createDefaultObsidianBridge,
109
+ createDefaultObsidianVaultOperations,
110
+ createObsidianIntakeContext,
111
+ createObsidianNote,
112
+ createObsidianPluginRequest,
113
+ createObsidianVaultContext,
114
+ createObsidianVaultSnapshotExport,
115
+ deleteObsidianNote,
116
+ ensureObsidianGraphLinks,
117
+ indexObsidianVault,
118
+ listObsidianNotes,
119
+ loadObsidianBridge,
120
+ loadObsidianVaultIndex,
121
+ loadObsidianVaultOperations,
122
+ obsidianGraphMapNotePath,
123
+ readObsidianNote,
124
+ updateObsidianNote,
125
+ validateObsidianBridge,
126
+ validateObsidianVaultIndex,
127
+ validateObsidianVaultOperations,
128
+ writeObsidianVaultIndex,
129
+ } from "./src/runtime/obsidian-integration-core.js";
130
+ export {
131
+ applyObsidianFrontmatterAuthority,
132
+ createDefaultObsidianPluginBridgeManifest,
133
+ createObsidianMetadataGraph,
134
+ createObsidianSelectionContext,
135
+ drainObsidianPluginRequestQueue,
136
+ extractObsidianCanvasContext,
137
+ generateObsidianMarkdownLink,
138
+ installObsidianPlugin,
139
+ obsidianPluginActiveContextPath,
140
+ obsidianPluginAttachmentDir,
141
+ obsidianPluginId,
142
+ obsidianPluginName,
143
+ obsidianPluginQueuePath,
144
+ registerMetaArchitectObsidianPluginRuntime,
145
+ registerObsidianEventWatchers,
146
+ registerObsidianProtocolHandlers,
147
+ renameObsidianFileSafely,
148
+ writeObsidianAttachment,
149
+ } from "./src/runtime/obsidian-plugin-bridge.js";
150
+ export {
151
+ createDefaultPromptStrategyCore,
152
+ loadPromptStrategyCore,
153
+ resolvePromptStrategyForRole,
154
+ resolvePromptStrategyForSurface,
155
+ validatePromptStrategyCore,
156
+ } from "./src/runtime/prompt-strategy-core.js";
157
+ export {
158
+ createQuorumReviewReceipt,
159
+ evaluateQuorumVotes,
160
+ quorumDecisions,
161
+ } from "./src/runtime/quorum-review.js";
162
+ export {
163
+ appendRalphProgressEntry,
164
+ completeRalphStory,
165
+ createRalphIterationPlan,
166
+ createRalphPrdContract,
167
+ selectNextRalphStory,
168
+ validateRalphPrdContract,
169
+ writeRalphExecutionContract,
170
+ } from "./src/runtime/ralph-execution-core.js";
171
+ export {
172
+ loadRedactionVaultOrDefault,
173
+ maskSensitiveText,
174
+ redactProviderBoundPayload,
175
+ redactProviderBoundText,
176
+ seedRedactionVault,
177
+ } from "./src/runtime/redaction-gateway.js";
178
+ export {
179
+ createDefaultSemanticRecordingCore,
180
+ loadSemanticRecordingCore,
181
+ validateSemanticRecordingCore,
182
+ } from "./src/runtime/semantic-recording-core.js";
183
+ export {
184
+ agentRegistry,
185
+ createDefaultSkillsRegistryExport,
186
+ createHostInstallReceipt,
187
+ createSkillCompatibilityPayload,
188
+ createSkillLockEntry,
189
+ inspectSkillCompatibilityInstall,
190
+ isUniversalAgent,
191
+ loadSkillsRegistryExport,
192
+ renderSkillCompatibilitySkillMd,
193
+ resolveSkillInstallPlan,
194
+ validateSkillLockEntry,
195
+ validateSkillsRegistryExport,
196
+ verifyCrossAgentInstallMatrix,
197
+ writeSkillCompatibilityExport,
198
+ } from "./src/runtime/skills-registry-export.js";
199
+ export {
200
+ createDefaultUniversalPluginBrokerCore,
201
+ createUniversalPluginManifest,
202
+ detectInstalledPluginHosts,
203
+ injectAntigravityMcpServer,
204
+ injectClaudeCodeMcpServer,
205
+ injectCodexMcpServer,
206
+ injectCursorMcpServer,
207
+ injectPluginToVendors,
208
+ installUniversalPlugin,
209
+ loadUniversalPluginBrokerCore,
210
+ loadUniversalPluginManifest,
211
+ renderPluginContextSkillMd,
212
+ renderUniversalMcpServerTemplate,
213
+ validateUniversalPluginBrokerCore,
214
+ validateUniversalPluginManifest,
215
+ writePluginContextSkill,
216
+ } from "./src/runtime/universal-plugin-broker-core.js";
217
+ export {
218
+ addSemanticReceipt,
219
+ createDefaultCapabilityComposition,
220
+ createDefaultSemanticReceiptIndex,
221
+ createDefaultWorkspaceContextPack,
222
+ createDefaultWorkspaceEffectiveness,
223
+ createSemanticReceipt,
224
+ evaluateWorkspaceEffectiveness,
225
+ loadWorkspaceIntelligenceArtifacts,
226
+ validateCapabilityComposition,
227
+ validateSemanticReceiptIndex,
228
+ validateWorkspaceContextPack,
229
+ validateWorkspaceEffectiveness,
230
+ } from "./src/runtime/workspace-intelligence-runtime.js";
231
+ export {
232
+ createDefaultWorkspaceVirtualizer,
233
+ createVirtualVerificationReceipt,
234
+ createVirtualWorkspacePlan,
235
+ loadWorkspaceVirtualizer,
236
+ validateWorkspaceVirtualizer,
237
+ } from "./src/runtime/workspace-virtualizer.js";
19
238
  export {
20
239
  listSkills,
21
240
  runArch,
@@ -26,3 +245,4 @@ export {
26
245
  runVet,
27
246
  runVibe,
28
247
  } from "./src/skills.js";
248
+ export { loadCombinedState, syncStatusUpdates } from "./src/state-sync.js";
@@ -10,12 +10,29 @@
10
10
  "java",
11
11
  "dotnet",
12
12
  "self-hosted",
13
- "system-design"
13
+ "system-design",
14
+ "obsidian-api-docs",
15
+ "obsidian-plugin-scaffold",
16
+ "prompt-techniques"
14
17
  ],
15
- "sage": ["meta-list", "typescript", "rust", "go", "python", "java", "dotnet", "self-hosted"],
16
- "vet": ["security"],
17
- "flow": [],
18
- "vibe": [],
19
- "build": []
18
+ "sage": [
19
+ "meta-list",
20
+ "typescript",
21
+ "rust",
22
+ "go",
23
+ "python",
24
+ "java",
25
+ "dotnet",
26
+ "self-hosted",
27
+ "system-design",
28
+ "obsidian-api-docs",
29
+ "obsidian-plugin-scaffold",
30
+ "context-economy",
31
+ "prompt-techniques"
32
+ ],
33
+ "vet": ["security", "context-economy", "prompt-techniques"],
34
+ "flow": ["system-design", "prompt-techniques"],
35
+ "vibe": ["obsidian-api-docs", "context-economy", "prompt-techniques"],
36
+ "build": ["system-design", "context-economy", "prompt-techniques"]
20
37
  }
21
38
  }
File without changes
File without changes
File without changes
File without changes
@@ -15,7 +15,14 @@ const teamRunResources = [
15
15
  "team-run://registry",
16
16
  "team-run://mailbox",
17
17
  ];
18
- const teamRunTools = ["team_run.submit_task", "team_run.get_status", "team_run.control_task"];
18
+ const teamRunTools = [
19
+ "team_run.submit_task",
20
+ "team_run.get_status",
21
+ "team_run.list_tasks",
22
+ "team_run.wait_task",
23
+ "team_run.control_task",
24
+ ];
25
+ const terminalTaskStatuses = new Set(["done", "blocked", "cancelled"]);
19
26
 
20
27
  export function listTeamRunResources() {
21
28
  return [...teamRunResources];
@@ -50,6 +57,12 @@ export async function callTeamRunTool(name, args = {}, options = {}) {
50
57
  if (name === "team_run.get_status") {
51
58
  return getTask(args.taskId);
52
59
  }
60
+ if (name === "team_run.list_tasks") {
61
+ return args.managerOwner === "$maestro" ? listMaestroTasks() : listTasks();
62
+ }
63
+ if (name === "team_run.wait_task") {
64
+ return waitForTask(args.taskId, args);
65
+ }
53
66
  if (name === "team_run.control_task") {
54
67
  return controlTask(args.taskId, args.action, localOptions);
55
68
  }
@@ -57,6 +70,40 @@ export async function callTeamRunTool(name, args = {}, options = {}) {
57
70
  throw new Error(`Unknown team_run tool: ${name}`);
58
71
  }
59
72
 
73
+ export async function waitForTask(taskId, { timeoutMs = 1_000, pollMs = 50 } = {}) {
74
+ if (typeof taskId !== "string" || taskId.trim() === "") {
75
+ throw new Error("team_run.wait_task requires a taskId");
76
+ }
77
+
78
+ const boundedTimeoutMs = Math.max(0, Math.min(Number(timeoutMs) || 0, 30_000));
79
+ const boundedPollMs = Math.max(10, Math.min(Number(pollMs) || 50, 1_000));
80
+ const startedAt = Date.now();
81
+
82
+ while (Date.now() - startedAt <= boundedTimeoutMs) {
83
+ const task = await getTask(taskId);
84
+ if (terminalTaskStatuses.has(task.status)) {
85
+ return {
86
+ record_type: "team_run_wait_result",
87
+ terminal: true,
88
+ timed_out: false,
89
+ task,
90
+ };
91
+ }
92
+
93
+ if (boundedTimeoutMs === 0) {
94
+ break;
95
+ }
96
+ await new Promise((resolve) => setTimeout(resolve, boundedPollMs));
97
+ }
98
+
99
+ return {
100
+ record_type: "team_run_wait_result",
101
+ terminal: false,
102
+ timed_out: true,
103
+ task: await getTask(taskId),
104
+ };
105
+ }
106
+
60
107
  export async function checkTeamRunCapability() {
61
108
  const registry = await readTeamRunResource("team-run://registry");
62
109
  return {
File without changes
File without changes
File without changes
package/mcp/servers.json CHANGED
@@ -60,6 +60,30 @@
60
60
  "category": "system-design",
61
61
  "repo": "checkcheckzz/system-design-interview",
62
62
  "endpoint": "https://gitmcp.io/checkcheckzz/system-design-interview"
63
+ },
64
+ {
65
+ "kind": "gitmcp-evidence",
66
+ "category": "obsidian-api-docs",
67
+ "repo": "obsidianmd/obsidian-api",
68
+ "endpoint": "https://gitmcp.io/obsidianmd/obsidian-api"
69
+ },
70
+ {
71
+ "kind": "gitmcp-evidence",
72
+ "category": "obsidian-plugin-scaffold",
73
+ "repo": "obsidianmd/obsidian-sample-plugin",
74
+ "endpoint": "https://gitmcp.io/obsidianmd/obsidian-sample-plugin"
75
+ },
76
+ {
77
+ "kind": "gitmcp-evidence",
78
+ "category": "context-economy",
79
+ "repo": "JuliusBrussee/caveman",
80
+ "endpoint": "https://gitmcp.io/JuliusBrussee/caveman"
81
+ },
82
+ {
83
+ "kind": "gitmcp-evidence",
84
+ "category": "prompt-techniques",
85
+ "repo": "NirDiamant/Prompt_Engineering",
86
+ "endpoint": "https://gitmcp.io/NirDiamant/Prompt_Engineering"
63
87
  }
64
88
  ]
65
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jstn-sdk/ma",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Codex-native skills system for architecture, evidence, review, and gated build guidance.",
5
5
  "license": "MIT",
6
6
  "author": "JustineDevs",
@@ -41,9 +41,12 @@
41
41
  "sprint/",
42
42
  "skills/",
43
43
  "docs/",
44
+ "data/",
44
45
  "scripts/",
45
46
  "index.js",
46
47
  "README.md",
48
+ "DEMO.md",
49
+ "COVERAGE.md",
47
50
  "LICENSE"
48
51
  ],
49
52
  "exports": {
@@ -56,7 +59,7 @@
56
59
  "scripts": {
57
60
  "prepare": "husky",
58
61
  "postinstall": "node ./scripts/postinstall.js",
59
- "test": "node --test",
62
+ "test": "node --test --test-concurrency=1",
60
63
  "status": "node ./bin/ma.js status",
61
64
  "linux:packages:build": "node ./scripts/build-linux-packages.mjs",
62
65
  "linux:packages:smoke": "node ./scripts/linux-package-smoke.mjs",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "meta-architect",
3
3
  "displayName": "Meta-Architect",
4
- "version": "0.1.12",
4
+ "version": "0.1.13",
5
5
  "description": "Programmatic architecture and verified engineering skills for Codex-native workflows.",
6
6
  "entry": "./README.md",
7
7
  "skillsDir": "./skills"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meta-architect",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Skills-first workflow layer for Codex with a bounded autonomous manager, architecture, evidence, review, and gated build guidance.",
5
5
  "author": {
6
6
  "name": "JustineDevs",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meta-architect",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "collections": [
5
5
  "sindresorhus/awesome",
6
6
  "dzharii/awesome-typescript",