Repository navigation
feat(pm): the governed-merges sweep judges each .claude/** split landing on the record that verifies it - #38278
objectstack-fleet[bot] wants to merge 6 commits into
Conversation
…queue's record leg clears lowRiskRecordStageReasons now holds its record conjunct to the record leg the stage already carries (recordLeg, the guard's recordVerdict then recordPassVerdict on the same comment). With the carry rule it was already reading, that is the queue's lowRiskRecordVerdict, so --pr and the relay can no longer read the arm Tier S over a FAIL or below-tier record. The queue leg, whose own record leg runs that verdict next, defers it as it already does for the rule-change split, so its refusal kinds are unchanged. Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude <noreply@anthropic.com>
… on each landing readRuleChangeLanding re-reads a merged root .claude/** pull with the queue guard's own readers on the landed commit: the body's Rule-change: line through readLowRiskTier, then recordVerdict and ruleChangeRecordVerdict on the record threads as they stood at the landing. A landing on a record that verifies the declaration is listed apart from the maintainer's merges; one whose record did not verify is a BREACH and reaches the weekly audit card. A yes, no line, a settings or hooks path, a Tier H row beside it, an authorized approval or enqueue, a landed tree older than the split, and every failed read keep the landing on the maintainer's list, and a failed read makes the sweep INCOMPLETE. The landing half the arm leg already read (merge tie, approval and enqueue legs, as-landed threads, the edited-row naming) is lifted into readLandingThreads and landingBreach so both legs read it once. Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · a26723d · 2026-11-28T11:26Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: PR #38278 (card #35612), net diff of the head against merge base ① Derived judgments
② Semver levelClause-②: no The diff touches ③ Boundary flags
④ Design judgment
The Negative controls, read against the code they pin. Removing the conjunct line turns red the S1 (should-fix) — the weekly audit card misnames a split BREACH. N1 (nit) — in N2 (nit) — the split leg returns
The changed comment on
All three hunks sit inside S1 is open on this head and earns a delta review of its fix; the nits end with this round. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): REWORK at head Review summaryContract record 7238665187 is PASS at this head with its tier verified and
Owed before landing: S1 of 7238665187, the audit card misnames a split BREACH. With the same push (nits):
Next: the fix earns a delta contract review and a delta L1. After that it goes to seat 1 (Tier H). |
… unread workflow diff beside the split is NOT MEASURED S1 of the contract review: readAuditSweep files a .claude/** declaration-split BREACH into the same list as the low-risk arm's, so each BREACH row now names the leg it was read on, and the run summary's heading, the card's heading and the card's preamble name both legs (AUDIT_BREACH_WHAT), never the arm alone. N1: the sweep's `complete` is the pure sweepComplete, pinned on an unread split reading and an unread arm reading, with the loop's count pinned structurally. N2: a workflow row beside a pending split is Tier H in the sweep only because the sweep reads no workflow diff, which the queue does read, so the split leg answers not-measured there; a measured fact beside it (a yes body, another Tier H row, the size line) still settles Tier H. Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · 3ff9dcc · 2026-11-28T12:03Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Delta round on PR #38278 (card #35612), after the record 7238665187. The head is one author commit on Check-runs on this head: every run is completed; 26 concluded success (among them S1: closed N1 (record ID: 7238665187) is answered: ① Derived judgments
② Semver levelClause-②: no Unchanged: ③ Boundary flags
④ Design judgment
S1 fix. N2 change, tried both ways.
S2 (should-fix) — the new N3 (nit) — a BREACH row carried from a card written before this head keeps its old line, without a leg name, under a preamble that now says each BREACH row names its leg. Such a row can only be an arm row. Accepted deviation.
S2 is open on this head and earns a delta review of its fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): REWORK (delta) at head Review summaryS1 is closed. Each BREACH row names its leg, and both headings and the preamble name both legs. Owed before landing: S2 of 7239017248. The new
Also owed: the PR body is stale against this head and needs a refresh. N3 is an accepted deviation: an old-card BREACH row carries its old line with no leg name. Next: the fix earns a delta contract review and a delta L1. After that it goes to seat 1 (Tier H). |
…d workflow diff (#35612) A pending `.claude/**` split beside a workflow row the sweep cannot read answered NOT MEASURED before the approval and enqueue legs were read, so a landing the maintainer approved or enqueued never read `cleared`. The landing half's first part is now `readLandingClearance`, which the unread-input branch reads first; only `cleared` settles there. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW
…st-merge-split-leg
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · 9401a83 · 2026-11-28T12:41Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Second delta round on PR #38278 (card #35612), after the records 7238665187 and 7239017248. The head is a merge of main Check-runs on this head when this record was written: 24 concluded success, among them S2: closed No must-fix, no should-fix. ① Derived judgments
② Semver levelClause-②: no Unchanged: ③ Boundary flags
④ Design judgment
The refactor. The S2 fix. In the unread-workflow-diff branch the leg now reads the clearance first, and only The pins. An approval by an authorized login before the landing reads N3 (record ID: 7239017248) stays an accepted deviation; nothing in this round touches it.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT (delta) at head Review summary
Next: Tier H. It goes to seat 1 for the human merge or an authorized approval, and then the landing. |
…st-merge-split-leg
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · 550ca67 · 2026-11-28T13:01Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Merge-only round on PR #38278 (card #35612), after the records 7238665187, 7239017248 and 7239557207. The head is a merge of main No must-fix, no should-fix. ① Derived judgments
② Semver levelClause-②: no Unchanged: ③ Boundary flagsMain between
Check-runs on this head when this record was written, read once and not polled: 7 concluded success ( ④ Design judgmentNothing in the three files changed, and nothing they import or read changed in a way that reaches them, so the design judgment of the records 7238665187, 7239017248 and 7239557207 carries to this head unchanged. S1 and S2 stay closed; N3 (record ID: 7239017248) stays an accepted deviation. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT (delta, merge only) at head Review summary
Next: Tier H. It goes to seat 1 for the human merge or an authorized approval, and then the landing. |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat record · 2026-11-28T13:19Z · PR #38278 (Fixes #35612) · head 维护者速读
Seat opinion: land. 席位核对 — ACCEPT · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Approval request · governed @os-zhuang: the last item of #35612. The weekly governed-merges sweep judges each
Every check is green or expected-skip. An APPROVED review on this head lets seat repo:objectstack#1 ready and land it; nothing else is asked. |
Requested by Elon · project thread
Fixes #35612
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The card's last work item, the post-merge sweep's split leg, plus the low-risk arm's record-leg conjunct the seat folded into it (reading 7071055960). Two files carry behaviour:
scripts/pm/check-governed-merges.mjsand, for one comment line,scripts/pm/check-governed-queue-guard.mjs. One fixture line changes inscripts/pm/fleet-write/execute.mjs's self-test, plus two new cases there.readRuleChangeLanding, item 4). Before this PR,classifyCommitread every merged root.claude/**pull with no reading of its body, so all of them sat on the maintainer's recognition list. A seat landing on a verifiedRule-change: nonelooked the same as one whose record never verified it. The leg now reads each such landing again with the queue guard's own readers on the landed commit. It reads the body throughreadLowRiskTierand the record throughrecordVerdictand thenruleChangeRecordVerdict, on the threads as they stood at the landing. The states:pass: the body declaresnone(orruledwith itsRuling-ref:), and a same-head at-tier PASS record that existed, unedited, at the landing carriesRule-change-verified:with the same value. The landing is listed APART from the maintainer's merges, as the arm's seat landings are.breach: the body declares a seat value and nothing cleared the landing, but the record did not verify the declaration. That covers no record, a FAIL, a record below its tier, a missing or differentRule-change-verified:line, a record posted or edited after the landing, or a pull that landed as another commit. The landing is listed apart under ⛔ BREACH, and the weekly audit card files it as a row.tier-h,cleared,unbound,not-measured: the landing stays on the maintainer's list.tier-hcovers a body that declaresyes, no line, a settings or hooks path, a Tier H row beside it, or the size line.clearedmeans an authorized approval or enqueue before the merge.unboundmeans the landed tree's copy of the register predates the split, so its queue read the raw Tier S.not-measuredmeans a read failed. It also makes the sweep INCOMPLETE and reaches the audit card's NOT MEASURED section..claude/**path beside it as Tier H. So no entry is read twice.PR #N — .claude/** declaration split BREACH — …orPR #N — low-risk skills arm BREACH — …, with the row key first. The run-summary heading, the card heading and the card preamble printAUDIT_BREACH_WHAT, which names both legs. The sweep's completeness is the pure functionsweepComplete, pinned on an unread split reading and an unread arm reading. A workflow row beside a pending split readsnot-measuredon the split leg, since the sweep reads no workflow diff; a measured fact beside it (ayesbody, another Tier H row, the size line) still settlestier-h.not-measuredanswer for an unread workflow diff came before the approval and enqueue legs, so a landing the maintainer approved or enqueued readnot-measuredinstead ofcleared. The first part of the landing half (the merge tie, then the approval and enqueue legs beforemerged_at) is nowreadLandingClearance.readLandingThreadscalls it, and the unread-input branch calls it before it answers. Onlyclearedsettles there; a BREACH or a failed read on the landing half staysnot-measuredon the unread input.readArmLandingalready read the merge tie, the approval and enqueue legs beforemerged_at, the author binding and the as-landed threads. That code is lifted, unchanged, intoreadLandingClearance,readLandingThreadsandlandingBreach, and both legs call them. The arm battery (71 cases) stays green over the move.lowRiskRecordStageReasonsnow holds the record to the record leg the stage already carries (recordLeg: the guard'srecordVerdict, thenrecordPassVerdict, on the same comment). It already read the carry rule, so the conjunct now matches the queue'slowRiskRecordVerdict. As a result--prand the relay's review plan no longer read the arm Tier S over a FAIL or below-tier record. This is the same N1 shape fix(pm): the relay review plan, H43 and the early-warning leg chain the .claude/** declaration split, and the split reads the queue's record leg (#35612) #36215 closed for the split, and it shares that split's wording (recordLegReasons). The queue leg already handsRULE_CHANGE_RECORD_LEG_DEFERRED, because its own record leg runs that verdict next, so the conjunct is skipped there. Its refusal kinds and exit codes do not move.Every open box on #35612, against
mainate42520c67bgovernedReviewPlanchains the splitapplyRuleChangeSplitinfleet-write/execute.mjs, the governed-review battery). The card's "atpr_create" was corrected topr_readythere, which the contract review accepted.h43RuleChangeSlice,check-half-states.mjs).pull_requestleg reads the payload bodyreadPayloadDeclaration, the queue guard).workflowsrow, pinnedfleet-write/execute.mjs).--prreads the split's record verdictrecordLeginruleChangeRecordReasons). Its arm twin is done here.owedFacewithnarrowingDeclarationsIn)..claude/agents/os-dev.mdsays "exactly one line-startRule-change:", and.claude/skills/pm-dispatch/SKILL.md's skills-lane exception says 守卫仪器.No box stays open, so this PR closes the card.
Tests
Each new pin carries a negative control one step away.
check-governed-merges --self-test: 1010 assertions. It adds one new battery and grows one existing battery; the roster floor goes 42 → 43.⚖️ #35612: the sweep lists a .claude/** declaration-split landing APART …, 35 cases. They coverpassonnoneandruled, on the PR or the card. Thebreachcases are no verified line,yesor the other value, a FAIL, a record below tier, no record, another head, posted or edited after the landing, an untrusted author, another merge commit and an unmerged pull.clearedis tested by approval and by enqueue, with seat-enqueue and late-approval controls.tier-his tested onyes, no line, a doubled line,ruledwithoutRuling-ref:, settings, hooks, a Tier H row beside it, and size. The other cases areunbound(it reads no thread), everynot-measuredread, and which entries the leg reads. Five more cover the report: it lists split landings apart, and a Tier H or unbound one stays on the maintainer's list. The audit card files a split BREACH, lists an unread leg, and files nothing for a pass or unbound landing. The INCOMPLETE banner and the sweep-loop wiring are pinned too. Five cover S2 beside an unread workflow diff: an authorized approval before the landing readscleared(control: the same approval an hour after the landing staysnot-measured); an authorized enqueue readscleared(control: the same enqueue by the seat relay staysnot-measured); a landing half that does not clear (another merge commit, an unread review thread) staysnot-measured.no. The controls: a leg that stands is Tier S, and the queue's deferral skips the conjunct. One--prcase runs the real recognisers on a FAIL and a below-tier record, with a PASS control.fleet-write/execute --self-test: 474 cases. The relay's arm stage battery gains a FAIL record and a below-tier record, each planning both approvers. One hand-built stage fixture now carriesrecordLeg, the key every live producer (lowRiskRecordStage) already sets.check-governed-queue-guard --self-test,check-half-states --self-test,check-owed-reviews --self-test: green and unchanged..claude/agents/os-dev.mdexempts scripts from ablation, and that file outranks the dispatch's request for one. The negative controls stand in its place. For S2 one on-disk check was run: with theclearedsettle disabled, exactly the two S2clearedpins failed (2 failures), and the file was restored.Acceptance notes
yesmoves the landing onto the maintainer's list. An edit tononeafter a landing that needed the maintainer is read asclearedwhen the approval or enqueue is on record. Otherwise it is judged on its record. Either way the landing is listed.h43RuleChangeRecordincheck-half-states.mjsstates the direction of its first bound wrongly, and H48 can advise a hand-off label on a split pull whose record sits on the card. N2: a self-test comment aboveVERIFIED_STAGEin the queue guard still says the early-warning leg reads no body. Both are reported to the seat to carry.lowRiskRecordStagecomment now says the arm's conjunct readsrecordLegtoo. That is a comment-only change in that file.Verification
Read first, by risk:
scripts/pm/check-governed-merges.mjs,readRuleChangeLandingandruleChangeSplitBound: the order of the reads, that every early return keeps the landing listed, and that the unread-input branch readsreadLandingClearancebefore it answersnot-measured.readLandingClearance,readLandingThreadsandlandingBreach: the arm leg's code moved, not rewritten. Diff it againstreadArmLandingonmain.lowRiskRecordLineReasons: the newrecordLegReasonsconjunct and itslegDeferredskip.Two-minute check: run
node scripts/pm/check-governed-merges.mjs --self-test. Expect✓ check-governed-merges --self-test: 1010 assertions, with the⚖️ #35612battery at 35 cases.Readings at head 9401a83 (local, derived subset; every CI family is the PR's own check-runs)
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack(no paths, merge-base derived, 3 paths against3ad3b4159): 64 families. All 64 were run, each exit code captured before any pipe. 63 exit 0.pnpm check:i18n-coverageis NOT MEASURED: exit 3, PREREQUISITE NOT MET. The workspace CLI and the example configs are not built. The diff touches no package, and CI runs this family.--ranreconciliation:✓ dispatch-gates --ran: 64 derived famil(ies) accounted for — 63 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).pnpm check:pm-governed-merges✓ 1010 assertions ·pnpm check:pm-half-states✓ 5427 cases ·pnpm check:pm-fleet-write-execute✓ 474 cases across 32 batteries.node scripts/pm/check-governed-queue-guard.mjs --self-test✓ 641 cases.node scripts/pm/check-owed-reviews.mjs --self-test✓ 96 cases.node scripts/check-platform-checklist.mjs --changed-from origin/main: exit 0, 0 anchored files. Control-byte self-scan over the three files: no hit.node scripts/pm/overlap-check.mjs --branch=claude/issue-35612-post-merge-split-leg:VERDICT clean exit 0before every push.origin/main(3ad3b4159) is merged in this round, because the gate derivation read four of its own rule files as changed on it; the merge brings no conflict and no change to the three files.Generated by Claude Code