@jstn-sdk/ma 0.1.4 → 0.1.5

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 (112) hide show
  1. package/.codex/config.toml +2 -0
  2. package/.codex/hooks.json +1 -1
  3. package/.codex/prompts/enforcement.md +3 -3
  4. package/.codex/prompts/onboarding.md +14 -29
  5. package/README.md +129 -472
  6. package/bin/ma.js +103 -54
  7. package/docs/README.md +1 -2
  8. package/docs/getting-started.md +37 -402
  9. package/docs/mcp-setup.md +134 -3
  10. package/docs/onboarding.md +11 -41
  11. package/docs/qa/release-readiness-0.1.5.md +77 -0
  12. package/docs/release-spec.md +103 -81
  13. package/docs/skills-publishing.md +54 -187
  14. package/docs/skills.md +141 -78
  15. package/mcp/collections.json +1 -1
  16. package/mcp/fallback.json +1 -1
  17. package/mcp/servers.json +1 -1
  18. package/package.json +14 -17
  19. package/plugins/meta-architect/.app.json +1 -1
  20. package/plugins/meta-architect/.mcp.json +1 -1
  21. package/plugins/meta-architect/README.md +10 -23
  22. package/plugins/meta-architect/skills/meta-architect/SKILL.md +23 -17
  23. package/plugins/meta-architect/skills/meta-architect-arch/SKILL.md +24 -0
  24. package/plugins/meta-architect/skills/meta-architect-build/SKILL.md +25 -0
  25. package/plugins/meta-architect/skills/meta-architect-flow/SKILL.md +23 -0
  26. package/plugins/meta-architect/skills/meta-architect-sage/SKILL.md +23 -0
  27. package/plugins/meta-architect/skills/meta-architect-vet/SKILL.md +23 -0
  28. package/plugins/meta-architect/skills/meta-architect-vibe/SKILL.md +24 -0
  29. package/prompts/architect.md +216 -0
  30. package/prompts/builder.md +10 -0
  31. package/prompts/flow.md +9 -0
  32. package/prompts/release-manager.md +10 -0
  33. package/prompts/sage.md +10 -0
  34. package/prompts/security-reviewer.md +10 -0
  35. package/prompts/verifier.md +10 -0
  36. package/prompts/vibe.md +10 -0
  37. package/scripts/doctor.js +0 -8
  38. package/scripts/skills-install.js +36 -4
  39. package/scripts/skills-manifest.js +1 -1
  40. package/scripts/skills-validate.js +40 -78
  41. package/skills/index.json +22 -22
  42. package/skills/meta-architect/SKILL.md +23 -17
  43. package/skills/meta-architect/agents/openai.yaml +3 -3
  44. package/skills/meta-architect/references/core-release-rules.md +2 -2
  45. package/skills/meta-architect-arch/SKILL.md +24 -0
  46. package/skills/meta-architect-arch/agents/openai.yaml +4 -0
  47. package/skills/meta-architect-build/SKILL.md +25 -0
  48. package/skills/meta-architect-build/agents/openai.yaml +4 -0
  49. package/skills/meta-architect-flow/SKILL.md +23 -0
  50. package/skills/meta-architect-flow/agents/openai.yaml +4 -0
  51. package/skills/meta-architect-sage/SKILL.md +23 -0
  52. package/skills/meta-architect-sage/agents/openai.yaml +4 -0
  53. package/skills/meta-architect-vet/SKILL.md +23 -0
  54. package/skills/meta-architect-vet/agents/openai.yaml +4 -0
  55. package/skills/meta-architect-vibe/SKILL.md +24 -0
  56. package/skills/meta-architect-vibe/agents/openai.yaml +4 -0
  57. package/sprint/00-idea.md +1 -1
  58. package/sprint/01-architecture.md +1 -1
  59. package/sprint/02-oss-evidence.md +1 -1
  60. package/sprint/03-logic.md +1 -1
  61. package/sprint/04-security.md +2 -2
  62. package/sprint/05-dx-ux.md +1 -1
  63. package/src/decision-log.js +4 -4
  64. package/src/doctor.js +30 -0
  65. package/src/launcher.js +17 -21
  66. package/src/mcp-live-client.js +1 -1
  67. package/src/paths.js +32 -8
  68. package/src/release-state.js +3 -3
  69. package/src/setup.js +375 -0
  70. package/src/skills.js +166 -309
  71. package/templates/AGENTS.md +6 -6
  72. package/templates/model-instructions/core.md +1 -1
  73. package/.agents/plugins/marketplace.json +0 -20
  74. package/docs/assets/meta-architect-logo.png +0 -0
  75. package/docs/assets/meta-architect-logo.svg +0 -8
  76. package/docs/installed-sdk.md +0 -60
  77. package/docs/qa/release-readiness-0.1.4.md +0 -79
  78. package/plugins/meta-architect/.codex-plugin/plugin.json +0 -23
  79. package/plugins/meta-architect/skills/arch/SKILL.md +0 -27
  80. package/plugins/meta-architect/skills/arch/agents/openai.yaml +0 -4
  81. package/plugins/meta-architect/skills/build/SKILL.md +0 -24
  82. package/plugins/meta-architect/skills/build/agents/openai.yaml +0 -4
  83. package/plugins/meta-architect/skills/flow/SKILL.md +0 -24
  84. package/plugins/meta-architect/skills/flow/agents/openai.yaml +0 -4
  85. package/plugins/meta-architect/skills/meta-architect/agents/openai.yaml +0 -4
  86. package/plugins/meta-architect/skills/meta-architect/references/core-release-rules.md +0 -13
  87. package/plugins/meta-architect/skills/sage/SKILL.md +0 -24
  88. package/plugins/meta-architect/skills/sage/agents/openai.yaml +0 -4
  89. package/plugins/meta-architect/skills/vet/SKILL.md +0 -25
  90. package/plugins/meta-architect/skills/vet/agents/openai.yaml +0 -4
  91. package/plugins/meta-architect/skills/vibe/SKILL.md +0 -24
  92. package/plugins/meta-architect/skills/vibe/agents/openai.yaml +0 -4
  93. package/scripts/plugin-sync.js +0 -92
  94. package/scripts/postinstall.js +0 -23
  95. package/scripts/release-metadata.js +0 -94
  96. package/scripts/release-sync.js +0 -359
  97. package/scripts/release-verify.js +0 -153
  98. package/scripts/setup-npmrc.js +0 -39
  99. package/skills/arch/SKILL.md +0 -27
  100. package/skills/arch/agents/openai.yaml +0 -4
  101. package/skills/build/SKILL.md +0 -24
  102. package/skills/build/agents/openai.yaml +0 -4
  103. package/skills/flow/SKILL.md +0 -24
  104. package/skills/flow/agents/openai.yaml +0 -4
  105. package/skills/sage/SKILL.md +0 -24
  106. package/skills/sage/agents/openai.yaml +0 -4
  107. package/skills/vet/SKILL.md +0 -25
  108. package/skills/vet/agents/openai.yaml +0 -4
  109. package/skills/vibe/SKILL.md +0 -24
  110. package/skills/vibe/agents/openai.yaml +0 -4
  111. package/src/runtime-artifacts.js +0 -363
  112. package/src/skill-installer.js +0 -198
