@jstn-sdk/ma 0.1.11 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/.codex/agents/Architect.toml +0 -2
  2. package/.codex/agents/Auditor.toml +0 -2
  3. package/.codex/agents/Builder.toml +0 -2
  4. package/.codex/agents/Flow.toml +0 -2
  5. package/.codex/agents/Sage.toml +0 -2
  6. package/.codex/agents/Vibe.toml +0 -2
  7. package/.codex/hooks.json +14 -13
  8. package/.codex/prompts/enforcement.md +4 -0
  9. package/.codex/prompts/skill-contract.md +4 -0
  10. package/COVERAGE.md +211 -0
  11. package/DEMO.md +265 -0
  12. package/README.md +287 -37
  13. package/bin/ma.js +232 -71
  14. package/data/clone-data.ledger.json +41 -0
  15. package/data/clone-data.proof.json +50 -0
  16. package/data/clone-data.rvf +37 -0
  17. package/docs/README.md +7 -1
  18. package/docs/getting-started.md +108 -37
  19. package/docs/installed-sdk.md +23 -0
  20. package/docs/mcp-setup.md +65 -1
  21. package/docs/onboarding.md +18 -2
  22. package/docs/prompt-guidance-contract.md +17 -0
  23. package/docs/prompt-guidance-fragments/active-autonomy-core.md +7 -0
  24. package/docs/qa/release-issue-gates-0.1.13.json +644 -0
  25. package/docs/qa/release-readiness-0.1.13.md +116 -0
  26. package/docs/qa/release-readiness-0.1.5.md +1 -1
  27. package/docs/reference/native-engineering-patterns.md +35 -0
  28. package/docs/reference/native-security-playbooks.md +27 -0
  29. package/docs/reference/native-source-selection.md +27 -0
  30. package/docs/reference/native-style-and-deslop.md +20 -0
  31. package/docs/release-spec.md +37 -10
  32. package/docs/skills-publishing.md +25 -1
  33. package/docs/skills.md +37 -12
  34. package/index.js +222 -2
  35. package/mcp/collections.json +23 -6
  36. package/mcp/local/code-intel.js +113 -0
  37. package/mcp/local/memory.js +46 -0
  38. package/mcp/local/playbooks.js +168 -0
  39. package/mcp/local/state.js +71 -0
  40. package/mcp/local/team-run.js +113 -0
  41. package/mcp/local/trace.js +60 -0
  42. package/mcp/local-capabilities.json +56 -0
  43. package/mcp/native-playbooks.json +117 -0
  44. package/mcp/servers.json +34 -0
  45. package/package.json +8 -2
  46. package/plugins/meta-architect/.app.json +1 -1
  47. package/plugins/meta-architect/.codex-plugin/plugin.json +4 -4
  48. package/plugins/meta-architect/.mcp.json +1 -1
  49. package/plugins/meta-architect/README.md +34 -1
  50. package/plugins/meta-architect/obsidian/main.js +401 -0
  51. package/plugins/meta-architect/obsidian/manifest.json +9 -0
  52. package/plugins/meta-architect/obsidian/styles.css +7 -0
  53. package/plugins/meta-architect/skills/align/SKILL.md +24 -0
  54. package/plugins/meta-architect/skills/align/agents/openai.yaml +4 -0
  55. package/plugins/meta-architect/skills/align/references/shared-language.md +24 -0
  56. package/plugins/meta-architect/skills/arch/SKILL.md +2 -0
  57. package/plugins/meta-architect/skills/build/SKILL.md +3 -0
  58. package/plugins/meta-architect/skills/cleanup/SKILL.md +23 -0
  59. package/plugins/meta-architect/skills/cleanup/agents/openai.yaml +4 -0
  60. package/plugins/meta-architect/skills/cleanup/references/style-and-deslop.md +18 -0
  61. package/plugins/meta-architect/skills/diagnose/SKILL.md +24 -0
  62. package/plugins/meta-architect/skills/diagnose/agents/openai.yaml +4 -0
  63. package/plugins/meta-architect/skills/flow/SKILL.md +2 -0
  64. package/plugins/meta-architect/skills/maestro/SKILL.md +36 -3
  65. package/plugins/meta-architect/skills/maestro/agents/openai.yaml +2 -2
  66. package/plugins/meta-architect/skills/maestro/references/native-ingest-map.md +44 -0
  67. package/plugins/meta-architect/skills/sage/SKILL.md +5 -1
  68. package/plugins/meta-architect/skills/sage/references/source-selection.md +36 -0
  69. package/plugins/meta-architect/skills/tdd/SKILL.md +24 -0
  70. package/plugins/meta-architect/skills/tdd/agents/openai.yaml +4 -0
  71. package/plugins/meta-architect/skills/vet/SKILL.md +5 -1
  72. package/plugins/meta-architect/skills/vet/references/security-playbooks.md +30 -0
  73. package/plugins/meta-architect/skills/vibe/SKILL.md +2 -0
  74. package/scripts/active-autonomy-hook.mjs +96 -0
  75. package/scripts/build-linux-packages.mjs +328 -0
  76. package/scripts/doctor.js +36 -4
  77. package/scripts/install.sh +28 -0
  78. package/scripts/linux-package-lib.mjs +40 -0
  79. package/scripts/linux-package-smoke.mjs +103 -0
  80. package/scripts/ralph/prompt.md +35 -0
  81. package/scripts/release-sync.js +13 -6
  82. package/scripts/release-verify.js +166 -1
  83. package/skills/align/SKILL.md +24 -0
  84. package/skills/align/agents/openai.yaml +4 -0
  85. package/skills/align/references/shared-language.md +24 -0
  86. package/skills/arch/SKILL.md +2 -0
  87. package/skills/build/SKILL.md +3 -0
  88. package/skills/cleanup/SKILL.md +23 -0
  89. package/skills/cleanup/agents/openai.yaml +4 -0
  90. package/skills/cleanup/references/style-and-deslop.md +18 -0
  91. package/skills/diagnose/SKILL.md +24 -0
  92. package/skills/diagnose/agents/openai.yaml +4 -0
  93. package/skills/flow/SKILL.md +2 -0
  94. package/skills/index.json +21 -6
  95. package/skills/maestro/SKILL.md +36 -3
  96. package/skills/maestro/agents/openai.yaml +2 -2
  97. package/skills/maestro/references/native-ingest-map.md +44 -0
  98. package/skills/sage/SKILL.md +5 -1
  99. package/skills/sage/references/source-selection.md +36 -0
  100. package/skills/tdd/SKILL.md +24 -0
  101. package/skills/tdd/agents/openai.yaml +4 -0
  102. package/skills/vet/SKILL.md +5 -1
  103. package/skills/vet/references/security-playbooks.md +30 -0
  104. package/skills/vibe/SKILL.md +2 -0
  105. package/src/bootstrap.js +141 -24
  106. package/src/build-gate.js +2 -2
  107. package/src/decision-log.js +12 -9
  108. package/src/launcher.js +4 -0
  109. package/src/mcp-config.js +130 -8
  110. package/src/mcp-live-client.js +289 -3
  111. package/src/paths.js +37 -1
  112. package/src/policy.js +1 -1
  113. package/src/release-issue-gates.js +190 -0
  114. package/src/release-state.js +30 -1
  115. package/src/runtime/active-autonomy-core.js +208 -0
  116. package/src/runtime/alignment-sentinel.js +165 -0
  117. package/src/runtime/architect-review.js +88 -0
  118. package/src/runtime/build-readiness.js +62 -0
  119. package/src/runtime/code-graph-rehearse.js +113 -0
  120. package/src/runtime/context-economy-core.js +276 -0
  121. package/src/runtime/continuity-notes.js +79 -0
  122. package/src/runtime/core-source-ingest.js +379 -0
  123. package/src/runtime/detached-provider.js +74 -0
  124. package/src/runtime/environment-awareness-core.js +460 -0
  125. package/src/runtime/exposure-catalog.js +276 -0
  126. package/src/runtime/guidance-stack.js +42 -0
  127. package/src/runtime/helper-orchestration-core.js +307 -0
  128. package/src/runtime/learning-loop-core.js +238 -0
  129. package/src/runtime/maestro-events.js +18 -0
  130. package/src/runtime/maestro-manager.js +605 -0
  131. package/src/runtime/maestro-state.js +125 -0
  132. package/src/runtime/mcp-policy.js +192 -0
  133. package/src/runtime/obsidian-integration-core.js +851 -0
  134. package/src/runtime/obsidian-plugin-bridge.js +739 -0
  135. package/src/runtime/orchestrator.js +158 -0
  136. package/src/runtime/prompt-strategy-core.js +230 -0
  137. package/src/runtime/quorum-review.js +90 -0
  138. package/src/runtime/ralph-execution-core.js +217 -0
  139. package/src/runtime/redaction-gateway.js +174 -0
  140. package/src/runtime/runtime-state.js +1223 -0
  141. package/src/runtime/semantic-recording-core.js +147 -0
  142. package/src/runtime/signal-hooks.js +67 -0
  143. package/src/runtime/skills-registry-export.js +670 -0
  144. package/src/runtime/startup-path.js +14 -0
  145. package/src/runtime/universal-plugin-broker-core.js +575 -0
  146. package/src/runtime/workspace-intelligence-runtime.js +674 -0
  147. package/src/runtime/workspace-virtualizer.js +102 -0
  148. package/src/runtime/workspaces.js +25 -0
  149. package/src/runtime-artifacts.js +407 -84
  150. package/src/skill-installer.js +53 -5
  151. package/src/skills.js +1454 -78
  152. package/src/state-sync.js +51 -8
  153. package/docs/qa/release-readiness-0.1.11.md +0 -79
  154. package/plugins/meta-architect/skills/meta-architect/SKILL.md +0 -32
  155. package/plugins/meta-architect/skills/meta-architect/agents/openai.yaml +0 -4
  156. package/skills/meta-architect/SKILL.md +0 -32
  157. package/skills/meta-architect/agents/openai.yaml +0 -4
  158. /package/plugins/meta-architect/skills/{meta-architect → maestro}/references/core-release-rules.md +0 -0
  159. /package/skills/{meta-architect → maestro}/references/core-release-rules.md +0 -0
