diff --git a/scripts/pm/check-half-states.mjs b/scripts/pm/check-half-states.mjs index 3f6304aa957..fae5a66db83 100644 --- a/scripts/pm/check-half-states.mjs +++ b/scripts/pm/check-half-states.mjs @@ -1006,7 +1006,7 @@ import { isEntrypoint } from '../invoked-as.mjs'; import { SEAT_RECORD_MARKER, seatRecordAccepts, seatRecordOf } from './seat-record.mjs'; // The retired seat numbers and the account seat each became — the leaf table `seatMarkOf` reads, below. import { SEAT_NUMBER_ACCOUNTS } from './seat-numbers.mjs'; -// The ONE "sent back for changes since" reading H48 and `label-write.mjs --handoff` share (`h48BounceReading`, below). +// The ONE "sent back for changes since" reading H43, H48 and `label-write.mjs --handoff` share (`h48BounceReading`, below). import { bouncedSince } from './bounce-reading.mjs'; /** @@ -10748,6 +10748,20 @@ export function renderDanglingReferences(report, { markdown = false } = {}) { // row's. A FAIL, a PASS on an older head, a REWORK, or a verdict word the // reader cannot make out are all BEFORE. // +// ## A pull sent back for changes owes no request (#39627) +// +// A DUE hand-off can be withdrawn without a new record on the seat side: a red +// merge-queue build, a newest review record carrying an open must-fix or +// should-fix beside its PASS line, or a trusted reviewer's CHANGES_REQUESTED. +// The request is one of the pieces that go back only after the fix passes +// re-review (`landing-operations.md`: 「复审过再挂、入队,其间不补四件」), so a +// DUE PR whose bounce reads `bounced` is quiet here. The bounce is H48's +// reading, asked through the ONE wiring `h48BounceReading` over the thread this +// row already holds and the review page it already buys — ⛔ never a second +// bounce reader. A bounce leg that did not read (`unread`, a page past the cap +// or one that failed) leaves the row firing as it did before the leg existed, +// on the same sentence that already says the review page is missing. +// // ## Report-only, and pointedly so // // ⛔ Nothing can ship wrong through this gap: on Tier H the queue guard still @@ -11114,14 +11128,19 @@ export function h43NeedsReviewProbe(pr, governed, approvers, handoff = undefined * covered, uncovered, and uncovered-on-the-cheap-union-alone, which says so; * `handoff` is `h43HandoffReading`'s answer — undefined or `unread` is * UNJUDGED, `before` is not a half state, only `due` can fire (header, "The - * timing"). + * timing"); `bounce` is `h48BounceReading`'s answer over the same thread and + * review page — `bounced` is quiet (header, "A pull sent back for changes owes + * no request"); `clear`, `unread` and undefined (never consulted) leave the row + * as it was. */ -export function h43GovernedReviewRequestGap(pr, governed, approvers, reviewed = null, handoff = undefined) { +export function h43GovernedReviewRequestGap(pr, governed, approvers, reviewed = null, handoff = undefined, bounce = undefined) { const surfaces = governed ?? []; const list = approvers ?? []; if (surfaces.length === 0 || list.length === 0 || governedLandsOnRecord(surfaces)) return null; // The timing: before the seat's ACCEPT and a same-head PASS, nobody is owed a request — quiet by design. if (handoff?.state !== 'due') return null; + // Sent back for changes since the hand-off: the request waits for the re-review, the way the label does (H48). + if (bounce?.state === 'bounced') return null; const cheap = h43CheapCoverage(pr); const submitted = reviewed == null ? null : new Set([...reviewed].map((l) => String(l))); const missing = list.filter((a) => !cheap.has(a) && !(submitted?.has(a) ?? false)); @@ -11150,7 +11169,11 @@ export function h43GovernedReviewRequestGap(pr, governed, approvers, reviewed = submitted == null ? ' ⚠️ The submitted-review leg was NOT read for this PR (probe budget or a failed request), so ' + 'this row stands on the request∪assignment union alone — an approver who has already SUBMITTED ' + - 'a review would clear it, and that reading is missing rather than negative.' + 'a review would clear it, and that reading is missing rather than negative.' + + (bounce?.state === 'unread' + ? ' Whether the pull was sent back for changes since the hand-off reads that page too, so it is unread ' + + 'as well: a pull sent back for changes would also stand here.' + : '') : ''; const recordWhen = handoff.record?.createdAt ? ` (${handoff.record.createdAt})` : ''; const passHead = handoff.review?.sha ? `\`${handoff.review.sha}\`` : 'this head'; @@ -12355,6 +12378,38 @@ export const H48_SURFACE_LIST_CAP = 4; */ export const ACCEPT_VERDICT_MARKER = /^\s*>?\s*\*\*ACCEPT\*\*/m; +/** + * The seat's REWORK verdict, as a line (#39628) — spelled exactly as + * `ACCEPT_VERDICT_MARKER` is (line-anchored, optional blockquote, bold, no `i`, + * no `g`), so the two verdict kinds H48 weighs are read under ONE grammar and + * neither can win on a looser spelling. A REWORK named in prose ("answering + * REWORK 7403706237") opens no line in bold and is no verdict. + */ +export const REWORK_VERDICT_MARKER = /^\s*>?\s*\*\*REWORK\*\*/m; + +/** + * The seat's STANDING verdict on a governed PR's thread (#39628): the NEWEST + * verdict of either kind decides, and only an ACCEPT newer than every REWORK + * stands. Returns that ACCEPT's `latestMarkedComment` location, or `null` when + * there is no ACCEPT or a REWORK is as new or newer — the seat sent the PR back + * after accepting it, so there is no hand-off to complete. One comment carrying + * both lines reads as REWORK (fail closed: the half that withholds the hand-off + * wins). Pure. + */ +export function h48StandingAccept(commentRows) { + const rows = Array.isArray(commentRows) ? commentRows : []; + const accept = latestMarkedComment(rows, ACCEPT_VERDICT_MARKER); + if (!accept) return null; + const rework = latestMarkedComment(rows, REWORK_VERDICT_MARKER); + if (!rework) return accept; + // `latestMarkedComment`'s own order: stamps when both are dated, thread order otherwise or on a tie. + const acceptNewer = + accept.stamp === null || rework.stamp === null || accept.stamp === rework.stamp + ? accept.index > rework.index + : accept.stamp > rework.stamp; + return acceptNewer ? accept : null; +} + /** * The final maintainer brief, as a heading line. * @@ -12425,7 +12480,7 @@ export function h48BounceReading(inputs) { */ export function h48NeedsBounceRead(pr, governed, commentRows) { if (!Array.isArray(commentRows) || !h48SpeaksAbout(pr, governed)) return false; - if (!latestMarkedComment(commentRows, ACCEPT_VERDICT_MARKER)) return false; + if (!h48StandingAccept(commentRows)) return false; const hasBrief = latestMarkedComment(commentRows, MAINTAINER_BRIEF_MARKER) !== null; const hasLabel = labelNames(pr ?? {}).includes(GOVERNED_PR_AWAITING_MERGE_LABEL); return !(hasLabel && hasBrief); @@ -12451,6 +12506,12 @@ export function h48NeedsBounceRead(pr, governed, commentRows) { * leg never consulted) and `unread` are UNJUDGED; only `clear` lets the finding through. The leg is asked only * after a half is found missing, so a whole hand-off needs none of it (`h48NeedsBounceRead`). * + * ## A REWORK after the ACCEPT withdraws it (#39628) + * + * The verdict this row reads is the seat's NEWEST of either kind, `**ACCEPT**` or `**REWORK**` + * (`h48StandingAccept`): an older ACCEPT under a later REWORK is no hand-off, so the row is clean there and the + * gathering policy buys nothing for it. A later ACCEPT (the delta verdict after the patch round) stands again. + * * @param {{ number?: number, state?: string, merged_at?: string|null, labels?: any[] }} pr * @param {{ glob: string, files?: string[] }[]} governed — the matched slice. * @param {{ body?: string, created_at?: string }[]|null|undefined} commentRows — @@ -12463,9 +12524,11 @@ export function h48GovernedVerdictWithoutBrief(pr, governed, commentRows, bounce const rows = Array.isArray(commentRows) ? commentRows : []; // `latestMarkedComment` rather than a second scan idiom: H47's resolution is // the file's one answer to "which comment carries this marker", and a second - // one here is a drift waiting to happen. Existence is all this row needs; the - // stamp it also returns is what lets the sentence point at the verdict. - const verdict = latestMarkedComment(rows, ACCEPT_VERDICT_MARKER); + // one here is a drift waiting to happen. The stamp it also returns is what + // lets the sentence point at the verdict. The NEWEST verdict of either kind + // decides (#39628): an ACCEPT followed by a REWORK is a PR the seat sent back, + // not a hand-off with a half missing (`h48StandingAccept`). + const verdict = h48StandingAccept(rows); if (!verdict) return null; const hasBrief = latestMarkedComment(rows, MAINTAINER_BRIEF_MARKER) !== null; const hasLabel = labelNames(pr ?? {}).includes(GOVERNED_PR_AWAITING_MERGE_LABEL); @@ -19577,6 +19640,8 @@ export const SWEEP_COUNT_KEYS = [ // H43's hand-off reading: threads read, and how many PRs are past the point where the request is owed. 'governedHandoffRead', 'governedHandoffDue', + // …and how many of the due ones read as sent back for changes (#39627), quiet until a re-review clears them. + 'governedHandoffBounced', 'governedRegisterReason', 'governedRecordAuthorsReason', 'liveFolds', @@ -20202,6 +20267,8 @@ export function summaryLine(counts, findingCount) { 'is quiet; an unread thread is UNJUDGED; a PASS counts only from the relay or an account in ' + '`GOVERNED_APPROVERS`, on its one `VERDICT:` line, as the queue guard reads it' + `${counts.governedRecordAuthorsReason ? ` — NOT MEASURED, every thread UNJUDGED: ${counts.governedRecordAuthorsReason}` : ''}), ` + + `${counts.governedHandoffBounced ?? 0} of those read sent back for changes (H48's bounce reading) and owe ` + + 'no request until a PASS on their current head newer than the bounce, ' + 'and the submitted-review leg answered on ' + `${counts.governedReviewProbed ?? 0} of those ${counts.governedHandoffDue ?? 0} (Tier H only — a Tier S ` + `PR lands on a record, is asked nobody, and is out of this item; oldest-first, ${H43_REVIEW_PROBE_CAP} ` + @@ -20315,7 +20382,8 @@ export function summaryLine(counts, findingCount) { 'already in hand: `commentCache` holds CARD threads only. A thread that failed or reached that ' + 'ceiling is UNJUDGED rather than short, a PR whose changed-file page went unread is not in this ' + 'population at all — nor is a Tier S PR, whose landing has no maintainer inbox — and a governed ' + - 'PR with NO `**ACCEPT**` verdict is CLEAN rather than quiet. A PR missing a half is asked whether it ' + + 'PR with NO `**ACCEPT**` verdict, or whose newest verdict is a `**REWORK**`, is CLEAN rather than quiet. ' + + 'A PR missing a half is asked whether it ' + 'was sent back for changes, on ONE submitted-review page bought for it: ' + `${counts.briefBounced ?? 0} read bounced and stay quiet until a PASS on their current head newer than ` + 'the bounce, and one whose page or record authors could not be read is UNJUDGED' @@ -25488,6 +25556,22 @@ async function sweepInto(findings, seen, seenPrs, seenMerged, seenUnscoped, seen ); stats.governedHandoffDue = handoffDue.length; + // The submitted-review page cache, shared by H43's bounce leg here and H48's below: ONE page per PR. + const prReviewCache = new Map(); + const prReviewRowsFor = async (number) => { + if (prReviewCache.has(number)) return prReviewCache.get(number); + let value = null; + try { + const page = await rest(`/repos/${OWNER_REPO}/pulls/${number}/reviews?per_page=${H43_REVIEWS_PAGE_SIZE}`); + // A full page may hide the newest review: UNREAD, never a short list. + value = Array.isArray(page) && page.length < H43_REVIEWS_PAGE_SIZE ? page : null; + } catch { + value = null; + } + prReviewCache.set(number, value); + return value; + }; + const reviewedByPr = new Map(); for (const pr of handoffDue.slice(0, H43_REVIEW_PROBE_CAP)) { let reviews; @@ -25505,6 +25589,18 @@ async function sweepInto(findings, seen, seenPrs, seenMerged, seenUnscoped, seen pr.number, (Array.isArray(reviews) ? reviews : []).map((r) => String(r?.user?.login ?? '')).filter(Boolean), ); + // The same page, as the bounce reading takes it: a full page may hide the newest review — UNREAD there. + prReviewCache.set(pr.number, Array.isArray(reviews) && reviews.length < H43_REVIEWS_PAGE_SIZE ? reviews : null); + } + + // The bounce (#39627): a DUE hand-off sent back for changes since owes no request until the re-review. The ONE + // reading H48 and `--handoff` ask, over the thread already in hand and the page just bought — no new request; + // a PR past the probe cap or whose page failed reads `unread` and the row stands as it did without the leg. + const bounceByPr = new Map(); + for (const pr of handoffDue) { + const bounce = h48BounceReading({ rows: await prCommentRowsFor(pr.number), reviews: prReviewCache.get(pr.number) ?? null, headSha: String(pr.head?.sha ?? ''), authors: recordAuthors }); + if (bounce.state === 'bounced') stats.governedHandoffBounced = (stats.governedHandoffBounced ?? 0) + 1; + bounceByPr.set(pr.number, bounce); } for (const pr of seenPrs.values()) { @@ -25516,6 +25612,7 @@ async function sweepInto(findings, seen, seenPrs, seenMerged, seenUnscoped, seen GOVERNED_REGISTER.approvers, reviewedByPr.get(pr.number) ?? null, handoffByPr.get(pr.number), + bounceByPr.get(pr.number), ); if (gap) findings.push([pr, 'H43', gap]); } @@ -25536,20 +25633,7 @@ async function sweepInto(findings, seen, seenPrs, seenMerged, seenUnscoped, seen // `h48BounceReading` — the reading `label-write.mjs --handoff` refuses on. It buys ONE submitted-review page per // such PR (never per governed PR: `h48NeedsBounceRead`) and the queue guard's record authors, loaded once; a // page or a binding that did not answer leaves the PR UNJUDGED, never a finding asking for the label back. - const prReviewCache = new Map(); - const prReviewRowsFor = async (number) => { - if (prReviewCache.has(number)) return prReviewCache.get(number); - let value = null; - try { - const page = await rest(`/repos/${OWNER_REPO}/pulls/${number}/reviews?per_page=${H43_REVIEWS_PAGE_SIZE}`); - // A full page may hide the newest review: UNREAD, never a short list. - value = Array.isArray(page) && page.length < H43_REVIEWS_PAGE_SIZE ? page : null; - } catch { - value = null; - } - prReviewCache.set(number, value); - return value; - }; + // The page cache (`prReviewRowsFor`) is H43's too, declared above it: a PR both rows ask about pays once. for (const pr of seenPrs.values()) { const governed = governedByPr.get(pr.number); if (!h48SpeaksAbout(pr, governed)) continue; @@ -26978,7 +27062,9 @@ export const SELF_TEST_BATTERIES = Object.freeze({ // Registered with the bounced-pull reading (#39516), pin AT the count: a NARROWING of when H48 fires, so the // controls that keep it a narrowing and not a silencer live inside it — the unbounced pull that must still fire, // each trigger's exit cell, the flake, foreign-author and untrusted-reviewer controls, and the unread leg that stays UNJUDGED. - 'H48 bounced pull': 29, + // 29 → 34 (#39628): the newest verdict of either kind — the REWORK-after-ACCEPT cell, its delta-ACCEPT control, the + // gathering policy, the marker's grammar and its clause. + 'H48 bounced pull': 34, // Registered with the hand-off timing: 89 cases (57 legacy coverage cases now // driven with the hand-off DUE, 32 timing cases), the pin just under. What this // battery floors is a NARROWING of when the row fires — only once the seat's @@ -26998,7 +27084,9 @@ export const SELF_TEST_BATTERIES = Object.freeze({ // must END, the FAIL spellings, the fail-safe idiom. The battery registers 126 cases beside these rows. // 103 → 109 (#35612): the `.claude/**` declaration split on the slice — stood down on a verified `none`, listed on // `yes`, the six Tier H shapes, the pending stage, the thread's record reading, an unloaded register, the loader. - 'H43 hand-off timing': 109, + // 109 → 118 (#39627): the bounced hand-off — the unbounced control, three triggers and their exits, the unread + // leg that leaves the row as it was, the one-wiring source pin and the clause. + 'H43 hand-off timing': 118, // Registered with the seat-patrol rows (#28642), pin just under the count: two // free readings, each with its firing controls and its out-of-scope arms inside; // H71's intake readers (seat title, card labels and epic parent) add five. @@ -34793,6 +34881,32 @@ async function selfTest() { t43('H43 states: the roster of hand-off states is unread, before, due', H43_HANDOFF_STATES.join(), 'unread,before,due'); t43('H43 summary: the hand-off reading is disclosed — threads read, how many are due, and that BEFORE is quiet by design', [saidBy('h43GovernedReviews', summaryLine({ governedPrs: 8, governedReviewCandidates: 5, governedHandoffRead: 4, governedHandoffDue: 2, governedReviewProbed: 2 }, 0)).includes('thread was read on 4 of 5'), saidBy('h43GovernedReviews', summaryLine({ governedPrs: 8, governedReviewCandidates: 5, governedHandoffRead: 4, governedHandoffDue: 2, governedReviewProbed: 2 }, 0)).includes("2 are past the seat's hand-off point"), saidBy('h43GovernedReviews', summaryLine({}, 0)).includes('nobody is owed a request and the row is quiet')].join(), 'true,true,true'); t43('H43 summary: the two new count keys ride the enumerated forwarding contract', ['governedHandoffRead', 'governedHandoffDue'].every((k) => SWEEP_COUNT_KEYS.includes(k)), true); + // -- H43 — a DUE hand-off SENT BACK for changes owes no request (#39627) ------------------------------------------ + // + // On `main` the row asked for the approver on every trigger below: the hand-off reading saw the ACCEPT and the + // same-head PASS and nothing else. One cell per trigger the hand-off reading cannot see (a FAIL record is already + // BEFORE there), one exit cell per trigger, and the unbounced control. Driven through `h48BounceReading`, the ONE + // wiring H48 and `label-write.mjs --handoff` ask; the triage comment and the review are the shapes H48's cases use. + const TRIAGE43 = { id: 950, user: { login: 'github-actions[bot]' }, created_at: '2026-10-28T12:00:00Z', body: '### merge queue build failed\n\n\n' }; + const CR43 = { id: 951, state: 'CHANGES_REQUESTED', user: { login: APP43[0] }, submitted_at: '2026-10-28T12:00:00Z' }; + const RE43 = { id: 952, user: { login: RELAY43 }, created_at: '2026-10-28T13:00:00Z', body: PASS43 }; + const OPEN43 = PASS43.replace('**VERDICT: PASS**', 'S1 (should-fix) — the read-back skips the label.\n\n**VERDICT: PASS**'); + const DUE_ROWS43 = rows43(ACCEPT43, PASS43); + const bounce43 = (rows, reviews = []) => h48BounceReading({ rows, reviews, headSha: HEAD43, authors: AUTH43 }); + const gap43b = (rows, reviews = [], reviewed = reviews.map((r) => r.user.login)) => + h43GovernedReviewRequestGap(h43pr(18), GOV43, APP43, reviewed, h43HandoffReading(rows, HEAD43, AUTH43), bounce43(rows, reviews)); + t43('⭐ H43 bounce control: an UNBOUNCED due hand-off with nobody asked still gets the finding', [bounce43(DUE_ROWS43).state, typeof gap43b(DUE_ROWS43)].join(), 'clear,string'); + t43('⭐ H43 bounce ① a red merge-queue build after the hand-off: no finding', typeof gap43b([...DUE_ROWS43, TRIAGE43]), 'object'); + t43('⭐ H43 bounce ① exit: a NEWER PASS on the current head restores the finding', typeof gap43b([...DUE_ROWS43, TRIAGE43, RE43]), 'string'); + t43('⭐ H43 bounce ② the newest record carries an open should-fix beside its PASS line: the hand-off still reads DUE, and no finding', [h43HandoffReading(rows43(ACCEPT43, OPEN43), HEAD43, AUTH43).state, typeof gap43b(rows43(ACCEPT43, OPEN43))].join(), 'due,object'); + t43('⭐ H43 bounce ③ an approver\'s CHANGES_REQUESTED: no finding', typeof gap43b(DUE_ROWS43, [CR43]), 'object'); + t43('⭐ H43 bounce ③ exit: a NEWER PASS on the current head restores the finding', typeof gap43b([...DUE_ROWS43, RE43], [CR43]), 'string'); + t43('H43 bounce: an UNREAD bounce leg (no review page) leaves the row as it was, and its sentence says the bounce is unread too', (() => { const row = String(h43GovernedReviewRequestGap(h43pr(18), GOV43, APP43, null, DUE43, h48BounceReading({ rows: DUE_ROWS43, reviews: null, headSha: HEAD43, authors: AUTH43 })) ?? ''); return [row.includes('has asked NOBODY'), row.includes('sent back for changes since the hand-off reads that page too')].join(); })(), 'true,true'); + { + const src = readFileSync(fileURLToPath(import.meta.url), 'utf8'); + t43('H43 bounce wiring: the sweep asks the ONE reading over the thread and the page H43 bought, and hands it to the row — no second bounce reader', [src.includes(['const bounce = h48BounceReading({ rows: await prCommentRowsFor(pr.number), ', "reviews: prReviewCache.get(pr.number) ?? null, headSha: String(pr.head?.sha ?? ''), authors: recordAuthors });"].join('')), src.includes(' bounceByPr.get(pr.number),\n );\n if (gap) findings.push([pr, \'H43\', gap]);'), (src.match(/\bbouncedSince\(/g) ?? []).length].join(), 'true,true,1'); + } + t43('H43 bounce summary: the bounced count rides the forwarding contract and the clause says what it costs', [SWEEP_COUNT_KEYS.includes('governedHandoffBounced'), saidBy('h43GovernedReviews', summaryLine({ governedPrs: 3, governedReviewCandidates: 3, governedHandoffRead: 3, governedHandoffDue: 2, governedHandoffBounced: 1 }, 0)).includes('1 of those read sent back for changes')].join(), 'true,true'); t43('H43 floor: this battery is DECLARED on the frozen roster with a positive pin', Object.hasOwn(SELF_TEST_BATTERIES, BATTERY43) && SELF_TEST_BATTERIES[BATTERY43] > 0 && Object.isFrozen(SELF_TEST_BATTERIES), true); // -- H44 — a reading with no 取数时刻 (#14929, report-only) ----------------- @@ -35705,6 +35819,18 @@ Doubles as the fire's **write self-check** (step 0). \`201\` is not the reading. b(BATTERY48B, 'H48 bounce wiring: the sweep asks the ONE reading on the review page it buys and hands it to the row', [src.includes('bounce = h48BounceReading({ rows, reviews: await prReviewRowsFor(pr.number), headSha: String(pr.head?.sha ?? \'\'), authors: recordAuthors });'), src.includes('const handoff = h48GovernedVerdictWithoutBrief(pr, governed, rows, bounce);')].join(), 'true,true'); } b(BATTERY48B, 'H48 bounce summary: the bounced count rides the forwarding contract and the clause says what it costs', [SWEEP_COUNT_KEYS.includes('briefBounced'), saidBy('h48Brief', summaryLine({ briefJudged: 3, briefCandidates: 3, briefBounced: 2 }, 0)).includes('2 read bounced and stay quiet until a PASS on their current head')].join(), 'true,true'); + // -- H48 — the NEWEST seat verdict of either kind decides (#39628) -------------------------------------------------- + // + // On `main` the row read the newest `**ACCEPT**` alone, so an ACCEPT the seat later answered with a REWORK still + // asked for the label and the brief. The cell, its control (the delta ACCEPT after the patch round fires again), + // the gathering policy that must buy nothing for it, and the marker's grammar, the ACCEPT marker's own. + const REWORK48 = '**REWORK** — the read-back skips the label; patch round on the same claim.'; + const REWORKED48 = [...BASE48, fleet48(3, REWORK48, '2026-12-04T06:00:00Z')]; + b(BATTERY48B, '⭐ H48 newest verdict: an ACCEPT followed by a later `**REWORK**` is no hand-off — no finding', fire48(REWORKED48), 'object'); + b(BATTERY48B, '⭐ H48 newest verdict control: a REWORK followed by a later ACCEPT (the delta verdict) still fires', fire48([fleet48(0, REWORK48, '2026-12-04T04:00:00Z'), ...BASE48]), 'string'); + b(BATTERY48B, 'H48 newest verdict gathering: a pull whose newest verdict is REWORK buys no bounce page, and one comment carrying both lines reads REWORK', [h48NeedsBounceRead(pr48b(), GOV48, REWORKED48), h48StandingAccept([fleet48(1, `${VERDICT48}\n${REWORK48}`, '2026-12-04T05:00:00Z')])].join(), 'false,'); + b(BATTERY48B, 'H48 rework marker: the ACCEPT marker\'s grammar — bold at a line start, blockquote allowed; prose, unbolded, `**REWORKED**` and lowercase are no verdict', [REWORK48, '> **REWORK** — quoted', 'answering **REWORK** 7403706237', 'REWORK — x', '**REWORKED** — x', '**Rework** — x'].map((body) => REWORK_VERDICT_MARKER.test(body)).join(), 'true,true,false,false,false,false'); + b(BATTERY48B, 'H48 newest verdict summary: the clause names a REWORK-newest PR as CLEAN', saidBy('h48Brief', summaryLine({}, 0)).includes('or whose newest verdict is a `**REWORK**`, is CLEAN'), true); b(BATTERY48B, 'H48 bounce floor: this battery is DECLARED on the frozen roster with a positive pin', Object.hasOwn(SELF_TEST_BATTERIES, BATTERY48B) && SELF_TEST_BATTERIES[BATTERY48B] > 0 && Object.isFrozen(SELF_TEST_BATTERIES), true); // Registry, counters and the clause.