package/README.md CHANGED
@@ -1,285 +1,90 @@
1
- <div align="center">
2
- <img src="./docs/assets/meta-architect-logo.svg" alt="Meta-Architect logo" width="1024" height="240">
3
- <p>Production-grade Codex skills and plugin package for architecture, evidence-backed OSS selection, gate-driven review, and release-minded build guidance.</p>
4
- <p>
5
- <img src="https://img.shields.io/npm/v/%40jstn-sdk%2Fma" alt="npm version">
6
- <img src="https://img.shields.io/badge/node-%3E%3D20-339933" alt="Node.js 20+">
7
- <img src="https://img.shields.io/github/v/release/JustineDevs/meta-architect" alt="GitHub release">
8
- <img src="https://img.shields.io/badge/license-MIT-16A34A" alt="MIT License">
9
- </p>
10
- </div>
11
-
12
- > [!IMPORTANT]
13
- > Meta-Architect `v0.1.4` is a production-grade skills line.
14
- > It is not a lightweight demo branch.
15
- > From `v0.1.4` onward, the package is expected to ship with stable skill contracts, deterministic packaging, explicit release gates, and honest install and publish surfaces.
16
-
17
- ## Overview
18
-
19
- Meta-Architect is a workflow layer for teams that want architecture, evidence, review, and release discipline before build execution.
20
-
21
- It adds:
22
-
23
- - an architecture-first lane before implementation
24
- - evidence-backed OSS selection through GitMCP-connected sources
25
- - explicit logic, security, and DX/UX review gates
26
- - installable skills and a reproducible package surface
27
-
28
- > [!NOTE]
29
- > Meta-Architect does not replace your coding runtime.
30
- > It wraps that runtime with architecture, evidence, gate enforcement, and release-sensitive workflow control.
31
-
32
- <table>
33
- <tr>
34
- <td><strong>npm package</strong></td>
35
- <td><code>@jstn-sdk/ma</code></td>
36
- </tr>
37
- <tr>
38
- <td><strong>Helper command</strong></td>
39
- <td><code>ma</code> (secondary support surface)</td>
40
- </tr>
41
- <tr>
42
- <td><strong>Runtime</strong></td>
43
- <td>Node.js <code>&gt;=20</code>, npm <code>@10</code></td>
44
- </tr>
45
- <tr>
46
- <td><strong>Release line</strong></td>
47
- <td><code>v0.1.4</code></td>
48
- </tr>
49
- <tr>
50
- <td><strong>License</strong></td>
51
- <td><a href="./LICENSE">MIT</a></td>
52
- </tr>
53
- </table>
54
-
55
- ## Prerequisites
56
-
57
- - Node.js `>=20`
58
- - npm `>=10`
59
- - Git
60
- - an MCP-capable coding runtime
61
- - Codex for the recommended package-first path
62
- - macOS, Linux, or WSL2 recommended
63
-
64
- > [!TIP]
65
- > The most reliable default environment is a Unix-like shell with Git, Node.js, and an MCP-capable runtime already configured.
66
-
67
- ## Recommended Default Flow
68
-
69
- Meta-Architect is intended to be consumed as an installed package, not primarily as a git clone.
70
-
71
- Primary product path:
1
+ # Meta-Architect
72
2
 
