@jstn-sdk/ma 0.1.3 → 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.
- package/.codex/config.toml +2 -0
- package/.codex/hooks.json +1 -1
- package/.codex/prompts/enforcement.md +3 -3
- package/.codex/prompts/onboarding.md +14 -29
- package/README.md +129 -466
- package/bin/ma.js +103 -54
- package/docs/README.md +1 -2
- package/docs/getting-started.md +37 -402
- package/docs/mcp-setup.md +134 -3
- package/docs/onboarding.md +11 -41
- package/docs/qa/release-readiness-0.1.5.md +77 -0
- package/docs/release-spec.md +103 -74
- package/docs/skills-publishing.md +54 -187
- package/docs/skills.md +141 -78
- package/mcp/collections.json +1 -1
- package/mcp/fallback.json +1 -1
- package/mcp/servers.json +1 -1
- package/package.json +14 -16
- package/plugins/meta-architect/.app.json +1 -1
- package/plugins/meta-architect/.mcp.json +1 -1
- package/plugins/meta-architect/README.md +10 -23
- package/plugins/meta-architect/skills/meta-architect/SKILL.md +23 -17
- package/plugins/meta-architect/skills/meta-architect-arch/SKILL.md +24 -0
- package/plugins/meta-architect/skills/meta-architect-build/SKILL.md +25 -0
- package/plugins/meta-architect/skills/meta-architect-flow/SKILL.md +23 -0
- package/plugins/meta-architect/skills/meta-architect-sage/SKILL.md +23 -0
- package/plugins/meta-architect/skills/meta-architect-vet/SKILL.md +23 -0
- package/plugins/meta-architect/skills/meta-architect-vibe/SKILL.md +24 -0
- package/prompts/architect.md +216 -0
- package/prompts/builder.md +10 -0
- package/prompts/flow.md +9 -0
- package/prompts/release-manager.md +10 -0
- package/prompts/sage.md +10 -0
- package/prompts/security-reviewer.md +10 -0
- package/prompts/verifier.md +10 -0
- package/prompts/vibe.md +10 -0
- package/scripts/doctor.js +0 -8
- package/scripts/skills-install.js +36 -4
- package/scripts/skills-manifest.js +1 -1
- package/scripts/skills-validate.js +40 -78
- package/skills/index.json +22 -22
- package/skills/meta-architect/SKILL.md +23 -17
- package/skills/meta-architect/agents/openai.yaml +3 -3
- package/skills/meta-architect/references/core-release-rules.md +2 -2
- package/skills/meta-architect-arch/SKILL.md +24 -0
- package/skills/meta-architect-arch/agents/openai.yaml +4 -0
- package/skills/meta-architect-build/SKILL.md +25 -0
- package/skills/meta-architect-build/agents/openai.yaml +4 -0
- package/skills/meta-architect-flow/SKILL.md +23 -0
- package/skills/meta-architect-flow/agents/openai.yaml +4 -0
- package/skills/meta-architect-sage/SKILL.md +23 -0
- package/skills/meta-architect-sage/agents/openai.yaml +4 -0
- package/skills/meta-architect-vet/SKILL.md +23 -0
- package/skills/meta-architect-vet/agents/openai.yaml +4 -0
- package/skills/meta-architect-vibe/SKILL.md +24 -0
- package/skills/meta-architect-vibe/agents/openai.yaml +4 -0
- package/sprint/00-idea.md +1 -1
- package/sprint/01-architecture.md +1 -1
- package/sprint/02-oss-evidence.md +1 -1
- package/sprint/03-logic.md +1 -1
- package/sprint/04-security.md +2 -2
- package/sprint/05-dx-ux.md +1 -1
- package/src/decision-log.js +4 -4
- package/src/doctor.js +30 -0
- package/src/launcher.js +17 -21
- package/src/mcp-live-client.js +1 -1
- package/src/paths.js +32 -8
- package/src/release-state.js +3 -3
- package/src/setup.js +375 -0
- package/src/skills.js +166 -309
- package/templates/AGENTS.md +6 -6
- package/templates/model-instructions/core.md +1 -1
- package/.agents/plugins/marketplace.json +0 -20
- package/docs/assets/meta-architect-logo.png +0 -0
- package/docs/assets/meta-architect-logo.svg +0 -8
- package/docs/installed-sdk.md +0 -60
- package/docs/qa/release-readiness-0.1.3.md +0 -79
- package/plugins/meta-architect/.codex-plugin/plugin.json +0 -23
- package/plugins/meta-architect/skills/arch/SKILL.md +0 -27
- package/plugins/meta-architect/skills/arch/agents/openai.yaml +0 -4
- package/plugins/meta-architect/skills/build/SKILL.md +0 -24
- package/plugins/meta-architect/skills/build/agents/openai.yaml +0 -4
- package/plugins/meta-architect/skills/flow/SKILL.md +0 -24
- package/plugins/meta-architect/skills/flow/agents/openai.yaml +0 -4
- package/plugins/meta-architect/skills/meta-architect/agents/openai.yaml +0 -4
- package/plugins/meta-architect/skills/meta-architect/references/core-release-rules.md +0 -13
- package/plugins/meta-architect/skills/sage/SKILL.md +0 -24
- package/plugins/meta-architect/skills/sage/agents/openai.yaml +0 -4
- package/plugins/meta-architect/skills/vet/SKILL.md +0 -25
- package/plugins/meta-architect/skills/vet/agents/openai.yaml +0 -4
- package/plugins/meta-architect/skills/vibe/SKILL.md +0 -24
- package/plugins/meta-architect/skills/vibe/agents/openai.yaml +0 -4
- package/scripts/plugin-sync.js +0 -92
- package/scripts/postinstall.js +0 -23
- package/scripts/release-metadata.js +0 -94
- package/scripts/release-sync.js +0 -348
- package/scripts/release-verify.js +0 -153
- package/scripts/setup-npmrc.js +0 -39
- package/skills/arch/SKILL.md +0 -27
- package/skills/arch/agents/openai.yaml +0 -4
- package/skills/build/SKILL.md +0 -24
- package/skills/build/agents/openai.yaml +0 -4
- package/skills/flow/SKILL.md +0 -24
- package/skills/flow/agents/openai.yaml +0 -4
- package/skills/sage/SKILL.md +0 -24
- package/skills/sage/agents/openai.yaml +0 -4
- package/skills/vet/SKILL.md +0 -25
- package/skills/vet/agents/openai.yaml +0 -4
- package/skills/vibe/SKILL.md +0 -24
- package/skills/vibe/agents/openai.yaml +0 -4
- package/src/runtime-artifacts.js +0 -363
- package/src/skill-installer.js +0 -198
package/docs/getting-started.md
CHANGED
|
@@ -1,166 +1,22 @@
|
|
|
1
1
|
# Getting Started
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Meta-Architect is a Codex-native runtime layer. Install Codex, install Meta-Architect, launch the runtime posture, then operate through skill tags inside Codex.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Canonical path
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- install Meta-Architect
|
|
9
|
-
- configure MCP/GitMCP sources
|
|
10
|
-
- run the full architecture-to-build sequence
|
|
11
|
-
- understand how each gate moves
|
|
12
|
-
- diagnose blocked gates
|
|
13
|
-
- use the merge/release path safely
|
|
14
|
-
|
|
15
|
-
## Prerequisites
|
|
16
|
-
|
|
17
|
-
- Node.js 20+
|
|
18
|
-
- npm 10+
|
|
19
|
-
- Git 2.30+
|
|
20
|
-
- an MCP-capable runtime
|
|
21
|
-
- network access if you want live `$sage` verification against a real GitMCP server
|
|
22
|
-
|
|
23
|
-
## 1. Canonical install and launch
|
|
24
|
-
|
|
25
|
-
Canonical public install:
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
# Install
|
|
29
|
-
npm i -g @openai/codex@latest @jstn-sdk/ma@latest
|
|
30
|
-
|
|
31
|
-
# Launch
|
|
32
|
-
ma --madmax --high
|
|
33
|
-
|
|
34
|
-
# Remove Meta-Architect only
|
|
35
|
-
npm uninstall -g @jstn-sdk/ma
|
|
36
|
-
|
|
37
|
-
# Remove Meta-Architect and Codex
|
|
38
|
-
npm uninstall -g @jstn-sdk/ma @openai/codex
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
That is the default product path. The product experience is the in-session skill workflow in [example/usage-workflow.md](../example/usage-workflow.md). The `ma` command is only a helper for starting or supporting that flow.
|
|
42
|
-
|
|
43
|
-
## 2. Real usage workflow
|
|
44
|
-
|
|
45
|
-
Start with the structured `$arch` prompt:
|
|
46
|
-
|
|
47
|
-
```text
|
|
48
|
-
$arch I want to build: [PROJECT IDEA]
|
|
49
|
-
|
|
50
|
-
Context:
|
|
51
|
-
- Product type: [web app / mobile app / API / marketplace / agent system / internal tool]
|
|
52
|
-
- Users: [who will use it]
|
|
53
|
-
- Core problem: [what problem it solves]
|
|
54
|
-
- Main features:
|
|
55
|
-
1. [feature one]
|
|
56
|
-
2. [feature two]
|
|
57
|
-
3. [feature three]
|
|
58
|
-
- Constraints:
|
|
59
|
-
- Budget: [low / medium / high]
|
|
60
|
-
- Team size: [solo / small / medium]
|
|
61
|
-
- Timeline: [e.g. 2 weeks MVP, 3 months beta]
|
|
62
|
-
- Preferred stack: [optional]
|
|
63
|
-
- Avoid: [optional]
|
|
64
|
-
- Quality priorities:
|
|
65
|
-
- [e.g. speed, low cost, security, DX, maintainability, scalability]
|
|
66
|
-
- Deployment target:
|
|
67
|
-
- [Vercel / Docker / VPS / AWS / GCP / local-first / hybrid]
|
|
68
|
-
|
|
69
|
-
Required output:
|
|
70
|
-
1. Problem framing
|
|
71
|
-
2. Recommended architecture
|
|
72
|
-
3. Stack decision with justification
|
|
73
|
-
4. System components and responsibilities
|
|
74
|
-
5. Data model and storage choices
|
|
75
|
-
6. Auth/security considerations
|
|
76
|
-
7. DX/UX considerations
|
|
77
|
-
8. Delivery plan for v0.1.3
|
|
78
|
-
9. Risks and trade-offs
|
|
79
|
-
10. Decision log
|
|
80
|
-
11. Exact next trigger to run after this
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
Then continue with:
|
|
84
|
-
|
|
85
|
-
```text
|
|
86
|
-
$sage
|
|
87
|
-
$flow
|
|
88
|
-
$vet
|
|
89
|
-
$vibe
|
|
90
|
-
$build
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
Use the full prompt blocks from [example/usage-workflow.md](../example/usage-workflow.md) when you want the exact handoff format between lanes.
|
|
94
|
-
|
|
95
|
-
## 3. Contributor clone and link
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
git clone https://github.com/JustineDevs/meta-architect.git
|
|
99
|
-
cd meta-architect
|
|
100
|
-
npm install
|
|
101
|
-
npm link
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
Why `npm link` matters:
|
|
105
|
-
- it makes the local helper command available without requiring a global publish step
|
|
106
|
-
|
|
107
|
-
## 4. Secondary repository setup flow
|
|
7
|
+
Install:
|
|
108
8
|
|
|
109
9
|
```bash
|
|
110
|
-
ma
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
Optional interactive session:
|
|
114
|
-
|
|
115
|
-
```bash
|
|
116
|
-
ma
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
Expected effects:
|
|
120
|
-
- `.codex/agents/` exists
|
|
121
|
-
- `.codex/prompts/` exists
|
|
122
|
-
- local `.ma/skills/`, `.ma/evidence/`, `.ma/context/`, `.ma/specs/`, `.ma/plans/`, and `.ma/runbook.md` are seeded
|
|
123
|
-
- `mcp/`, `docs/`, and `sprint/` surfaces exist
|
|
124
|
-
- `ma` opens Codex with the Meta-Architect helper posture when run with no arguments
|
|
125
|
-
|
|
126
|
-
Expected output:
|
|
127
|
-
|
|
128
|
-
```text
|
|
129
|
-
meta-architect setup
|
|
130
|
-
====================
|
|
131
|
-
ready: .codex/agents
|
|
132
|
-
ready: .codex/prompts
|
|
133
|
-
ready: .ma/skills
|
|
134
|
-
ready: .ma/evidence
|
|
135
|
-
ready: .ma/context
|
|
136
|
-
ready: .ma/specs
|
|
137
|
-
ready: .ma/plans
|
|
138
|
-
ready: mcp
|
|
139
|
-
ready: docs
|
|
140
|
-
ready: docs/qa
|
|
141
|
-
ready: sprint
|
|
10
|
+
npm i -g @openai/codex @jstn-sdk/ma
|
|
142
11
|
```
|
|
143
12
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
## 4.1 Understand the two surfaces
|
|
147
|
-
|
|
148
|
-
Meta-Architect works in two simple ways:
|
|
149
|
-
|
|
150
|
-
- terminal commands
|
|
151
|
-
- in-session skills
|
|
152
|
-
|
|
153
|
-
Terminal commands are normal shell commands:
|
|
13
|
+
Launch:
|
|
154
14
|
|
|
155
15
|
```bash
|
|
156
|
-
ma
|
|
157
|
-
ma init
|
|
158
|
-
ma sdk-path
|
|
159
|
-
ma status
|
|
160
|
-
ma run '$arch'
|
|
16
|
+
ma --madmax --high
|
|
161
17
|
```
|
|
162
18
|
|
|
163
|
-
|
|
19
|
+
Operate inside Codex with:
|
|
164
20
|
|
|
165
21
|
```text
|
|
166
22
|
$arch
|
|
@@ -171,283 +27,62 @@ $vibe
|
|
|
171
27
|
$build
|
|
172
28
|
```
|
|
173
29
|
|
|
174
|
-
|
|
175
|
-
- `ma ...` = terminal helper command
|
|
176
|
-
- `$...` = in-session skill
|
|
177
|
-
|
|
178
|
-
`ma setup` and `ma init` currently do the same thing:
|
|
179
|
-
- they create local `.ma/` support files
|
|
180
|
-
- they prepare context, specs, plans, evidence, and runbook files
|
|
181
|
-
- they do not automatically run the skill workflow
|
|
182
|
-
|
|
183
|
-
`ma sdk-path` prints the installed packaged support-bundle root for relevant files such as prompts, MCP files, sprint files, scripts, plugin metadata, and templates.
|
|
184
|
-
|
|
185
|
-
## 5. Configure MCP / GitMCP
|
|
186
|
-
|
|
187
|
-
Edit:
|
|
188
|
-
- `mcp/servers.json`
|
|
189
|
-
- `mcp/collections.json`
|
|
190
|
-
- `mcp/fallback.json`
|
|
191
|
-
|
|
192
|
-
Minimum live example:
|
|
193
|
-
|
|
194
|
-
```json
|
|
195
|
-
{
|
|
196
|
-
"category": "meta-list",
|
|
197
|
-
"repo": "sindresorhus/awesome",
|
|
198
|
-
"endpoint": "https://gitmcp.io/sindresorhus/awesome"
|
|
199
|
-
}
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
Recommended first set:
|
|
203
|
-
- `sindresorhus/awesome`
|
|
204
|
-
- `dzharii/awesome-typescript`
|
|
205
|
-
- `sbilly/awesome-security`
|
|
206
|
-
|
|
207
|
-
See [docs/mcp-setup.md](./mcp-setup.md) for endpoint policy and evidence semantics.
|
|
208
|
-
|
|
209
|
-
## 6. Secondary helper flow
|
|
210
|
-
|
|
211
|
-
```bash
|
|
212
|
-
ma idea "Build a real-time collaborative whiteboard for product teams"
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
Expected effects:
|
|
216
|
-
- an idea decision entry is appended to `.ma/decisions.json`
|
|
217
|
-
- `idea_status = CLEAR`
|
|
218
|
-
|
|
219
|
-
If this fails:
|
|
220
|
-
- ensure the idea text is not empty
|
|
221
|
-
- inspect `.ma/decisions.json` for malformed local data
|
|
222
|
-
|
|
223
|
-
## 7. Run the helper skill sequence
|
|
224
|
-
|
|
225
|
-
### 5.1 Architecture
|
|
226
|
-
|
|
227
|
-
```bash
|
|
228
|
-
ma run '$arch'
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
Expected effects:
|
|
232
|
-
- a structured first-pass architecture blueprint is appended
|
|
233
|
-
- `architecture_status = APPROVED`
|
|
234
|
-
|
|
235
|
-
Generated or updated:
|
|
236
|
-
- `.ma/decisions.json`
|
|
237
|
-
- `.ma/release.json`
|
|
238
|
-
- `.ma/context/project.md`
|
|
239
|
-
- `.ma/specs/architecture.md`
|
|
240
|
-
- `.ma/plans/implementation.md`
|
|
241
|
-
|
|
242
|
-
### 5.2 Evidence
|
|
243
|
-
|
|
244
|
-
```bash
|
|
245
|
-
ma run '$sage'
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
Expected effects:
|
|
249
|
-
- `architecture_status` must already be approved
|
|
250
|
-
- configured GitMCP endpoints are validated
|
|
251
|
-
- the latest architecture summary is used as the probe query basis
|
|
252
|
-
- the first configured live source is probed when live mode is enabled
|
|
253
|
-
- `.ma/evidence/sources.json` is updated
|
|
254
|
-
- `evidence_status` becomes:
|
|
255
|
-
- `VERIFIED` on a real successful live probe
|
|
256
|
-
- `PARTIAL` when configured evidence exists but live proof is incomplete or disabled
|
|
257
|
-
- `MISSING` when no usable approved source exists
|
|
258
|
-
|
|
259
|
-
Generated or updated:
|
|
260
|
-
- `.ma/evidence/sources.json`
|
|
261
|
-
- `.ma/decisions.json`
|
|
262
|
-
- `.ma/release.json`
|
|
263
|
-
- `.ma/specs/evidence.md`
|
|
264
|
-
|
|
265
|
-
If this fails:
|
|
266
|
-
- check endpoint URLs in `mcp/servers.json`
|
|
267
|
-
- ensure architecture was approved first
|
|
268
|
-
- verify network access
|
|
269
|
-
- rerun after correcting the endpoint or environment
|
|
270
|
-
|
|
271
|
-
### 5.3 Logic
|
|
272
|
-
|
|
273
|
-
```bash
|
|
274
|
-
ma run '$flow'
|
|
275
|
-
```
|
|
276
|
-
|
|
277
|
-
Expected effects:
|
|
278
|
-
- a structured first-pass logic/state review is appended
|
|
279
|
-
- `logic_status = GREEN` when current prerequisites and transition modeling are acceptable
|
|
280
|
-
- `logic_status = RED` when prerequisite gates are not ready
|
|
281
|
-
|
|
282
|
-
Generated or updated:
|
|
283
|
-
- `.ma/specs/logic.md`
|
|
284
|
-
|
|
285
|
-
### 5.4 Security
|
|
286
|
-
|
|
287
|
-
```bash
|
|
288
|
-
ma run '$vet'
|
|
289
|
-
```
|
|
290
|
-
|
|
291
|
-
Expected effects:
|
|
292
|
-
- `.ma/evidence/audits.json` and `.ma/evidence/cves.json` are updated
|
|
293
|
-
- `security_status = GREEN` on a baseline pass
|
|
294
|
-
- `security_status = RED` when prerequisite gates are not ready
|
|
295
|
-
|
|
296
|
-
Generated or updated:
|
|
297
|
-
- `.ma/specs/security.md`
|
|
298
|
-
|
|
299
|
-
### 5.5 Experience
|
|
300
|
-
|
|
301
|
-
```bash
|
|
302
|
-
ma run '$vibe'
|
|
303
|
-
ma run '$vibe' --waive --reason "Accepted for this release line"
|
|
304
|
-
```
|
|
30
|
+
## Runtime expectations
|
|
305
31
|
|
|
306
|
-
|
|
307
|
-
-
|
|
308
|
-
-
|
|
309
|
-
- `
|
|
310
|
-
- `experience_status = WAIVED` when the waiver path is used explicitly
|
|
32
|
+
- Codex is the host runtime.
|
|
33
|
+
- Meta-Architect is the runtime extension.
|
|
34
|
+
- The skill tags are the primary product surface.
|
|
35
|
+
- `ma` is a runtime launcher plus a small maintenance/helper interface.
|
|
311
36
|
|
|
312
|
-
|
|
313
|
-
- `.ma/specs/experience.md`
|
|
37
|
+
## When to use helper commands
|
|
314
38
|
|
|
315
|
-
|
|
39
|
+
Use helper commands only when you need scripted repo validation or repo-local scaffolding:
|
|
316
40
|
|
|
317
41
|
```bash
|
|
318
42
|
ma status
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
Expected green-state output:
|
|
322
|
-
|
|
323
|
-
```text
|
|
324
|
-
Meta-Architect Status
|
|
325
|
-
=====================
|
|
326
|
-
Idea: CLEAR
|
|
327
|
-
Architecture: APPROVED
|
|
328
|
-
Evidence: VERIFIED
|
|
329
|
-
Logic: GREEN
|
|
330
|
-
Security: GREEN
|
|
331
|
-
Experience: GREEN
|
|
332
|
-
Build: LOCKED
|
|
333
|
-
Next allowed triggers:
|
|
334
|
-
$build
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
## 9. Unlock and run build planning
|
|
338
|
-
|
|
339
|
-
```bash
|
|
340
|
-
ma run '$build'
|
|
341
|
-
```
|
|
342
|
-
|
|
343
|
-
Expected effects:
|
|
344
|
-
- build gate is evaluated
|
|
345
|
-
- if allowed, `build_status = READY`
|
|
346
|
-
- branch suggestions are printed
|
|
347
|
-
- worktree commands are suggested
|
|
348
|
-
- `.ma/plans/build.md` is updated
|
|
349
|
-
|
|
350
|
-
Expected output shape:
|
|
351
|
-
|
|
352
|
-
```text
|
|
353
|
-
Build gate is green.
|
|
354
|
-
Suggested branches:
|
|
355
|
-
- feature/ui
|
|
356
|
-
- feature/api
|
|
357
|
-
Optional worktree commands:
|
|
358
|
-
git worktree add ../ui feature/ui
|
|
359
|
-
git worktree add ../api feature/api
|
|
360
|
-
```
|
|
361
|
-
|
|
362
|
-
If `$build` fails:
|
|
363
|
-
- run `ma status`
|
|
364
|
-
- read the blocking statuses
|
|
365
|
-
- fix the corresponding upstream lane
|
|
366
|
-
- rerun that lane, then rerun `$build`
|
|
367
|
-
|
|
368
|
-
## 10. Example walkthrough: collaborative whiteboard
|
|
369
|
-
|
|
370
|
-
```bash
|
|
371
|
-
ma setup
|
|
372
|
-
ma idea "Build a collaborative whiteboard with live cursors and shared boards"
|
|
43
|
+
ma idea "Build a real-time collaborative whiteboard"
|
|
373
44
|
ma run '$arch'
|
|
374
45
|
ma run '$sage'
|
|
375
46
|
ma run '$flow'
|
|
376
47
|
ma run '$vet'
|
|
377
48
|
ma run '$vibe'
|
|
378
|
-
ma status
|
|
379
49
|
ma run '$build'
|
|
50
|
+
ma doctor
|
|
51
|
+
ma setup
|
|
380
52
|
```
|
|
381
53
|
|
|
382
|
-
|
|
54
|
+
`ma setup` repairs or seeds repo-local support files such as:
|
|
55
|
+
- `AGENTS.md`
|
|
56
|
+
- `.codex/`
|
|
57
|
+
- `.omx/`
|
|
58
|
+
- `mcp/`
|
|
59
|
+
- `templates/`
|
|
383
60
|
|
|
384
|
-
|
|
385
|
-
- `$arch` records a structured first-pass blueprint
|
|
386
|
-
- `$sage` binds major choices to configured GitMCP-backed sources
|
|
387
|
-
- `$flow` records the kernel’s baseline state review for the mission
|
|
388
|
-
- `$vet` records a baseline security review
|
|
389
|
-
- `$vibe` records baseline DX/UX guidance
|
|
390
|
-
- `$build` suggests bounded concerns like `feature/ui` and `feature/api`
|
|
61
|
+
That path is secondary. The main experience remains the Codex session launched with `ma --madmax --high`.
|
|
391
62
|
|
|
392
|
-
|
|
393
|
-
- [missions/collaborative-whiteboard/mission.md](../missions/collaborative-whiteboard/mission.md)
|
|
63
|
+
## MCP / GitMCP
|
|
394
64
|
|
|
395
|
-
|
|
65
|
+
Meta-Architect expects approved GitMCP endpoints for evidence-heavy lanes such as `$sage`.
|
|
396
66
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
ma release development prod
|
|
402
|
-
```
|
|
403
|
-
|
|
404
|
-
Expected effects:
|
|
405
|
-
- merge only succeeds for `feature/* -> development`
|
|
406
|
-
- release only succeeds for `development|release/* -> prod`
|
|
407
|
-
- final statuses advance to:
|
|
408
|
-
- `build_status = DONE`
|
|
409
|
-
- `merge_status = MERGED_TO_DEVELOPMENT`
|
|
410
|
-
- `release_status = SHIPPED_TO_PROD`
|
|
411
|
-
|
|
412
|
-
## 10. Files generated or updated during a normal run
|
|
413
|
-
|
|
414
|
-
- `.ma/decisions.json`
|
|
415
|
-
- `.ma/release.json`
|
|
416
|
-
- `.ma/evidence/sources.json`
|
|
417
|
-
- `.ma/evidence/audits.json`
|
|
418
|
-
- `.ma/evidence/cves.json`
|
|
419
|
-
- `.ma/evidence/outcomes.json`
|
|
420
|
-
- `.ma/context/project.md`
|
|
421
|
-
- `.ma/specs/architecture.md`
|
|
422
|
-
- `.ma/specs/evidence.md`
|
|
423
|
-
- `.ma/specs/logic.md`
|
|
424
|
-
- `.ma/specs/security.md`
|
|
425
|
-
- `.ma/specs/experience.md`
|
|
426
|
-
- `.ma/plans/implementation.md`
|
|
427
|
-
- `.ma/plans/build.md`
|
|
428
|
-
- `.ma/runbook.md`
|
|
67
|
+
Edit:
|
|
68
|
+
- `mcp/servers.json`
|
|
69
|
+
- `mcp/collections.json`
|
|
70
|
+
- `mcp/fallback.json`
|
|
429
71
|
|
|
430
|
-
|
|
72
|
+
See [docs/mcp-setup.md](./mcp-setup.md) for exact-endpoint policy and fallback rules.
|
|
431
73
|
|
|
432
|
-
##
|
|
74
|
+
## Release-aware usage
|
|
433
75
|
|
|
434
|
-
|
|
435
|
-
- do not edit statuses manually
|
|
436
|
-
- rerun the correct upstream command
|
|
437
|
-
- use `ma status` as the authority
|
|
76
|
+
`$build` is locked until all upstream review gates are green or explicitly waived by policy.
|
|
438
77
|
|
|
439
|
-
|
|
440
|
-
- `
|
|
441
|
-
-
|
|
442
|
-
-
|
|
443
|
-
- `experience_status = RED` -> rerun `$vibe` after clearing prerequisites
|
|
444
|
-
- `experience_status = WAIVED` -> verify the waiver reason recorded in `.ma/release.json`
|
|
78
|
+
Before claiming a release is ready, make sure:
|
|
79
|
+
- `npm run release:check` passes
|
|
80
|
+
- [docs/release-spec.md](./release-spec.md) still matches behavior
|
|
81
|
+
- [docs/qa/release-readiness-0.1.5.md](./qa/release-readiness-0.1.5.md) matches the actual release line
|
|
445
82
|
|
|
446
83
|
## Related docs
|
|
447
84
|
|
|
448
|
-
- [README.md](../README.md)
|
|
449
85
|
- [Skills Reference](./skills.md)
|
|
450
86
|
- [MCP Setup](./mcp-setup.md)
|
|
451
87
|
- [Release Spec](./release-spec.md)
|
|
452
|
-
- [Skills Publishing](./skills-publishing.md)
|
|
453
88
|
- [Plugin Bundle](../plugins/meta-architect/README.md)
|
package/docs/mcp-setup.md
CHANGED
|
@@ -1,5 +1,136 @@
|
|
|
1
1
|
# MCP / GitMCP Setup
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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)
|
package/docs/onboarding.md
CHANGED
|
@@ -1,65 +1,35 @@
|
|
|
1
1
|
# Onboarding
|
|
2
2
|
|
|
3
|
-
This is the
|
|
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.
|
|
4
5
|
|
|
5
|
-
##
|
|
6
|
+
## First reading order
|
|
6
7
|
|
|
7
8
|
1. `README.md`
|
|
8
9
|
2. `docs/getting-started.md`
|
|
9
|
-
3. `
|
|
10
|
-
4. `docs/
|
|
10
|
+
3. `docs/release-spec.md`
|
|
11
|
+
4. `docs/skills.md`
|
|
11
12
|
5. `docs/skills-publishing.md`
|
|
12
13
|
|
|
13
|
-
##
|
|
14
|
+
## First commands
|
|
14
15
|
|
|
15
16
|
```bash
|
|
16
|
-
|
|
17
|
-
npm i -g @openai/codex@latest @jstn-sdk/ma@latest
|
|
18
|
-
|
|
19
|
-
# Start Codex context if needed
|
|
17
|
+
npm i -g @openai/codex @jstn-sdk/ma
|
|
20
18
|
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]
|
|
35
19
|
```
|
|
36
20
|
|
|
37
|
-
|
|
21
|
+
Inside Codex, use the runtime tags directly:
|
|
22
|
+
- `$arch`
|
|
38
23
|
- `$sage`
|
|
39
24
|
- `$flow`
|
|
40
25
|
- `$vet`
|
|
41
26
|
- `$vibe`
|
|
42
27
|
- `$build`
|
|
43
28
|
|
|
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
|
-
|
|
60
29
|
## First safety rules
|
|
61
30
|
|
|
62
|
-
- Do not commit runtime `.
|
|
31
|
+
- Do not commit runtime `.omx` state.
|
|
63
32
|
- Do not bypass gates by editing status files manually.
|
|
64
33
|
- Do not assume a release channel succeeded without evidence.
|
|
65
34
|
- Do not treat fallback MCP docs mode as normal verified evidence.
|
|
35
|
+
- Do not present `ma setup` as the main daily workflow.
|