@jstn-sdk/ma 0.1.5 → 0.1.7

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 (125) hide show
  1. package/.agents/plugins/marketplace.json +20 -0
  2. package/.codex/hooks.json +1 -1
  3. package/.codex/prompts/enforcement.md +13 -3
  4. package/.codex/prompts/onboarding.md +29 -14
  5. package/README.md +536 -129
  6. package/bin/ma.js +61 -103
  7. package/docs/README.md +2 -1
  8. package/docs/assets/image/Screenshot(1).png +0 -0
  9. package/docs/assets/image/Screenshot(2).png +0 -0
  10. package/docs/assets/image/Screenshot(3).png +0 -0
  11. package/docs/assets/image/Screenshot(4).png +0 -0
  12. package/docs/assets/image/Screenshot(5).png +0 -0
  13. package/docs/assets/image/Screenshot(6).png +0 -0
  14. package/docs/assets/image/Screenshot(7).png +0 -0
  15. package/docs/assets/image/Screenshot(8).png +0 -0
  16. package/docs/assets/image/Screenshot(9).png +0 -0
  17. package/docs/assets/meta-architect-logo.png +0 -0
  18. package/docs/assets/meta-architect-logo.svg +8 -0
  19. package/docs/getting-started.md +434 -37
  20. package/docs/installed-sdk.md +60 -0
  21. package/docs/mcp-setup.md +46 -134
  22. package/docs/onboarding.md +41 -11
  23. package/docs/qa/release-readiness-0.1.5.md +46 -44
  24. package/docs/qa/release-readiness-0.1.7.md +79 -0
  25. package/docs/release-spec.md +81 -103
  26. package/docs/skills-publishing.md +187 -54
  27. package/docs/skills.md +82 -141
  28. package/mcp/collections.json +1 -1
  29. package/mcp/fallback.json +1 -1
  30. package/mcp/servers.json +1 -1
  31. package/package.json +17 -14
  32. package/plugins/meta-architect/.app.json +1 -1
  33. package/plugins/meta-architect/.codex-plugin/plugin.json +23 -0
  34. package/plugins/meta-architect/.mcp.json +1 -1
  35. package/plugins/meta-architect/README.md +23 -10
  36. package/plugins/meta-architect/skills/arch/SKILL.md +27 -0
  37. package/plugins/meta-architect/skills/arch/agents/openai.yaml +4 -0
  38. package/plugins/meta-architect/skills/build/SKILL.md +24 -0
  39. package/plugins/meta-architect/skills/build/agents/openai.yaml +4 -0
  40. package/plugins/meta-architect/skills/flow/SKILL.md +24 -0
  41. package/plugins/meta-architect/skills/flow/agents/openai.yaml +4 -0
  42. package/plugins/meta-architect/skills/maestro/SKILL.md +25 -0
  43. package/plugins/meta-architect/skills/maestro/agents/openai.yaml +4 -0
  44. package/plugins/meta-architect/skills/meta-architect/SKILL.md +19 -23
  45. package/plugins/meta-architect/skills/meta-architect/agents/openai.yaml +4 -0
  46. package/plugins/meta-architect/skills/meta-architect/references/core-release-rules.md +13 -0
  47. package/plugins/meta-architect/skills/sage/SKILL.md +37 -0
  48. package/plugins/meta-architect/skills/sage/agents/openai.yaml +4 -0
  49. package/plugins/meta-architect/skills/vet/SKILL.md +25 -0
  50. package/plugins/meta-architect/skills/vet/agents/openai.yaml +4 -0
  51. package/plugins/meta-architect/skills/vibe/SKILL.md +24 -0
  52. package/plugins/meta-architect/skills/vibe/agents/openai.yaml +4 -0
  53. package/scripts/doctor.js +8 -0
  54. package/scripts/plugin-sync.js +93 -0
  55. package/scripts/postinstall.js +23 -0
  56. package/scripts/release-metadata.js +94 -0
  57. package/scripts/release-sync.js +359 -0
  58. package/scripts/release-verify.js +153 -0
  59. package/scripts/setup-npmrc.js +39 -0
  60. package/scripts/skills-install.js +4 -36
  61. package/scripts/skills-manifest.js +1 -1
  62. package/scripts/skills-validate.js +78 -40
  63. package/skills/arch/SKILL.md +27 -0
  64. package/skills/arch/agents/openai.yaml +4 -0
  65. package/skills/build/SKILL.md +24 -0
  66. package/skills/build/agents/openai.yaml +4 -0
  67. package/skills/flow/SKILL.md +24 -0
  68. package/skills/flow/agents/openai.yaml +4 -0
  69. package/skills/index.json +27 -22
  70. package/skills/maestro/SKILL.md +25 -0
  71. package/skills/maestro/agents/openai.yaml +4 -0
  72. package/skills/meta-architect/SKILL.md +19 -23
  73. package/skills/meta-architect/agents/openai.yaml +3 -3
  74. package/skills/meta-architect/references/core-release-rules.md +2 -2
  75. package/skills/sage/SKILL.md +37 -0
  76. package/skills/sage/agents/openai.yaml +4 -0
  77. package/skills/vet/SKILL.md +25 -0
  78. package/skills/vet/agents/openai.yaml +4 -0
  79. package/skills/vibe/SKILL.md +24 -0
  80. package/skills/vibe/agents/openai.yaml +4 -0
  81. package/sprint/00-idea.md +1 -1
  82. package/sprint/01-architecture.md +1 -1
  83. package/sprint/02-oss-evidence.md +1 -1
  84. package/sprint/03-logic.md +1 -1
  85. package/sprint/04-security.md +2 -2
  86. package/sprint/05-dx-ux.md +1 -1
  87. package/src/decision-log.js +4 -4
  88. package/src/launcher.js +21 -17
  89. package/src/mcp-live-client.js +1 -1
  90. package/src/paths.js +8 -32
  91. package/src/release-state.js +3 -3
  92. package/src/runtime-artifacts.js +411 -0
  93. package/src/skill-installer.js +198 -0
  94. package/src/skills.js +473 -166
  95. package/templates/AGENTS.md +23 -6
  96. package/templates/model-instructions/core.md +1 -1
  97. package/.codex/config.toml +0 -2
  98. package/plugins/meta-architect/skills/meta-architect-arch/SKILL.md +0 -24
  99. package/plugins/meta-architect/skills/meta-architect-build/SKILL.md +0 -25
  100. package/plugins/meta-architect/skills/meta-architect-flow/SKILL.md +0 -23
  101. package/plugins/meta-architect/skills/meta-architect-sage/SKILL.md +0 -23
  102. package/plugins/meta-architect/skills/meta-architect-vet/SKILL.md +0 -23
  103. package/plugins/meta-architect/skills/meta-architect-vibe/SKILL.md +0 -24
  104. package/prompts/architect.md +0 -216
  105. package/prompts/builder.md +0 -10
  106. package/prompts/flow.md +0 -9
  107. package/prompts/release-manager.md +0 -10
  108. package/prompts/sage.md +0 -10
  109. package/prompts/security-reviewer.md +0 -10
  110. package/prompts/verifier.md +0 -10
  111. package/prompts/vibe.md +0 -10
  112. package/skills/meta-architect-arch/SKILL.md +0 -24
  113. package/skills/meta-architect-arch/agents/openai.yaml +0 -4
  114. package/skills/meta-architect-build/SKILL.md +0 -25
  115. package/skills/meta-architect-build/agents/openai.yaml +0 -4
  116. package/skills/meta-architect-flow/SKILL.md +0 -23
  117. package/skills/meta-architect-flow/agents/openai.yaml +0 -4
  118. package/skills/meta-architect-sage/SKILL.md +0 -23
  119. package/skills/meta-architect-sage/agents/openai.yaml +0 -4
  120. package/skills/meta-architect-vet/SKILL.md +0 -23
  121. package/skills/meta-architect-vet/agents/openai.yaml +0 -4
  122. package/skills/meta-architect-vibe/SKILL.md +0 -24
  123. package/skills/meta-architect-vibe/agents/openai.yaml +0 -4
  124. package/src/doctor.js +0 -30
  125. package/src/setup.js +0 -375