73
- ```bash
74
- # Install
75
- npm i -g @openai/codex@latest @jstn-sdk/ma@latest
76
-
77
- # Start Codex context if needed
78
- ma --madmax --high
79
-
80
- # Remove Meta-Architect only
81
- npm uninstall -g @jstn-sdk/ma
82
-
83
- # Remove Meta-Architect and Codex
84
- npm uninstall -g @jstn-sdk/ma @openai/codex
85
- ```
86
-
87
- What this assumes:
88
-
89
- - Codex is installed globally
90
- - Meta-Architect is installed globally as the skills/plugin package
91
- - Meta-Architect installs its published skill surface into the active Codex home
92
- - the product experience happens through the skill workflow inside Codex
93
-
94
- > [!IMPORTANT]
95
- > The recommended default flow is package-first.
96
- > The git clone path is for contributors and maintainers, not the main user-facing install story.
97
-
98
- ## Repository Branch Strategy
99
-
100
- Meta-Architect’s repository workflow follows a stricter release posture focused on gated promotion:
101
-
102
- - `main` = release-facing protected branch
103
- - `development` = normal integration branch
104
- - `feature/*` = short-lived contribution branches
105
- - contributors branch from `development`
106
- - normal PRs target `development`
107
- - only curated promotions move `development` into `main`
108
-
109
- > [!CAUTION]
110
- > `main` is intended to be protected and exceptional.
111
- > Maintainers should stop bypass-pushing to `main` except for genuine emergency or admin recovery cases.
112
-
113
- ## Setup
114
-
115
- ### Package setup
116
-
117
- Install the consumer package directly:
118
-
119
- ```bash
120
- # Install
121
- npm i -g @openai/codex@latest @jstn-sdk/ma@latest
3
+ Meta-Architect is a Codex-native runtime layer. Codex is the host runtime. Meta-Architect extends Codex with skill-based architecture, evidence, logic, security, DX, and build workflows.
122
4
 
123
- # Launch
124
- ma --madmax --high
125
-
126
- # Remove Meta-Architect only
127
- npm uninstall -g @jstn-sdk/ma
5
+ **Docs:** [Getting Started](./docs/getting-started.md) · [Skills](./docs/skills.md) · [MCP Setup](./docs/mcp-setup.md) · [Skills Publishing](./docs/skills-publishing.md) · [Release Spec](./docs/release-spec.md) · [Plugin](./plugins/meta-architect/README.md) · [Demo](./DEMO.md)
128
6
 
129
- # Remove Meta-Architect and Codex
130
- npm uninstall -g @jstn-sdk/ma @openai/codex
131
- ```
7
+ ## v0.1.5 standard
132
8
 
