@jstn-sdk/ma 0.1.1 → 0.1.3

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 (38) hide show
  1. package/README.md +7 -5
  2. package/bin/ma.js +12 -0
  3. package/docs/README.md +2 -1
  4. package/docs/getting-started.md +4 -1
  5. package/docs/installed-sdk.md +60 -0
  6. package/docs/qa/{release-readiness-0.1.1.md → release-readiness-0.1.3.md} +8 -8
  7. package/docs/release-spec.md +7 -7
  8. package/docs/skills.md +28 -0
  9. package/package.json +3 -1
  10. package/plugins/meta-architect/.app.json +1 -1
  11. package/plugins/meta-architect/.codex-plugin/plugin.json +1 -1
  12. package/plugins/meta-architect/.mcp.json +1 -1
  13. package/plugins/meta-architect/README.md +1 -1
  14. package/plugins/meta-architect/skills/arch/agents/openai.yaml +2 -2
  15. package/plugins/meta-architect/skills/build/agents/openai.yaml +2 -2
  16. package/plugins/meta-architect/skills/flow/agents/openai.yaml +2 -2
  17. package/plugins/meta-architect/skills/meta-architect/agents/openai.yaml +2 -2
  18. package/plugins/meta-architect/skills/sage/agents/openai.yaml +2 -2
  19. package/plugins/meta-architect/skills/vet/agents/openai.yaml +2 -2
  20. package/plugins/meta-architect/skills/vibe/agents/openai.yaml +2 -2
  21. package/scripts/postinstall.js +7 -3
  22. package/scripts/release-sync.js +348 -0
  23. package/skills/arch/agents/openai.yaml +2 -2
  24. package/skills/build/agents/openai.yaml +2 -2
  25. package/skills/flow/agents/openai.yaml +2 -2
  26. package/skills/meta-architect/agents/openai.yaml +2 -2
  27. package/skills/sage/agents/openai.yaml +2 -2
  28. package/skills/vet/agents/openai.yaml +2 -2
  29. package/skills/vibe/agents/openai.yaml +2 -2
  30. package/src/launcher.js +1 -0
  31. package/src/mcp-live-client.js +1 -1
  32. package/src/skill-installer.js +151 -2
  33. package/src/skills.js +2 -2
  34. package/templates/AGENTS.md +130 -0
  35. package/templates/catalog-manifest.json +22 -0
  36. package/templates/model-instructions/core.md +39 -0
  37. package/templates/model-instructions/release.md +41 -0
  38. package/templates/model-instructions/security.md +22 -0
