You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 22ea9fe
Browse filesBrowse the repository at this point in the historyBrowse files
feat(pm): H72 lists unlisted mailbox knocks against the seat roster
The H72 patrol now builds the seat roster once per sweep from the open
pm:seat posts and open pulls it already holds (seatSessionRoster, the one
roster reader), hands it to mailboxEvents, and pushes a second report-only
H72 row naming each knock whose signed session the seat it names does not
list. A listing truncated at the page ceiling reads as an unreadable roster:
the row goes unjudged and the summary renders NOT MEASURED.
Claude-Session: https://claude.ai/code/session_01ADHkmPhHSUtdB95JSektb4
Co-authored-by: Claude <noreply@anthropic.com>
// band, the coverage clause in its three states, and the lazy one-reader import
25728
25822
// read off this file's source. The end-to-end leg — the REAL reader's readings
25729
25823
// through this predicate — lives in record-recognisers.mjs's doorbell battery,
25730
-
// because this self-test cannot import that module (H62's banner).
25731
-
'H72 mailbox off-table bells': 20,
25824
+
// because this self-test cannot import that module (H62's banner). RAISED 20 → 33
25825
+
// with the signature half (#34013): its predicate both ways, the unjudged roster,
25826
+
// the window, the cap, the text, the roster listings and their truncation names,
25827
+
// the wiring and the summary clause.
25828
+
'H72 mailbox off-table bells': 33,
25732
25829
// Registered with the unowned-PR row, pin just under the count: the firing, the assignee/mailbox/closed
25733
25830
// exemptions, the unread-label UNJUDGED leg, the text, the band and the wiring.
25734
25831
'H76 unowned open PR': 11,
@@ -29076,6 +29173,31 @@ async function selfTest() {
29076
29173
b(BATTERY28675, 'H72: the three count keys ride the enumerated forwarding contract', ['mailboxCandidates', 'mailboxRead', 'mailboxReaderReason'].every((k) => SWEEP_COUNT_KEYS.includes(k)), true);
29077
29174
b(BATTERY28675, 'H72 summary: the coverage pair is reported, with the window', saidBy('h72Mailbox', summaryLine({ mailboxRead: 3, mailboxCandidates: 4 }, 0)).includes('comment page read on 3 of 4 open `pm:mailbox` PR(s) touched in the last 24h'), true);
29078
29175
b(BATTERY28675, '⛔ H72 summary: a reader that did not load renders NOT MEASURED, never `0 of N`', (() => { const c = saidBy('h72Mailbox', summaryLine({ mailboxReaderReason: 'the doorbell reader did not load (x)', mailboxCandidates: 0 }, 0)); return c.includes('NOT MEASURED — the doorbell reader did not load (x)') && !c.includes('0 of 0'); })(), true);
29176
+
// -- H72's signature half (#34013): an `unlisted` knock is listed for the seat the
29177
+
// mailbox serves; a roster nobody could read lists nothing. The readings carry
29178
+
// `mailboxEvents`' `signature` field; the real reader and the real roster drive
29179
+
// this predicate in record-recognisers.mjs's signature battery. ----
b(BATTERY28675, '⭐ H72 signature: an `unlisted` knock inside the window is listed by comment id, author and the reader\'s reason', ['1 knock(s)', 'comment 9 by objectstack-fleet[bot]', `${UNV72} — session_01AAAAAAAAAAAAAAAAAAAAAAAA is not a session`].every((x) => row72u(reading72(READ72(1, 60), UNL72(9, 30)), ROSTER72, NOW72).includes(x)), true);
29188
+
b(BATTERY28675, '⛔ H72 signature: a `listed` knock, a maintainer\'s knock and a knock with no signature reading are not listed — clean is null', h72UnlistedKnockLines(reading72(KN72(1, 5, { state: 'listed', seat: 'domain:skills#2' }), KN72(2, 5, { state: 'maintainer' }), READ72(3, 5)), ROSTER72, NOW72), null);
29189
+
b(BATTERY28675, '⛔ H72 signature: a roster that was not READ makes the row UNJUDGED — null, never every knock listed as unlisted (the reader fails closed, so all of them read unlisted)', [h72UnlistedKnockLines(reading72(UNL72(9, 30)), { state: 'unreadable', gaps: ['the open `pm:seat` posts'] }, NOW72), h72UnlistedKnockLines(reading72(UNL72(9, 30)), null, NOW72), h72UnlistedKnockLines(reading72(UNL72(9, 30)), { seats: new Map() }, NOW72)].every((v) => v === null), true);
29190
+
b(BATTERY28675, '⛔ H72 signature: a reading that is not `read` is UNJUDGED too', [h72UnlistedKnockLines({ state: 'unreadable', gaps: ['x'] }, ROSTER72, NOW72), h72UnlistedKnockLines(null, ROSTER72, NOW72), h72UnlistedKnockLines({ state: 'read' }, ROSTER72, NOW72)].every((v) => v === null), true);
29191
+
b(BATTERY28675, '⭐ H72 signature: the window boundary — 23h59m old fires, 24h01m has aged out, an unreadable `at` must not read as aged out', [typeof h72UnlistedKnockLines(reading72(UNL72(4, 24 * 60 - 1)), ROSTER72, NOW72), h72UnlistedKnockLines(reading72(UNL72(4, 24 * 60 + 1)), ROSTER72, NOW72), typeof h72UnlistedKnockLines(reading72({ ...UNL72(5, 10), at: 'not a date' }), ROSTER72, NOW72)].join(), 'string,,string');
29192
+
b(BATTERY28675, 'H72 signature: an off-table knock that is ALSO unlisted is named by both rows — the vocabulary and the signature are two readings', (() => { const r = reading72(KN72(6, 10, { state: 'unlisted', reason: `${UNV72} — x` }, 'refused')); return row72(r, NOW72).includes('comment 6') && row72u(r, ROSTER72, NOW72).includes('comment 6'); })(), true);
29193
+
b(BATTERY28675, `H72 signature: it names at most ${H72_LISTED_COMMENTS} knocks and counts the rest`, (() => { const r = row72u(reading72(...[1, 2, 3, 4, 5, 6, 7].map((c) => UNL72(c, 10))), ROSTER72, NOW72); return r.includes('7 knock(s)') && r.includes('comment 5 by') && !r.includes('comment 6 by') && r.includes('and 2 more'); })(), true);
29194
+
b(BATTERY28675, 'H72 signature text: no angle-bracket fragment, names the rule file, the printout, that listed is no proof and the report-only boundary — and no tracker number', (() => { const r = row72u(reading72(UNL72(2, 9, '`<seat>` lists no session'), UNL72(3, 9, 'a<b')), ROSTER72, NOW72); const plain = row72u(reading72(UNL72(2, 9, 'no seat line')), ROSTER72, NOW72); return !/[<>]/.test(r) && r.includes('`SEAT` lists no session') && ['untrusted-text.md', '--mailbox-keys', 'never proof', 'Report-only', '⛔ does not act on'].every((x) => plain.includes(x)) && !/#[0-9]/.test(plain); })(), true);
29195
+
b(BATTERY28675, 'H72 signature: not a loud finding — it never escalates a sweep', isLoudFinding(row72u(reading72(UNL72(2, 9)), ROSTER72, NOW72)), false);
29196
+
b(BATTERY28675, '⭐ H72 roster listings: the open `pm:seat` rows and the open pulls the sweep holds, other cards dropped', (() => { const seat = { number: 1, labels: [{ name: 'pm:seat' }] }; const card = { number: 2, labels: [{ name: 'pm:queue' }] }; const pull = { number: 3 }; const l = h72RosterListings([seat, card, null], [pull]); return l.posts.length === 1 && l.posts[0] === seat && l.mailboxes.length === 1 && l.mailboxes[0] === pull; })(), true);
29197
+
b(BATTERY28675, '⛔ H72 roster listings: a listing truncated at the page ceiling, or not an array, hands the roster NULL — read as unreadable, never as a smaller roster', (() => { const both = h72RosterListings([], [], [H72_ROSTER_LISTINGS.posts, H72_ROSTER_LISTINGS.mailboxes]); const other = h72RosterListings([], [], ['listIssues(pm:queue)']); const bad = h72RosterListings(undefined, 'x'); return both.posts === null && both.mailboxes === null && Array.isArray(other.posts) && Array.isArray(other.mailboxes) && bad.posts === null && bad.mailboxes === null; })(), true);
29198
+
b(BATTERY28675, '⭐ H72 roster listings: the truncation names are the ones the two listings record — `listIssues(pm:seat)` off a label page this sweep lists, `listOpenPullRequests` off the pulls', (() => { const src = SRC72; return SRC72.length > 0 && SEEN_LABEL_PAGES.includes('pm:seat') && src.includes('noteOpenListing(stats, `listIssues(${label})`') && src.includes(`noteOpenListing(stats, '${H72_ROSTER_LISTINGS.mailboxes}'`) && H72_ROSTER_LISTINGS.posts === 'listIssues(pm:seat)'; })(), true);
29199
+
b(BATTERY28675, '⭐ H72 wiring: the sweep reads the roster ONCE through the reader\'s `seatSessionRoster`, hands it to the same `mailboxEvents` call both rows judge, and parses no signature or roster of its own', (() => { const src = SRC72; return SRC72.length > 0 && src.includes('reader.seatSessionRoster(h72RosterListings([...seen.values()], [...seenPrs.values()], stats.openListingsTruncated))') && src.includes('const reading = reader.mailboxEvents(rows, roster);') && src.includes('h72OffTableMailboxLines(reading, nowMs)') && src.includes('h72UnlistedKnockLines(reading, roster, nowMs)') && !/function (?:seatSessionRoster|knockSignature|readMailboxComment)\b/u.test(src); })(), true);
29200
+
b(BATTERY28675, '⛔ H72 summary: a roster that was not read renders NOT MEASURED for the signature half, a read one says it buys no fetch — and the key rides the forwarding contract', (() => { const no = saidBy('h72Mailbox', summaryLine({ mailboxRead: 1, mailboxCandidates: 1, mailboxRosterReason: 'the seat roster could not be read (x)' }, 0)); const yes = saidBy('h72Mailbox', summaryLine({ mailboxRead: 1, mailboxCandidates: 1 }, 0)); return no.includes('Unlisted knock signatures: NOT MEASURED — the seat roster could not be read (x)') && yes.includes('Unlisted knock signatures: judged on the same pages') && SWEEP_COUNT_KEYS.includes('mailboxRosterReason'); })(), true);
29079
29201
b(BATTERY28675, '⭐ H72: the sweep takes the ONE reader and the opener\'s label LAZILY — `mailboxEvents` from record-recognisers.mjs, MAILBOX_LABEL from mailbox-open.mjs — and spells no doorbell key of its own', (() => { const src = readFileSync(fileURLToPath(import.meta.url), 'utf8'); return src.includes("import('./record-recognisers.mjs')") && src.includes("import('./mailbox-open.mjs')") && !/^import [^\n]*from '\.\/(?:record-recognisers|mailbox-open)\.mjs'/mu.test(src) && !src.includes(['MAILBOX_KEYS', '='].join(' ')); })(), true);
29080
29202
b(BATTERY28675, 'floor: this battery is DECLARED on the roster, with a positive pin', Object.prototype.hasOwnProperty.call(SELF_TEST_BATTERIES, BATTERY28675) && SELF_TEST_BATTERIES[BATTERY28675] > 0, true);
0 commit comments