Skip to content

Commit 66f3f15

Browse files
committed
chore(pm): run the mailbox-open self-test in CI and pin the roster's fixture lanes to its lane-word lists
check:pm-record-recognisers now chains node scripts/pm/mailbox-open.mjs --self-test, so the reserved-lane refusal and the lane-word lists it exports are exercised by the existing lint job. fleet-roster.mjs --self-test asserts that every lane in its fixture is a kind or bare word from SEAT_LANE_KINDS / SEAT_BARE_LANES, read through the imported module rather than re-spelled. Fixes #27997 Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cxhQA7zwJ62YFCW4fH
1 parent 066ff51 commit 66f3f15

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"check:declared-population-live": "node scripts/check-declared-population-live.mjs --self-test && node scripts/check-declared-population-live.mjs",
8282
"check:pm-half-states": "node scripts/pm/check-half-states.mjs --self-test",
8383
"check:issue-citations": "node scripts/check-issue-citations.mjs --self-test",
84-
"check:pm-record-recognisers": "node scripts/pm/record-recognisers.mjs --self-test && node scripts/pm/check-owed-reviews.mjs --self-test",
84+
"check:pm-record-recognisers": "node scripts/pm/record-recognisers.mjs --self-test && node scripts/pm/check-owed-reviews.mjs --self-test && node scripts/pm/mailbox-open.mjs --self-test",
8585
"check:pm-prior-rulings": "node scripts/pm/check-prior-rulings.mjs --self-test",
8686
"check:pm-stale-finding": "node scripts/pm/sweep-stale-finding.mjs --self-test",
8787
"check:pm-write-pace": "node scripts/pm/write-pace.mjs --self-test",

‎scripts/pm/fleet-roster.mjs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ const SELF_TEST_BATTERIES = Object.freeze({
551551
'arguments: modes and every refusal': 9,
552552
'seat titles: lane, seat, repo, status, account, project': 13,
553553
'wall notes, closing refs, verdicts and mailboxes': 13,
554-
'the fixture snapshot: rows for the three repos': 17,
554+
'the fixture snapshot: rows for the three repos': 18,
555555
'the rendered body: marker, columns, footer, determinism': 9,
556556
'refusing to overwrite what is not the roster': 6,
557557
'the CLI: fixture runs offline, usage errors are exit 2': 6,
@@ -646,6 +646,8 @@ async function selfTest() {
646646
'objectui:domain:ui:1',
647647
'objectui:domain:ui:4',
648648
]);
649+
const laneListed = (lane) => (lane.includes(':') ? mailboxOpen.SEAT_LANE_KINDS.includes(lane.slice(0, lane.indexOf(':'))) : mailboxOpen.SEAT_BARE_LANES.includes(lane));
650+
t('every fixture lane is a kind or bare word from the opener\'s lane-word lists — imported, not re-spelled', [...new Set(rows.map((r) => r.lane))].map((lane) => `${lane}:${laneListed(lane)}`), ['repo:hotcrm:true', 'domain:devx:true', 'domain:skills:true', 'triage:true', 'domain:ui:true']);
649651
t('the non-seat issue in the seat list is skipped', rows.some((r) => r.post === 999), false);
650652
t('today’s three seats carry the right accounts', [row(19287).account, row(6023).account, row(1353, 'objectstack-ai/hotcrm').account], ['os-elon-musk', 'os-elon-musk', 'os-elon-musk']);
651653
t('devx seat 1: its assigned dispatched card, not seat 2’s', row(6023).inFlight, [{ repo: 'objectstack-ai/objectstack', number: 25416 }]);

0 commit comments

Comments
 (0)