@dalzoubi/dev-agents-sync 3.2.0 → 4.0.0
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/package.json
CHANGED
|
@@ -439,29 +439,19 @@ describe('S2 — C6: shared read-steering mechanism present in canonical source'
|
|
|
439
439
|
// C7a — Mirror parity: .claude/agents/define.md contains the steering read instruction
|
|
440
440
|
// ---------------------------------------------------------------------------
|
|
441
441
|
|
|
442
|
-
describe('S2 — C7a:
|
|
443
|
-
it('
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
'The "steering/" reference is absent from the mirror.',
|
|
450
|
-
'Run `npm run build` to regenerate the committed mirror from the canonical source.',
|
|
451
|
-
].join(' '),
|
|
452
|
-
);
|
|
442
|
+
describe('S2 — C7a: native Define preserves steering through its runtime boundary', () => {
|
|
443
|
+
it('the Claude main emits the exact canonical runtime bridge instead of prompted steering writes', () => {
|
|
444
|
+
const bridge=readFileSync(path.join(REPO_ROOT,'.agents/runtime/bridges/define.md'),'utf8').trim();
|
|
445
|
+
assert.ok(mirrorDefineContent.includes(bridge));
|
|
446
|
+
assert.equal(mirrorDefineContent.split('# Define through the installed local runtime').length-1,1);
|
|
447
|
+
assert.match(bridge,/dev-agents-runtime start/);
|
|
448
|
+
assert.match(bridge,/Never synthesize source:operator/);
|
|
453
449
|
});
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
'.claude/agents/define.md must contain "steering/decisions.md".',
|
|
460
|
-
'The append-to-decisions instruction is missing from the mirror.',
|
|
461
|
-
'Canonical source may have the instruction but the mirror has not been rebuilt.',
|
|
462
|
-
'Run `npm run build` to regenerate.',
|
|
463
|
-
].join(' '),
|
|
464
|
-
);
|
|
450
|
+
it('the shipped native Define model receives existing steering and a gated, separate append contract', () => {
|
|
451
|
+
const source=readFileSync(path.join(REPO_ROOT,'.agents/runtime/models/define.md'),'utf8').trim();
|
|
452
|
+
const asset=JSON.parse(readFileSync(path.join(REPO_ROOT,'packages/dev-agents-runtime/assets/model-prompts.json'),'utf8')).roles.define.instructions;
|
|
453
|
+
assert.ok(asset.includes(source));
|
|
454
|
+
for(const phrase of ['bounded steering snapshot','session start','steering/decisions.md','append-only','only\nafter approval and readiness','never stages steering in the triad commit','absent, do not invent'])assert.ok(source.includes(phrase),phrase);
|
|
465
455
|
});
|
|
466
456
|
});
|
|
467
457
|
|