Repository navigation
docs(os-dev): finished work the work branch cannot take is pushed to a no-PR backup branch by default - #38271
Conversation
…PR backup branch os-dev.md states three rules next to the commit-and-push rule: finished commits the work branch cannot take are pushed at once to claude/issue-<n>-<slug>-wip (standing permission, never a PR from it, never merged, deleted when its work lands), no local-only work when a turn ends on a wait, and hand-offs name a remote branch and sha. area-lease.md (hand-off) and dispatch-runbook.md (card threads) each point to that rule. The byte ratchet rows of the three files rise by the measured size of the ruled text: os-dev.md +746, area-lease.md +128, dispatch-runbook.md +157. 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 · 49d0a25 · 2026-11-28T11:18Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Inputs read: card #36920 (body and its three comments: triage 7126757499, claim 7237766590, dev report 7238179202), mailbox comment 7126641707 on #36743, PR #38271 (body, four-file list, net diff of the head against merge base Why ① Derived judgments
② Semver levelClause-②: no — agreed. No path in the diff ships in any package's ③ Boundary flagsSQL push-down: not applicable, the diff holds no query, no id materialisation and no join. Dev deviations:
Open question 1 (do the three raises stand): answered in ④. They stand in form and in arithmetic. Their authority is the same pair of utterances, which order the default into the skills in general words; with this record at Open question 2 (who deletes a landed Open question 3 (item 4, the session-level branch allowance): ESCALATED to the maintainer, who owns the project instructions. The card's acceptance allows "or the PR says the maintainer owes it", and the PR body says so, so the acceptance line is met. Consequence to state plainly: until the allowance names ④ Design judgment
Pull request body
No finding of the highest grade on this head. The two graded findings above are open; the nits are left as follow-ups. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): REWORK at head Review summaryContract record 7238529805 is PASS at this head with its tier verified. It carries Owed before landing:
For the maintainer, no head change:
Three nits are left as follow-ups: a second backup for the same slug collides; a squash-landed Next: fix S1 and item 3 (a head move earns a delta contract review and a delta L1), and edit the body for S2. After that it goes to seat 1 as Tier H, for the maintainer. |
…ettings allow The worked example created the backup branch with a refspec push, which matches no allow row in .claude/settings.json. It now creates the local branch of that name and pushes it with `git push -u origin <branch>`, the allowed shape. The file's size is unchanged, so no ratchet row moves. Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat ruling pointer · 2026-11-28T11:40Z · the ceiling raises here are ruled in #38280 comment 7238709377: a relay or card body is not a ruling of record, and the PR approval does not stand in for one. Pay by deletion, or take route (b) there. |
…row moves The three ceiling rows return to their values on main, and the new text is paid for in the same three files by removing text that is stated elsewhere: - os-dev.md: the attribution-footer block that mirrors AGENTS.md, the worktree shared-state list that restates AGENTS.md, and five lines or clauses that repeat the line beside them (the lock slot explanation, the exit-code-after-tail example, the two-report self-check sentence, the in_progress clause, the queueing clause). - area-lease.md: the pointer moves into the hand-off line; the clause that restates os-dev's local verification scope goes. - dispatch-runbook.md: the pointer shrinks to one short line; the line that restates state-machine.md's label rule goes. The backup-branch rule itself is unchanged. 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 · 2776b50 · 2026-11-28T12:04Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Delta record on record 7238529805. Read this round: the net diff of this head against merge base S1: closed S2: closed Withdrawn from record 7238529805: its acceptance of the three ceiling raises by precedent. Seat ruling 7238709377 on #38280 says a relay or a card body is not a ruling of record and a PR approval does not settle a raise. The question no longer arises on this head: Rule change: the standing-permission hunk in ① Derived judgments
② Semver levelClause-②: no — agreed, unchanged. No path ships in a package's ③ Boundary flagsSQL push-down: not applicable, no query in the diff.
④ Design judgmentThe example (S1). The line now reads: create the local branch of that name, then The nine removals, each read against the home the PR body names, in the head tree:
Can a dev that reads only The two pointer files. No must-fix, no should-fix. Nits, left as follow-ups:
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, |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat record · 2026-11-28T12:11Z · PR #38271 (Fixes #36920) · head 维护者速读
Seat opinion: land. 席位核对 — ACCEPT · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Approval request · governed @os-zhuang: os-dev's finished work that the work branch cannot take is pushed by default to a no-PR backup branch (
Every check is green or expected-skip. An APPROVED review on this head lets seat repo:objectstack#1 ready and land it. The body's two maintainer questions are routed separately and do not gate this PR. |
Requested by Elon · project thread
Fixes #36920
Clause-②: no
Metadata-protocol: none
Rule-change: yes
维护者速读
请维护者定夺
What changes
The rule has one home,
.claude/agents/os-dev.md, and two pointers..claude/agents/os-dev.md, 资源纪律 item 5, five lines directly under the existing commit-and-push line:claude/issue-N-SLUG-wip. It is standing permission: no question, no decision card. Never a PR from it, never merged, deleted when its work lands.git push -u origin claude/issue-N-SLUG-wip. That is the one push shape.claude/settings.jsonallows. The refspec form of the first head matched no allow row there and is gone..claude/skills/pm-dispatch/references/area-lease.md, 交接与换号: the hand-off line now points to that rule for pushing and naming in-flight work, and says every work branch leaves a draft PR, because a backup branch never carries one..claude/skills/pm-dispatch/references/dispatch-runbook.md, 卡线程: one short pointer line. This section is where the repository says what a card-thread order carries, andexecution-duties.mdalready forbids copying os-dev's general clauses into an order, so the order points and does not restate.scripts/pm/check-skill-line-ratchet.mjs: no change. The first head raised three ceiling rows by 1,031 bytes. Seat ruling 7238709377 withdrew that: a relay or a card body is not a ruling of record, and the PR approval does not stand in for one. All three rows are back at their values on main, and the new text is paid for by deletion (next section).Why
Rule-change: yes. The text makes the push of a new branch class a standing permission and removes a decision card that went to the maintainer in the case the card describes. The maintainer's words behind the card state the principle and order a card: 「还有避免代码丢失的问题应该是技能的默认选项,是否建议优化技能」 (2026-11-24 08:49Z) and 「立 skills 卡」 (2026-11-24 08:50Z), said in the card thread of the metadata list-view card and recorded in the body of this PR's card and in mailbox comment 7126641707. They do not name the branch class, the name pattern, the standing permission or the dropped decision card. Those are the filing seat's design, so this text is the maintainer's to approve here.Item 4 of the card is not a repository file: the maintainer owes it. The session-level branch allowance in the project instructions has to name the pattern
claude/issue-N-SLUG-wip. Until it does, a cloud session's own "push to no other branch without explicit permission" instruction can still stop rule 1.Paid by deletion: what was removed, and why each is safe
Nothing removed is the only statement of a rule. Each item is a copy of text that stays somewhere else, and the place it stays is named.
.claude/agents/os-dev.md(new text +746 bytes, removed 755):AGENTS.md(Multi-agent working discipline, "Write the attribution footer in the form the surface keeps"), which every dev reads in full before its first edit. No script reads the os-dev copy (git grepoverscripts/).blocked报告。」 (112 bytes). It restates that item's own heading (a turn ends only with a report, and there are two kinds) and its ① and ②. The self-check question on the following line stays.AGENTS.md(Multi-agent working discipline), which is the more exact text: it names four isolated ref namespaces where the os-dev line said only the work tree and HEAD. The criterion 「配方不点名共享态才 worktree-safe」 is kept on the new line, with the pointer.in_progress是诚实值」 (52 bytes). 干净收尾 item 4 ① says the same (an unconverged gate is reported asin_progress). The ⛔ half of that line stays..claude/skills/pm-dispatch/references/area-lease.md(new text +46 bytes, removed 48):os-dev.md, which binds every dev whether or not anything else mentions it. The rest of the line stays..claude/skills/pm-dispatch/references/dispatch-runbook.md(new text +90 bytes, removed 93):references/state-machine.md(「交接即标签…收件箱只认标签」) andreferences/lanes/director.md. The line above it in the same section keeps the obligation itself: name who can act and move the state by label in the same round.Byte table (ratcheted files, against origin/main e42520c)
.claude/agents/os-dev.md.claude/skills/pm-dispatch/references/area-lease.md.claude/skills/pm-dispatch/references/dispatch-runbook.mdNo ceiling row is raised or lowered; the three rows could each be lowered by the net above. No volatile count is introduced.
Tests
No tested behaviour changed (rule prose only), so there is no ablation.
pnpm check:pm-skill-ratchetruns the ratchet's own self-test.Acceptance notes
references/readings-session.mdrecords both routes as refused (git push --deleteand the ref DELETE, each 403, not to be retried), and the relay's only ref delete takes mailbox branches. So the rule says: delete it when its work lands, and where the delete is refused the report names the branch as owed. Not measured again here, because a probe branch could not be removed either.scripts/pm/dev-worktree.sh --resume-from=BRANCH@SHAcontinues the same branch name. AResume-from:line that names a backup branch therefore builds a tree on the-wipname. The rule still holds (no PR from that name; the dev pushes to a work branch name), and the tool has no form that starts a differently named branch from that sha. Noted, not changed.claude/issue-N-prefix on purpose:scripts/pm/round-open.mjsreads a push on such a head as activity on card N, and the one-command pre-check inAGENTS.mdfinds it. A hit there stays a hint and never a claim, asAGENTS.mdalready says.AGENTS.mdis not touched. Its "one feature branch + one PR per task" is read as unchanged: a backup branch carries no PR and is never merged.os-dev.md.area-lease.md, seven lines above item 8's hunk.overlap-check.mjsreads the two heads as merging cleanly..claude/**) and none ships in a package'sfiles[].skip-changesetwas applied with the create.Follow-up notes (from the contract review, not built here)
AGENTS.mdrule 3.references/readings-session.mdcannot tell it from unlanded work. Only the report line tells them apart. This belongs with the delete question above.AGENTS.mddoes not name the backup class, so a reader of that file alone learns nothing of it. A pointer there is for the maintainer to weigh.Verification
Local gates at 2776b50
node scripts/pm/overlap-check.mjs --branch=claude/issue-36920-wip-backup-branch:VERDICT clean exit 0(3 files; merges cleanly onto origin/main 73ec085 and onto the one open PR head that sharesarea-lease.md).node scripts/pm/dispatch-gates.mjs --commands: 26 commands derived from the merge base (the ratchet script is no longer in the change set, so the 20 families that only it pulled in are gone). All 26 run, each exit code captured before any pipe, all exit 0.--ranreconciliation:26 derived famil(ies) accounted for — 26 run, 0 NOT-MEASURED.pnpm check:pm-skill-ratchet: exit 0.check-skill-line-ratchet self-test: 116 cases pass;.claude/agents/os-dev.md is 33491 bytes (ceiling 33500; headroom 9);area-lease.md is 6563 bytes (ceiling 6586; headroom 23);dispatch-runbook.md is 20480 bytes (ceiling 20483; headroom 3).pnpm check:pm-skill-id-lint: exit 0,134 file(s) clean.pnpm check:pm-governed-merges: exit 0,972 assertions.pnpm check:doc-authoring,pnpm check:nul-bytes,pnpm check:commit-card-trailers,pnpm check:skill-frame-sync: exit 0.git diff --statof the merge base against this head: three files, 12 insertions and 19 deletions;scripts/pm/check-skill-line-ratchet.mjsis not among them.Earlier heads
49d0a25e48(the rule, with three raised ceilings): 46 derived commands run, 45 exit 0 on the first pass;check:doc-formula-expressionsexited 3 until formula and lint were built, then 0.pnpm check:pm-dispatch-gatesexit 0 (fast tier: 2369 cases pass).f067818e59(the example respelled at the same size):pnpm check:pm-skill-ratchetandpnpm check:pm-skill-id-lintexit 0,overlap-check.mjsclean. The full gate loop on that head was stopped when the pay-by-deletion order arrived, so its remaining gates are NOT MEASURED there.Read first: the five new lines in
.claude/agents/os-dev.mdunder 资源纪律 item 5 (the standing-permission line is the riskiest hunk), then the nine removals listed above, each against the place named as keeping the rule.Two-minute check:
pnpm check:pm-skill-ratchetprints.claude/agents/os-dev.md is 33491 bytes (ceiling 33500; headroom 9), andgit diff origin/main...HEAD --statlists three files, none of them the ratchet script.Generated by Claude Code