package/docs/mcp-setup.md CHANGED
@@ -1,136 +1,48 @@
1
1
  # MCP / GitMCP Setup
2
2
 
3
- Meta-Architect uses MCP as the protocol layer and GitMCP as the remote evidence surface for curated OSS repositories.
4
-
5
- ## Files that matter
6
-
7
- - `mcp/servers.json`
8
- - `mcp/collections.json`
9
- - `mcp/fallback.json`
10
-
11
- These are committed product config files, not hidden runtime state.
12
-
13
- ## How server mappings work
14
-
15
- ### `mcp/servers.json`
16
-
17
- Defines the approved exact GitMCP-backed repositories the runtime may probe.
18
-
19
- Each entry should include:
20
- - `category`
21
- - `repo`
22
- - `endpoint`
23
-
24
- Example:
25
-
26
- ```json
27
- {
28
- "category": "security",
29
- "repo": "sbilly/awesome-security",
30
- "endpoint": "https://gitmcp.io/sbilly/awesome-security"
31
- }
32
- ```
33
-
34
- ### `mcp/collections.json`
35
-
36
- Defines the committed lane-to-category policy:
37
- - which categories belong to `arch`
38
- - which belong to `sage`
39
- - which belong to `vet`
40
-
41
- The current runtime probes `mcp/servers.json` directly, while `mcp/collections.json` remains the committed contract for how category routing should be understood and evolved.
42
-
43
- ### `mcp/fallback.json`
44
-
45
- Defines the documented fallback rule for:
46
- - `https://gitmcp.io/docs`
47
-
48
- Fallback is a policy declaration, not permission to skip exact endpoints when those are already known.
49
-
50
- ## Endpoint strategy
51
-
52
- Preferred rule:
53
- - use repo-specific `https://gitmcp.io/{owner}/{repo}` endpoints
54
- - avoid generic discovery when an exact approved repo is already known
55
-
56
- This keeps recommendations scoped and auditable.
57
-
58
- ## GitMCP collection examples
59
-
60
- Useful committed examples:
61
- - `sindresorhus/awesome`
62
- - `dzharii/awesome-typescript`
63
- - `rust-unofficial/awesome-rust`
64
- - `sbilly/awesome-security`
65
- - `awesome-selfhosted/awesome-selfhosted`
66
-
67
- ## How `$sage` uses live evidence
68
-
69
- Current `$sage` behavior:
70
- 1. requires `architecture_status = APPROVED`
71
- 2. reads `mcp/servers.json`
72
- 3. validates endpoint shape
73
- 4. derives the query from the latest architecture summary
74
- 5. opens a live GitMCP SSE connection when live probing is enabled
75
- 6. negotiates the MCP message endpoint
76
- 7. runs `tools/list`
77
- 8. runs one repo-specific tool call
78
- 9. writes probe metadata into `.omx/evidence/sources.json`
79
-
80
- This is enough to provide real runtime evidence for the first configured approved source. It is not a full multi-source reasoning engine yet.
81
-
82
- ## VERIFIED vs PARTIAL vs MISSING
83
-
84
- ### `VERIFIED`
85
- - at least one approved endpoint is configured
86
- - a real live probe succeeds
87
- - usable evidence is written
88
-
89
- ### `PARTIAL`
90
- - configured evidence exists
91
- - but live proof is incomplete, disabled, or degraded
92
-
93
- ### `MISSING`
94
- - no valid approved source exists
95
-
96
- Do not silently mark evidence as verified when the live source did not succeed.
97
-
98
- ## What to do when MCP is unavailable
99
-
100
- If MCP or GitMCP is unavailable:
101
- - keep evidence partial or missing
102
- - record the failure explicitly
103
- - do not fabricate evidence
104
- - fix the endpoint or network condition first
105
- - rerun `$sage`
106
-
107
- ## How to keep committed MCP config honest
108
-
109
- - commit real or intentionally documented example endpoints only
110
- - do not leave fake placeholders in production config
111
- - update this file if category policy changes
112
- - treat endpoint drift as a release-sensitive change
113
-
114
- ## Example setup workflow
115
-
116
- 1. edit `mcp/servers.json`
117
- 2. confirm categories in `mcp/collections.json`
118
- 3. inspect fallback policy in `mcp/fallback.json`
119
- 4. ensure `$arch` already approved the architecture
120
- 5. run:
121
-
122
- ```bash
123
- ma run '$sage'
124
- ```
125
-
126
- 6. inspect:
127
- - `.omx/evidence/sources.json`
128
- - `.omx/decisions.json`
129
- - `.omx/release.json`
130
-
131
- ## Related surfaces
132
-
133
- - [README.md](../README.md)
134
- - [docs/skills.md](./skills.md)
135
- - [docs/release-spec.md](./release-spec.md)
136
- - [plugins/meta-architect/README.md](../plugins/meta-architect/README.md)
3
+ 1. Use approved discovery accelerators when you need to find OSS candidates faster than browsing GitHub directly.
4
+ 2. Add repo-specific GitMCP endpoints in `mcp/servers.json` for any project you want to treat as approved evidence.
5
+ 3. Confirm categories in `mcp/collections.json`.
6
+ 4. Use `https://gitmcp.io/docs` only when no approved exact endpoint exists.
7
+
8
+ ## Discovery vs verification
9
+
10
+ Canonical `$sage` order:
11
+
12
+ 1. If the upstream repository or official docs are already known, start there first.
13
+ 2. If not, use approved discovery accelerators to build a candidate set quickly.
14
+ 3. Convert promising candidates into exact upstream repository mappings in `mcp/servers.json`.
15
+ 4. Verify the choice against the upstream repo and official docs.
16
+ 5. Treat the result as `VERIFIED`, `PARTIAL`, or `UNVERIFIED` based on what was actually proven.
17
+
18
+ The following external discovery surfaces are part of the Meta-Architect discovery standard:
19
+
20
+ - `https://ossium.live/home`
21
+ - use for trending OSS, curated repositories, YC-backed repos, GSoC orgs, and contribution leads
22
+ - `https://trendshift.io/`
23
+ - use for rising GitHub repository engagement, topic-driven exploration, and trend signals
24
+ - `https://devhunt.org/`
25
+ - use for newly launched developer tools and discovery of current dev-tool products
26
+ - `https://libraries.io/`
27
+ - use for package, ecosystem, license, and dependency metadata
28
+ - caution: Libraries.io says its public data is scraped and "not validated, corrected, or curated for accuracy"
29
+ - `https://openhub.net/`
30
+ - use for project activity, contributor, popularity, and comparative OSS project signals
31
+ - `https://www.opensourceprojects.dev/`
32
+ - use for curated open-source project discovery, detailed project writeups, and higher-signal project scouting
33
+
34
+ Use it for:
35
+ - discovering candidate repositories
36
+ - spotting trending or actively curated OSS
37
+ - finding contribution-friendly projects and issue flows
38
+ - finding YC-linked or GSoC-linked OSS leads faster
39
+ - checking package-ecosystem metadata, maintenance signals, and dependency context
40
+ - checking project activity and contributor/comparison signals
41
+ - checking curated project writeups and hand-picked OSS recommendations
42
+
43
+ Do not treat any of these discovery surfaces alone as VERIFIED build-unlocking evidence.
44
+
45
+ To move from discovery to VERIFIED evidence:
46
+ - identify the upstream GitHub repository or official package/docs source from the discovery surface
47
+ - map that repo to an exact `https://gitmcp.io/{owner}/{repo}` endpoint in `mcp/servers.json`
48
+ - validate the choice against the upstream repo and official docs through `$sage`
@@ -1,35 +1,65 @@
1
1
  # Onboarding