@@ -0,0 +1,102 @@
1
+ import { ensureDir, readJson, writeFileIfMissing } from "../fs-utils.js";
2
+ import { getRepoRoot, getRuntimeSubsystemPath } from "../paths.js";
3
+
4
+ export const workspaceVirtualizerSchemaVersion = "0.1.0";
5
+
6
+ export function getWorkspaceVirtualizerPath() {
7
+ return getRuntimeSubsystemPath("context", "workspace-virtualizer.json");
8
+ }
9
+
10
+ export function createDefaultWorkspaceVirtualizer() {
11
+ return {
12
+ schemaVersion: workspaceVirtualizerSchemaVersion,
13
+ product: "Meta-Architect",
14
+ purpose:
15
+ "Defines bounded synthetic workspace verification without replacing real source or production release evidence.",
16
+ evidence_boundary: {
17
+ records_as: "virtual_workspace_result",
18
+ never_records_as: "production_evidence",
19
+ production_promotion_requires: ["real_workspace_test", "release_issue_gate_proof"],
20
+ },
21
+ mutation_policy: {
22
+ default: "read_only",
23
+ may_mutate_source: false,
24
+ may_mutate_release_state: false,
25
+ },
26
+ applies_to: ["$build", "executor_roles", "verifier_roles"],
27
+ };
28
+ }
29
+
30
+ export function validateWorkspaceVirtualizer(value) {
31
+ if (!value || typeof value !== "object" || Array.isArray(value)) {
32
+ throw new Error("workspace virtualizer must be an object");
33
+ }
34
+ if (value.schemaVersion !== workspaceVirtualizerSchemaVersion) {
35
+ throw new Error(`Unsupported workspace virtualizer schemaVersion: ${value.schemaVersion}`);
36
+ }
37
+ if (value.evidence_boundary?.records_as !== "virtual_workspace_result") {
38
+ throw new Error("workspace virtualizer must record as virtual_workspace_result");
39
+ }
40
+ if (value.evidence_boundary?.never_records_as !== "production_evidence") {
41
+ throw new Error("workspace virtualizer must not record as production_evidence");
42
+ }
43
+ if (value.mutation_policy?.may_mutate_source !== false) {
44
+ throw new Error("workspace virtualizer must not mutate source by default");
45
+ }
46
+ return value;
47
+ }
48
+
49
+ export async function seedWorkspaceVirtualizerArtifacts() {
50
+ await ensureDir(getRuntimeSubsystemPath("context"));
51
+ await writeFileIfMissing(
52
+ getWorkspaceVirtualizerPath(),
53
+ `${JSON.stringify(createDefaultWorkspaceVirtualizer(), null, 2)}\n`,
54
+ );
55
+ }
56
+
57
+ export async function loadWorkspaceVirtualizer() {
58
+ return validateWorkspaceVirtualizer(await readJson(getWorkspaceVirtualizerPath()));
59
+ }
60
+
61
+ export function createVirtualWorkspacePlan({
62
+ commands = [],
63
+ touchpoints = [],
64
+ root = getRepoRoot(),
65
+ }) {
66
+ return {
67
+ record_type: "virtual_workspace_result",
68
+ root,
69
+ source_mutation_allowed: false,
70
+ production_evidence: false,
71
+ commands: commands.filter((command) => typeof command === "string" && command.trim()),
72
+ touchpoints: touchpoints.filter((filePath) => typeof filePath === "string" && filePath.trim()),
73
+ required_followup:
74
+ "Run the equivalent checks against the real workspace before production pass.",
75
+ };
76
+ }
77
+
78
+ export function createVirtualVerificationReceipt({ plan, commandResults = [] }) {
79
+ if (plan?.record_type !== "virtual_workspace_result") {
80
+ throw new Error("Virtual verification receipt requires a virtual workspace plan");
81
+ }
82
+
83
+ const normalizedResults = commandResults.map((result) => ({
84
+ command: `${result.command ?? ""}`.trim(),
85
+ exitCode: Number.isInteger(result.exitCode) ? result.exitCode : null,
86
+ outputPreview: `${result.outputPreview ?? ""}`.slice(0, 500),
87
+ }));
88
+ const passed =
89
+ normalizedResults.length > 0 &&
90
+ normalizedResults.every((result) => result.command && result.exitCode === 0);
91
+
92
+ return {
93
+ record_type: "virtual_verification_receipt",
94
+ records_as: "virtual_workspace_result",
95
+ passed,
96
+ production_evidence: false,
97
+ source_mutation_allowed: false,
98
+ commands: normalizedResults,
99
+ touchpoints: plan.touchpoints,
100
+ required_followup: plan.required_followup,
101
+ };
102
+ }
@@ -0,0 +1,25 @@
1
+ import { ensureDir, writeFileIfMissing } from "../fs-utils.js";
2
+ import { getRuntimeSubsystemPath } from "../paths.js";
3
+
4
+ export function getWorkspacesRoot() {
5
+ return getRuntimeSubsystemPath("workspaces");
6
+ }
7
+
8
+ export function getWorkspacesIndexPath() {
9
+ return getRuntimeSubsystemPath("workspaces", "index.json");
10
+ }
11
+
12
+ export async function seedWorkspaceArtifacts() {
13
+ await ensureDir(getWorkspacesRoot());
14
+ await writeFileIfMissing(
15
+ getWorkspacesIndexPath(),
16
+ `${JSON.stringify(
17
+ {
18
+ schemaVersion: "0.1.0",
19
+ items: [],
20
+ },
21
+ null,
22
+ 2,
23
+ )}\n`,
24
+ );
25
+ }