133
- This gives you:
9
+ Meta-Architect `v0.1.5` is the canonical production release line for this repository.
134
10
 
135
- - the installed Meta-Architect skill surface
136
- - the canonical Meta-Architect skill entrypoints inside a Codex session
137
- - the optional `ma` helper command when a guided start is useful
11
+ From `v0.1.5` onward, this repository expects:
12
+ - a Codex-hosted runtime-first product story
13
+ - deterministic skill packaging and release metadata
14
+ - strict gate enforcement and append-only decisions
15
+ - npm provenance-backed publishing from GitHub Actions trusted publishing
16
+ - release notes, QA evidence, manifests, and workflows that agree on one version and tag
138
17
 
139
- ### Contributor setup: source checkout
18
+ ## Install and launch
140
19
 
141
- Use this path only if you want to work on Meta-Architect itself.
20
+ Canonical install:
142
21
 
143
22
  ```bash
144
- git clone https://github.com/JustineDevs/meta-architect.git
145
- cd meta-architect
146
- npm install
147
- npm link
23
+ npm i -g @openai/codex @jstn-sdk/ma
148
24
  ```
149
25
 
150
- `npm link` makes `ma` and `meta-architect` available from the local checkout.
151
-
152
- ## Quick Start
153
-
154
- ### 1. Start Codex context if needed
26
+ Canonical launch:
155
27
 
156
28
  ```bash
157
29
  ma --madmax --high
158
30
  ```
159
31
 
160
- ### 2. Start with the real usage-workflow prompt
32
+ Canonical operating surface inside Codex:
33
+ - `$arch`
34
+ - `$sage`
35
+ - `$flow`
36
+ - `$vet`
37
+ - `$vibe`
38
+ - `$build`
161
39
 
162
- Use the same operator shape defined in [example/usage-workflow.md](./example/usage-workflow.md).
163
-
164
- Quick-start prompt:
165
-
166
- ```text
167
- $arch I want to build: [PROJECT IDEA]
168
-
169
- Context:
170
- - Product type: [web app / mobile app / API / marketplace / agent system / internal tool]
171
- - Users: [who will use it]
172
- - Core problem: [what problem it solves]
173
- - Main features:
174
- 1. [feature one]
175
- 2. [feature two]
176
- 3. [feature three]
177
- - Constraints:
178
- - Budget: [low / medium / high]
179
- - Team size: [solo / small / medium]
180
- - Timeline: [e.g. 2 weeks MVP, 3 months beta]
181
- - Preferred stack: [optional]
182
- - Avoid: [optional]
183
- - Quality priorities:
184
- - [e.g. speed, low cost, security, DX, maintainability, scalability]
185
- - Deployment target:
186
- - [Vercel / Docker / VPS / AWS / GCP / local-first / hybrid]
187
-
188
- Required output:
189
- 1. Problem framing
190
- 2. Recommended architecture
191
- 3. Stack decision with justification
192
- 4. System components and responsibilities
193
- 5. Data model and storage choices
194
- 6. Auth/security considerations
195
- 7. DX/UX considerations
196
- 8. Delivery plan for v0.1.4
197
- 9. Risks and trade-offs
198
- 10. Decision log
199
- 11. Exact next trigger to run after this
200
- ```
40
+ Legacy `meta-architect` and `@jstn-sdk/meta-architect-skills` installs are compatibility-only references and should be replaced with `@jstn-sdk/ma`.
201
41
 
202
- ### 3. Run the full trigger sequence inside Codex
42
+ ## Runtime model
203
43
 
204
- After `$arch`, continue exactly like the usage workflow:
44
+ - Codex is the host runtime.
45
+ - Meta-Architect is the runtime extension.
46
+ - Daily use happens through skill tags inside Codex.
47
+ - `ma` is the runtime entry posture plus a small maintenance/helper surface.
48
+ - `ma setup`, `ma doctor`, `ma status`, and `ma run ...` are subordinate maintenance or scripted-helper commands, not the primary product story.
205
49
 
206
- ```text
207
- $sage
208
- $flow
209
- $vet
210
- $vibe
211
- $build
212
- ```
50
+ ## Gate model
213
51
 
214
- See [example/usage-workflow.md](./example/usage-workflow.md) for the full prompt templates for each step.
52
+ Meta-Architect enforces a strict local release-state contract:
53
+ - `idea_status`
54
+ - `architecture_status`
55
+ - `evidence_status`
56
+ - `logic_status`
57
+ - `security_status`
58
+ - `experience_status`
59
+ - `build_status`
60
+ - `merge_status`
61
+ - `release_status`
215
62
 