2
2
 
3
- This file is the short operator entrypoint for someone who just opened the repo and needs to
4
- understand the Codex-native Meta-Architect runtime model.
3
+ This is the shortest entrypoint for the real first-run Meta-Architect path.
5
4
 
6
- ## First reading order
5
+ ## Read first
7
6
 
8
7
  1. `README.md`
9
8
  2. `docs/getting-started.md`
10
- 3. `docs/release-spec.md`
11
- 4. `docs/skills.md`
9
+ 3. `example/usage-workflow.md`
10
+ 4. `docs/release-spec.md`
12
11
  5. `docs/skills-publishing.md`
13
12
 
14
- ## First commands
13
+ ## Canonical install and start
15
14
 
16
15
  ```bash
17
- npm i -g @openai/codex @jstn-sdk/ma
16
+ # Install
17
+ npm i -g @openai/codex@latest @jstn-sdk/ma@latest
18
+
19
+ # Start Codex context if needed
18
20
  ma --madmax --high
21
+
22
+ # Remove Meta-Architect only
23
+ npm uninstall -g @jstn-sdk/ma
24
+
25
+ # Remove Meta-Architect and Codex
26
+ npm uninstall -g @jstn-sdk/ma @openai/codex
27
+ ```
28
+
29
+ ## First runtime action
30
+
31
+ Start with the structured `$arch` prompt from [example/usage-workflow.md](../example/usage-workflow.md):
32
+
33
+ ```text
34
+ $arch I want to build: [PROJECT IDEA]
19
35
  ```