@@ -0,0 +1,130 @@
1
+ # Meta-Architect Operating Contract
2
+
3
+ This repository uses Meta-Architect as a structured orchestration layer for programmatic architecture and verified engineering. The purpose of this contract is to make repository behavior explicit, reviewable, and stable enough to be reused across generated or installed surfaces.
4
+
5
+ ## Core triggers
6
+
7
+ The primary trigger surfaces are:
8
+
9
+ - `$arch` — architecture and stack blueprinting
10
+ - `$sage` — evidence-backed OSS discovery through MCP/GitMCP collections
11
+ - `$flow` — business logic and state-transition review
12
+ - `$vet` — security and risk review
13
+ - `$vibe` — DX/UX review
14
+ - `$build` — bounded implementation planning and build execution handoff
15
+
16
+ ## Core rule
17
+
18
+ No implementation should proceed as if it were approved unless the required architecture, evidence, logic, and security gates are satisfied.
19
+
20
+ ## Kernel vs extension model
21
+
22
+ Meta-Architect should be treated as a core system plus extension surfaces:
23
+
24
+ - **Core system**
25
+ - state and decision files
26
+ - gate enforcement
27
+ - MCP endpoint policy
28
+ - CLI orchestration commands
29
+ - **Extension surfaces**
30
+ - publishable skill folders
31
+ - plugin bundle
32
+ - missions and demos
33
+ - prompts and templates
34
+
35
+ The core must stay stable and inspectable. Extensions may vary, but they must not weaken the kernel contract.
36
+
37
+ ## Gate rules
38
+
39
+ The repository recognizes the following status fields:
40
+
41
+ - `idea_status`
42
+ - `architecture_status`
43
+ - `evidence_status`
44
+ - `logic_status`
45
+ - `security_status`
46
+ - `experience_status`
47
+ - `build_status`
48
+ - `merge_status`
49
+ - `release_status`
50
+
51
+ ### Build lock rule
52
+
53
+ `$build` must remain locked unless all of the following are true:
54
+
55
+ - `idea_status = CLEAR`
56
+ - `architecture_status = APPROVED`
57
+ - `evidence_status = VERIFIED`
58
+ - `logic_status = GREEN`
59
+ - `security_status = GREEN`
60
+ - `experience_status = GREEN` or `WAIVED`
61
+
62
+ If any required field is missing, red, or unverified, the workflow should stop and report blockers clearly.
63
+
64
+ ### Merge and release rule
65
+
66
+ - `feature/*` work merges into `development`
67
+ - release promotion is allowed only from `development` or approved `release/*`
68
+ - no direct `feature/* -> prod`
69
+
70
+ ## Evidence rule
71
+
72
+ Major technology recommendations must be supported by evidence from configured MCP/GitMCP sources. Do not invent fake repositories, fake endpoints, or unsupported claims.
73
+
74
+ ### Exact endpoint rule
75
+
76
+ - Prefer repo-specific `https://gitmcp.io/{owner}/{repo}` endpoints
77
+ - Treat `https://gitmcp.io/docs` as fallback policy only, not a normal approved evidence source for build-unlocking decisions
78
+
79
+ ## Logging rule
80
+
81
+ Architecture decisions, evidence, audits, and release-relevant outcomes should be written to repository-visible local files where applicable, especially:
82
+
83
+ - `.ma/decisions.json`
84
+ - `.ma/release.json`
85
+ - `.ma/evidence/sources.json`
86
+ - `.ma/evidence/audits.json`
87
+ - `.ma/evidence/cves.json`
88
+
89
+ ## Skill routing
90
+
91
+ Use the role that best matches the task:
92
+
93
+ - Use `$arch` for system shape, stack options, component boundaries, trade-offs, and blueprinting.
94
+ - Use `$sage` for evidence-backed package, framework, and library selection.
95
+ - Use `$flow` for workflow correctness, state transitions, data flow, and edge-case review.
96
+ - Use `$vet` for security checks, dependency risk review, and release-sensitive blocking findings.
97
+ - Use `$vibe` for developer experience and user experience review.
98
+ - Use `$build` only after required gates are satisfied and only for bounded implementation planning or execution.
99
+
100
+ ## Prompt behavior
101
+
102
+ When working in this repository:
103
+
104
+ - prefer explicit reasoning and explicit file changes
105
+ - do not skip validation steps silently
106
+ - do not weaken hooks or gates for convenience
107
+ - do not commit runtime `.ma` state
108
+ - do not treat release-sensitive changes as trivial edits
109
+
110
+ ## Contributor expectation
111
+
112
+ Changes to skills, prompts, package metadata, workflows, release docs, or plugin surfaces are release-sensitive. These changes should be tested, documented, and described clearly in pull requests.
113
+
114
+ ## Release expectation
115
+
116
+ Production release means:
117
+
118
+ - the core trigger flow works end-to-end
119
+ - release artifacts are validated
120
+ - skills packaging and installation succeed
121
+ - docs reflect actual behavior
122
+ - no hidden runtime residue is shipped as source
123
+
124
+ ## Related surfaces
125
+
126
+ - `CONTRIBUTING.md`
127
+ - `docs/release-spec.md`
128
+ - `templates/catalog-manifest.json`
129
+ - `prompts/`
130
+ - `skills/`
@@ -0,0 +1,22 @@
1
+ {
2
+ "version": 1,
3
+ "skills": [
4
+ "meta-architect",
5
+ "meta-architect-arch",
6
+ "meta-architect-sage",
7
+ "meta-architect-flow",
8
+ "meta-architect-vet",
9
+ "meta-architect-vibe",
10
+ "meta-architect-build"
11
+ ],
12
+ "prompts": [
13
+ "architect",
14
+ "sage",
15
+ "flow",
16
+ "security-reviewer",
17
+ "vibe",
18
+ "builder",
19
+ "release-manager",
20
+ "verifier"
21
+ ]
22
+ }
@@ -0,0 +1,39 @@
1
+ # Core Model Instructions
2
+
3
+ Use these instructions when generating or applying repository content to the Meta-Architect core system.
4
+
5
+ ## Core expectations
6
+
7
+ - Keep Meta-Architect skills, gates, evidence, and release behavior explicit.
8
+ - Prefer inspectable files over hidden side effects.
9
+ - Do not bypass the `.ma` gate model.
10
+ - Treat CLI, skill contracts, plugin surfaces, and docs as one coherent product system.
11
+
12
+ ## Kernel rule
13
+
14
+ The kernel contains the minimum stable logic that makes the system trustworthy:
15
+ - status files
16
+ - decision logging
17
+ - evidence capture
18
+ - build/merge/release policy
19
+ - packaging and validation commands
20
+
21
+ Do not treat those as negotiable convenience features.
22
+
23
+ ## Documentation rule
24
+
25
+ When writing docs:
26
+ - describe what the runtime actually does today
27
+ - distinguish baseline first-pass review from deep autonomous analysis when necessary
28
+ - show exact commands and expected outcomes
29
+ - cross-link related surfaces
30
+
31
+ ## Change rule
32
+
33
+ Any change that weakens:
34
+ - inspectability
35
+ - evidence traceability
36
+ - gate enforcement
37
+ - or packaging determinism
38
+
39
+ should be treated as a regression.
@@ -0,0 +1,41 @@
1
+ # Release Model Instructions
2
+
3
+ These instructions apply when generating or reviewing release-facing artifacts.
4
+
5
+ ## Release posture
6
+
7
+ Fail closed on:
8
+ - missing release artifacts
9
+ - failing checks
10
+ - blocked channels
11
+ - ambiguous publish claims
12
+
13
+ ## Versioning rule
14
+
15
+ Preserve stable public contracts for the active release line unless a major version is intentionally planned.
16
+
17
+ ## Publication rule
18
+
19
+ Never claim a publication channel succeeded without concrete evidence.
20
+
21
+ This includes:
22
+ - git branch push
23
+ - tag push
24
+ - GitHub release creation
25
+ - GitHub asset upload
26
+ - npm publish
27
+ - plugin or marketplace publish
28
+
29
+ ## Release artifact minimum
30
+
31
+ Release-facing changes should stay aligned across:
32
+ - `package.json`
33
+ - `CHANGELOG.md`
34
+ - `RELEASE.md`
35
+ - `docs/qa/`
36
+ - `skills/index.json`
37
+ - tarball outputs
38
+
39
+ ## Hygiene rule
40
+
41
+ Do not ship local runtime state, caches, or accidental build outputs as public source.
@@ -0,0 +1,22 @@
1
+ # Security Model Instructions
2
+
3
+ These instructions apply to any surface that influences security claims, gate behavior, or dependency trust.
4
+
5
+ ## Core security rules
6
+
7
+ - Treat unresolved high-risk findings as release blockers.
8
+ - Never invent evidence or pretend a dependency is verified without a real source.
9
+ - Prefer safer alternatives and explicit blockers over optimistic assumptions.
10
+
11
+ ## Evidence integrity
12
+
13
+ - Exact approved sources are stronger than fallback sources.
14
+ - Fallback policy should not silently unlock builds.
15
+ - Security review output must remain inspectable in committed product artifacts or generated local evidence files.
16
+
17
+ ## Communication rule
18
+
19
+ When documenting security behavior:
20
+ - be explicit about what is baseline review versus deep review
21
+ - avoid “safe by default” claims unless the code and workflow actually enforce them
22
+ - explain blocked paths, not just happy paths