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
check-governed-merges: the maintainer's own queue merges read as seat BREACH rows when the queue removal is stamped one second before merged_at #38863
Filing gate: ① a measured defect with a named landing point. Source: the decision-round thread's reading of all 12 BREACH rows on #34178 (2026-12-01), spot-checked by the seat on #37072.
Grading: area:fleet · domain:skills · Bug · reach: the weekly governed-merges audit announces the maintainer's own merges as seat violations (2 new rows on 2026-11-29) · evidence: timelines below. Suggested grade p2; the grade is triage's.
The reader is readLandingClearance in scripts/pm/check-governed-merges.mjs. It keeps timeline events with created_at < merged_at, so the removal survives the cut. enqueuerFromTimeline then sees a removal as the newest queue event and answers "undetermined". The enqueue leg clears nothing, and the row falls through to the record leg. The docblocks (around lines 5400 and 11536) assume the removal "shares the merge's instant", which held only on the three measured PRs.
Controls: #33555 and #33632 (os-zhuang, removal == merged_at) clear. #33616 was enqueued by objectstack-fleet[bot], which is a real seat landing.
Done when
The queue's terminal removal that belongs to the merge (by github-merge-queue[bot], within a small window before merged_at) is not read as the newest queue event, so the enqueuer is read from the added_to_merge_queue before it.
There is a pin for the minus-one-second shape, and the docblocks state the measured window.
8 of the 10 non-security rows fail the record leg only because of phrasing the reader does not accept: must-fix 0 · should-fix 0, S1 closed., F1 (must-fix on <sha>): fixed.. Decide whether the reader widens or the record template is enforced. That choice goes in this card's PR body.
scripts/pm/check-governed-merges.mjs is an always-H instrument, so its PR is Tier H.
Refs #34178.
Triage: first-touch grading · area:fleet · Bug · p2 · reach: the weekly governed-merges audit reports the maintainer's own merges as seat breaches (12 rows on #34178, 2 new on 2026-11-29) · evidence: the timelines on the card · pm:queue.
p2: a fleet instrument that accuses seats of breaches they did not commit changes what the fleet decides from the audit, so it is more than cosmetic.
Claim: PM loop round 3
Session: session_01WGufzfWWgrLkABDvbRjhAk
Account: os-support-ai
Branch: claude/issue-38863-queue-removal-window
Worktree: objectstack-issue-38863
Domain: domain:skills
Seat: repo:objectstack@os-support-ai
Area: osa-fleet
File surface: scripts/pm/check-governed-merges.mjs (readLandingClearance / enqueuerFromTimeline: the merge's own terminal removed_from_merge_queue by github-merge-queue[bot] inside a measured window before merged_at is not read as the newest queue event; the two docblocks near lines 5400 and 11536 state the measured window; self-test rows for the minus-one-second shape, the equal-instant controls #33555#33632, and #33616 enqueued by objectstack-fleet[bot]). Stop on breach.
Container & model: M, mode:subagent, model: default tier (dispatch-gates --tier on the surface: "Model tier — no path-derived mandate"), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: scripts/pm/check-governed-merges.mjs docblock line 5400 assumed the removal "shares the merge's instant" from three measured PRs; 12 rows on #34178 show it one second earlier.
Thread-read: 7304869940
Premise: holds. Read at 2026-12-01T09:17Z on origin/main197e3ff: check-governed-merges.mjs:5400 and :11536 still say the removal shares the merge's instant, and readLandingClearance (:5527) keeps timeline events strictly before merged_at.
Pre-claim lane: domain:skills (file ownership only), inside the osa-fleet lease (scripts/pm/**).
Pre-claim deps: none. Filed by this seat (decision-round reading of #34178); triage 7304869940 graded p2.
Prior rulings read: check-prior-rulings --card 38863: 233 hits; ADR-0005 §5, ADR-0055 §3, ADR-0076 D11, ADR-0090 D11, ADR-0125 D1, ADR-0139 D4, ADR-0146 D6 match by term overlap only; none answers the queue-removal window.
Scope: Done-when 1 to 3. The card's smaller finding (8 record-leg rows failing on phrasing): the PR body states the choice (widen the reader, or enforce the template) and why. Widening a recogniser in record-recognisers.mjs is outside this surface and goes to a sibling card the seat routes.
Overlap: check-handover --inflight --card=38863 reads NO OVERLAP (only #38415 unread, this seat's own card with no path). #38866 (#38296 readers) is closed unmerged, so no serial wait on this file.
Tier: H (check-governed-merges.mjs is always-H). One contract-tier L2 on the final head, then the seat hands it off.
{
"issue": 38863,
"status": "done",
"branch": "claude/issue-38863-queue-removal-window",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38896",
"session": "session_01WGufzfWWgrLkABDvbRjhAk",
"premise_still_valid": true,
"summary": "PM mechanism assumptions confirmed on origin/main 197e3ff3b: readLandingClearance cut the timeline strictly before merged_at, so the queue bot's removal stamped 1 s earlier survived and enqueuerFromTimeline (guard, not edited) answered undetermined. Added MERGE_QUEUE_REMOVAL_WINDOW_MS = 1000 (docblock cites 0 s on #33555/#33632/#33616 and 1 s on all 12 #34178 rows) and timelineAsQueued, which drops the merge's own removal only when it is the last queue event the cut keeps, its actor is github-merge-queue[bot], and it is within 1 s of merged_at; both callers of the landing half (arm leg and .claude/** split leg) read it. Re-run on the 12 rows' live timelines: every one goes undetermined -> authorized (os-zhuang) on the enqueue leg; controls unchanged (#33555/#33632 authorized, #33616 fleet bot unauthorized). Live end-to-end sweep (since 2026-11-24T19:30Z) on base vs head: #37072 breach -> cleared by enqueue, plus #38233 pass -> cleared by enqueue (same 1 s shape, os-zhuang enqueue), no other entry moved; end-to-end sweep for the other 11 rows NOT MEASURED (foreground cap). Smaller finding: PR body recommends enforcing the record template at write time, not widening the reader; no recogniser touched.",
"tests": "node scripts/pm/check-governed-merges.mjs --self-test on 062ea49f4: exit 0, '✓ check-governed-merges --self-test: 1017 assertions'; battery floors 71->77 (#33603) and 35->36 (#35612), 7 new WINDOW pins. Ablation (fix committed first, scripts/ablation-replace.mjs, each restored to HEAD blob with empty git diff HEAD): plain cut restored -> 3 pins red; actor binding removed -> 2 red (first attempt was a refused no-op, re-run with a unique replacement); window 60 s -> 2 red; last-event binding removed -> green, exposing a gap, pin added in 062ea49f4, re-ablated -> 1 red. Re-run harness: real guard + timelineAsQueued over live REST timelines and merged_at for the 12 rows + 3 controls (table in PR body). Live sweep: node --use-env-proxy scripts/pm/check-governed-merges.mjs --since 2026-11-24T19:30:00Z --repos objectstack --json on base 197e3ff3b and head 062ea49f4, both exit 0, complete:true, 228 entries each, 2 entries differ (#37072, #38233).",
"gates": "Local on 062ea49f4: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 63 commands; --ran reconciliation exit 0: '63 derived, 61 run, 2 NOT-MEASURED, 0 UNRUN'. 61 exit 0 (incl. pnpm check:pm-governed-merges, node scripts/pm/check-governed-queue-guard.mjs --self-test 641 cases, pnpm check:nul-bytes, pnpm check:commit-card-trailers); node scripts/check-self-test-workflow-commands.mjs first exit 1 (spawnSync node ETIMEDOUT under box load), re-run alone exit 0. NOT-MEASURED: pnpm check:i18n-coverage (exit 3 PREREQUISITE NOT MET, no cli/examples build closure), pnpm check:pm-dispatch-gates (timeout-killed at 200 s and 280 s, exit 124, no verdict). PR check-runs: not yet concluded at report time, CI convergence is the PM's.",
"mcp_calls": "0",
"api_writes": "2 relay strokes (fleet-write dispatch, POST /repos/objectstack-ai/objectstack/dispatches each): pr_create #38896 (create + issue-assignees os-support-ai + issue-labels skip-changeset, read back identical 9700 bytes); os-dev-report comment on #38863 via post-stamped.mjs. Plus 3 git pushes (empty-branch probe, 2 commits), not REST.",
"classifier_refusals": [],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: seat (routes the PR body's recommendation) · smaller finding of #38863: 8 record-leg rows on off-template phrasing (must-fix 0 · should-fix 0 / S1 closed. / F1 (must-fix on SHA): fixed.) — recommendation in PR body: enforce the template at write time (record-recognisers.mjs:2555-2559 on 197e3ff3b already prescribes 'No must-fix, no should-fix.' and 'S1: closed'), not widen the reader; noted, not filed"
],
"files_changed": [
"scripts/pm/check-governed-merges.mjs"
],
"line_budget": "scripts/pm/check-governed-merges.mjs 12325 -> 12419 lines; diff +102 / -8 = 110 changed lines vs the 3000-line human-merge threshold; no skills/** touched",
"deviations": [
"The first local gate batch passed the 600 s foreground limit and the harness moved it to the background; it was stopped with TaskStop and the rest was run in smaller foreground batches with per-command timeouts.",
"origin/main (one commit ahead, 3c617a28e, packages/spec + ui only) was not merged in before opening the PR: no overlap with the diff.",
"This container's shared shallow clone was deepened (git fetch --shallow-since=2026-11-02 origin main) so the live sweep could run; a throwaway comparison worktree at 197e3ff3b was added and removed for the before-sweep.",
"timelineAsQueued and two constants were added as new exports in a file over 1,000 lines rather than in a sibling module: judged to be the fix inside readLandingClearance, and the claim binds the surface to this single file.",
"Commit trailers use the model-free pair from AGENTS.md (the pre-push hook refuses a model name), not the harness reminder's model-named Co-Authored-By; the PR body footer uses the AGENTS.md session-URL form."
]
}
Done · 2026-12-01T11:23Z: closed by PR #38896 (merge 472d3c5c9b, merged 2026-12-01T11:22Z). Contract review PASS 7308834667; L1 ACCEPT 7308845825; seat ACCEPT 7308882210; Tier H.
Shipped: check-governed-merges.mjs no longer reads the merge queue's own terminal removed_from_merge_queue as the newest queue event. That removal is by github-merge-queue[bot], is the last queue event, and falls within MERGE_QUEUE_REMOVAL_WINDOW_MS (1 s) before merged_at. All 12 #34178 rows read os-zhuang's enqueue as authorized. The controls #33555, #33632 and #33616 are unchanged.
Carried, not done here:
N1: a queue-bot removal 2 s or more before merged_at would still read as a false BREACH, never a false clear. The window widens only on a measured row.
Claim 7306497669 ends: pm:dispatched and the os-support-ai assignee are cleared.
Activity
objectstack-fleet commentedon Dec 1, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
Triage: first-touch grading ·
area:fleet · Bug · p2 · reach: the weekly governed-merges audit reports the maintainer's own merges as seat breaches (12 rows on #34178, 2 new on 2026-11-29) · evidence: the timelines on the card·pm:queue.objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfWWgrLkABDvbRjhAk
Claim: PM loop round 3
Session:
session_01WGufzfWWgrLkABDvbRjhAkAccount:
os-support-aiBranch:
claude/issue-38863-queue-removal-windowWorktree:
objectstack-issue-38863Domain:
domain:skillsSeat:
repo:objectstack@os-support-aiArea: osa-fleet
File surface:
scripts/pm/check-governed-merges.mjs(readLandingClearance/enqueuerFromTimeline: the merge's own terminalremoved_from_merge_queuebygithub-merge-queue[bot]inside a measured window beforemerged_atis not read as the newest queue event; the two docblocks near lines 5400 and 11536 state the measured window; self-test rows for the minus-one-second shape, the equal-instant controls #33555 #33632, and #33616 enqueued byobjectstack-fleet[bot]). Stop on breach.Container & model:
M,mode:subagent,model: default tier(dispatch-gates --tieron the surface: "Model tier — no path-derived mandate"),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
scripts/pm/check-governed-merges.mjsdocblock line 5400 assumed the removal "shares the merge's instant" from three measured PRs; 12 rows on #34178 show it one second earlier.Thread-read: 7304869940
Premise: holds. Read at 2026-12-01T09:17Z on
origin/main197e3ff:check-governed-merges.mjs:5400and:11536still say the removal shares the merge's instant, andreadLandingClearance(:5527) keeps timeline events strictly beforemerged_at.Pre-claim lane:
domain:skills(file ownership only), inside the osa-fleet lease (scripts/pm/**).Pre-claim deps: none. Filed by this seat (decision-round reading of #34178); triage 7304869940 graded p2.
Prior rulings read:
check-prior-rulings --card 38863: 233 hits; ADR-0005 §5, ADR-0055 §3, ADR-0076 D11, ADR-0090 D11, ADR-0125 D1, ADR-0139 D4, ADR-0146 D6 match by term overlap only; none answers the queue-removal window.Scope: Done-when 1 to 3. The card's smaller finding (8 record-leg rows failing on phrasing): the PR body states the choice (widen the reader, or enforce the template) and why. Widening a recogniser in
record-recognisers.mjsis outside this surface and goes to a sibling card the seat routes.Overlap:
check-handover --inflight --card=38863reads NO OVERLAP (only #38415 unread, this seat's own card with no path). #38866 (#38296 readers) is closed unmerged, so no serial wait on this file.Tier: H (
check-governed-merges.mjsis always-H). One contract-tier L2 on the final head, then the seat hands it off.objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfWWgrLkABDvbRjhAk
os-dev-report
{ "issue": 38863, "status": "done", "branch": "claude/issue-38863-queue-removal-window", "pr": "https://github.com/objectstack-ai/objectstack/pull/38896", "session": "session_01WGufzfWWgrLkABDvbRjhAk", "premise_still_valid": true, "summary": "PM mechanism assumptions confirmed on origin/main 197e3ff3b: readLandingClearance cut the timeline strictly before merged_at, so the queue bot's removal stamped 1 s earlier survived and enqueuerFromTimeline (guard, not edited) answered undetermined. Added MERGE_QUEUE_REMOVAL_WINDOW_MS = 1000 (docblock cites 0 s on #33555/#33632/#33616 and 1 s on all 12 #34178 rows) and timelineAsQueued, which drops the merge's own removal only when it is the last queue event the cut keeps, its actor is github-merge-queue[bot], and it is within 1 s of merged_at; both callers of the landing half (arm leg and .claude/** split leg) read it. Re-run on the 12 rows' live timelines: every one goes undetermined -> authorized (os-zhuang) on the enqueue leg; controls unchanged (#33555/#33632 authorized, #33616 fleet bot unauthorized). Live end-to-end sweep (since 2026-11-24T19:30Z) on base vs head: #37072 breach -> cleared by enqueue, plus #38233 pass -> cleared by enqueue (same 1 s shape, os-zhuang enqueue), no other entry moved; end-to-end sweep for the other 11 rows NOT MEASURED (foreground cap). Smaller finding: PR body recommends enforcing the record template at write time, not widening the reader; no recogniser touched.", "tests": "node scripts/pm/check-governed-merges.mjs --self-test on 062ea49f4: exit 0, '✓ check-governed-merges --self-test: 1017 assertions'; battery floors 71->77 (#33603) and 35->36 (#35612), 7 new WINDOW pins. Ablation (fix committed first, scripts/ablation-replace.mjs, each restored to HEAD blob with empty git diff HEAD): plain cut restored -> 3 pins red; actor binding removed -> 2 red (first attempt was a refused no-op, re-run with a unique replacement); window 60 s -> 2 red; last-event binding removed -> green, exposing a gap, pin added in 062ea49f4, re-ablated -> 1 red. Re-run harness: real guard + timelineAsQueued over live REST timelines and merged_at for the 12 rows + 3 controls (table in PR body). Live sweep: node --use-env-proxy scripts/pm/check-governed-merges.mjs --since 2026-11-24T19:30:00Z --repos objectstack --json on base 197e3ff3b and head 062ea49f4, both exit 0, complete:true, 228 entries each, 2 entries differ (#37072, #38233).", "gates": "Local on 062ea49f4: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 63 commands; --ran reconciliation exit 0: '63 derived, 61 run, 2 NOT-MEASURED, 0 UNRUN'. 61 exit 0 (incl. pnpm check:pm-governed-merges, node scripts/pm/check-governed-queue-guard.mjs --self-test 641 cases, pnpm check:nul-bytes, pnpm check:commit-card-trailers); node scripts/check-self-test-workflow-commands.mjs first exit 1 (spawnSync node ETIMEDOUT under box load), re-run alone exit 0. NOT-MEASURED: pnpm check:i18n-coverage (exit 3 PREREQUISITE NOT MET, no cli/examples build closure), pnpm check:pm-dispatch-gates (timeout-killed at 200 s and 280 s, exit 124, no verdict). PR check-runs: not yet concluded at report time, CI convergence is the PM's.", "mcp_calls": "0", "api_writes": "2 relay strokes (fleet-write dispatch, POST /repos/objectstack-ai/objectstack/dispatches each): pr_create #38896 (create + issue-assignees os-support-ai + issue-labels skip-changeset, read back identical 9700 bytes); os-dev-report comment on #38863 via post-stamped.mjs. Plus 3 git pushes (empty-branch probe, 2 commits), not REST.", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat (routes the PR body's recommendation) · smaller finding of #38863: 8 record-leg rows on off-template phrasing (must-fix 0 · should-fix 0 / S1 closed. / F1 (must-fix on SHA): fixed.) — recommendation in PR body: enforce the template at write time (record-recognisers.mjs:2555-2559 on 197e3ff3b already prescribes 'No must-fix, no should-fix.' and 'S1: closed'), not widen the reader; noted, not filed" ], "files_changed": [ "scripts/pm/check-governed-merges.mjs" ], "line_budget": "scripts/pm/check-governed-merges.mjs 12325 -> 12419 lines; diff +102 / -8 = 110 changed lines vs the 3000-line human-merge threshold; no skills/** touched", "deviations": [ "The first local gate batch passed the 600 s foreground limit and the harness moved it to the background; it was stopped with TaskStop and the rest was run in smaller foreground batches with per-command timeouts.", "origin/main (one commit ahead, 3c617a28e, packages/spec + ui only) was not merged in before opening the PR: no overlap with the diff.", "This container's shared shallow clone was deepened (git fetch --shallow-since=2026-11-02 origin main) so the live sweep could run; a throwaway comparison worktree at 197e3ff3b was added and removed for the before-sweep.", "timelineAsQueued and two constants were added as new exports in a file over 1,000 lines rather than in a sibling module: judged to be the fix inside readLandingClearance, and the claim binds the surface to this single file.", "Commit trailers use the model-free pair from AGENTS.md (the pre-push hook refuses a model name), not the harness reminder's model-named Co-Authored-By; the PR body footer uses the AGENTS.md session-URL form." ] }objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfWWgrLkABDvbRjhAk
Done · 2026-12-01T11:23Z: closed by PR #38896 (merge
472d3c5c9b, merged 2026-12-01T11:22Z). Contract review PASS 7308834667; L1 ACCEPT 7308845825; seat ACCEPT 7308882210; Tier H.Shipped:
check-governed-merges.mjsno longer reads the merge queue's own terminalremoved_from_merge_queueas the newest queue event. That removal is bygithub-merge-queue[bot], is the last queue event, and falls withinMERGE_QUEUE_REMOVAL_WINDOW_MS(1 s) beforemerged_at. All 12 #34178 rows read os-zhuang's enqueue as authorized. The controls #33555, #33632 and #33616 are unchanged.Carried, not done here:
merged_atwould still read as a false BREACH, never a false clear. The window widens only on a measured row.Claim 7306497669 ends:
pm:dispatchedand theos-support-aiassignee are cleared.fix(pm): the governed-merges audit reads the queue's own removal up t…