20
36
 
21
- Inside Codex, use the runtime tags directly:
22
- - `$arch`
37
+ Then continue through:
23
38
  - `$sage`
24
39
  - `$flow`
25
40
  - `$vet`
26
41
  - `$vibe`
27
42
  - `$build`
28
43
 
44
+ ## Secondary helper path
45
+
46
+ Only use this when you need local repo scaffolding or scripted validation:
47
+
48
+ ```bash
49
+ ma setup
50
+ ma
51
+ ma idea "..."
52
+ ma run '$arch'
53
+ ma run '$sage'
54
+ ma run '$flow'
55
+ ma run '$vet'
56
+ ma run '$vibe'
57
+ ma run '$build'
58
+ ```
59
+
29
60
  ## First safety rules
30
61
 
31
- - Do not commit runtime `.omx` state.
62
+ - Do not commit runtime `.ma` state.
32
63
  - Do not bypass gates by editing status files manually.
33
64
  - Do not assume a release channel succeeded without evidence.
34
65
  - Do not treat fallback MCP docs mode as normal verified evidence.
35
- - Do not present `ma setup` as the main daily workflow.
@@ -2,42 +2,62 @@
2
2
 
3
3
  ## Production bar
4
4
 
5
- `v0.1.5` is production only when:
6
- - the Codex-hosted runtime workflow is reliable end-to-end
7
- - the runtime/help/release contract is stable
8
- - package metadata, manifests, docs, workflows, and release artifacts all agree on `0.1.5`
9
- - provenance-capable publishing and post-publish verification are in place
10
-
11
- ## Automated checks
12
-
13
- Release-critical verification command:
5
+ `v0.1.5` is treated as production only when:
6
+ - the package installs cleanly from the canonical public install command
7
+ - the Codex-hosted runtime path works end to end
8
+ - the helper flow remains valid for scripted verification
9
+ - release docs, package metadata, and workflows all agree on `0.1.5`
10
+
11
+ Target release state:
12
+ - npm package: `@jstn-sdk/ma@0.1.5`
13
+ - npm registry state: pending publish
14
+ - publishability note: `0.1.4` is already published, so `0.1.5` is the next publishable package line
15
+ - git tag: `v0.1.5`
16
+ - GitHub release: pending publish for `v0.1.5`
17
+
18
+ ## Production checklist
19
+
20
+ - skills-first product identity: PASS
21
+ - package/plugin identity aligned to `@jstn-sdk/ma`: PASS
22
+ - version/tag alignment `0.1.5` / `v0.1.5`: PASS
23
+ - install/uninstall docs aligned: PASS
24
+ - onboarding is concise and sequential: PASS
25
+ - helper command documented as secondary: PASS
26
+ - skills/prompts/manifests aligned: PASS
27
+ - packaging includes required assets: PASS
28
+ - tests pass: PASS
29
+ - package dry-run passes: PASS
30
+ - installed-package behavior passes: PASS
31
+ - workflow/release/provenance docs aligned: PASS
32
+ - no stale package names remain in tracked repo surfaces: PASS
33
+ - no conflicting CLI-first product story remains in tracked product docs: PASS
34
+
35
+ ## Automated checks run
14
36
 
