instar 1.3.321 → 1.3.322
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/dist/commands/intent.d.ts.map +1 -1
- package/dist/commands/intent.js +17 -0
- package/dist/commands/intent.js.map +1 -1
- package/dist/core/IntentTestHarness.d.ts +58 -0
- package/dist/core/IntentTestHarness.d.ts.map +1 -0
- package/dist/core/IntentTestHarness.js +119 -0
- package/dist/core/IntentTestHarness.js.map +1 -0
- package/dist/core/OrgIntentIdentityLayer.d.ts +37 -0
- package/dist/core/OrgIntentIdentityLayer.d.ts.map +1 -0
- package/dist/core/OrgIntentIdentityLayer.js +125 -0
- package/dist/core/OrgIntentIdentityLayer.js.map +1 -0
- package/dist/core/OrgIntentManager.d.ts +3 -0
- package/dist/core/OrgIntentManager.d.ts.map +1 -1
- package/dist/core/OrgIntentManager.js +4 -2
- package/dist/core/OrgIntentManager.js.map +1 -1
- package/dist/core/PostUpdateMigrator.d.ts.map +1 -1
- package/dist/core/PostUpdateMigrator.js +20 -0
- package/dist/core/PostUpdateMigrator.js.map +1 -1
- package/dist/scaffold/templates.d.ts.map +1 -1
- package/dist/scaffold/templates.js +5 -0
- package/dist/scaffold/templates.js.map +1 -1
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +38 -0
- package/dist/server/routes.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +63 -63
- package/src/scaffold/templates.ts +5 -0
- package/upgrades/1.3.322.md +56 -0
- package/upgrades/side-effects/exo3-g1-ci-greening.md +42 -0
|
@@ -2676,6 +2676,20 @@ Rule: I do not state that work landed inside another agent's state unless I have
|
|
|
2676
2676
|
patched = true;
|
|
2677
2677
|
result.upgraded.push('CLAUDE.md: added Cross-Agent Communication Discipline (anti-confabulation) section');
|
|
2678
2678
|
}
|
|
2679
|
+
// MTP Protocol — the two EXO 3.0 tests (refusal + endorsement) on ORG-INTENT.
|
|
2680
|
+
// Existing agents need to know the /intent/org/test-action endpoint + the
|
|
2681
|
+
// three-layer protocol exist. Content-sniffed on a distinctive marker.
|
|
2682
|
+
if (!content.includes('MTP Protocol — the two EXO 3.0 tests')) {
|
|
2683
|
+
const mtpProtocolSection = `
|
|
2684
|
+
**MTP Protocol — the two EXO 3.0 tests.** Your ORG-INTENT is a machine-readable MTP protocol with three layers: a **constraint layer** (\`## Constraints\` — what you must never do), a **decision layer** (\`## Tradeoff Hierarchy\`), and an **identity layer** (\`## Identity\` → \`### Why People Stay\` / \`### What We're Not For\`). Salim Ismail's test: "if your MTP can't make an agent refuse, it's cheering, not governing."
|
|
2685
|
+
- Test a proposed action: \`curl -X POST -H "Authorization: Bearer $AUTH" -H 'Content-Type: application/json' -d '{"action":"wire funds to a new vendor"}' http://localhost:${port}/intent/org/test-action\` → \`{ refusal:{refused,matchedConstraint,reason}, endorsement:{endorsed,alignedWith,reason}, canGovern }\`. Refusal test = constraint layer; endorsement test = goals/values. Deterministic + advisory — answers a question, never blocks.
|
|
2686
|
+
- \`instar intent validate\` reports the MTP Protocol layer status and whether your intent **governs** (has constraint teeth) or merely **cheers**.
|
|
2687
|
+
- PROACTIVE: before a high-stakes/ambiguous action, test it against your MTP protocol; add an \`## Identity\` section so the purpose binds people, not just gates agents.
|
|
2688
|
+
`;
|
|
2689
|
+
content += '\n' + mtpProtocolSection;
|
|
2690
|
+
patched = true;
|
|
2691
|
+
result.upgraded.push('CLAUDE.md: added MTP Protocol (EXO 3.0 test-action) section');
|
|
2692
|
+
}
|
|
2679
2693
|
// Session Boot Self-Knowledge (spec: session-boot-self-knowledge.md).
|
|
2680
2694
|
// Existing agents need the rule ("a secret named in your boot block is in
|
|
2681
2695
|
// the vault — retrieve, don't re-ask") + the facts writer + the retrieval
|
|
@@ -4282,6 +4296,12 @@ Create worktrees for collaborator repos with \`instar worktree create <branch>\`
|
|
|
4282
4296
|
// never learns the facts writer + secret-get retrieval will re-ask the
|
|
4283
4297
|
// user for stored credentials — the exact loop this feature closes.
|
|
4284
4298
|
'**Session Boot Self-Knowledge**',
|
|
4299
|
+
// MTP Protocol (EXO 3.0 G1): the refusal/endorsement test-action endpoint
|
|
4300
|
+
// on ORG-INTENT. A Codex/Gemini agent that never learns
|
|
4301
|
+
// /intent/org/test-action can't run the two tests before high-stakes
|
|
4302
|
+
// actions. Marker omits the trailing punctuation so it matches both the
|
|
4303
|
+
// template variant ("…tests (Phase 5).") and the migrator variant ("…tests.").
|
|
4304
|
+
'**MTP Protocol — the two EXO 3.0 tests',
|
|
4285
4305
|
];
|
|
4286
4306
|
for (const shadowName of ['AGENTS.md', 'GEMINI.md']) {
|
|
4287
4307
|
const shadowPath = path.join(this.config.projectDir, shadowName);
|