216
- ### 4. Secondary helper path
63
+ `$build` stays locked unless:
64
+ - `idea_status = CLEAR`
65
+ - `architecture_status = APPROVED`
66
+ - `evidence_status = VERIFIED`
67
+ - `logic_status = GREEN`
68
+ - `security_status = GREEN`
69
+ - `experience_status ∈ { GREEN, WAIVED }`
70
+ - `build_status ∈ { LOCKED, READY }`
217
71
 
218
- If you are working from a repository directly and need scaffolded local support files, use:
72
+ The normative contract is in [docs/release-spec.md](./docs/release-spec.md).
219
73
 
220
- ```bash
221
- ma setup
222
- ma
223
- ```
74
+ ## Quickstart
224
75
 
225
- Expected output for `ma setup`:
76
+ Inside the Codex session launched with `ma --madmax --high`, use the runtime tags directly:
226
77
 
227
78
  ```text
228
- meta-architect setup
229
- ====================
230
- ready: .codex/agents
231
- ready: .codex/prompts
232
- ready: .ma/skills
233
- ready: .ma/evidence
234
- ready: .ma/context
235
- ready: .ma/specs
236
- ready: .ma/plans
237
- ready: mcp
238
- ready: docs
239
- ready: docs/qa
240
- ready: sprint
79
+ $arch "Define architecture and stack boundaries"
80
+ $sage "Bind major choices to approved OSS evidence"
81
+ $flow "Review logic, states, and blockers"
82
+ $vet "Review security posture and dependency risk"
83
+ $vibe "Review developer and user experience"
84
+ $build "Evaluate gates and prepare bounded implementation work"
241
85
  ```
242
86
 
243
- ### 5. Configure GitMCP sources
244
-
245
- Add real repository-backed endpoints in `mcp/servers.json`.
246
-
247
- Example:
248
-
249
- ```json
250
- {
251
- "category": "meta-list",
252
- "repo": "sindresorhus/awesome",
253
- "endpoint": "https://gitmcp.io/sindresorhus/awesome"
254
- }
255
- ```
256
-
257
- Recommended starter endpoints:
258
-
259
- - `https://gitmcp.io/sindresorhus/awesome`
260
- - `https://gitmcp.io/dzharii/awesome-typescript`
261
- - `https://gitmcp.io/sbilly/awesome-security`
262
-
263
- > [!IMPORTANT]
264
- > Verified release evidence must come from repository-form GitMCP endpoints such as `https://gitmcp.io/{owner}/{repo}`.
265
- > A generic documentation endpoint such as `https://gitmcp.io/docs` does not count as VERIFIED evidence for build unlocking.
266
-
267
- ### 6. Secondary helper flow outside Codex
268
-
269
- If you need scripted repo-local validation rather than the interactive runtime workflow:
270
-
271
- ```bash
272
- ma idea "Build a real-time collaborative whiteboard for product teams"
273
- ma run '$arch'
274
- ma run '$sage'
275
- ma run '$flow'
276
- ma run '$vet'
277
- ma run '$vibe'
278
- ma status
279
- ma run '$build'
280
- ```
281
-
282
- Expected status before the helper-path `$build`:
87
+ Expected `ma status` after the upstream review gates are green:
283
88
 
284
89
  ```text
285
90
  Meta-Architect Status
@@ -295,7 +100,7 @@ Next allowed triggers:
295
100
  $build
296
101
  ```
297
102
 
298
- Expected helper-path build output:
103
+ Expected scripted helper output for `ma run '$build'`:
299
104
 
300
105
  ```text
301
106
  Build gate is green.
@@ -307,231 +112,83 @@ git worktree add ../ui feature/ui
307
112
  git worktree add ../api feature/api
308
113
  ```
309
114
 
310
- ### 7. Simple command guide
311
-
312
- Meta-Architect has two surfaces.
115
+ ## Maintenance and scripted helpers
313
116
 
314
- - terminal helper commands
315
- - in-session skills
316
-
317
- Terminal commands are normal shell commands you run in the terminal:
117
+ Use the CLI helpers only when you need repo-local scaffolding, diagnostics, or non-interactive verification:
318
118
 