15
37
  ```bash
16
38
  npm run release:check
17
39
  ```
18
40
 
19
- This must cover:
20
- - manifest generation
41
+ That must cover:
42
+ - skills manifest generation
21
43
  - skill validation
22
- - skill tarball packaging
23
- - package metadata validation
24
- - release doc/version/tag alignment
25
- - workflow/provenance configuration validation
26
- - Biome checks
44
+ - skill bundle packaging
45
+ - repo checks
27
46
  - automated tests
28
47
  - npm package dry-run inspection
29
48
 
30
- ## Additional checks
49
+ ## Manual/behavioral checks run
31
50
 
32
- Runtime posture:
51
+ Canonical launch:
33
52
 
34
53
  ```bash
35
54
  ma --madmax --high
36
55
  ```
37
56
 
38
- Scripted helper path for repo-local validation:
57
+ Helper-path validation:
39
58
 
40
59
  ```bash
60
+ ma setup
41
61
  ma idea "Build a demo app"
42
62
  ma run '$arch'
43
63
  ma run '$sage'
@@ -48,30 +68,12 @@ ma status
48
68
  ma run '$build'
49
69
  ```
50
70
 
51
- Expected result:
52
- - all helper commands succeed in sequence
53
- - `$build` remains blocked until upstream gates are green
54
- - ready builds emit bounded `feature/*` branch suggestions
55
-
56
- ## Provenance checklist
57
-
58
- - `.github/workflows/npm-publish.yml` uses GitHub Actions trusted publishing
59
- - workflow permissions include `contents: read` and `id-token: write`
60
- - publish command is `npm publish --provenance --access public`
61
- - post-publish workflow verifies the published package version on npm
62
- - post-publish workflow installs the published package in a clean directory and runs `npm audit signatures`
63
-
64
- ## Release artifact checklist
65
-
66
- - `package.json` version is `0.1.5`
67
- - `package-lock.json` version is `0.1.5`
68
- - `CHANGELOG.md` contains `## v0.1.5`
69
- - `RELEASE.md` title is `# Meta-Architect v0.1.5`
70
- - `docs/release-spec.md` references `v0.1.5`
71
- - `dist/meta-architect-skills.tgz` exists and is non-empty
71
+ Expected evidence:
72
+ - `.ma/release.json` remains the source of truth
73
+ - `.ma/decisions.json` records the helper-path activity
74
+ - `$build` stays blocked until upstream gates are green, then becomes ready
72
75
 
