Repository navigation
docs(pm): new code in a large source file goes in a new module; the os-dev report records classifier refusals - #38683
Conversation
…rule, L1 line, split-card line, dispatch-order line Four sentences, one per file, each paid by a deletion in the same file; no ceiling in check-skill-line-ratchet.mjs moves. - os-dev.md, scope rule: a new concern added to a source file over 1,000 lines is written in a new sibling module and called from the existing file; a fix inside an existing function stays; existing code is never moved to make room (that is a split card). - l1-review-checklist.md: more than 300 net lines added to a non-test source file already over 2,000 lines needs the reason in the ACCEPT, or REWORK. - area-lease.md: two cards queued on one source file over 2,000 lines make the seat file a move-only split card, blocked by the open PRs on the file; the split PR registers the file with its ceiling. - dispatch-runbook.md: a dispatch order whose file surface touches such a file names the module the new code lands in. Paid by rationale sentences and one overview line; no rule is deleted. Claude-Session: https://claude.ai/code/session_01ADHkmRJUY9Ncce14hVHd25 Co-authored-by: Claude <noreply@anthropic.com>
One row per command the permission classifier refused: the command verbatim, the reason as the classifier quoted it, the dispatch mode, whether a human-typed turn came earlier in the session, and whether a re-send passed and with what change. Empty list when none. It records what happened: no refusal is staged and no command is re-sent to fill it. The field allows nothing and adds no allow rule; the existing rule (stop, record in deviations, the seat forwards to the maintainer, never re-send by another route) is unchanged. No script validates the report's field set (label-write.mjs reads dogfood_battery only), so no reader row is owed. Paid in the same file by five rationale sentences; the ceiling row does not move. Claude-Session: https://claude.ai/code/session_01ADHkmRJUY9Ncce14hVHd25 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Contract-review-claim: session_01ADHkmSAjFEZHRpRq3WCj6z · head d9725a7 · 2026-11-30T04:00Z |
|
repo:objectstack#3 · os-steve · session_01ADHkmRJUY9Ncce14hVHd25 Final green head for review: |
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Contract reviewServed-tier: Read for this record: cards #38664 and #38669 (bodies and every comment: triage 7266689375 and 7266763067, claims 7267855082 and 7267868303, the os-dev-report 7268340766), comment 7266139336 on #36936 (the census #38669 came from), the PR body, the PR file list (four files, all under Check-runs on ① Derived judgments
② Semver level
③ Boundary flagsSQL push-down: not applicable, no code in the diff. The dev's four open questions:
Escalated to the adopting seat, not answered by this record: card #38664's speed-read tells the maintainer "需 os-zhuang 批准" and "要你做什么:合并时批准", triage 7266689375 sizes it "Tier H, rule text", and the card leaves "confirm Tier S vs Tier H before landing" as an open point for the claiming seat; the PR's own speed-read says "要你做什么:无". By Rule-change, hunk by hunk. The
The strongest value any hunk earns is ④ Design judgmentNo must-fix, no should-fix.
Nits, none affecting correctness or the contract:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-steve · session_01ADHkmQm8PTU4AkVU5kdwEv 席位核对ACCEPT @ Read at head:
For the seat (L2), not blocking: the one deletion that comes closest to a rule is area-lease's "让两区极少改同一函数", the goal a boundary is drawn to. I read it as rationale for the clustering rule that stays, but it is the sentence to weigh if you read any hunk as |
|
repo:objectstack#3 · os-steve · session_01ADHkmRJUY9Ncce14hVHd25 Landing not performed (2026-11-30T04:10Z): the zone session's permission classifier refused the landing stroke before it ran, reason quoted |
|
repo:objectstack#3 · os-steve · session_01ADHkmRJUY9Ncce14hVHd25 Landing, read 2026-11-30T04:15Z at head
State: ready + auto-merge now, by the zone (Tier S lands in the lane; the owner seat's |
…D, not sent to the background (objectstack-ai#38684) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi98ZAtPQK4A8ABvN79TALFDE)_ Fixes objectstack-ai#38668 Clause-②: no Metadata-protocol: none Rule-change: yes ## 维护者速读 - 用户能看到什么变化:用户无感;派出去的开发 agent 遇到十分钟内跑不完的本地检查,不再把它转到后台去跑,而是如实记成「本地没测」并交给 CI。 - 为什么做:属于车队规则维护;原规则教的后台跑法正是权限审查会拒绝的做法,照做的 agent 白丢一次检查,还要事后解释。 - 出错会怎样:带破坏性改动的 PR 原本在本地跑的全量实景回归,今后多半只能等合并队列第一次报红;撤回本 PR 即恢复原文。 - 要你做什么:这是一次规则变更,请审阅后亲手合并。 ## What changes Two sentences of `.claude/agents/os-dev.md` and one reading line of `.claude/skills/pm-dispatch/references/readings-ci.md`. No script, no test, no ceiling row. 1. `os-dev.md`, 资源纪律 item 1, the background-run bullet. It prescribed `nohup … &` plus `tail --pid` for anything past the foreground limit, the form the dev sessions' permission classifier refused. It now reads: a run that cannot finish inside the foreground limit is never moved to the background, in any spelling; it is declared in the `--ran` record as `NOT-MEASURED COMMAND :: REASON` (the file spells the two placeholders in its own notation) and CI carries it. 2. `os-dev.md`, 干净收尾 item 4. The line told a dev to read a still-running gate's log (the redirect target) at report time, which only makes sense beside a detached run. It now reads: a report holds no gate that is still running; one that did not finish in the foreground is recorded NOT MEASURED with the measured reason, and CI carries it. 3. `readings-ci.md`, the `check:pm-dispatch-gates` reading. It carried the same prescription (detach plus `tail --pid`) beside a reading of 1216 to 1246 s. It now carries the reading taken for this PR, 404 s in the foreground for the fast tier, and says to run it in the foreground. Nothing here looks for another way to get a background run past the permission check. The change removes the request to run in the background. ### Byte arithmetic (`wc -c`, ceilings from `scripts/pm/check-skill-line-ratchet.mjs`, not edited) | File | Before | Out | In | After | Ceiling | Net | |:---|---:|---:|---:|---:|---:|---:| | `.claude/agents/os-dev.md` | 33491 | 113 + 119 | 129 + 103 | 33491 | 33491 | 0 | | `.claude/skills/pm-dispatch/references/readings-ci.md` | 4896 | 119 | 114 | 4891 | 4900 | -5 | No ceiling moves. `pnpm check:pm-skill-ratchet` exits 0 at `b469dcec`. ### Read first 1. `.claude/agents/os-dev.md` line 90: the rule itself. The risk is the phrase 「任何拼法」: it is meant to rule out a renamed background run, not a dev server. 2. `.claude/agents/os-dev.md` line 293: the report-side half of the same rule. 3. `.claude/skills/pm-dispatch/references/readings-ci.md` line 48: a reading replaced by a newer one. See the first acceptance note for why this file is in the diff. ## Tests No test changed and none is owed: the diff is rule text and one reading. `git grep` over the tree at `b469dcec` finds the two replaced sentences nowhere else, so no test or gate pins them. No ablation: no tested behaviour changed. Measurements taken for the rule (the card asked which gates actually pass the foreground limit today): <details><summary>check:pm-dispatch-gates in the foreground: 404 s, exit 0 (limit 600 s)</summary> Tree `0124851b` (the branch point; the diff does not touch the instrument), 4 cores, load average 0.42 at the start and 1.03 at the end, no lock, stdin from `/dev/null`, exit captured before any pipe. ``` exit 0 wall 404s head 0124851 dispatch-gates self-test tiers: fast 2686 case(s) in 402.9s · slow tier deferred (9 section(s)) — run without --fast for both. ✓ dispatch-gates self-test (fast tier): 2686 cases pass; 9 slow section(s) deferred. check:pm-dispatch-gates: the battery (the fast tier) took 403.1s on this box. ``` It fits with about 196 s to spare on a quiet box. On a busy box it may not; the rule then applies as written (killed at the limit, declared NOT MEASURED, CI runs it in `lint-pm-dispatch-gates`). </details> <details><summary>Full dogfood: NOT MEASURED locally; the CI reading says it cannot fit</summary> Not run locally: a run known to pass the limit would hold the shared lock for ten minutes and reach no verdict. Read instead from CI on main `39064f62`, the step `Boot example apps and exercise real user flows` of the three `Dogfood Regression Gate (k/3)` jobs: 1063 s (1/3), 778 s (2/3), 698 s (3/3). Each third alone is past 600 s, so the unsharded command the agent file prescribes cannot finish in one foreground call. </details> <details><summary>The record spelling the new bullet names, probed against the instrument</summary> On copies of this PR's own run record at `b469dcec` (the real record is untouched): ``` # one family replaced by a NOT-MEASURED line with a reason Run reconciliation — 26 derived, 25 run, 1 NOT-MEASURED, 0 UNRUN. ✓ dispatch-gates --ran: 26 derived famil(ies) accounted for — 25 run, 1 NOT-MEASURED (0 DERIVED from a recorded exit 3, 1 claimed). exit 0 # the same family recorded with a bare kill code and no declaration Run reconciliation — 26 derived, 25 run, 0 NOT-MEASURED, 1 UNRUN. ✗ dispatch-gates --ran: 1 of 26 derived famil(ies) UNRUN. exit 1 ``` So the declared path already exists in `scripts/pm/dispatch-gates.mjs` (`parseRunRecord`, `runReconciliation`): a kill code alone is UNRUN, and the declaration with a reason is what makes it NOT-MEASURED. The instrument prints the spelling itself when it meets a bare kill code. </details> ## Acceptance notes - **`readings-ci.md` is in the diff — seat ruled A (keep it); claim amendment 7268968229 names it.** The claim allows "the pm-dispatch reference that states the declared-narrowing path for `--ran` records if its text must name the new case". No pm-dispatch reference mentions `--ran` at all; the only pm-dispatch text on a gate past the limit is this one line, and it prescribed the refused form. I took it to be the reference meant. It is its own commit (`b469dcec`), so dropping it is one revert if the seat reads the fence differently. - **The instruments still prescribe the detached form, and this PR does not touch them — follow-up objectstack-ai#38689 (Blocked-by this PR)** (outside the claim; `dispatch-gates.mjs` is a Tier H instrument). `scripts/pm/check-dispatch-gates.mjs` has a header section telling an agent container to run detached, and its kill branch prints `nohup pnpm check:pm-dispatch-gates > pm-dispatch-gates.log 2>&1 &` as the remedy to a dev whose foreground run was just killed; `scripts/pm/dispatch-gates.mjs` carries the same header section. After this PR the agent file and the instrument's printed remedy disagree. - **Full dogfood has no local route left — follow-up objectstack-ai#38688 (maintainer decision; not this PR).** The definition-of-done lines of `os-dev.md` still order one full dogfood run under the lock on a PR whose title carries `!` or whose clause line carries the narrowing arm, with no shard and never skipped. By the CI reading above that run cannot finish in the foreground, and PR runs do not carry the dogfood shards (queue runs do). Those lines are outside this claim; the question is in the report. - `.claude/skills/scenario-eval/SKILL.md` and `packages/qa/scenarios/README.md` prescribe `nohup` plus `tail --pid` for scenario and gallery runs. Those are another seat's runs and no refusal is recorded for them; noted, not edited. - `readings-shell.md` holds a reading that a refused compound command is retried as bare actions before reporting blocked. It is a general reading about command shape, not about background runs, and is untouched; a reader may still put it beside the new bullet. ## Verification Two minutes: `git diff origin/main...HEAD --stat` shows 2 files, 3 insertions, 3 deletions; then `git grep -n -E 'nohup|tail --pid' -- .claude/agents .claude/skills/pm-dispatch` at the head shows one hit, the `readings-shell.md` line that warns against `nohup` inside a background tool call, and none that prescribes it. <details><summary>Local gate union at b469dce: 26 derived, 26 run, exit 0</summary> `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` (no paths) derived 26 commands from 2 changed paths against merge base `0124851b`. Each ran in the foreground with stdin from `/dev/null`, the exit captured before any pipe, and was recorded as `COMMAND :: exit N`; the whole loop took 325 s in one foreground call. ``` Run reconciliation — 26 derived, 26 run, 0 NOT-MEASURED, 0 UNRUN. ✓ dispatch-gates --ran: 26 derived famil(ies) accounted for — 26 run, 0 NOT-MEASURED (a DERIVED zero — all 26 recorded an exit code and none of them is 3). ``` The first pass recorded `pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 3` (PREREQUISITE NOT MET: `@objectstack/formula` and `@objectstack/lint` were not built). I built the two under the shared lock (`VERDICT command-exit 0`, held 80 s) and ran the whole list again; the record above is that second pass, with no line edited. Longest single gate: `node scripts/check-comment-mask-corpus.mjs`, 188 s. Local-only family also run: `pnpm check:skill-frame-freshness`, exit 0. </details> `node scripts/pm/overlap-check.mjs --branch=HEAD` at `b469dcec`: `VERDICT clean exit 0` against `origin/main` and against the one open PR that shares `os-dev.md` (objectstack-ai#38683, other sections). --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmRJUY9Ncce14hVHd25)_ <!-- signed: repo:objectstack#3 · os-steve · session_01ADHkmRJUY9Ncce14hVHd25 --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Steve · project thread
Fixes #38664
Fixes #38669
Clause-②: no
Metadata-protocol: none
Rule-change: ruled
Ruling-ref: 「同意,立卡」「按照 fable的方案」 — the maintainer (os-warren), os-warren's fleet project thread, 2026-11-30T01:18Z, quoted in the body of the first card above
维护者速读
What changes
Rule text only, four files under
.claude/. No script, no gate, no ceiling row, noAGENTS.mdsentence.First card: new code in a large file goes in a new module (commit
ab3b298f). The four sentences of the card's Ask, in Chinese like the files they land in, tightened to pay for bytes. Thresholds as measured: 1,000 lines, 2,000 lines, 300 net lines..claude/agents/os-dev.md, last bullet of the scope rulereferences/l1-review-checklist.md, scope sectionreferences/area-lease.md, zone rules, after the hot-file lineBlocked-by:the open PRs on it, and the queued cards follow it. The split PR registers the file infacade-delegation-registry.jsonwith its ceiling.references/dispatch-runbook.md, dispatch-order sectionSecond card: a
classifier_refusalsfield in the os-dev report (commitd9725a76). The report template in.claude/agents/os-dev.mdgains one list field afterapi_writes, and one bullet under the template:command(verbatim),reason(as the classifier quoted it),mode(subagent | cloud | thread),human_turn_before(yes | no | unknown: a human-typed turn earlier in the session),resend(none | passed | refused, plus what changed);[]when none; it records what happened: no refusal is staged and no command is re-sent to fill it.The field allows nothing and adds no allow rule. The existing rule on a classifier refusal (stop, record the command and reason in
deviations, the seat forwards to the maintainer, never re-send by another route) is untouched.Rule-change reading, hunk by hunk
Ruling-ref:line. That is theruledpart.none.area-lease.md, the one-line overview; none states a rule (list below). Slimming, not a rule change.No hunk reads as
yesto me. If the reviewer reads one that way, the PR is Tier H and waits for the maintainer.Byte arithmetic (base
302a4c32, headd9725a76;wc -c).claude/agents/os-dev.mdreferences/l1-review-checklist.mdreferences/area-lease.mdreferences/dispatch-runbook.mdAdded and deleted are whole changed lines, so an edited line counts on both sides.
scripts/pm/check-skill-line-ratchet.mjsis not in the diff: no ceiling row moves, up or down.What was deleted to pay, line by line
.claude/agents/os-dev.md(new sentences: 214 bytes for the new-module bullet, 414 for the field and its bullet; 644 bytes paid):issue-N/and write there) stays on the line above.git difflist is wrong (sibling files landed later are counted as yours), 119 bytes. The prohibition stays on the line above.--repo).references/l1-review-checklist.md(new sentence 117 bytes; 121 paid): five clause endings that give a reason, not a criterion: "read against it" in the intro (13), "an empty changeset holds a release back here" (39; the prohibition stays on the line above), "doing it for the dev launders the permission" (19), "this reconciles the two dispatch-side sentences" (31), "the green may be false" (19).references/area-lease.md(new sentence 181 bytes; 181 paid): the one-line overview under the title, with its blank line (119). Each thing it summarised is still stated as a rule further down: zones on demand, the L1 thread, zones landing their own PRs after ACCEPT, the seat keeping W0, routing and governed PRs. Also "so two zones rarely change the same function" (31) and "a lease over a hot file blocks the other seats" (31), both reasons after a rule that stays.references/dispatch-runbook.md(new sentence 86 bytes; 111 paid): the reason after "never retell an estimate dressed as a ruling" (74) and the reason after "never write: stop when you find a consumer" (37). Both prohibitions stay.Tests
No test file is added, changed or deleted, and no script changes. Nothing pins the deleted text: the phrases
scripts/pm/l1-face.mjsholds from the checklist and fromos-dev.mdare all still present (its self-test, 51 cases, exit 0 on the head).Derived gates, all on head
d9725a76, each run with stdin closed and the exit code captured before any pipe:27 of 27 derived commands, exit 0; reconciliation 0 NOT-MEASURED, 0 UNRUN
node scripts/pm/dispatch-gates.mjs --ranon that record: "27 derived famil(ies) accounted for — 27 run, 0 NOT-MEASURED (a DERIVED zero — all 27 recorded an exit code and none of them is 3)".The ratchet's four lines on the head:
os-dev.md is 33475 bytes (ceiling 33491; headroom 16),l1-review-checklist.md is 6871 bytes (ceiling 6875; headroom 4),area-lease.md is 7220 bytes (ceiling 7220; headroom 0),dispatch-runbook.md is 20455 bytes (ceiling 20483; headroom 28).A first pass recorded exit 3 (PREREQUISITE NOT MET) for the doc-formula gate:
@objectstack/formulaand@objectstack/lintwere not built in the new worktree. Both were built under the verify lock (VERDICT command-exit 0), and all 27 commands were then run again into a fresh record; the lines above are that second record.Outside the derived list, also exit 0 on the head:
node scripts/pm/l1-face.mjs --self-test,pnpm check:pm-governed-prose,node scripts/pm/check-skill-line-ratchet.mjs --self-test.Acceptance notes
scripts/for the template's field names:scripts/pm/label-write.mjsreadsdogfood_batteryalone, and nothing checks the set of keys. So the new field owes no reader row and no self-test case, and no script is in the diff.deviationsstill carries a refused command. The existing rule, the L1 checklist line that asks for the refused command indeviations, and the reminderscripts/pm/l1-face.mjsprints all still saydeviations. The new field is added beside it, so a refusal is written in both places. Makingclassifier_refusalsthe only home needs three edits, one of them inl1-face.mjs, which is outside this claim's file surface; left as an open question in the report.human_turn_beforehas a third value,unknown. A subagent does not see its parent session's turns, so a forced yes or no would be a guess in the one column the census wants to test.area-lease.mdloses its one-line overview. It was the only way to pay 181 bytes in that file without deleting a rule; the reviewer may prefer a different payment.check-skill-line-ratchet.mjs, outside the file surface.origin/main(0124851b); neither touches these four files, andoverlap-check.mjsreads a clean merge with the base and no open PR sharing a file. Not merged, to keep one commit per card..claude/**, Tier S or Tier H) is the seat's to confirm before landing.Verification
Read first, by risk:
.claude/skills/pm-dispatch/references/area-lease.md: the deleted overview line (top of the file) and the new split-card line..claude/agents/os-dev.md: the seven deleted rationale sentences, the new bullet at the end of rule 3, and the template field..claude/skills/pm-dispatch/references/l1-review-checklist.md: the five trimmed clause endings and the new line.Two-minute check:
node scripts/pm/check-skill-line-ratchet.mjsprints the four lines quoted above and exits 0, andgit diff origin/main...HEAD --statlists four files, all under.claude/.Generated by Claude Code