Skip to content

Commit 2b9b483

Browse files
committed
test(pm): pin the Thread session spelling without reading a governed file
The delegate battery read the claim template out of SKILL.md, a governed read the dispatch-gates census does not derive. The pin now spells the template's line itself. Claude-Session: https://claude.ai/code/session_01ADHkmSx7z6GRueigx6aDsA Co-authored-by: Claude <noreply@anthropic.com>
1 parent 81182b0 commit 2b9b483

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎scripts/pm/record-recognisers.mjs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3588,8 +3588,7 @@ export async function selfTest() {
35883588
const ONE = (rows, card = CARD(34013)) => R([{ card, rows }]);
35893589
const DELEGATE = (r, seat = 'domain:skills#2', session = T) => read(KNOCK(seat, session), r).signature;
35903590
const BASE = [CLAIM(1, '2026-11-16T03:16:00Z', 'domain:skills#2', S2, OWN(TEMPLATE))];
3591-
const skillMd = readFileSync(fileURLToPath(new URL('../../.claude/skills/pm-dispatch/SKILL.md', import.meta.url)), 'utf8');
3592-
t('⭐ writer and reader one spelling: the claim template carries exactly ONE `Thread session:` line, a backticked session placeholder right after the key — and the reader reads that spelling with a real id', skillMd.split('\n').filter((l) => /^Thread session:/u.test(l)).length === 1 && /^Thread session: `session_<id>` \(/mu.test(skillMd) && claimThreadSession(TEMPLATE) === T && claimThreadSession(`${TEMPLATE} `) === T);
3591+
t('⭐ the template\'s spelling, with a real id, reads its session — the key starting the line, the backticked id, nothing after it but blanks', claimThreadSession(TEMPLATE) === T && claimThreadSession(`${TEMPLATE} `) === T && claimThreadSession(`Claim: x\r\n${TEMPLATE}\r\nSeat: y`) === T);
35933592
t('⭐ the template spelling JOINS the roster: the card thread ringing under its seat\'s signature reads `listed`, via the claim it was named on', (() => { const s = DELEGATE(ONE(BASE)); return s.state === 'listed' && s.seat === 'domain:skills#2' && s.session === T && s.via === 'claim on #34013 (comment 1) Thread session'; })());
35943593
const OTHER = {
35953594
'a bare id': [`Session: \`${S2}\``, `Thread session: ${T}`],

0 commit comments

Comments
 (0)