73
- ## Known limits
76
+ ## Known limitations
74
77
 
75
- - worktree execution remains operator-driven
76
- - merge and release policy is enforced by helper commands rather than raw git hooks
77
- - npm publish still requires the external trusted-publishing configuration on npm to be enabled for the repository
78
+ - interactive Codex conversation quality depends on the installed Codex host
79
+ - release publication still depends on npm ownership/authorization for the target package name
@@ -0,0 +1,79 @@
1
+ # Release Readiness 0.1.7
2
+
3
+ ## Production bar
4
+
5
+ `v0.1.7` is treated as production only when:
6
+ - the package installs cleanly from the canonical public install command
7
+ - the Codex-hosted runtime path works end to end
8
+ - the helper flow remains valid for scripted verification
9
+ - release docs, package metadata, and workflows all agree on `0.1.7`
10
+
11
+ Target release state:
12
+ - npm package: `@jstn-sdk/ma@0.1.7`
13
+ - npm registry state: pending publish
14
+ - publishability note: `0.1.6` is already published, so `0.1.7` is the next publishable package line
15
+ - git tag: `v0.1.7`
16
+ - GitHub release: pending publish for `v0.1.7`
17
+
18
+ ## Production checklist
19
+
20
+ - skills-first product identity: PASS
21
+ - package/plugin identity aligned to `@jstn-sdk/ma`: PASS
22
+ - version/tag alignment `0.1.7` / `v0.1.7`: PASS
23
+ - install/uninstall docs aligned: PASS
24
+ - onboarding is concise and sequential: PASS
25
+ - helper command documented as secondary: PASS
26
+ - skills/prompts/manifests aligned: PASS
27
+ - packaging includes required assets: PASS
28
+ - tests pass: PASS
29
+ - package dry-run passes: PASS
30
+ - installed-package behavior passes: PASS
31
+ - workflow/release/provenance docs aligned: PASS
32
+ - no stale package names remain in tracked repo surfaces: PASS
33
+ - no conflicting CLI-first product story remains in tracked product docs: PASS
34
+
35
+ ## Automated checks run
36
+
37
+ ```bash
38
+ npm run release:check
39
+ ```
40
+
41
+ That must cover:
42
+ - skills manifest generation
43
+ - skill validation
44
+ - skill bundle packaging
45
+ - repo checks
46
+ - automated tests
47
+ - npm package dry-run inspection
48
+
49
+ ## Manual/behavioral checks run
50
+
51
+ Canonical launch:
52
+
53
+ ```bash
54
+ ma --madmax --high
55
+ ```
56
+
57
+ Helper-path validation:
58
+
59
+ ```bash
60
+ ma setup
61
+ ma idea "Build a demo app"
62
+ ma run '$arch'
63
+ ma run '$sage'
64
+ ma run '$flow'
65
+ ma run '$vet'
66
+ ma run '$vibe'
67
+ ma status
68
+ ma run '$build'
69
+ ```
70
+
71
+ Expected evidence:
72
+ - `.ma/release.json` remains the source of truth
73
+ - `.ma/decisions.json` records the helper-path activity
74
+ - `$build` stays blocked until upstream gates are green, then becomes ready
75
+
76
+ ## Known limitations
77
+
78
+ - interactive Codex conversation quality depends on the installed Codex host
79
+ - release publication still depends on npm ownership/authorization for the target package name
@@ -1,115 +1,93 @@
1
- # v0.1.5 Requirements & Rules
1
+ # v0.1.7 Requirements & Rules
2
2
 
