Skip to content

fix(pm): H43 asks the bounce reading; H48 weighs the newest seat verdict of either kind - #39675

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-7yrroi
Dec 4, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-7yrroi

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread
Fixes #39627
Fixes #39628

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用户无感;席位巡查不再对"已退回修改"的治理面合并请求提示去请你审核,也不再把"先通过、后退回"的请求当成待交接。
  • 为什么做:替维护者挡住未就绪的请求进入你的审核收件箱,是"退回后复审通过再挂"规则在巡查工具里的剩余两处。
  • 出错会怎样:最坏是巡查对一个本该提醒的请求保持安静,或照旧多提醒一次;只改内部巡查工具,可直接撤回。
  • 要你做什么:无。

What changes

One file, scripts/pm/check-half-states.mjs.

H43 (approver request owed) asks the bounce reading (#39627). Once the hand-off reads DUE (## 席位核对 ACCEPT and a same-head ## Contract review PASS), the sweep now asks h48BounceReading, the one wiring H48 and label-write.mjs --handoff already ask, and h43GovernedReviewRequestGap takes its answer as a sixth argument and stays quiet while it reads bounced. No second bounce reader: bouncedSince( is still called from exactly one place, and a source pin counts it.

  • Input: the thread H43 already holds and the submitted-review page it already buys for a DUE PR. The page cache (prReviewRowsFor) moved up so H43 seeds it and H48 reuses it. A PR both rows ask about now costs one review page, not two. No new request.
  • unread (a PR past H43_REVIEW_PROBE_CAP, a failed page, or a full page) and undefined leave the row as it was. Where the review page is missing, the existing "submitted-review leg was NOT read" sentence now adds that the bounce is unread too.
  • The summary clause reports the count (governedHandoffBounced, on the forwarding contract).

H48 reads the newest seat verdict of either kind (#39628). A new REWORK_VERDICT_MARKER, with the same grammar as ACCEPT_VERDICT_MARKER (bold at a line start, optional blockquote, no i flag, no g flag). A new h48StandingAccept(rows) returns the newest ACCEPT only when it is newer than every REWORK. It orders comments the way latestMarkedComment does, and one comment carrying both lines reads as REWORK.

  • H48 and its gathering policy h48NeedsBounceRead both ask h48StandingAccept. A PR whose newest verdict is REWORK is clean and buys nothing.
  • A later delta ACCEPT stands again.
  • The H48 summary clause names the REWORK-newest case as CLEAN.

Tests

Self-tests on 18794da (all green)
  • node scripts/pm/check-half-states.mjs --self-test: 5519 cases pass (was 5505). H43 hand-off timing 141/118 (pin 109 → 118, +9). H48 bounced pull 34/34 (pin 29 → 34, at the count).
  • node scripts/pm/label-write.mjs --self-test: 414 cases pass across 19 batteries (unchanged; it imports both rows).
Pins: one cell per trigger, its exit, and the control

H43 (in H43 hand-off timing):

  • Control: an unbounced DUE hand-off with nobody asked still fires (clear,string).
  • ① A red merge-queue build after the hand-off: quiet. ① exit: a newer PASS on the head fires again.
  • ② The newest record carries an open should-fix beside its PASS line: the hand-off still reads DUE, and the row is quiet (due,object). A FAIL record is already BEFORE in H43's own reading, so it needs no new cell.
  • ③ An approver's CHANGES_REQUESTED: quiet. ③ exit: a newer PASS fires again.
  • An unread bounce leg leaves the row firing, and its sentence says the bounce is unread.
  • Source pin: the sweep's one wiring is present, the row is handed bounceByPr, and bouncedSince( is called exactly once in the file.
  • The summary key and clause.

H48 (in H48 bounced pull):

  • An ACCEPT followed by a later **REWORK**: no finding.
  • Control: a REWORK followed by a later ACCEPT still fires.
  • Gathering: a REWORK-newest pull buys no bounce page, and a single comment carrying both lines reads REWORK.
  • The marker's grammar: bold at a line start and blockquoted forms match; prose, unbolded, **REWORKED** and lowercase do not.
  • The summary clause.
Red on main first (a92f1ed, the base)

The same fixtures were driven through the exported functions of an untouched a92f1ed9 checkout from a scratch script:

  • RED: H43 ① queue-red (got a finding), H43 ② open should-fix (got a finding), H43 ③ CHANGES_REQUESTED (got a finding), H48 ACCEPT-then-REWORK (got a finding), H48 gathering on REWORK-newest (got true).
  • GREEN (the controls and the exits describe today's behaviour): H43 unbounced control, H43 ① and ③ exits, and H48 REWORK-then-ACCEPT.

On this head all nine read GREEN.

Ablation (committed head, restored byte-exact)

Both mutations went through node scripts/ablation-replace.mjs, which ran the self-test with each mutation in place and then restored the file. Each restore was confirmed with blob fae5a66db834 equal to HEAD and an empty git diff HEAD.

  1. The H43 gate if (bounce?.state === 'bounced') return null; replaced with a no-op (anchor 1 → 0): 3 of 5519 red, exactly the ①, ② and ③ trigger cells. The control and the exits stayed green.
  2. return acceptNewer ? accept : null; replaced with return accept; (anchor 1 → 0): 2 of 5519 red, the ACCEPT-then-REWORK cell and the gathering cell. The delta-ACCEPT control stayed green.
Local gates on 18794da

node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands derived 69 commands. 68 exited 0.

  • pnpm check:pm-dispatch-gates hit my first 280 s timeout (exit 124). It was re-run alone and exited 0 (2926 cases pass, 496 s).
  • pnpm check:i18n-coverage is NOT MEASURED: it exited 3, PREREQUISITE NOT MET, because the CLI and example build closure is not built in this worktree. This diff touches no i18n surface, and CI runs the gate.
  • dispatch-gates --ran reconciliation: 69 derived famil(ies) accounted for — 68 run, 1 NOT-MEASURED.
  • node scripts/check-nul-bytes.mjs: exit 0.

Acceptance notes

  • H43's narrowing is limited to bounced. An unread bounce leg keeps today's finding and says so in its sentence. H43 already fires on a missing review page with a sentence saying so, so going quiet there would turn the probe cap into a silencer.
  • label-write.mjs --handoff prints now H43 without the bounce. Its handoffRowLines calls h43GovernedReviewRequestGap with five arguments. On a bounced pull, the door still refuses with exit 2 and writes nothing, as before. Its printed now H43 line still reads ✗, while the patrol's H43 is now quiet. The repair is to hand it bounce as the sixth argument. I left it alone: check-handover.mjs --inflight --paths=scripts/pm/label-write.mjs reports an in-flight claim on that file (pm-dispatch decision-analysis: settle the tier-line rule gaps left by #38492 (N1–N4, plus the reader notes N-a, N-b, N-c, N-d, N-g) #38874, another seat's card). The seat should route it.
  • Verdict spelling on the live board. Both H48 markers read the canonical bold line only. The measured live L1 verdicts match neither marker. Examples are comment 7408593345 (**L1-a · ACCEPT · …**), L1-a verdict: **REWORK**, **Verdict: REWORK.** and ## 席位核对 — L1 REWORK @. So H48 neither fires on those ACCEPTs nor is withdrawn by those REWORKs. This predates this PR: ACCEPT_VERDICT_MARKER's own header puts the repair on the write side. Reported to the seat, not filed here.
  • REJECT is not read as a withdrawing verdict. Both cards name ACCEPT and REWORK only.
  • No changeset: scripts/pm/** publishes nothing (skip-changeset).
  • ui/scripts/__tests__/cross-file-line-citation-census.test.ts names this file only as a path in a bucket list. Its content is not read there.

Verification

Read first, by risk:

  1. scripts/pm/check-half-states.mjs: the sweep block after the H43 review-page loop (bounceByPr, and the hoisted prReviewCache seeded from H43's page).
  2. Same file: h48StandingAccept and its two callers (h48NeedsBounceRead, h48GovernedVerdictWithoutBrief).
  3. Same file: the bounce gate in h43GovernedReviewRequestGap.

Two-minute check: run node scripts/pm/check-half-states.mjs --self-test. The last line should list H48 bounced pull 34/34 and H43 hand-off timing 141/118.


Generated by Claude Code

…ict of either kind

H43 (approver request owed) now asks `h48BounceReading`, the one bounce
reading H48 and `label-write.mjs --handoff` already ask, over the thread it
holds and the review page it buys, and stays quiet while a due hand-off
reads `bounced`. The review-page cache is shared with H48, so a PR both
rows ask about pays one page.

H48 reads the newest seat verdict of either kind (`**ACCEPT**` or the new
`REWORK_VERDICT_MARKER`, same grammar) through `h48StandingAccept`, and
fires only when that newest verdict is ACCEPT; its gathering policy buys
nothing for a REWORK-newest pull.

Claude-Session: https://claude.ai/code/session_01L9qibwyQdwtP9TZSitysAc
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

L1-a · ACCEPT · #39675 @ 18794da1a1 · Area: ot-build · read 2026-12-04T13:16Z

  • Face: one file, scripts/pm/check-half-states.mjs. It is not on the governed list and is not a guard instrument (the always-H list is check-governed-merges, check-governed-queue-guard, record-recognisers and dispatch-gates). Clause-②: no and Metadata-protocol: none, so no L2 is owed and this is not Tier H. This is the seat's TIER_DEFAULT read.
  • skip-changeset confirmed: scripts/pm/** belongs to the root workspace (@objectstack/spec-monorepo, unpublished) and ships in no released package. l1-face reads it the same way.
  • Two cards, two Fixes: l1-face flags keywords-other-cards for Fixes #39628. This is intended. Each card has a Claim: naming this PR's head branch claude/project-thread-7yrroi (7411220490 on pm tooling: H43 still asks for the approver on a governed PR sent back for changes #39627, 7411236502 on pm tooling: H48 reads an older ACCEPT after a later REWORK on a governed PR #39628), PR-body guards is green, and the diff delivers both cards' Expected.
  • pm tooling: H43 still asks for the approver on a governed PR sent back for changes #39627 (H43 reads the bounce):
    • H43 asks the one wiring h48BounceReading. It reads the thread it already holds and the review page it already buys; the page cache is hoisted so H43 and H48 share one page per PR. bouncedSince keeps a single call site.
    • bounced is quiet. clear, unread and an unconsulted leg leave the row as before, and unread adds a clause to the existing "page missing" sentence.
    • recordAuthors is loaded before the bounce loop: handoffDue ⊆ shortOfCoverage, and the author binding is loaded for that set above it.
    • The --handoff door already refuses a bounced pull before its H43 row is printed, so passing no bounce there is consistent.
  • pm tooling: H48 reads an older ACCEPT after a later REWORK on a governed PR #39628 (newest verdict decides): REWORK_VERDICT_MARKER is spelled exactly as ACCEPT_VERDICT_MARKER (line-anchored, bold, optional blockquote), so a REWORK named in prose is no verdict. h48StandingAccept uses latestMarkedComment's own ordering: stamps when both are dated, thread order otherwise or on a tie. When both verdicts are in one comment it reads REWORK, so it fails closed. H48 and the gathering policy h48NeedsBounceRead both read the standing ACCEPT, and the summary clause says a PR whose newest verdict is REWORK is CLEAN.
  • Evidence: self-test 5519 pass; pins red on main for all five target cells; each of the two ablations flips exactly its own cells (report 7412161937). check:i18n-coverage was not measured locally (no i18n surface); CI's Lint & Repo Gates covers it.
  • Gates at 18794da1a1 (l1-face.mjs --pr 39675): 32 success · 23 expected-skip names · 0 failed · 0 pending, mergeable clean.

Not governed, not Tier H. The seat lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB

2026-12-04T13:17Z · Seat record · land PR #39675 (#39627 + #39628) at head 18794da1a1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants