@jstn-sdk/ma 0.1.12 → 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.
- package/.agents/plugins/marketplace.json +0 -0
- package/.codex/agents/Architect.toml +0 -2
- package/.codex/agents/Auditor.toml +0 -2
- package/.codex/agents/Builder.toml +0 -2
- package/.codex/agents/Flow.toml +0 -2
- package/.codex/agents/Sage.toml +0 -2
- package/.codex/agents/Vibe.toml +0 -2
- package/.codex/hooks.json +14 -13
- package/.codex/prompts/enforcement.md +4 -0
- package/.codex/prompts/skill-contract.md +4 -0
- package/COVERAGE.md +211 -0
- package/DEMO.md +265 -0
- package/README.md +159 -16
- package/bin/ma.js +219 -14
- package/data/clone-data.ledger.json +41 -0
- package/data/clone-data.proof.json +50 -0
- package/data/clone-data.rvf +37 -0
- package/docs/README.md +4 -1
- package/docs/assets/image/Screenshot(1).png +0 -0
- package/docs/assets/image/Screenshot(2).png +0 -0
- package/docs/assets/image/Screenshot(3).png +0 -0
- package/docs/assets/image/Screenshot(4).png +0 -0
- package/docs/assets/image/Screenshot(5).png +0 -0
- package/docs/assets/image/Screenshot(6).png +0 -0
- package/docs/assets/image/Screenshot(7).png +0 -0
- package/docs/assets/image/Screenshot(8).png +0 -0
- package/docs/assets/image/Screenshot(9).png +0 -0
- package/docs/assets/meta-architect-logo.png +0 -0
- package/docs/assets/meta-architect-logo.svg +0 -0
- package/docs/getting-started.md +38 -22
- package/docs/installed-sdk.md +0 -0
- package/docs/mcp-setup.md +35 -0
- package/docs/onboarding.md +18 -2
- package/docs/prompt-guidance-contract.md +17 -0
- package/docs/prompt-guidance-fragments/active-autonomy-core.md +7 -0
- package/docs/qa/release-issue-gates-0.1.13.json +644 -0
- package/docs/qa/{release-readiness-0.1.12.md → release-readiness-0.1.13.md} +25 -9
- package/docs/qa/release-readiness-0.1.5.md +1 -1
- package/docs/reference/native-engineering-patterns.md +0 -0
- package/docs/reference/native-security-playbooks.md +6 -0
- package/docs/reference/native-source-selection.md +6 -0
- package/docs/reference/native-style-and-deslop.md +0 -0
- package/docs/release-spec.md +25 -9
- package/docs/skills.md +14 -1
- package/index.js +222 -2
- package/mcp/collections.json +23 -6
- package/mcp/local/code-intel.js +0 -0
- package/mcp/local/memory.js +0 -0
- package/mcp/local/playbooks.js +0 -0
- package/mcp/local/state.js +0 -0
- package/mcp/local/team-run.js +48 -1
- package/mcp/local/trace.js +0 -0
- package/mcp/local-capabilities.json +0 -0
- package/mcp/native-playbooks.json +0 -0
- package/mcp/servers.json +24 -0
- package/package.json +5 -2
- package/plugins/meta-architect/.app.json +1 -1
- package/plugins/meta-architect/.codex-plugin/plugin.json +1 -1
- package/plugins/meta-architect/.mcp.json +1 -1
- package/plugins/meta-architect/README.md +8 -1
- package/plugins/meta-architect/obsidian/main.js +401 -0
- package/plugins/meta-architect/obsidian/manifest.json +9 -0
- package/plugins/meta-architect/obsidian/styles.css +7 -0
- package/plugins/meta-architect/skills/align/SKILL.md +0 -0
- package/plugins/meta-architect/skills/align/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/align/references/shared-language.md +0 -0
- package/plugins/meta-architect/skills/arch/SKILL.md +2 -0
- package/plugins/meta-architect/skills/arch/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/build/SKILL.md +3 -0
- package/plugins/meta-architect/skills/build/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/cleanup/SKILL.md +0 -0
- package/plugins/meta-architect/skills/cleanup/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/cleanup/references/style-and-deslop.md +0 -0
- package/plugins/meta-architect/skills/diagnose/SKILL.md +0 -0
- package/plugins/meta-architect/skills/diagnose/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/flow/SKILL.md +2 -0
- package/plugins/meta-architect/skills/flow/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/maestro/SKILL.md +0 -0
- package/plugins/meta-architect/skills/maestro/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/maestro/references/core-release-rules.md +0 -0
- package/plugins/meta-architect/skills/maestro/references/native-ingest-map.md +0 -0
- package/plugins/meta-architect/skills/sage/SKILL.md +2 -0
- package/plugins/meta-architect/skills/sage/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/sage/references/source-selection.md +8 -0
- package/plugins/meta-architect/skills/tdd/SKILL.md +0 -0
- package/plugins/meta-architect/skills/tdd/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/vet/SKILL.md +2 -0
- package/plugins/meta-architect/skills/vet/agents/openai.yaml +0 -0
- package/plugins/meta-architect/skills/vet/references/security-playbooks.md +7 -0
- package/plugins/meta-architect/skills/vibe/SKILL.md +2 -0
- package/plugins/meta-architect/skills/vibe/agents/openai.yaml +0 -0
- package/scripts/active-autonomy-hook.mjs +96 -0
- package/scripts/biome-staged.js +0 -0
- package/scripts/build-linux-packages.mjs +0 -0
- package/scripts/doctor.js +17 -4
- package/scripts/install.sh +28 -0
- package/scripts/linux-package-lib.mjs +0 -0
- package/scripts/linux-package-smoke.mjs +0 -0
- package/scripts/plugin-sync.js +0 -0
- package/scripts/postinstall.js +0 -0
- package/scripts/ralph/prompt.md +35 -0
- package/scripts/release-metadata.js +0 -0
- package/scripts/release-sync.js +0 -0
- package/scripts/release-verify.js +166 -1
- package/scripts/setup-npmrc.js +0 -0
- package/skills/align/SKILL.md +0 -0
- package/skills/align/agents/openai.yaml +0 -0
- package/skills/align/references/shared-language.md +0 -0
- package/skills/arch/SKILL.md +2 -0
- package/skills/arch/agents/openai.yaml +0 -0
- package/skills/build/SKILL.md +3 -0
- package/skills/build/agents/openai.yaml +0 -0
- package/skills/cleanup/SKILL.md +0 -0
- package/skills/cleanup/agents/openai.yaml +0 -0
- package/skills/cleanup/references/style-and-deslop.md +0 -0
- package/skills/diagnose/SKILL.md +0 -0
- package/skills/diagnose/agents/openai.yaml +0 -0
- package/skills/flow/SKILL.md +2 -0
- package/skills/flow/agents/openai.yaml +0 -0
- package/skills/maestro/SKILL.md +0 -0
- package/skills/maestro/agents/openai.yaml +0 -0
- package/skills/maestro/references/core-release-rules.md +0 -0
- package/skills/maestro/references/native-ingest-map.md +0 -0
- package/skills/sage/SKILL.md +2 -0
- package/skills/sage/agents/openai.yaml +0 -0
- package/skills/sage/references/source-selection.md +8 -0
- package/skills/tdd/SKILL.md +0 -0
- package/skills/tdd/agents/openai.yaml +0 -0
- package/skills/vet/SKILL.md +2 -0
- package/skills/vet/agents/openai.yaml +0 -0
- package/skills/vet/references/security-playbooks.md +7 -0
- package/skills/vibe/SKILL.md +2 -0
- package/skills/vibe/agents/openai.yaml +0 -0
- package/src/bootstrap.js +17 -0
- package/src/build-gate.js +2 -2
- package/src/launcher.js +4 -0
- package/src/mcp-live-client.js +289 -3
- package/src/paths.js +4 -0
- package/src/policy.js +1 -1
- package/src/release-issue-gates.js +190 -0
- package/src/runtime/active-autonomy-core.js +208 -0
- package/src/runtime/alignment-sentinel.js +165 -0
- package/src/runtime/architect-review.js +88 -0
- package/src/runtime/build-readiness.js +28 -4
- package/src/runtime/code-graph-rehearse.js +113 -0
- package/src/runtime/context-economy-core.js +276 -0
- package/src/runtime/continuity-notes.js +0 -0
- package/src/runtime/core-source-ingest.js +379 -0
- package/src/runtime/detached-provider.js +74 -0
- package/src/runtime/environment-awareness-core.js +460 -0
- package/src/runtime/exposure-catalog.js +276 -0
- package/src/runtime/guidance-stack.js +0 -0
- package/src/runtime/helper-orchestration-core.js +307 -0
- package/src/runtime/learning-loop-core.js +238 -0
- package/src/runtime/maestro-events.js +18 -0
- package/src/runtime/maestro-manager.js +19 -0
- package/src/runtime/maestro-state.js +125 -0
- package/src/runtime/mcp-policy.js +192 -0
- package/src/runtime/obsidian-integration-core.js +851 -0
- package/src/runtime/obsidian-plugin-bridge.js +739 -0
- package/src/runtime/orchestrator.js +0 -0
- package/src/runtime/prompt-strategy-core.js +230 -0
- package/src/runtime/quorum-review.js +90 -0
- package/src/runtime/ralph-execution-core.js +217 -0
- package/src/runtime/redaction-gateway.js +174 -0
- package/src/runtime/runtime-state.js +843 -2
- package/src/runtime/semantic-recording-core.js +147 -0
- package/src/runtime/signal-hooks.js +15 -0
- package/src/runtime/skills-registry-export.js +670 -0
- package/src/runtime/startup-path.js +0 -0
- package/src/runtime/universal-plugin-broker-core.js +575 -0
- package/src/runtime/workspace-intelligence-runtime.js +674 -0
- package/src/runtime/workspace-virtualizer.js +102 -0
- package/src/runtime/workspaces.js +0 -0
- package/src/runtime-artifacts.js +225 -62
- package/src/skill-installer.js +0 -0
- package/src/skills.js +876 -84
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { ensureDir, readJson, writeFileIfMissing } from "../fs-utils.js";
|
|
2
|
+
import { getRuntimeSubsystemPath } from "../paths.js";
|
|
3
|
+
|
|
4
|
+
export const semanticRecordingCoreSchemaVersion = "0.1.0";
|
|
5
|
+
|
|
6
|
+
export function getSemanticRecordingCorePath() {
|
|
7
|
+
return getRuntimeSubsystemPath("context", "recording-core.json");
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function createDefaultSemanticRecordingCore() {
|
|
11
|
+
return {
|
|
12
|
+
schemaVersion: semanticRecordingCoreSchemaVersion,
|
|
13
|
+
product: "Meta-Architect",
|
|
14
|
+
purpose:
|
|
15
|
+
"First-party semantic recording map for MA runtime context, coordination, evidence, memory, and execution artifacts.",
|
|
16
|
+
layers: [
|
|
17
|
+
{
|
|
18
|
+
id: "activity_trace",
|
|
19
|
+
semantic_role: "automatic_runtime_trace",
|
|
20
|
+
mechanism: "runtime_hooks",
|
|
21
|
+
authority: "append_only_hook_layer",
|
|
22
|
+
paths: [".ma/logs/maestro-events.ndjson", ".ma/hooks/audit.log"],
|
|
23
|
+
applies_to: ["$maestro", "gated_lanes", "helper_skills", "team_workers"],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: "lifecycle_state",
|
|
27
|
+
semantic_role: "mode_and_run_lifecycle",
|
|
28
|
+
mechanism: "ma_runtime_state_api",
|
|
29
|
+
authority: "leader_or_owning_lane",
|
|
30
|
+
paths: [".ma/state/maestro-state.json", ".ma/state/manager-runs.json"],
|
|
31
|
+
applies_to: ["$maestro", "owning_lanes", "executor_roles", "verifier_roles"],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
id: "brain_context",
|
|
35
|
+
semantic_role: "operator_brain_and_project_context",
|
|
36
|
+
mechanism: "ma_context_memory_api",
|
|
37
|
+
authority: "provenance_marked_context_only",
|
|
38
|
+
paths: [".ma/context/project.md", ".ma/context/recording-core.json", ".ma/memory/notes.md"],
|
|
39
|
+
applies_to: ["all_applicable_agents", "all_applicable_roles"],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: "executable_intent",
|
|
43
|
+
semantic_role: "approved_plan_and_test_shape",
|
|
44
|
+
mechanism: "lane_owned_artifacts",
|
|
45
|
+
authority: "owning_lane",
|
|
46
|
+
paths: [".ma/plans/", ".ma/specs/", ".ma/decisions.json"],
|
|
47
|
+
applies_to: ["$arch", "$sage", "$flow", "$vet", "$vibe", "$build", "ralph_execution_core"],
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
id: "technical_evidence",
|
|
51
|
+
semantic_role: "build_and_release_evidence",
|
|
52
|
+
mechanism: "evidence_lane_and_mcp_sources",
|
|
53
|
+
authority: "$sage_or_owning_review_lane",
|
|
54
|
+
paths: [".ma/evidence/sources.json", ".ma/evidence/audits.json", "mcp/servers.json"],
|
|
55
|
+
applies_to: ["$sage", "$vet", "$build", "reviewer_roles"],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: "coordination_plane",
|
|
59
|
+
semantic_role: "task_claims_mailbox_and_workspace_scope",
|
|
60
|
+
mechanism: "ma_task_workspace_runtime",
|
|
61
|
+
authority: "leader_dispatch_with_worker_proposals",
|
|
62
|
+
paths: [".ma/tasks/", ".ma/workspaces/"],
|
|
63
|
+
applies_to: ["$maestro", "team_workers", "executor_roles", "verifier_roles"],
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
default_core_capabilities: {
|
|
67
|
+
obsidian_integration_core: {
|
|
68
|
+
semantic_role: "brain_context",
|
|
69
|
+
meaning: "Obsidian supplies operator notes, vault graph, and long-lived brain context.",
|
|
70
|
+
records_as: "vault_context",
|
|
71
|
+
never_records_as: "build_evidence",
|
|
72
|
+
authority:
|
|
73
|
+
"Plugin-side actions may queue requests or expose note-selection metadata; authoritative changes return through MA lanes.",
|
|
74
|
+
applies_to: ["all_applicable_agents", "all_applicable_roles", "exported_host_payloads"],
|
|
75
|
+
},
|
|
76
|
+
context_economy_core: {
|
|
77
|
+
semantic_role: "context_budget",
|
|
78
|
+
meaning:
|
|
79
|
+
"MA-owned terse summaries reduce context load while preserving exact technical terms, warnings, schemas, and evidence.",
|
|
80
|
+
safety_valves: [
|
|
81
|
+
"security_warning",
|
|
82
|
+
"irreversible_action",
|
|
83
|
+
"user_confusion",
|
|
84
|
+
"legal_financial_medical_or_high_stakes_guidance",
|
|
85
|
+
"verification_failure",
|
|
86
|
+
],
|
|
87
|
+
applies_to: [
|
|
88
|
+
"all_applicable_agents",
|
|
89
|
+
"all_applicable_roles",
|
|
90
|
+
"mcp_descriptors",
|
|
91
|
+
"docs_issues_summaries",
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
ralph_execution_core: {
|
|
95
|
+
semantic_role: "story_execution",
|
|
96
|
+
meaning:
|
|
97
|
+
"Executor-capable agents and roles consume the same approved PRD/progress contract after MA gates pass.",
|
|
98
|
+
authority: "$maestro_or_owning_lane_dispatch",
|
|
99
|
+
applies_to: ["executor_roles", "team_workers", "verifier_followups", "reviewer_followups"],
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
hard_rules: [
|
|
103
|
+
"MA runtime artifacts use first-party .ma paths and product language.",
|
|
104
|
+
"Obsidian-derived claims are vault_context unless another owning lane explicitly promotes them with evidence.",
|
|
105
|
+
"Context Economy Core cannot remove warnings, schemas, authority fields, verification failures, or known gaps.",
|
|
106
|
+
"Ralph Execution Core cannot bypass $arch -> $sage -> $flow -> $vet -> $vibe -> $build.",
|
|
107
|
+
"Helper roles and workers inherit default-core contracts but do not gain independent release-state authority.",
|
|
108
|
+
],
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function validateSemanticRecordingCore(value) {
|
|
113
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
114
|
+
throw new Error("semantic recording core must be an object");
|
|
115
|
+
}
|
|
116
|
+
if (value.schemaVersion !== semanticRecordingCoreSchemaVersion) {
|
|
117
|
+
throw new Error(`Unsupported semantic recording core schemaVersion: ${value.schemaVersion}`);
|
|
118
|
+
}
|
|
119
|
+
if (!Array.isArray(value.layers) || value.layers.length === 0) {
|
|
120
|
+
throw new Error("semantic recording core requires non-empty layers");
|
|
121
|
+
}
|
|
122
|
+
if (!value.default_core_capabilities || typeof value.default_core_capabilities !== "object") {
|
|
123
|
+
throw new Error("semantic recording core requires default_core_capabilities");
|
|
124
|
+
}
|
|
125
|
+
if (
|
|
126
|
+
value.default_core_capabilities.obsidian_integration_core?.records_as !== "vault_context" ||
|
|
127
|
+
value.default_core_capabilities.obsidian_integration_core?.never_records_as !== "build_evidence"
|
|
128
|
+
) {
|
|
129
|
+
throw new Error("Obsidian Integration Core must record as vault_context, not build_evidence");
|
|
130
|
+
}
|
|
131
|
+
if (JSON.stringify(value).includes(".omx")) {
|
|
132
|
+
throw new Error("semantic recording core must not expose OMX runtime paths");
|
|
133
|
+
}
|
|
134
|
+
return value;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export async function seedSemanticRecordingCoreArtifacts() {
|
|
138
|
+
await ensureDir(getRuntimeSubsystemPath("context"));
|
|
139
|
+
await writeFileIfMissing(
|
|
140
|
+
getSemanticRecordingCorePath(),
|
|
141
|
+
`${JSON.stringify(createDefaultSemanticRecordingCore(), null, 2)}\n`,
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export async function loadSemanticRecordingCore() {
|
|
146
|
+
return validateSemanticRecordingCore(await readJson(getSemanticRecordingCorePath()));
|
|
147
|
+
}
|
|
@@ -34,6 +34,21 @@ export async function seedSignalHookArtifacts() {
|
|
|
34
34
|
schemaVersion: "0.1.0",
|
|
35
35
|
compatibilityNamespace: ["prebuild", "prerelease"],
|
|
36
36
|
runtimeNamespace: runtimeEvents,
|
|
37
|
+
activeAutonomy: {
|
|
38
|
+
enabled: true,
|
|
39
|
+
stopPolicy: "block_passive_permission_handoff_when_auto_continue_applies",
|
|
40
|
+
defaultResponse:
|
|
41
|
+
"AUTO-CONTINUE: continue the current safe branch, execute the next reversible step, then verify before reporting.",
|
|
42
|
+
stallPatterns: [
|
|
43
|
+
"should i proceed",
|
|
44
|
+
"would you like me to continue",
|
|
45
|
+
"if you want, i can",
|
|
46
|
+
"if you'd like, i can",
|
|
47
|
+
"tell me if you want me to",
|
|
48
|
+
"i can continue if you want",
|
|
49
|
+
"let me know if you want me to continue",
|
|
50
|
+
],
|
|
51
|
+
},
|
|
37
52
|
hooks: [],
|
|
38
53
|
},
|
|
39
54
|
null,
|