3
3
  ## Production definition
4
4
 
5
- Meta-Architect `v0.1.5` is production only when all of the following are true:
5
+ Meta-Architect `v0.1.7` is production only when:
6
+ 1. the package/install surface works
7
+ 2. the in-session skill workflow from `$arch` through `$build` works
8
+ 3. the release evidence matches the actual package and git tag
6
9
 
7
- 1. The Codex-hosted runtime workflow is reliable end-to-end.
8
- 2. The public runtime, helper, and release contract is stable.
9
- 3. There is documented release evidence for the exact version and tag.
10
+ ## What `v0.1.7` must have
10
11
 
11
- Production here means safe to recommend for real projects and expensive to break without a major version change.
12
+ ### 1. Canonical package/runtime path
12
13
 
13
- ## What `v0.1.5` must have
14
-
15
- ### 1. Runtime-first operation
16
-
17
- - `ma --madmax --high` launches the Codex-hosted Meta-Architect posture.
18
- - The primary operating surface inside Codex is:
14
+ - install: `npm i -g @openai/codex@latest @jstn-sdk/ma@latest`
15
+ - optional helper launch: `ma --madmax --high`
16
+ - uninstall Meta-Architect only: `npm uninstall -g @jstn-sdk/ma`
17
+ - uninstall Meta-Architect and Codex: `npm uninstall -g @jstn-sdk/ma @openai/codex`
18
+ - runtime trigger surface:
19
19
  - `$arch`
20
20
  - `$sage`
21
21
  - `$flow`
22
22
  - `$vet`
23
23
  - `$vibe`
24
24
  - `$build`
