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 7c76c75
Browse filesBrowse the repository at this point in the historyBrowse files
pm-dispatch: an open PR names its owner — pr_create assigns the claim's Account, a hand-over re-assigns it, and H76 reports an unowned PR
Ruling record 6674390671 (letter A) on #29828. The dev's pr_create now
carries the claim's Account as the PR's assignee (os-dev.md rule 2 and the
write budget), the 认领 line in execution-duties.md says a hand-over
re-assigns it in the same stroke as the claim change, SKILL.md's hand-off
step keeps only "never request the seat's own account", and the runbook's
thread rule names the card's assignee. check-half-states gains H76, a
report-only state row: an open non-mailbox PR with no assignee.
Claude-Session: https://claude.ai/code/session_016WV4d1MNyKiUFDBccFX8Cc
Co-authored-by: Claude <noreply@anthropic.com>
// through this predicate — lives in record-recognisers.mjs's doorbell battery,
25239
25302
// because this self-test cannot import that module (H62's banner).
25240
25303
'H72 mailbox off-table bells': 20,
25304
+
// Registered with the unowned-PR row, pin just under the count: the firing, the assignee/mailbox/closed
25305
+
// exemptions, the unread-label UNJUDGED leg, the text, the band and the wiring.
25306
+
'H76 unowned open PR': 11,
25241
25307
// Registered with the ruled-card-in-the-box row (#29386), pin just under the
25242
25308
// count: the firing case, the label / fence / anchoring / id controls each
25243
25309
// beside its positive twin, the threshold boundary, the governing stamp, the
@@ -28582,6 +28648,26 @@ async function selfTest() {
28582
28648
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);
28583
28649
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);
28584
28650
28651
+
// -- H76: an open PR with no assignee (ruling record 6674390671, letter A). The fixture is a relay-opened dev
28652
+
// draft as the card measured them (26 of 27 open PRs unassigned), offline, never a live read.
b(BATTERY76, 'H76 fires: an open dev draft with no assignee and no mailbox label', row76.length > 0 && !isUnjudgedFinding(row76), true);
28658
+
b(BATTERY76, 'H76 row: names the ruling, the claim\'s `Account:`, the relay `assign` op, the bot-PR arm and the report-only boundary', ['ruling record 6674390671', 'the claim\'s `Account:`', '`assign` op', 'owning lane seat\'s account', 'Report-only'].every((x) => row76.includes(x)), true);
28659
+
b(BATTERY76, 'H76: a ready (non-draft) PR fires exactly like a draft — drafts are included, not the only population', typeof h76OpenPrWithoutAssignee(pr76({ draft: false }), MAILBOX76), 'string');
28660
+
b(BATTERY76, '⛔ H76: a PR with an assignee is clean — the list field or the legacy single field', [h76OpenPrWithoutAssignee(pr76({ assignees: [{ login: 'os-elon-musk' }] }), MAILBOX76), h76OpenPrWithoutAssignee(pr76({ assignee: { login: 'os-elon-musk' } }), MAILBOX76)].join(), ',');
28661
+
b(BATTERY76, '⛔ H76: an unassigned `pm:mailbox` PR is exempt, and its unlabelled twin is not', [h76OpenPrWithoutAssignee(pr76({ labels: [{ name: MAILBOX76 }, { name: 'pinned' }] }), MAILBOX76), typeof h76OpenPrWithoutAssignee(pr76({ labels: [{ name: 'pinned' }] }), MAILBOX76)].join(), ',string');
28662
+
b(BATTERY76, '⛔ H76: a closed PR and a missing row are silent, never a crash', [h76OpenPrWithoutAssignee(pr76({ state: 'closed' }), MAILBOX76), h76OpenPrWithoutAssignee(undefined, MAILBOX76), h76OpenPrWithoutAssignee(null, MAILBOX76)].join(), ',,');
b(BATTERY76, 'H76: an UNREAD mailbox label fires UNJUDGED, never clean — null, undefined and empty alike', unread76.every((t) => t.startsWith(UNJUDGED_MARKER) && isUnjudgedFinding(t)), true);
28665
+
b(BATTERY76, '⛔ H76: …but an ASSIGNED PR stays clean with the label unread — the label is only the mailbox exemption', h76OpenPrWithoutAssignee(pr76({ assignees: [{ login: 'os-elon-musk' }] }), null), null);
28666
+
b(BATTERY76, 'H76: not a loud finding — it never escalates a sweep', [isLoudFinding(row76), isLoudFinding(unread76[0])].join(), 'false,false');
28667
+
b(BATTERY76, 'H76 band: registered as `state` (H1\'s), and the sweep really pushes it', `${familyBand('H76')}/${familyRegistryCoverage().emitted.includes('H76')}`, 'state/true');
28668
+
b(BATTERY76, 'H76 wiring: every listed open PR is judged with the label taken LAZILY from mailbox-open.mjs, never spelled in the sweep', (() => { const src = readFileSync(fileURLToPath(import.meta.url), 'utf8'); return src.includes("({ MAILBOX_LABEL: mailboxLabel } = await import('./mailbox-open.mjs'));") && src.includes('const unowned = h76OpenPrWithoutAssignee(pr, mailboxLabel);'); })(), true);
28669
+
b(BATTERY76, 'floor: this battery is DECLARED on the frozen roster with a positive pin', Object.hasOwn(SELF_TEST_BATTERIES, BATTERY76) && SELF_TEST_BATTERIES[BATTERY76] > 0 && Object.isFrozen(SELF_TEST_BATTERIES), true);
28670
+
28585
28671
// -- H73 (#29386): a RULED decision card still sitting in the decision box.
28586
28672
// Positive controls beside every negative one: the label, the fence, the
28587
28673
// anchoring, the id, the threshold, the governing stamp, the re-entry line.
0 commit comments