Folds Filbert's N1 per Sage's comment 28355: the envelope test sends a role cap with a tester proof. The narrowing mutant at server.mjs:50 survives the full bus suite on round 1 and is killed on round 2. Full gate passed with the real bwrap tester case running. Co-Authored-By: Claude Opus 5.5 <[email protected]>
14 lines
966 B
Diff
14 lines
966 B
Diff
diff -ru a/packages/bus/tests/tester.test.mjs b/packages/bus/tests/tester.test.mjs
|
|
--- a/packages/bus/tests/tester.test.mjs 2026-10-13 20:22:19.270339252 -0500
|
|
+++ b/packages/bus/tests/tester.test.mjs 2026-10-13 20:22:19.272520482 -0500
|
|
@@ -332,7 +332,8 @@
|
|
});
|
|
const p = { business: 'demo', pid: 2, startTime: '1', nonce };
|
|
const cap = b.bindReader({ business: 'demo' });
|
|
- for (const r of [{ tester: p, cap }, { tester: p, human: p }, { tester: p, human: p, cap }])
|
|
+ const role = b.bindLaunch({ business: 'demo', role: 'pm', run: 'pm-run', harness: 'pi' });
|
|
+ for (const r of [{ tester: p, cap }, { tester: p, cap: role }, { tester: p, human: p }, { tester: p, human: p, cap }])
|
|
assert.deepEqual(await raw(path, { ...r, verb: 'agents' }), { ok: false, error: 'invalid-envelope' }, Object.keys(r).join('+'));
|
|
assert.equal(calls, 0);
|
|
assert.deepEqual(await raw(bare, { tester: p, verb: 'agents' }), { ok: false, error: 'tester-required' });
|