25
- - Helper commands remain secondary:
26
- - `ma status`
27
- - `ma idea`
28
- - `ma run ...`
29
- - `ma merge`
30
- - `ma release`
31
- - `ma doctor`
32
- - `ma setup`
33
-
34
- ### 2. Gate and status rules
35
-
36
- Required status fields:
37
- - `idea_status`
38
- - `architecture_status`
39
- - `evidence_status`
40
- - `logic_status`
41
- - `security_status`
42
- - `experience_status`
43
- - `build_status`
44
- - `merge_status`
45
- - `release_status`
46
-
47
- Allowed values:
48
- - `idea_status`: `DRAFT`, `CLEAR`, `BLOCKED`
49
- - `architecture_status`: `DRAFT`, `REVIEWED`, `APPROVED`
50
- - `evidence_status`: `MISSING`, `PARTIAL`, `VERIFIED`
51
- - `logic_status`: `PENDING`, `GREEN`, `RED`
52
- - `security_status`: `PENDING`, `GREEN`, `RED`
53
- - `experience_status`: `PENDING`, `GREEN`, `RED`, `WAIVED`
54
- - `build_status`: `LOCKED`, `READY`, `RUNNING`, `DONE`
55
- - `merge_status`: `LOCKED`, `READY`, `MERGED_TO_DEVELOPMENT`
56
- - `release_status`: `LOCKED`, `READY`, `SHIPPED_TO_PROD`
57
-
58
- `$build` must stay locked unless:
59
- - `idea_status = CLEAR`
60
- - `architecture_status = APPROVED`
61
- - `evidence_status = VERIFIED`
62
- - `logic_status = GREEN`
63
- - `security_status = GREEN`
64
- - `experience_status { GREEN, WAIVED }`
65
- - `build_status { LOCKED, READY }`
66
-
67
- ### 3. Branch and release policy
68
-
69
- - `feature/*` is bounded task work.
70
- - `development` is the integration branch.
71
- - `release/*` is optional stabilization.
72
- - `prod` is the production release branch.
73
-
74
- Rules:
75
- - feature work merges into `development`, never directly into `prod`
76
- - release evaluation is valid only from `development` or approved `release/*`
77
- - no release claim is true until tag, GitHub release, and npm publish all succeed
78
-
79
- ### 4. Evidence and MCP rules
80
-
81
- - `$sage` must use approved GitMCP endpoints from `mcp/servers.json`.
82
- - Generic `https://gitmcp.io/docs` fallback remains policy-only and cannot silently unlock `$build`.
83
- - Evidence must be logged honestly as `VERIFIED`, `PARTIAL`, or `MISSING`.
84
- - Fake repos, fake endpoints, and silent evidence upgrades are prohibited.
85
-
86
- ### 5. Release packaging and provenance
87
-
88
- Required release evidence:
89
- - matching package version and git tag (`v0.1.5` format)
90
- - `CHANGELOG.md` entry
91
- - `RELEASE.md` body
92
- - `docs/qa/release-readiness-0.1.5.md`
93
- - `dist/meta-architect-skills.tgz`
94
- - npm trusted publishing configuration
95
- - post-publish provenance verification
96
-
97
- ### 6. Required docs
98
-
99
- - `README.md`
100
- - `docs/getting-started.md`
101
- - `docs/skills.md`
102
- - `docs/mcp-setup.md`
103
- - `docs/skills-publishing.md`
104
- - `docs/release-spec.md`
105
- - `docs/qa/release-readiness-0.1.5.md`
106
-
107
- ## Production rule
108
-
109
- Meta-Architect `v0.1.5` is considered production-ready only if:
110
- - a Codex session launches through `ma --madmax --high`
111
- - the full `$arch -> $sage -> $flow -> $vet -> $vibe -> $build` contract works with gate enforcement
112
- - package, docs, workflows, manifests, and release notes all agree on `v0.1.5`
113
- - the skill distribution surfaces validate and package from a clean checkout
114
- - the npm publish workflow is provenance-capable
115
- - post-publish verification checks are defined and enforced
25
+
26
+ ### 2. Secondary helper path
27
+
28
+ Helper commands remain available for setup and scripted validation:
29
+ - `ma setup`
30
+ - `ma idea`
31
+ - `ma run ...`
32
+ - `ma status`
33
+ - `ma merge`
34
+ - `ma release`
35
+
36
+ ### 3. State and gate contract
37
+
38
+ Canonical runtime namespace:
39
+ - `.ma/`
40
+
41
+ Canonical state files:
42
+ - `.ma/decisions.json`
43
+ - `.ma/release.json`
44
+ - `.ma/evidence/*`
45
+ - `.ma/context/*`
46
+ - `.ma/specs/*`
47
+ - `.ma/plans/*`
48
+ - `.ma/runbook.md`
49
+
50
+ ### 4. Required release evidence
51
+
52
+ - `package.json` version `0.1.7`
53
+ - git tag `v0.1.7`
54
+ - `RELEASE.md`
55
+ - `CHANGELOG.md`
56
+ - `docs/qa/release-readiness-0.1.7.md`
57
+ - green `npm run release:check`
58
+
59
+ ### 5. Dist-tag discipline
60
+
61
+ - stable versions such as `0.1.2` publish to npm `latest`
62
+ - prerelease versions such as `0.2.0-beta.1` must publish with explicit tags such as `beta`
63
+ - recommended alternate lanes are `next`, `beta`, and `canary`
64
+ - prerelease publication must use `npm publish --tag <lane>`
65
+ - stable publication keeps scoped public access and provenance enabled
66
+
67
+ ### 6. Canonical bump and publish flow
68
+
69
+ 1. Run `npm version <version> --no-git-tag-version`
70
+ 2. Update `CHANGELOG.md`
71
+ 3. Update `RELEASE.md`
72
+ 4. Update `docs/qa/release-readiness-<version>.md`
73
+ 5. Run `npm run release:verify`
74
+ 6. Run `npm run release:check`
75
+ 7. Create and push tag `v<version>`
76
+ 8. Preferred publish path: publish from `.github/workflows/npm-publish.yml` on a supported cloud runner so provenance can be generated
77
+ 9. Local shell fallback when not publishing from GitHub Actions or GitLab CI/CD:
78
+ - Stable publish: `npm publish --access public`
79
+ - Prerelease publish: `npm publish --access public --tag <lane>`
80
+ 10. Verify dist-tags with `npm view @jstn-sdk/ma version dist-tags time --json`
81
+
82
+ ### 6.1 Release automation
83
+
84
+ - `npm run release:sync` updates the active release line when watched release-relevant files changed
85
+ - `npm run release:advance` force-bumps the next patch line after a completed release
86
+ - `.github/workflows/release-sync.yml` automates the sync path on `main`
87
+ - `.github/workflows/release-advance.yml` advances the repo to the next patch line after a published release
88
+
89
+ ### 7. Provenance rule
90
+
91
+ - `npm publish --provenance` is valid only from a supported cloud CI/CD provider
92
+ - local shell publishes are expected to fail with `Automatic provenance generation not supported for provider: null`
93
+ - use the repository publish workflow when provenance is part of the release bar