319
119
  ```bash
320
- ma setup
321
- ma init
322
- ma idea "Build a product"
323
120
  ma status
121
+ ma idea "Build a collaborative whiteboard"
324
122
  ma run '$arch'
123
+ ma run '$sage'
124
+ ma run '$flow'
125
+ ma run '$vet'
126
+ ma run '$vibe'
127
+ ma run '$build'
128
+ ma doctor
129
+ ma setup
325
130
  ```
326
131
 
327
- In-session skills are prompts you use inside the Codex conversation after launch:
328
-
329
- ```text
330
- $arch
331
- $sage
332
- $flow
333
- $vet
334
- $vibe
335
- $build
336
- ```
337
-
338
- Plain-language difference:
339
- - `ma ...` = helper commands in the terminal
340
- - `$...` = the product experience inside Codex
341
-
342
- What `ma setup` and `ma init` do:
343
- - both currently do the same thing
344
- - they create the local support files and folders
345
- - they prepare `.ma/` runtime files such as context, specs, plans, evidence, and runbook files
346
- - they do not run the skill workflow by themselves
347
-
348
- What to use when:
349
- - use Codex and run the skills in-session
350
- - use `$arch -> $sage -> $flow -> $vet -> $vibe -> $build` inside the Codex session
351
- - use `ma setup` or `ma init` only when you want local scaffolding or scripted helper automation from the terminal
352
- - use `ma sdk-path` when you need the exact installed support-bundle path for packaged prompts, MCP files, sprint files, scripts, plugin metadata, or templates
353
-
354
- ## Core Maintainers
355
-
356
- <table>
357
- <tr>
358
- <td><strong>Role</strong></td>
359
- <td><strong>Name</strong></td>
360
- <td><strong>GitHub</strong></td>
361
- </tr>
362
- <tr>
363
- <td>Creator / Maintainer</td>
364
- <td>JustineDevs</td>
365
- <td><a href="https://github.com/JustineDevs">@JustineDevs</a></td>
366
- </tr>
367
- </table>
368
-
369
- ## Core Triggers
370
-
371
- | Trigger | Purpose | Main output | Gate effect |
372
- | --- | --- | --- | --- |
373
- | `$arch` | Produce the first-pass architecture blueprint | decision entry | `architecture_status = APPROVED` |
374
- | `$sage` | Ground major choices in configured GitMCP evidence | evidence records | `evidence_status = VERIFIED | PARTIAL | MISSING` |
375
- | `$flow` | Review baseline logic and state transitions | logic review entry | `logic_status = GREEN | RED` |
376
- | `$vet` | Run baseline security and dependency review | audit and CVE records | `security_status = GREEN | RED` |
377
- | `$vibe` | Review developer and user experience implications | DX/UX outcome record | `experience_status = GREEN | RED | WAIVED` |
378
- | `$build` | Unlock bounded build planning | build-ready decision + `.ma/plans/build.md` | `build_status = READY` |
379
-
380
- ## Gate Model
381
-
382
- Meta-Architect is intentionally fail-closed.
383
-
384
- | Status | Meaning |
385
- | --- | --- |
386
- | `CLEAR` | enough input exists to proceed |
387
- | `APPROVED` | the architecture lane produced an acceptable first-pass blueprint |
388
- | `VERIFIED` | live evidence was grounded through approved GitMCP sources |
389
- | `PARTIAL` | evidence is configured but live proof is incomplete or unavailable |
390
- | `GREEN` | the current baseline review passed |
391
- | `RED` | the lane is blocked or failed |
392
- | `WAIVED` | the lane was intentionally waived with a recorded reason |
393
- | `LOCKED` | downstream work is not allowed yet |
394
- | `READY` | the next gated step is allowed |
395
-
396
- > [!CAUTION]
397
- > `$build` must stay locked until the upstream release state in `.ma/release.json` satisfies the gate contract.
398
- > Meta-Architect is designed to stop on blockers rather than silently continue.
399
- > Rich runtime artifacts live in `.ma/context/`, `.ma/specs/`, `.ma/plans/`, and `.ma/runbook.md`.
400
-
401
- ## Release and Packaging
402
-
403
- Meta-Architect has two related but different distribution surfaces.
404
-
405
- | Surface | Purpose | Produced by |
406
- | --- | --- | --- |
407
- | npm package | public package containing the installable Meta-Architect skills/plugin system, docs, scripts, and canonical skills | `npm publish` or `npm pack` |
408
- | skills bundle | narrower tarball containing `skills/` only | `npm run skills:pack` |
409
-
410
- Required packaging commands:
411
-
412
- ```bash
413
- npm run skills:manifest
414
- npm run skills:validate
415
- npm run skills:pack
416
- npm run skills:install -- --path ./dist/installed-skills
417
- npm run pack:inspect
418
- ```
419
-
420
- Pre-publish rules:
421
-
422
- - `skills/index.json` must be current
423
- - `npm run skills:validate` must pass
424
- - `dist/meta-architect-skills.tgz` must exist
425
- - `npm pack --dry-run` must show only intended public files
426
- - docs must match the real skills/plugin and release behavior
427
-
428
- Release lane discipline:
429
- - stable versions publish to npm `latest`
430
- - prerelease versions such as `0.2.0-beta.1` must publish with an explicit dist-tag such as `beta`
431
- - alternate lanes such as `next`, `beta`, and `canary` must never overwrite `latest`
432
-
433
- Maintainer version-bump flow:
434
- 1. Bump the package with `npm version <version> --no-git-tag-version`
435
- 2. Update `CHANGELOG.md`, `RELEASE.md`, and `docs/qa/release-readiness-<version>.md`
436
- 3. Run `npm run release:verify`
437
- 4. Run `npm run release:check`
438
- 5. Create and push tag `v<version>`
439
- 6. Preferred publish path: publish from `.github/workflows/npm-publish.yml` on a supported cloud runner so provenance can be generated
440
- 7. Local shell fallback when not publishing from GitHub Actions or GitLab CI/CD:
441
- - Stable publish: `npm publish --access public`
442
- - Prerelease publish: `npm publish --access public --tag <lane>`
443
- 8. Verify publish state with `npm view @jstn-sdk/ma version dist-tags time --json`
444
-
445
- Provenance note:
446
- - `npm publish --provenance` requires a supported cloud CI/CD provider
447
- - a local shell publish will fail with `Automatic provenance generation not supported for provider: null`
448
- - use the repository publish workflow when provenance is required
449
-
450
- Release automation:
451
- - `npm run release:sync` bumps and synchronizes the active release line only when watched release-relevant files changed
452
- - `npm run release:advance` force-bumps the next patch line and rewrites the same version-bearing files
453
- - `.github/workflows/release-sync.yml` runs the sync path on `main` pushes that touch watched release-relevant paths
454
- - `.github/workflows/release-advance.yml` runs after a published GitHub release and advances the repo to the next patch line automatically
455
-
456
- > [!CAUTION]
457
- > Do not claim npm, GitHub release, or any other publish channel until that channel has actually succeeded.
458
- > Release documentation must match reality, not intent.
459
-
460
- ## Package Surface
461
-
462
- <table>
463
- <tr>
464
- <td><strong>Included</strong></td>
465
- <td><code>bin/</code>, <code>skills/</code>, <code>docs/</code>, <code>scripts/</code>, <code>index.js</code>, <code>README.md</code>, <code>LICENSE</code></td>
466
- </tr>
467
- <tr>
468
- <td><strong>Excluded</strong></td>
469
- <td><code>.ma/</code> runtime state, context, specs, plans, logs, caches, and temp install outputs</td>
470
- </tr>
471
- </table>
472
-
473
- ## Repository Structure
474
-
475
- <table>
476
- <tr>
477
- <td><strong>Path</strong></td>
478
- <td><strong>Responsibility</strong></td>
479
- </tr>
480
- <tr>
481
- <td><code>.codex/</code></td>
482
- <td>runtime prompts, hooks, and repo guidance</td>
483
- </tr>
484
- <tr>
485
- <td><code>skills/</code></td>
486
- <td>canonical public skill contracts</td>
487
- </tr>
488
- <tr>
489
- <td><code>plugins/meta-architect/</code></td>
490
- <td>plugin-oriented distribution surface</td>
491
- </tr>
492
- <tr>
493
- <td><code>docs/</code></td>
494
- <td>installation, publishing, and release documentation</td>
495
- </tr>
496
- <tr>
497
- <td><code>missions/</code></td>
498
- <td>reproducible scenario-driven workflows</td>
499
- </tr>
500
- <tr>
501
- <td><code>mcp/</code></td>
502
- <td>GitMCP endpoint and collection configuration</td>
503
- </tr>
504
- <tr>
505
- <td><code>scripts/</code></td>
506
- <td>validation, packing, and install helpers</td>
507
- </tr>
508
- <tr>
509
- <td><code>sprint/</code></td>
510
- <td>human-readable phased workflow documents</td>
511
- </tr>
512
- </table>
513
-
514
- ## Documentation
515
-
516
- | Surface | Purpose |
517
- | --- | --- |
518
- | [Getting Started](./docs/getting-started.md) | end-to-end local onboarding |
519
- | [Skills Reference](./docs/skills.md) | trigger-by-trigger contract guide |
520
- | [Installed Support Bundle](./docs/installed-sdk.md) | standard packaged asset path for skills and helper flows |
521
- | [Skills Publishing](./docs/skills-publishing.md) | source-to-package pipeline |
522
- | [MCP Setup](./docs/mcp-setup.md) | evidence endpoint policy |
523
- | [Plugin README](./plugins/meta-architect/README.md) | plugin distribution surface |
524
- | [Collaborative Whiteboard Mission](./missions/collaborative-whiteboard/mission.md) | concrete scenario walkthrough |
525
- | [Release Spec](./docs/release-spec.md) | release and gate policy |
526
- | [Release Readiness](./docs/qa/release-readiness-0.1.4.md) | QA evidence for the `v0.1.4` line |
527
-
528
- ## Release Hygiene
529
-
530
- > [!WARNING]
531
- > Runtime `.ma` logs, state, tmp, and cache files must not be shipped.
532
- > Public docs must match actual package behavior.
533
- > Publish statements must match reality.
534
- > Skill contracts must stay aligned across canonical and plugin-facing copies.
132
+ These commands support the runtime; they are not the main experience.
133
+
134
+ ## Merge and release posture
135
+
136
+ Supported branch semantics:
137
+ - `feature/*` for bounded task work
138
+ - `development` for integration
139
+ - optional approved `release/*` for stabilization
140
+ - `prod` for production release
141
+
142
+ Release policy:
143
+ - feature branches never promote directly to `prod`
144
+ - release evaluation is valid only from `development` or approved `release/*`
145
+ - release claims are only true after tag, GitHub release, and npm publish evidence all succeed
146
+
147
+ ## Packaging and provenance
148
+
149
+ Meta-Architect publishes two aligned surfaces:
150
+ - the npm runtime package `@jstn-sdk/ma`
151
+ - the skills/plugin distribution surfaces under [skills/](./skills/) and [plugins/meta-architect/](./plugins/meta-architect/)
152
+
153
+ Required release bar:
154
+ - `npm run release:check` passes
155
+ - workflows are configured for GitHub Actions trusted publishing
156
+ - npm publish uses provenance
157
+ - post-publish verification checks npm metadata plus `npm audit signatures`
158
+
159
+ ## Repository surfaces
160
+
161
+ High-value surfaces:
162
+ - [CONTRIBUTING.md](./CONTRIBUTING.md)
163
+ - [templates/AGENTS.md](./templates/AGENTS.md)
164
+ - [prompts/](./prompts/)
165
+ - [skills/](./skills/)
166
+ - [plugins/meta-architect/](./plugins/meta-architect/)
167
+ - [.github/workflows/](./.github/workflows/)
168
+ - [docs/qa/release-readiness-0.1.5.md](./docs/qa/release-readiness-0.1.5.md)
169
+
170
+ ## Runtime hygiene
171
+
172
+ Local-only runtime residue must not be treated as public source:
173
+ - `.omx/logs/`
174
+ - `.omx/state/`
175
+ - `.omx/tmp/`
176
+ - `.omx/cache/`
177
+ - `.omx/metrics.json`
178
+
179
+ Committed contract files such as `.omx/release.json`, `.omx/decisions.json`, `.omx/evidence/`, and `.omx/skills/` remain part of the product contract.
180
+
181
+ ## Documentation map
182
+
183
+ - [Getting Started](./docs/getting-started.md)
184
+ - [Skills Reference](./docs/skills.md)
185
+ - [MCP Setup](./docs/mcp-setup.md)
186
+ - [Skills Publishing](./docs/skills-publishing.md)
187
+ - [Release Spec](./docs/release-spec.md)
188
+ - [Plugin Bundle](./plugins/meta-architect/README.md)
189
+ - [QA / Release Readiness](./docs/qa/release-readiness-0.1.5.md)
190
+ - [Release Body](./RELEASE.md)
191
+ - [Changelog](./CHANGELOG.md)
535
192
 
536
193
  ## License
537
194