Repository navigation
fix(pm): the governed-merges audit reads the queue's own removal up to 1 s before merged_at as the merge's - #38896
Conversation
…o 1 s before merged_at The enqueue leg cut the timeline strictly before `merged_at`, so a `removed_from_merge_queue` that `github-merge-queue[bot]` stamped one second before the merge survived the cut and read as the newest queue event: the maintainer's own enqueue read as undetermined and the row fell through to the record leg as a seat BREACH (all twelve rows of #34178). `timelineAsQueued` drops that removal only when it is the last queue event, its actor is the queue bot, and it sits within `MERGE_QUEUE_REMOVAL_WINDOW_MS` (1 s, the measured gap) of `merged_at`. Any other actor, a removal further out, or an earlier removal followed by a re-add reads as before. Claude-Session: https://claude.ai/code/session_01WGufzfWWgrLkABDvbRjhAk Co-authored-by: Claude <noreply@anthropic.com>
…inal queue event Claude-Session: https://claude.ai/code/session_01WGufzfWWgrLkABDvbRjhAk Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfWWgrLkABDvbRjhAk Final green head: |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 062ea49 · 2026-12-01T10:46Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract reviewServed-tier: Read: card #38863 with its three comments (triage 7304869940, claim 7306497669, os-dev-report 7308260346), the PR body and file list, the net diff against ① Derived judgments
② Semver level
Clause-②: no. Correct: the diff changes no published accept set and nothing a metadata author can write. ③ Boundary flags
④ Design judgment
No must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 review + L2 adoption · PR #38896 (#38863) · head 062ea49 · 2026-12-01T10:51ZL1: ACCEPT. L2 (contract-review tier, record 7308834667): PASS, no must-fix and no should-fix. N1 and N2 are nits accepted as is. I adopt the record. The file is an always-H instrument, so the PR goes to the maintainer through the seat. What I checked:
For the seat:
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 席位核对ACCEPT — PR #38896 @
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 维护者速读
席位意见:同意落地。ACCEPT → PR #38896 comment 7308882210。 |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 2026-12-01T11:22Z · Merged at 2026-12-01T11:22Z after the maintainer enqueued it; |
Requested by Yibo Wang · project thread
Fixes #38863
Refs #34178
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
scripts/pm/check-governed-merges.mjsonly (Tier H: an always-H instrument).timelineAsQueued(events, landed, { enqueueEvent, dequeueEvent })feeds the enqueue leg ofreadLandingClearance. It keeps the events strictly beforemerged_at, as before. It also drops the merge's own terminalremoved_from_merge_queue, but only when all three hold: it is the last queue event the cut keeps, its actor isgithub-merge-queue[bot](MERGE_QUEUE_BOT), and it is at mostMERGE_QUEUE_REMOVAL_WINDOW_MSbeforemerged_at. The guard'senqueuerFromTimelinethen reads the actor of theadded_to_merge_queuebefore it. The guard is not edited.MERGE_QUEUE_REMOVAL_WINDOW_MS = 1000. Its docblock cites the readings: 0 s on docs(skills): an owner, assignee or 负责人 in a request is the injected owner_id #33555, docs(skills): four automation, query and ui evals spell their own must_contain literals #33632 and feat(pm): a record naming CONTRACT_REVIEW_TIER is written only on a transcript served at the tier #33616, and 1 s on all twelve BREACH rows of governed-merges audit: a BREACH or an unread week on main #34178 (table below). GitHub stamps whole seconds, so 1 s is the narrowest window the readings support. No gap over 1 s was measured..claude/**split leg.readArmLandingheader and the self-test fixture comment) now state the measured window instead of "shares the merge's instant".Tests
Self-test pins, under
node scripts/pm/check-governed-merges.mjs --self-test(1017 assertions, exit 0 on062ea49f4):.claude/**declaration split lands, the relay review plan and the patrol landing row still read the raw Tier S and never ask the maintainer #35612 split battery, 35 → 36: the one-second shape on the split leg, with another actor's removal and the fleet bot as controls.Ablation (fix committed first; every mutation via scripts/ablation-replace.mjs, restored to the HEAD blob)
062ea49f4). Re-ablated: red.Re-run on #34178's rows
Enqueue leg, read on each PR's live timeline and
merged_atthrough the real guard, before (strict cut) and after (timelineAsQueued):End-to-end sweep, the real CLI on both trees with
--since 2026-11-24T19:30:00Z --repos objectstack --json. Both runs complete, 228 entries each:breach(stage) on197e3ff3btoclearedby enqueue (os-zhuang) on062ea49f4.passtoclearedby enqueue. Its timeline has the same shape: added by os-zhuang 09:48:54, removed by the bot 10:20:32, merged 10:20:33. It was listed as a seat landing on a record, but it was the maintainer's enqueue.NOT MEASURED: the end-to-end sweep row for the other eleven PRs. A window back to 2026-11-10 timed out at 570 s, and a 7-day window already takes about 8 minutes per tree, so this container's 10-minute foreground limit cannot fit it. Their enqueue-leg reading is in the table above. The weekly audit job will read them on its next run.
Smaller finding: recommendation for the seat to route
Recommendation: enforce the record template where the record is written. Do not widen the reader. This PR changes no recogniser (
record-recognisers.mjsis outside the claimed surface).scripts/pm/record-recognisers.mjslines 2555–2559 on197e3ff3b): a clean round is writtenNo must-fix, no should-fix., and the delta record names what it closes asS1: closed. The rows wrotemust-fix 0 · should-fix 0,S1 closed.andF1 (must-fix on SHA): fixed., which are off-template.Acceptance notes
origin/mainmoved one commit past the base (3c617a28e,packages/specandui/only, nothing underscripts/pm/). It was not merged in, because the diff does not overlap it.git fetch --shallow-since=2026-11-02 origin main(additive).Verification
Read first:
timelineAsQueuedandMERGE_QUEUE_REMOVAL_WINDOW_MS(the risk hunk: the three conditions that drop an event).readLandingClearance.WINDOWpins in the pm: the post-merge governed audit has no owner or schedule, and shows a seat landing through the low-risk arm as a breach #33603 battery.Two-minute check: run
node scripts/pm/check-governed-merges.mjs --self-test. Expected:✓ check-governed-merges --self-test: 1017 assertions, exit 0.Local gates on 062ea49
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack, 63 commands. Reconciled with--ran:63 derived, 61 run, 2 NOT-MEASURED, 0 UNRUN.pnpm check:i18n-coverage: exit 3, PREREQUISITE NOT MET (no CLI or examples build in this worktree).pnpm check:pm-dispatch-gates: killed by timeout at 200 s and again at 280 s on the shared box, so it never reached a verdict.node scripts/check-self-test-workflow-commands.mjsfirst failed when its spawn timed out (spawnSync node ETIMEDOUT) while the box was loaded. Re-run alone: exit 0.scripts/pm/**is not published (skip-changeset).Generated by Claude Code