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 81182b0
Browse filesBrowse the repository at this point in the historyBrowse files
feat(pm): a claim's Thread session line lists its card thread on the seat roster
The claim template gains one key, `Thread session:`, paid by deleting the
report-contract line that restated the os-dev final report's
out_of_scope_findings shape (its home is os-dev.md rule 3 and the JSON shape).
record-recognisers reads that key in its one spelling (claimThreadSession)
and seatSessionRoster lists the session for the seat that signed the open
card's newest, unreleased claim. H72 hands the roster the claimed cards'
threads it already caches; a thread not held whole reads unjudged.
Claude-Session: https://claude.ai/code/session_01ADHkmSx7z6GRueigx6aDsA
Co-authored-by: Claude <noreply@anthropic.com>
// because this self-test cannot import that module (H62's banner). RAISED 20 → 33
25825
25856
// with the signature half (#34013): its predicate both ways, the unjudged roster,
25826
25857
// 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,
25858
+
// the wiring and the summary clause. RAISED 33 → 37 with the claim listing
25859
+
// (#34013 remainder 2): the listing, its unread and truncated cases, its
25860
+
// truncation name and the cache-only wiring.
25861
+
'H72 mailbox off-table bells': 37,
25829
25862
// Registered with the unowned-PR row, pin just under the count: the firing, the assignee/mailbox/closed
25830
25863
// exemptions, the unread-label UNJUDGED leg, the text, the band and the wiring.
25831
25864
'H76 unowned open PR': 11,
@@ -29196,7 +29229,15 @@ async function selfTest() {
29196
29229
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
29230
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
29231
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);
29232
+
// -- the claim listing (#34013 remainder 2): the open `pm:dispatched` cards with the WHOLE thread the sweep holds;
29233
+
// the real reader's join of them is pinned in record-recognisers.mjs's card-thread delegate battery. ----
b(BATTERY28675, '⭐ H72 claim listing: each open `pm:dispatched` card with the whole thread the sweep holds, as `{ card, rows }` — other labels and a closed row dropped', (() => { const a = CARD72(1); const l = h72RosterListings([a, { number: 2, state: 'open', labels: [{ name: 'pm:queue' }] }, CARD72(3, { state: 'closed' }), null], [], [], HELD72([1])); return Array.isArray(l.claims) && l.claims.length === 1 && l.claims[0].card === a && l.claims[0].rows[0].id === 1; })(), true);
29237
+
b(BATTERY28675, '⛔ H72 claim listing: a card whose thread is missing or NOT whole, a truncated `pm:dispatched` listing, or no issue array hands the roster NULL — unread, never a smaller roster', (() => { const cards = [CARD72(1), CARD72(2)]; return [h72RosterListings(cards, [], [], HELD72([1])).claims, h72RosterListings(cards, [], [], HELD72([1], [2, false])).claims, h72RosterListings(cards, [], [H72_ROSTER_LISTINGS.claims], HELD72([1], [2])).claims, h72RosterListings(undefined, []).claims, h72RosterListings(cards, []).claims].every((c) => c === null) && Array.isArray(h72RosterListings(cards, [], [], HELD72([1], [2])).claims) && JSON.stringify(h72RosterListings([], []).claims) === "[]"; })(), true);
29238
+
b(BATTERY28675, '⭐ H72 claim listing: the truncation name is the one the `pm:dispatched` label page records, a page this sweep lists', SEEN_LABEL_PAGES.includes('pm:dispatched') && H72_ROSTER_LISTINGS.claims === 'listIssues(pm:dispatched)' && SRC72.includes('noteOpenListing(stats, `listIssues(${label})`'), true);
29239
+
b(BATTERY28675, '⭐ H72 claim wiring: the threads come out of `commentCache` — H2\'s claim read, `.get`, never a fetch — and a full first page is whole only once H50\'s walk says so', (() => { const at = SRC72.indexOf('const claimThreads = new Map();'); const block = at < 0 ? '' : SRC72.slice(at, SRC72.indexOf('const roster = reader.seatSessionRoster(', at)); return block.includes('commentCache.get(issue.number)') && block.includes('threadWalks.get(issue.number)') && block.includes('rows.length < H50_COMMENTS_PAGE_SIZE') && !/\brest\(|commentRowsFor|completeCardThread|commentCache\.set/u.test(block); })(), true);
29240
+
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, claimThreads))') && 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
29241
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);
29201
29242
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);
29202
29243
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