Skip to content

chore(pm): the skill ratchet counts bytes, and prose is no longer held to a 120-byte line - #35712

Merged
os-zhuang merged 2 commits into
mainfrom
claude/project-thread-6u5k4f
Nov 20, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/project-thread-6u5k4f

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #35229

Clause-②: no
Metadata-protocol: none
Rule-change: ruled
Ruling-ref: the maintainer's 「同意」 (2026-11-18 16:19Z) to the fleet skills review and its order of improvements, as quoted in the body of card #35229 (filed 2026-11-18 17:25Z); it carries the byte unit and the end of the 120-byte prose line.

维护者速读

  • 用户无感:舰队内部技能文件的体积上限从按行数改为按字节数,技能正文从此可以写成完整长句,不再被每行一百二十字节折断。
  • 属于舰队技能清理的第一步,替所有每次都要通读这些技能文件的席位去掉电报体折行。
  • 出错只会让改技能文件的拉取请求误红或误绿,不碰产品与数据,可整笔撤回;本笔改动约三千八百八十行,其中约三千五百行是删掉门禁脚本里旧的逐行账本,新写的只有约四百行。
  • 席位采纳契约审核后,请你批准这一笔(超三千行且触受管面,须你批准);批准后由席位入队落地,你自己合并也可以。

What changes

scripts/pm/check-skill-line-ratchet.mjs now judges each covered file by one number, its size in UTF-8 bytes (what wc -c prints). The 120-byte max-line-length rule, its eight structural exemption classes and the re-wrap machinery (MAX_LINE_BYTES, EXEMPTION_CLASSES, wrapLine, atomize, breakLegal, hanAsciiPunctTail, splitPrefix, classifyLine, scanLineLengths, lengthVerdict) are deleted with their header sections and self-test rows. The file name and check:pm-skill-ratchet keep their names. The table-row pin (MAX_TABLE_ROW_BYTES, scanTableRows, tableRowVerdict) stays exactly as ruled, values unchanged.

Files to read first, by risk:

  1. scripts/pm/check-skill-line-ratchet.mjs, the CEILINGS map and the CROSS_FILE_MOVES comment (the re-base and the three dropped declarations).
  2. The same file, run() and verdict() (the unit and the refusal text a seat will see).
  3. .claude/skills/pm-dispatch/references/triage-duties.md, exception one (where a readings raise is now booked).

The map, generated from the merge-base. BASE = 74d3d831d (the merge-base; it contains PR #35591 at 1bf30f8b). Re-run and diff it against the map:

BASE=74d3d831d
git show "$BASE:scripts/pm/check-skill-line-ratchet.mjs" \
  | sed -n '/^export const CEILINGS = new Map(\[/,/^\]);/p' \
  | grep -oP "^  \['\K[^']+" \
  | while read -r k; do printf "  ['%s', %d],\n" "$k" "$(git show "$BASE:$k" | wc -c)"; done
Output at BASE (60 rows)
  ['.claude/skills/pm-dispatch/SKILL.md', 33934],
  ['.claude/skills/pm-dispatch/references/dispatch-runbook.md', 20070],
  ['.claude/skills/pm-dispatch/references/state-machine.md', 4189],
  ['.claude/skills/pm-dispatch/references/contract-review.md', 6419],
  ['.claude/skills/pm-dispatch/references/decision-analysis.md', 4892],
  ['.claude/skills/pm-dispatch/references/platform-readings.md', 1082],
  ['.claude/skills/pm-dispatch/references/readings-queue.md', 9074],
  ['.claude/skills/pm-dispatch/references/readings-channels.md', 7138],
  ['.claude/skills/pm-dispatch/references/readings-page.md', 2126],
  ['.claude/skills/pm-dispatch/references/readings-search.md', 4413],
  ['.claude/skills/pm-dispatch/references/readings-issue-fields.md', 2597],
  ['.claude/skills/pm-dispatch/references/readings-write-shapes.md', 8410],
  ['.claude/skills/pm-dispatch/references/readings-ci.md', 4900],
  ['.claude/skills/pm-dispatch/references/readings-shell.md', 2492],
  ['.claude/skills/pm-dispatch/references/readings-session.md', 4874],
  ['.claude/skills/pm-dispatch/references/rest-channel.md', 7698],
  ['.claude/skills/pm-dispatch/references/l1-review-checklist.md', 6875],
  ['.claude/skills/pm-dispatch/references/review-checklist.md', 79],
  ['.claude/skills/pm-dispatch/references/landing-operations.md', 10717],
  ['.claude/skills/pm-dispatch/references/release-aftercare.md', 3526],
  ['.claude/skills/pm-dispatch/references/seat-post-protocol.md', 7722],
  ['.claude/skills/pm-dispatch/references/true-green.md', 2068],
  ['.claude/skills/pm-dispatch/references/compile-surfaces.md', 2488],
  ['.claude/skills/pm-dispatch/references/seat-lifecycle.md', 9071],
  ['.claude/skills/pm-dispatch/references/area-lease.md', 6401],
  ['.claude/skills/pm-dispatch/references/coordinator.md', 3781],
  ['.claude/skills/pm-dispatch/references/untrusted-text.md', 3280],
  ['.claude/skills/pm-dispatch/references/security-findings.md', 3934],
  ['.claude/skills/pm-dispatch/references/external-contributions.md', 2006],
  ['.claude/skills/pm-dispatch/references/reading-discipline.md', 3822],
  ['.claude/skills/pm-dispatch/references/cross-repo-coordination.md', 4959],
  ['.claude/skills/pm-dispatch/references/triage-duties.md', 12399],
  ['.claude/skills/pm-dispatch/references/execution-duties.md', 19810],
  ['.claude/skills/pm-dispatch/references/filing-gate.md', 8386],
  ['.claude/skills/pm-dispatch/references/project-forms.md', 4669],
  ['.claude/skills/pm-dispatch/references/app-platform-boundary.md', 3928],
  ['.claude/skills/pm-dispatch/references/lanes/server.md', 4832],
  ['.claude/skills/pm-dispatch/references/lanes/devx.md', 2533],
  ['.claude/skills/pm-dispatch/references/lanes/skills.md', 2682],
  ['.claude/skills/pm-dispatch/references/lanes/spec.md', 3299],
  ['.claude/skills/pm-dispatch/references/lanes/ui.md', 1041],
  ['.claude/skills/pm-dispatch/references/lanes/hotcrm.md', 1320],
  ['.claude/skills/pm-dispatch/references/lanes/mobile.md', 3990],
  ['.claude/skills/pm-dispatch/references/lanes/security.md', 4196],
  ['.claude/skills/pm-dispatch/references/lanes/director.md', 6958],
  ['.claude/skills/pm-dispatch/references/lanes/triage.md', 2530],
  ['.claude/skills/pm-dispatch/references/lanes/l2-review.md', 1462],
  ['.claude/skills/pm-dispatch/references/lanes/review.md', 120],
  ['.claude/skills/pm-dispatch/references/lanes/qa.md', 2235],
  ['.claude/skills/pm-dispatch/references/lanes/eval.md', 2694],
  ['.claude/skills/pm-dispatch/references/lanes/queue.md', 2003],
  ['.claude/skills/pm-dispatch/references/lanes/cloud.md', 1232],
  ['.claude/skills/pm-dispatch/references/lanes/objectstack.md', 2270],
  ['.claude/agents/os-dev.md', 39008],
  ['.claude/skills/checklist-test/SKILL.md', 19560],
  ['.claude/skills/checklist-author/SKILL.md', 3574],
  ['.claude/skills/dogfood-verification/SKILL.md', 9526],
  ['.claude/skills/spec-property-retirement/SKILL.md', 26922],
  ['AGENTS.md', 78106],
  ['CLAUDE.md', 273],

The map in the script equals that output except three rows, each lowered to the size this PR's own edit landed (lowering is always legitimate); triage-duties.md was edited byte-neutral, so its row equals the output. Headroom is 0 on all 60 rows at the head.

File Bytes at BASE Bytes at head Delta
.claude/skills/pm-dispatch/SKILL.md 33934 33872 -62
.claude/agents/os-dev.md 39008 38848 -160
.claude/skills/pm-dispatch/references/lanes/skills.md 2682 2666 -16
.claude/skills/pm-dispatch/references/triage-duties.md 12399 12399 0

No row rises, so no raise is taken under the ruled form.

Cross-file moves. The mechanism stays, read in bytes (the 2026-09-03 ruling's adopted text is quoted as given). CROSS_FILE_MOVES is empty at the re-base, with a comment saying why: the three line-era declarations (into platform-readings.md, landing-operations.md, lanes/director.md) carry was values and ruled raises in lines, which no byte ceiling compares with; a zero-byte re-declaration would pin its sources at today's size and read any later ruled raise on a source as the move re-opening. Dropping the platform-readings.md declaration also ends the 444-line credit for lines moved into the nine readings-*.md files (seat 5's note, item 2). ruledRaises stays on the declaration shape for a future move whose destination later takes an ordinary ruled raise.

Rule lines that stated the old unit, edited in place:

  • SKILL.md guard index row: 行数 → 字节数, 实测行数增量 → 实测字节增量; the re-wrap ban and the density clause are deleted (both ruled on buying lines with a re-wrap, and no line budget is left to buy). 「新增以删减付账」 stays.
  • os-dev.md: the line on paying the line ratchet keeps only its deletion rule; the density line (whether a re-wrap buys lines) is deleted, void in bytes; the measure-first exception reports 实测字节数.
  • lanes/skills.md standing promise: 棘轮逐行付账,⛔ re-wrap 筹行 → 棘轮以删减付账.
  • triage-duties.md exception one (seat 5's note, item 1): a readings increment raises the ceiling to the landed byte size, takes no decision card, and the PR body cites this exception line and the measured delta; it no longer books in ruledRaises. The condition line under it is kept as it is: no clause is void in bytes; 不计重排 still does work in bytes: a re-wrap that swaps a space for a newline is byte-neutral, but an un-wrap frees a few real bytes and a wrapped continuation costs some, so the condition is kept as written.

Serial note. PR #35610 shares SKILL.md and os-dev.md. The text merges cleanly (overlap-check.mjs: VERDICT clean exit 0, both directions), but whichever of the two lands second measures those files again and moves their rows.

Transition for other open PRs. After this lands, every covered file sits at byte headroom 0. A PR that grows a covered file by even one byte carries a CEILINGS row move and its ruling (comment id and measured byte delta in its body), or pays the bytes by deletion.

Tests

node scripts/pm/check-skill-line-ratchet.mjs --self-test: 116 cases pass at 22d4de190 (114 at 898add71b). The roster floor moves 164 → 114 in the first commit, with a comment naming what left and what arrived, and 114 → 116 in the second (two scanTableRows rows that pin a fence closing and front matter closing; review finding S1, see Review below):

  • Left (77): the 66 rows of the max-line-length rule and its Han-punctuation break rule; the pin row that read the line rule's table exemption; 10 rows relabelled from lines to bytes.
  • Arrived (27): those 10 relabels; a new first half of the pin pair (the byte ceiling meters a wide row too, beside the pin); 16 byte-unit rows: the overage, the unreadable file, twelve unit rows (UTF-8 bytes as wc -c; CJK at three bytes; growth at a flat line count is red; a re-wrap is byte-neutral and stays green at its ceiling; a 600-byte ASCII sentence and a 600-byte CJK line green under their ceiling, and the same line one byte over red; the verdict names no line budget), the map denominated in bytes, the refusals speaking of bytes.

Every unit row is a pair or a near-twin, so a line-counting implementation fails it. The battery roster, the floor and the verdict handshake are kept as before.

Acceptance notes

  • The table-row pin is now a second meter beside the byte ceiling, kept by its ruling (2026-08-25, comment 5406811814). Its map, scan and self-test rows are unchanged, except two texts that described the deleted line rule: the refusal's sentence "the one shape the 120-byte line rule cannot reach … costs zero lines" now says the width is pinned per file by its own ruling beside the byte ceiling, and the pin pair's first row (it asserted the line rule's table exemption) now asserts the byte ceiling meters the same row. advanceState drops its quotation tracking, which only the line rule read. The pin's printed widths at the head equal those at BASE on all 60 files (diff of the printed lines: empty), including the pre-existing headroom-2 hint on spec-property-retirement/SKILL.md, a file this PR does not edit.
  • The three line-era cross-file move declarations are dropped, not re-declared in bytes (see What changes).
  • The line-era row comments are not carried forward: they speak another unit and stay in git history at BASE. The review nits PR chore(pm-dispatch): effort by the shape of the work; group by mechanism and fold by default #35591 left on its row comments end with those comments.
  • Part 2 readings: (a) 0 importers, and no file outside the script names the line rule's exports; (b) the rule held only lines outside its structural classes, which are prose paragraphs and list items; no other structured class was held; (c) pin widths identical, above; (d) check-ratchet-remedy-authority still reads this gate excluded (its self-test green); its why text still calls the gate "the per-file line ratchet the 2026-09-03 ruling amends", which is true of the ruling's day, so that file is not edited; (e) every CEILINGS and pin key stays a path literal, check:pm-dispatch-gates green; (f) the sentence check-harness-current.mjs quotes (".claude/skills/pm-dispatch/SKILL.md is read in full by every seat session and every Routine fire") is kept verbatim in the header, now on one line; the hermetic-gate sentence check-merged-result.mjs quotes is kept too; (g) triage-duties.md exception one was the only other reader of ruledRaises; (h) the old script quotes only the skill line itself as the standing exception (「唯一例外:…记 ruledRaises 引常设裁决…」, no ruling id or date), so the reworded line points at itself and needs no second home; the checkout is shallow, so the line's first commit was not traced; (i) nothing in scripts/, .github/ or docs/qa/ parses this gate's printed lines; (j) changed lines: 3880 (+404 / -3476, 5 files; 3867 at the first head), over the 3,000 human-merge threshold.
  • Text outside this PR's fence that still speaks of this gate's line unit, left untouched: the header of scripts/check-skills-token-ratchet.mjs ("prices .claude/** in LINES", fenced by the order), a comment in scripts/check-published-list-mirrors.mjs ("a shrink-only line ceiling"), the gate census rows in docs/audits/ (fenced), and the step name "PM skill line ratchet" in .github/workflows/lint.yml (workflows are fenced). Card fleet skills: fix the passages that contradict the new area and grading rules (skills clean-up step 2) #35230 carries the list. No other .claude/** line states the line unit or the 120-byte cap for these files.
  • Two .claude/ skill files carry no ceiling row, before and after this PR: references/instrument-discipline.md and .claude/skills/scenario-eval/SKILL.md. The header reads an absence as a fact to check; this PR adds no row.

Verification

Two-minute check: pnpm check:pm-skill-ratchet prints 60 lines of the form "PATH is N bytes (ceiling N; headroom 0)" and "declared cross-file moves: 0, total ceilings unchanged", exit 0.

Positive control (after committing; an input changed, never the script)
before: 120 bytes hash df46a7c728e67d8e4dd9373a9739a55d0c7926f9
after append: 121 bytes
GATE EXIT=1
✗ check-skill-line-ratchet: .claude/skills/pm-dispatch/references/lanes/review.md is 121 bytes; the ratchet ceiling is 120 (1 over). Keep the surface compressed: …
restored hash df46a7c728e67d8e4dd9373a9739a55d0c7926f9 HEAD blob df46a7c728e67d8e4dd9373a9739a55d0c7926f9
RESTORE-OK
git diff HEAD bytes: 0
GATE AFTER RESTORE EXIT=0

Restored with git checkout HEAD -- PATH; git diff HEAD empty and git status --porcelain empty afterwards.

Prose past 120 bytes is green (self-test, at 898add7)
  ✓ prose may run past 120 bytes: one 600-byte sentence under its ceiling is green
  ✓ ...and a 600-byte CJK prose line too
  ✓ ...and a wide table row is judged by the same byte count
  ✓ ...while the SAME long line over its ceiling is red, so the green above is the byte count and not a skip
  ✓ content added at a FLAT line count is metered — the drift the line unit could not see
  ✓ ...so a re-wrap of a file at its ceiling stays green, where a line count would have read it as growth
✓ check-skill-line-ratchet self-test: 114 cases pass.
Local gates at 898add7 (exit codes captured before any pipe)

Derived with node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands (47 families), each recorded as COMMAND :: exit N:

node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs --self-test :: exit 0
node scripts/check-self-test-wired.mjs :: exit 0
node scripts/check-self-test-wired.mjs --self-test :: exit 0
node scripts/check-self-test-workflow-commands.mjs :: exit 0
node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0
node scripts/check-whole-set-label-write.mjs :: exit 0
node scripts/check-whole-set-label-write.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/check-harness-current.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:agent-model-declared :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:bash32-floor :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cli-command-ids :: exit 0
pnpm check:commit-card-trailers :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:entry-guard :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:parse-guard :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
pnpm check:pm-expected-skips :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-governed-prose :: exit 0
pnpm check:pm-half-states :: exit 0
pnpm check:pm-label-write :: exit 0
pnpm check:pm-record-recognisers :: exit 0
pnpm check:pm-settings-deny-roster :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:pm-skill-ratchet :: exit 0
pnpm check:pnpm-filter-targets :: exit 0
pnpm check:pnpm-flag-spellings :: exit 0
pnpm check:ratchet-remedy-authority :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:scripts-symbol-anchors :: exit 0
pnpm check:skill-frame-sync :: exit 0
pnpm check:watch-hint-literal :: exit 0

--ran reconciliation: Run reconciliation — 47 derived, 47 run, 0 NOT-MEASURED, 0 UNRUN. (exit 0). check:doc-formula-expressions first answered exit 3 (PREREQUISITE NOT MET: @objectstack/formula and @objectstack/lint not built); after turbo run build --filter=@objectstack/formula --filter=@objectstack/lint under the verify lock (VERDICT command-exit 0) it answered exit 0, the line recorded above. check:pm-dispatch-gates: ✓ dispatch-gates self-test (fast tier): 2249 cases pass; 9 slow section(s) deferred., exit 0. Local-only: check:skill-frame-freshness exit 0.

Not run locally, declared to CI: the repo-wide scans (pnpm lint, test:repo); this diff touches no package.

Review

Two heads were reviewed. The records are comments on this PR:

Head L1 (thread L1-a) Contract review brief Contract review record
898add71b ACCEPT 7028269433 7028216276 7028512390: PASS, one should-fix (S1), nits N1 to N4
22d4de190 delta ACCEPT 7029118952 7029076596 7029264110: PASS, S1 closed, no must-fix, no should-fix

The second commit (22d4de190, the script only, +21 / -8) answers S1 and the script nits. Two self-test rows on scanTableRows assert that a table row after a closed fence, and after closed front matter, is measured (floor 114 → 116). The header's re-wrap sentence now separates a byte-neutral re-wrap from an un-wrap that frees real bytes. The header names the readings raise path of triage-duties.md exception one. The comment above CEILINGS says three rows were lowered and one was edited byte-neutral. The CJK fixture is exactly 600 bytes. No ceiling value and no .claude/** line moved in that commit. The evidence blocks above marked "at 898add7" are readings of the first head and are left as taken.

Left as nits, with no head move owed: three older sentences in the script still count two raise paths (the section heading on the cross-file move, the note on RULING_CITATION, the printed refusal). Card #35230 carries them.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgXoRuEJYBD32QLxaq2

…d to a 120-byte line

The ceiling map is re-based from lines to UTF-8 bytes at the merge-base,
headroom 0; the max-line-length rule and its re-wrap machinery are retired;
the table-row pin stays as a second meter by its own ruling; the line-era
cross-file move declarations are dropped and the move arithmetic reads
bytes. The rule lines that stated the line unit are edited in place.

Claude-Session: https://claude.ai/code/session_01L6bhgXoRuEJYBD32QLxaq2
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 20, 2026
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation labels Nov 20, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXoRuEJYBD32QLxaq2

Final head for review · 2026-11-20T02:10Z

Head: 898add71b531871244c2e8c8f56e7ddfff333d95 (one commit on 74d3d831d, 5 files, +391 / -3476).

Checks on this head, read with pr-state.mjs: 26 success, 23 expected skip, 0 unexpected skip, 0 failed, 0 pending. Nothing under .claude/** and nothing in scripts/pm/check-skill-line-ratchet.mjs has moved on main since 74d3d831d, so the 60 ceilings still equal what the merge-base measures.

Reviews asked on this head: L1 from thread L1-a; the contract review (L2) from an isolated reviewer started by this card thread. Its brief follows as its own comment, before the record.

Landing tier, read with check-governed-merges.mjs --pr 35712: four of five paths are governed (.claude/**) and the diff is 3,867 changed lines, over the 3,000 line. This thread does not flip it ready, enqueue it, arm auto-merge or approve it. After the seat adopts the record, the seat asks the governed approver, then lands it.

Contract-review-claim: session_01L6bhgXoRuEJYBD32QLxaq2 · head 898add7 · 2026-11-20T02:10Z


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXoRuEJYBD32QLxaq2

Contract review brief — PR #35712 @ 898add71b531871244c2e8c8f56e7ddfff333d95 (card #35229)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths .claude/skills/pm-dispatch/SKILL.md .claude/agents/os-dev.md .claude/skills/pm-dispatch/references/lanes/skills.md .claude/skills/pm-dispatch/references/triage-duties.md — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35229: its body and EVERY comment (rulings and earlier records included)
· PR #35712: its body, its file list, and the net diff against main at 898add71b531871244c2e8c8f56e7ddfff333d95
· the check-runs on 898add71b531871244c2e8c8f56e7ddfff333d95: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: .claude/skills/pm-dispatch/SKILL.md, .claude/agents/os-dev.md, .claude/skills/pm-dispatch/references/lanes/skills.md, .claude/skills/pm-dispatch/references/triage-duties.md;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is the directory pr-35712/ in the reviewing run's own scratch space alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

Additions by the dispatching thread (the first is asked by the seat). They add to the judgments above and remove none of them. Rendered 2026-11-20T02:12Z with record-recognisers.mjs --brief-template --paths over the PR's five paths; the text above is that output with its placeholders filled and its heading respelled, so that only the record opens a line with the record heading.

  1. Map provenance. The card orders the ceiling map "re-based to bytes at the merge-base". Under ④, judge whether every value in the diff's CEILINGS map is what a command measures (the file's byte count at the merge-base, or lower), and not a typed number. This is the ONE probe the read-only shape allows on this review: git object reads and wc -c over the paths of the map, with no checkout, no build and no gate run. Record it as Local-runs: probe — REASON.
  2. Rule-change-verified:. The PR body carries one Rule-change: line and one Ruling-ref: line. Directly after the record's Scope: line, write Rule-change-verified: VALUE, where VALUE is what you find in the diff: none when no fleet rule text changes meaning, ruled when it does and the cited ruling covers every change. A rule change the ruling does not cover is a must-fix, and the line is then left out.
  3. Mechanics. The reviewing run has no GitHub write. It returns the record as its final message, and this card thread posts it unchanged through the relay, the seat's signature line first. The independence pair reads Implemented-by: claude/project-thread-6u5k4f and Reviewed-by: session_01L6bhgXoRuEJYBD32QLxaq2.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

维护者速读

  • 用户能看到什么变化:用户无感,这是内部工具。给代理读的技能文件,原来按行数设上限,每行还不能超过 120 字节,所以文字被折成很多短行;现在改成按文件总字节数设上限,一句话可以写在一行里。各文件的上限按现在的实际大小重新量过,一个字节的余量都没留,之后谁想往这些文件里加内容,要么删掉等量的字,要么拿出裁决记录。
  • 出错会怎样:最坏的情况是门禁算错,放过了变大的文件,或者错拦了没变大的文件;我在本地把门禁和它的自测都跑过,结果是对的。这次改动删的大多是旧的逐行注释和折行规则的代码,所以删除行数超过三千行,按规定要你批准后才能合并。
  • 要你做什么:等 L2 PASS、席位采纳之后,会请你批准这个 PR。另外,PR chore(governance): the guard scripts join the governed register, .claude/** lands by declared rule-change, a declared narrowing waits for the maintainer #35610 还开着,它也改了这几个受管文件,在这个 PR 落地之后它就得按字节重新付账。

席位核对 — ACCEPT (L1-a) · repo:objectstack#1 · head 898add71b531871244c2e8c8f56e7ddfff333d95 · 2026-11-20T02:16Z

  • Shape — draft, base main, 1 commit on 74d3d831, 5 files, +391/−3476. check-governed-merges.mjs --pr 35712: GOVERNED, Tier S. 4 of the 5 paths are under .claude/**, and scripts/pm/check-skill-line-ratchet.mjs is not on the register. It is over the human-merge line at 3867 lines, so it needs the approver after the seat adopts it. Fixes #35229, Clause-②: no, and no changeset (.claude/** and scripts/pm/** do not publish). The Ruling-ref is the 2026-11-18 16:19Z 「同意」 that the card quotes.
  • Re-run here, at this head (worktree)
    • Ceilings = bytes. I imported CEILINGS and compared each of the 60 rows with wc -c of the file at this head: all 60 are equal. Against git show 74d3d831:<path> | wc -c, 57 are equal and 3 are lower. The three lowered rows are SKILL.md 33934 → 33872, lanes/skills.md 2682 → 2666 and os-dev.md 39008 → 38848, each the PR's own edit. triage-duties.md is byte-neutral at 12399, as its row comment says. No row is a raise, and none has slack.
    • Same coverage. The old and new maps hold the same 60 keys (onlyOld [], onlyNew []), so nothing left the gate in the re-base.
    • node scripts/pm/check-skill-line-ratchet.mjs passes: every file is at headroom 0, there are 0 cross-file moves, and the total is unchanged. --self-test gives 114 cases pass.
    • The card's "self-test covers both" is pinned:
      • "prose may run past 120 bytes: one 600-byte sentence under its ceiling is green", with a CJK twin and the same line red over its ceiling, so the green is the count and not a skip;
      • UTF-8 counted as wc -c counts it, with CJK at three bytes;
      • growth at a flat line count is metered;
      • a re-wrap is byte-neutral.
    • Consumers of the deleted exports (MAX_LINE_BYTES, scanLineLengths, lengthVerdict, wrapLine, classifyLine, EXEMPTION_CLASSES, …): there are 0 importers outside the script. The scripts that read it by path were all run at this head and all exit 0: check-ratchet-remedy-authority.mjs (sweep and --self-test), check-skills-token-ratchet.mjs --self-test, check-published-list-mirrors.mjs, check-harness-current.mjs --self-test and dispatch-gates.self-test.mjs. lint.yml still runs pnpm check:pm-skill-ratchet, and the file name is kept.
  • The four rule-text edits, checked line by line against the script
    • SKILL.md guard row: the unit becomes 字节, and the raise needs "其评论 id 与实测字节增量". That matches the header's raise discipline. The re-wrap ban and the density clause are dropped, because a byte count is re-wrap-neutral by construction (pinned). 「新增以删减付账」 stays.
    • os-dev.md: 「付字节棘轮的唯一合法货币是删内容:新增以删减付账」, and the zero-headroom exception reports the measured bytes. That is consistent.
    • lanes/skills.md: 「棘轮以删减付账」. That is consistent.
    • triage-duties.md, exception one: a readings increment raises to the landed bytes, and the PR body cites this line and the measured delta, no longer booking it in ruledRaises. That is consistent: CROSS_FILE_MOVES is empty at the re-base, and ruledRaises survives only as a field of a move declaration. Whether the exception line can serve as its own standing authority is governed text, so I leave it to the L2.
    • A scan of .claude/**, AGENTS.md and CLAUDE.md for the retired rule (120-byte, re-wrap, 筹行, MAX_LINE_BYTES, 行数棘轮) finds nothing left over.
  • Nit (nothing owed) — in os-dev.md ~292–297, the byte-ratchet lines sit inside the block about the published skills/** catalog, two lines after 「行数为准,姊妹门禁定义 token 计数后同报 token」, which is that catalog's own reading and is unchanged by this card. A reader may take the 字节 line as the published catalog's unit. That was already so with the 行数 wording. Separating the two is a candidate for the later "contradictions" step, not for this PR.
  • Sequencing note for the seat — after this lands, every covered file sits at byte headroom 0. Open PR chore(governance): the guard scripts join the governed register, .claude/** lands by declared rule-change, a declared narrowing waits for the maintainer #35610 edits os-dev.md, SKILL.md, contract-review.md and AGENTS.md and does not touch the ratchet script. Whichever lands second needs a fresh measurement: chore(governance): the guard scripts join the governed register, .claude/** lands by declared rule-change, a declared narrowing waits for the maintainer #35610 would then pay in bytes, or carry a row move with its ruling. The PR body's "Transition for other open PRs" says the same.
  • Gates — at this head: 26 success, 23 skipped, 0 failure.
  • Landing terms — Tier S needs a same-head ## Contract review PASS at CONTRACT_REVIEW_TIER (brief 7028216276, in parallel) and the seat's adoption. Then, because it is over 3,000 lines, the seat hands it to the approver. Nobody readies or queues it before that. A new push needs a fresh L1 unless it is a clean main merge.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXoRuEJYBD32QLxaq2

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 898add71b531871244c2e8c8f56e7ddfff333d95
Local-runs: probe — git object reads only (git show, git cat-file, git diff on the fetched refs), with wc -c and line-shape counts over the 60 map paths at the merge-base, the head and main, for the map provenance the brief's addition 1 asks; no checkout, no build, no gate or self-test run
Scope: .claude/skills/pm-dispatch/SKILL.md, .claude/agents/os-dev.md, .claude/skills/pm-dispatch/references/lanes/skills.md, .claude/skills/pm-dispatch/references/triage-duties.md + scripts/pm/check-skill-line-ratchet.mjs
Rule-change-verified: ruled

① Derived judgments

Read from the tree at the head against the merge-base 74d3d83. Main has moved five commits since; none touches a covered path, the gate, package.json or lint.yml.

  • Gate accept set, the unit. run() judges Buffer.byteLength of each file's text against its row. A file that grows at a flat line count is now red, and a file that gains lines at flat bytes is green. Right: this is the card's order.
  • Gate accept set, the line rule. MAX_LINE_BYTES, the eight exemption classes and the wrap machinery are gone, and nothing in run() reads a line's length outside the table-row pin. A widening, and right: the old classifyLine held only prose paragraphs and list items (every other shape was exempt by structure), which is the population the ruling frees.
  • Ceilings. 60 keys before and after, same set, same order. Headroom is 0 bytes on all 60 at the head. The one row with headroom at the merge-base (spec-property-retirement/SKILL.md, one line) loses it. No row is a raise. Right.
  • Cross-file moves. CROSS_FILE_MOVES goes from three declarations to none. The arithmetic of crossFileMoveVerdict and crossFileMoveTotalVerdict is unchanged apart from the unit word in messages. Read at the merge-base in lines, the three were: paid down (platform-readings.md, 14 against a was of 314, crediting the total with 444 lines, as note 7001508654 says), inert (landing-operations.md, a raise of 33 against a source decrease of 491), and live with one line of slack (lanes/director.md, a raise of 10 against 11 from triage-duties.md). So one live guard leaves. Right all the same: it guarded a source growing back, and at byte headroom 0 a source grows only through a ruled row move that a reviewer reads. A faithful byte re-declaration cannot be built from this tree (two sources were merged into lanes/server.md, the first destination was split in nine), and a zero-byte one would turn the next ruled raise on a source red for bytes no move took. The mechanism and its 49 self-test rows stay for the next move.
  • Table-row pin. The 60 pin values equal the merge-base's. advanceState lost only its quote tracking; its fence and front-matter transitions are equivalent to the old ones. Re-deriving the widest row of the six pinned files from the head blobs gives the pinned widths (headroom 0 on five, 2 on spec-property-retirement/SKILL.md, as before). Accept set unchanged. Right; its coverage is S1 below.
  • Module surface. Exports removed: MAX_LINE_BYTES, EXEMPTION_CLASSES, splitPrefix, atomize, hanAsciiPunctTail, breakLegal, wrapLine, classifyLine, scanLineLengths, lengthVerdict. Added: countBytes, fileVerdict, HEADROOM_HINT_BYTES. The function verdict now takes bytes and initialState() no longer carries quote. No file in the tree imports the module. Right.
  • Printed lines. "N lines" becomes "N bytes", and the refusal now states the overage. No script, workflow or docs/qa file parses them. check-harness-current.mjs and check-merged-result.mjs quote two header sentences in comments only, and both sentences survive verbatim. Right.
  • Self-test floor, 164 to 114. Rosters diffed key by key: 77 left, 27 arrived, 87 kept; the 114 row labels equal the 114 roster keys, with no duplicate. The count is right. Two of the 66 retired line-rule rows were doing a second job (S1).
  • Rule text. What a reviewer holds a rule-text PR to changes in three places: the unit, the re-wrap ban with its density clause (deleted), and where a readings raise is recorded. Right under the cited ruling; see ④.
  • Coverage. No file enters or leaves the map. Two files under .claude/ stay unmetered (③).

② Semver level

skip-changeset is right: the five paths sit under .claude/** and scripts/pm/**, which no package ships, and no .changeset file is touched. Clause-②: no is right: the clause speaks of published contract surfaces, and this diff widens none. Metadata-protocol: none is right. Check Changeset is green on the head.

③ Boundary flags

Dev report (7027898570), deviations:

  • The base is 74d3d83, one commit past the one that merged PR chore(pm-dispatch): effort by the shape of the work; group by mechanism and fold by default #35591. Accepted: it is the merge-base git computes, and that commit touches nothing under .claude, scripts/pm or the root instruction files.
  • Two pin texts reworded and advanceState trimmed. Accepted: the old refusal named a rule that no longer exists, and values and scan are unchanged (① above). The report labels this "Ruling 4"; the claim numbers the pin's ruling ②.
  • The commit's trailer pair. Accepted: the head commit carries no card trailer and names no model.

open_questions: empty; nothing to answer.

Out-of-scope findings:

  • Text elsewhere that still calls the unit lines, carrier fleet skills: fix the passages that contradict the new area and grading rules (skills clean-up step 2) #35230. Verified at the head: the token ratchet's header, the comment in check-published-list-mirrors.mjs, the two census files, the why text in check-ratchet-remedy-authority.mjs. All comment or audit text; nothing judges by them. The list misses one: .github/workflows/lint.yml still names the step "PM skill line ratchet" under a comment headed "line ratchet". Same carrier.
  • references/instrument-discipline.md (1,163 bytes) and scenario-eval/SKILL.md (13,817 bytes) carry no row, "carrier: none". Escalated to the seat: this needs a carrier. The hole is older than this PR and the card orders no new row, so it is not a finding on this head. But once this lands they are the only two skill files where text costs nothing, beside 60 files at headroom 0, and the header's "the four other .claude/skills/ playbook SKILL.md files" counts one skill short of the tree. A row is a new ceiling, so the card that adds it needs the maintainer's word.

PR body flags:

  • The pin kept as a second meter. Right: its ruling (comment 5406811814) is not named by the card.
  • Three declarations dropped. Accepted, as judged in ①.
  • Line-era row comments not carried forward. Accepted: about two thousand lines of provenance leave the file; they are comment text, the rulings they quote live on their cards, and the header points at the merge-base blob.
  • Note 7001508654 on the card (record 7001464078: should-fix S2, deferred to this card). Both items are settled in the diff: the booking is re-homed in triage-duties.md, and the stale 444-line credit goes with its declaration.
  • The claim's known gap holds for this review too: the three review reports are outside the inputs, so the ruling is read as the card body quotes it. The card has no ruling comment of its own, so the Ruling-ref: names a quotation, not a comment id. By the PR's own account it lands only by the maintainer's hand (3,867 changed lines on governed paths), which is the check on that quotation.
  • Serial note and transition. True as read. One consequence for the landing seat: a PR that grows a covered file at a flat line count is green on its own head today and turns the merged tree red once this lands, in either order. The merged result is what must be measured at landing.

SQL push-down: not applicable; the diff reads files and holds no query.

④ Design judgment

Map provenance (addition 1). For each of the 60 keys I read the blob at the merge-base, at the head and on main, and counted bytes. 57 values equal the merge-base count exactly. Three are lower, and each equals the head blob's size: SKILL.md 33934 to 33872, os-dev.md 39008 to 38848, lanes/skills.md 2682 to 2666. triage-duties.md is 12399 at both. No value is above its merge-base count, none sits between the two counts, and main's 60 blobs equal the merge-base's. All 60 blobs are valid UTF-8 with no BOM, so the gate's count equals wc -c on each. Every number is what a command measures; none is typed.

scripts/pm/check-skill-line-ratchet.mjs, against the card's done-when:

  • The ratchet judges bytes: yes. By the decoding rule (not run), an ill-formed byte is not a cheaper byte: each ill-formed subpart of at most three bytes decodes to one replacement character of three, so the meter reads at or above the file size.
  • Prose may run past 120 bytes: yes; no line-length reading remains.
  • The self-test covers both: yes, with pairs a line counter cannot pass (growth at a flat line count is red; a re-wrap at the ceiling is green; one 600-byte line is green at 600 and red at 599).
  • The skill gates pass: the 26 completed check-runs on the head are green and 23 are skips; none is red or pending.

Tried to break it:

  • A row left in lines would hand its file about a hundredfold headroom. Caught by the row that holds every ceiling above its file's live line count, and by the probe above.
  • A move declaration used to book a raise no move paid for. Still refused: the citation, source and over-claim bars are unchanged.
  • Emptied declarations hiding corpus growth. No: the sum of ceilings equals the sum of sizes, 466,357 bytes, so any growth needs a row move.
  • The kept pin switched off without a red. This one works; see S1.

No must-fix.

S1 (should-fix) — the kept table-row pin lost the only two self-test rows that assert a fence and front matter close.
The retired rows scan: the fence closes again and scan: front matter closes at the second --- drove advanceState through scanLineLengths. scanTableRows shares that function, and this diff rewrote it. At the head no row puts a table row after a closed fence or after front matter: the five scan rows use four fixtures, a document with neither, a row inside a fence, a row inside front matter, and a file with no row. An advanceState that never leaves front matter, or never closes a fence, therefore passes all 114 rows. The live gate does not catch it either: the scan then reads a width below the pin, which is green with a hint. Three of the six pinned files open with front matter and have their widest row after it (pm-dispatch/SKILL.md 341, checklist-test/SKILL.md 221, spec-property-retirement/SKILL.md 326), and AGENTS.md (768) has twelve fence markers before its widest row. At the merge-base both mutations were red. The pin stands on its own ruling and the PR says it is kept exactly as ruled; its floor should be kept with it. Fix: two rows on scanTableRows (a table row after a closed fence is measured; a table row after closed front matter is measured), roster and floor 114 to 116.

Nits. N1 to N3 sit in the script and do not need the head moved for them; N4 is on the prose faces.

  • N1 (nit) — the header says "Re-wrapping is byte-neutral ... the old ban on paying with a re-wrap is enforced by the unit itself", and the PR body repeats it. True of the swap it names (a space for a newline). Not true of every un-wrap: joining a wrapped list continuation deletes its newline and indent, and joining two CJK lines deletes the newline. Counted over the head blobs with a rough reader, a full un-wrap would free about 2.6 kB of 466 kB, at most about 3 percent of one file (spec-property-retirement/SKILL.md, about 870 bytes). Deleting the ban still holds, for a different reason: those are real bytes of the read, so the count is the cost, and os-dev.md keeps "the only legal currency is deleting content". Follow-up on the wording.
  • N2 (nit) — the header's discipline list and the refusal name two raise paths (the ruling of record with its comment id, and the cross-file move, "the one raise an author may take without a per-instance ruling") and say a raise quoting no ruling id stays red. triage-duties.md 例外一 (exception one) is a third: a readings raise quotes that rule line and the measured delta. The header was equally silent at the merge-base, where the records of this path lived in the declaration now dropped, so the gap is older than the PR, and the gate reads neither text. One clause in the header would close it; follow-up.
  • N3 (nit) — the comment above CEILINGS says "the four rows marked below were then lowered"; three were lowered and the fourth is marked byte-neutral. The row label "...and a 600-byte CJK prose line too" runs a 598-byte fixture and asserts only that it is over 120.
  • N4 (nit, prose face) — the two slips noted in ③: "Ruling 4" for the pin's ruling, and lint.yml missing from the list of stale mentions.

The four hits files, each changed line against the gate:

  • SKILL.md, guard row. "字节数只降不升" (bytes only go down), the raise form (ruling comment id and measured byte delta in the PR body, the row moved by at most the delta, no id is red), and "新增以删减付账" (additions are paid by deletion): each clause has its sentence in the header and in the refusal of verdict(), which now also prints the overage a raise must quote. The row narrows, so the file's own pin (341) holds. Holds.
  • os-dev.md, three lines to two. The paying rule keeps its deletion clause. The next line still sends the reader to the ratchet header for the ruled exception, and the header still carries it. The measure-first exception now reports bytes, which is what the refusal prints. The line above them, "行数为准" (line count governs), is about the published catalog's own readings and is rightly untouched. Holds.
  • lanes/skills.md, standing promise. Holds; it restates the same rule in five words.
  • triage-duties.md, 例外一. The grant (a readings increment raises its row to the landed size without a decision card), its scope and the condition line under it are unchanged. The record moves from ruledRaises to the PR body. That is forced: ruledRaises exists only on a move declaration, and no readings-*.md file has one or can have one (the gate refuses a declaration for a raise no move paid), so the old instruction had nowhere to be carried out even at the merge-base. The new doc comment on CROSS_FILE_MOVES says the same from the gate's side. Holds, with N2.

Rule change (addition 2). The rule text changes meaning in three ways. The cited ruling is the maintainer's 「同意」 of 2026-11-18T16:19Z as card #35229's body quotes it: the ratchet "counts BYTES per skill file instead of lines", "the 120-byte line width no longer applies to prose", and the map is "re-based to bytes at the merge-base". It covers each change:

  • The unit, in all four files: directly.
  • The re-wrap ban and the density clause, in three files: both rule on buying lines with a re-wrap, there is no line budget left to buy, and each file keeps its pay-by-deletion sentence.
  • The booking of 例外一: a consequence of the ordered re-base, which removes the line-denominated declaration the old text pointed at. What is granted, to whom and on what conditions does not move.

Nothing else in the four files changes. Hence ruled.

Implemented-by: claude/project-thread-6u5k4f
Reviewed-by: session_01L6bhgXoRuEJYBD32QLxaq2

VERDICT: PASS


Generated by Claude Code

…in (#35229)

Two scanTableRows self-test rows assert that a table row after a closed
fence, and after closed front matter, is measured: the closing transitions
of the shared advanceState that two retired line-rule rows used to pin.
Floor 114 -> 116. The 600-byte CJK row now runs a 600-byte fixture judged
at its ceiling; header comments name the readings raise path, say what an
un-wrap costs, and count the lowered rows correctly.

Claude-Session: https://claude.ai/code/session_01L6bhgXoRuEJYBD32QLxaq2
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXoRuEJYBD32QLxaq2

Final head for review, round 2 · 2026-11-20T03:04Z

Head: 22d4de19060a9bdfc8c37e47e81c58fde4817d0c, one commit on 898add71b531871244c2e8c8f56e7ddfff333d95, touching scripts/pm/check-skill-line-ratchet.mjs only (+21 / -8). It answers the contract review on the earlier head (record 7028512390): S1 and the script nits N1 to N3. The dev's delta report is comment 7029046813 on card #35229.

Checks on this head, read with pr-state.mjs: 25 success, 19 expected skip, 0 unexpected skip, 0 failed, 0 pending.

Reviews asked on this head: a delta read from thread L1-a (its ACCEPT 7028269433 names the earlier head), and a delta contract review from the same isolated reviewer. Its brief follows as its own comment, before the record.

Landing tier is unchanged: governed paths and over 3,000 changed lines. This thread does not flip the PR ready, enqueue it, arm auto-merge or approve it.

Contract-review-claim: session_01L6bhgXoRuEJYBD32QLxaq2 · head 22d4de1 · 2026-11-20T03:04Z


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXoRuEJYBD32QLxaq2

Contract review brief — PR #35712 @ 22d4de19060a9bdfc8c37e47e81c58fde4817d0c (card #35229) — delta round

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths .claude/skills/pm-dispatch/SKILL.md .claude/agents/os-dev.md .claude/skills/pm-dispatch/references/lanes/skills.md .claude/skills/pm-dispatch/references/triage-duties.md — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35229: its body and EVERY comment (rulings and earlier records included)
· PR #35712: its body, its file list, and the net diff against main at 22d4de19060a9bdfc8c37e47e81c58fde4817d0c
· the check-runs on 22d4de19060a9bdfc8c37e47e81c58fde4817d0c: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: .claude/skills/pm-dispatch/SKILL.md, .claude/agents/os-dev.md, .claude/skills/pm-dispatch/references/lanes/skills.md, .claude/skills/pm-dispatch/references/triage-duties.md;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is the directory pr-35712/ in the reviewing run's own scratch space alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

Additions by the dispatching thread. They add to the judgments above and remove none of them. Rendered 2026-11-20T03:04Z with record-recognisers.mjs --brief-template --paths over the PR's five paths; the text above is that output with its placeholders filled and its heading respelled, so that only the record opens a line with the record heading.

  1. Delta round. Record 7028512390 on this PR judged head 898add71b531871244c2e8c8f56e7ddfff333d95: PASS, with S1 (should-fix) open and nits N1 to N4. The head has moved by one commit since. That record, and every other comment on this PR, is an input beside the card's. The new record covers the whole PR at the new head: judge the delta between the two heads afresh, read what it touches from the tree and not from this brief, and carry forward only what the delta leaves untouched. Name S1 by id alone if the fix closes it (S1: closed); if it does not, keep it graded and open. For each of N1, N2 and N3 say whether the new wording holds against the code and the rule text it describes; new wording that states a rule wrongly is a finding like any other.
  2. Map provenance. The seat's ask stands on this head: every value in CEILINGS is what a command measures at the merge-base, or lower, and not a typed number. If the delta moves no value, say how you know. If you measure again, that is the ONE probe (git object reads and wc -c, no checkout, no build, no gate run): Local-runs: probe — REASON. Otherwise Local-runs: none.
  3. Rule-change-verified:. As in the first round: directly after the record's Scope: line, Rule-change-verified: VALUE, where VALUE is what you find in the diff against main at this head: none when no fleet rule text changes meaning, ruled when it does and the cited ruling covers every change. A rule change the ruling does not cover is a must-fix, and the line is then left out.
  4. Mechanics. The reviewing run has no GitHub write. It returns the record as its final message, and this card thread posts it unchanged through the relay, the seat's signature line first. The independence pair reads Implemented-by: claude/project-thread-6u5k4f and Reviewed-by: session_01L6bhgXoRuEJYBD32QLxaq2.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

维护者速读

  • 用户能看到什么变化:用户无感。这一轮只给门禁脚本的自测补了两条用例,并改了几处注释,没有动任何上限数字,也没有动给代理读的规则文字。
  • 出错会怎样:没有新风险。我把新用例要守住的两处逻辑分别故意改坏,每次都只有对应的那条用例变红。
  • 要你做什么:和上一轮一样,等 L2 增量复核 PASS、席位采纳后,请你批准这个 PR,因为它超过 3000 行。

席位核对 — delta ACCEPT (L1-a) · repo:objectstack#1 · head 22d4de19060a9bdfc8c37e47e81c58fde4817d0c · 2026-11-20T03:06Z

  • Delta — one commit, 22d4de19, on 898add71 (my ACCEPT 7028269433). It touches only scripts/pm/check-skill-line-ratchet.mjs, +21/−8, and answers L2 S1 and N1–N3 (record 7028512390). No CEILINGS value moved, and no .claude/** text changed, so the four rule-text readings in my ACCEPT stand unchanged.

  • S1, the two closing-transition pins. The new scanTableRows rows are:

    • "a table row AFTER a closed fence is measured", expecting 44 (| + 40 + |);
    • "a table row AFTER closed front matter is measured", expecting 34.

    The battery entries are added and SELF_TEST_BATTERY_FLOOR goes 114 → 116, with the reason in its comment. Ablated here, in a worktree, one at a time: with advanceState never leaving front matter, exactly the front-matter row turns red. With a fence that never closes (s.fence = true), exactly the fence row turns red. Each was restored and the tree checked clean. So the rows are load-bearing for the shared advanceState, the job the retired line-rule scan rows used to do. At this head, --self-test gives 116 cases pass, and the gate passes with no ✗.

  • N1–N3 (comments only)

    • N1: the re-wrap sentence now separates a byte-neutral re-wrap from an un-wrap that frees real bytes (a joined list continuation, or joined CJK lines). Both are true of a byte count, and "deletion stays the only currency" is kept.
    • N2: the header names the readings-*.md increment as the third raise path and points at triage-duties.md 例外一. That is the same rule the triage-duties.md edit wrote, so the script header and the rule text now say one thing.
    • N3: the "four rows marked" comment now states that three were lowered and triage-duties.md equals the base output. That matches my measurement (57 equal to base, 3 lowered, all 60 equal to head).
  • The CJK fixture is now exactly 600 bytes (33 × 18 + 6). The row asserts === 600 where it asserted > 120, so it is now the 600-byte twin of the ASCII row, as its title says.

  • Gates — at this head: 25 success, 19 skipped, 0 failure.

  • Landing terms — unchanged: Tier S, and over 3,000 lines. It needs the delta ## Contract review PASS on this head (brief 7029076596, same reviewer), then the seat's adoption, then the approver. A new push needs a fresh L1 unless it is a clean main merge.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXoRuEJYBD32QLxaq2

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 22d4de19060a9bdfc8c37e47e81c58fde4817d0c
Local-runs: none
Scope: .claude/skills/pm-dispatch/SKILL.md, .claude/agents/os-dev.md, .claude/skills/pm-dispatch/references/lanes/skills.md, .claude/skills/pm-dispatch/references/triage-duties.md + scripts/pm/check-skill-line-ratchet.mjs
Rule-change-verified: ruled

① Derived judgments

Delta record: record 7028512390 judged head 898add7, and this one covers the whole PR at the new head. Everything below is read from the tree. The delta is one commit on the earlier head and one file, scripts/pm/check-skill-line-ratchet.mjs, 21 lines added and 8 removed in eight hunks: two in the header comment, one in the comment above CEILINGS, one in the self-test roster, one at the roster floor, three in the self-test body. The merge-base is still 74d3d83. Fetched main is eight commits past it; none touches a covered path, the gate, package.json or lint.yml.

What the delta implies:

  • Gate accept set: unchanged. No hunk touches run(), verdict(), fileVerdict, countBytes, advanceState, scanTableRows, the move arithmetic or either map. Right.
  • Self-test accept set: narrower by two rows, and the floor goes from 114 to 116. A script whose advanceState never closes a fence, or never leaves front matter, is red at this head and was green at the earlier one. Right; it is what S1 asked for. The roster holds 116 keys at the head, and each new label is spelled the same in the roster and in its row.
  • One row tightened: the CJK prose row asserts a count of exactly 600 bytes, green at a ceiling of 600, where it asserted only "over 120". Right.
  • Module surface and printed gate lines: unchanged. No export line is in the delta. The self-test prints two more labels and the count 116, and nothing parses them. The header sentences that check-harness-current.mjs and check-merged-result.mjs lean on sit outside the eight hunks. Right.

Carried forward from record 7028512390. The delta leaves each untouched: the tree diff between the two heads lists this one file, and outside the self-test its hunks are comments only.

  • The unit. run() judges the UTF-8 byte count of each file against its row. Right: the card's order.
  • The line rule. MAX_LINE_BYTES, its eight exemption classes and the wrap machinery are gone, and nothing reads a line's length outside the table-row pin. A widening, and right: the rule held only prose paragraphs and list items, the population the ruling frees.
  • Ceilings. 60 keys, the same set and order as before the PR, headroom 0 on all 60, no row a raise. Right.
  • Cross-file moves. Three line-era declarations go to none; the arithmetic is unchanged apart from the unit word. Right, for the reasons that record gives.
  • Table-row pin. The 60 pin values equal the merge-base's and the scan's accept set is unchanged. Right; its coverage gap is closed (④).
  • Module surface of the PR as a whole. Ten exports removed, three added, no importer in the tree. Right.
  • Rule text. The unit, the deleted re-wrap ban with its density clause, and where a readings raise is recorded. Right under the cited ruling (④).
  • Coverage. No file enters or leaves the map; two files under .claude/ stay unmetered (③).

② Semver level

skip-changeset is right: the five paths sit under .claude/** and scripts/pm/**, which no package ships, no .changeset file is touched, and the delta adds no path. Clause-②: no is right: the clause speaks of published contract surfaces, and this diff widens none. Metadata-protocol: none is right. On this head Check Changeset reads as a skip where the earlier head had a success; the skip-changeset label is on the PR, and the judgment above does not rest on that run.

③ Boundary flags

Dev fix report (7029046813), claim by claim:

  • "No ceiling value and nothing run() judges moved": true as read (① and the provenance paragraph in ④).
  • S1, N1, N2 and N3 reported done: judged in ④. S1 is closed, the three wordings hold, and N2 leaves a residue.
  • The printed refusal is unchanged, as the report says: true, and it is part of that residue.
  • The two header sentences other scripts quote are kept verbatim: true; neither is in a hunk.
  • Its table of local runs is not an input here; the check-runs on the head are (④).
  • "PR body not edited (the thread patches it)": as of this record the body still describes the earlier head (N5).
  • The new commit carries the same trailer pair as the first. Accepted as before.

open_questions: none in either report; nothing to answer.

Carried forward, untouched by the delta:

Other reviews on this PR, read as inputs and not relied on. L1-a's ACCEPT (7028269433) leaves the standing of 例外一 (exception one) to this review; it is answered under the rule change in ④. Its note that the byte lines in os-dev.md sit inside the published-catalog block is older than this PR and theirs to carry. L1-a's delta ACCEPT (7029118952) reports both S1 mutations red by ablation in its own worktree; that agrees with my trace, which stands on the tree alone.

SQL push-down: not applicable; the diff reads files and holds no query.

④ Design judgment

Map provenance (addition 2). No value moved, and I did not measure again. How I know: the tree diff between the two heads lists one file, the script; in that file's diff no added or removed line is a row of CEILINGS or of MAX_TABLE_ROW_BYTES (a search of the zero-context diff for row-shaped lines returns nothing), and the one hunk near the map is the comment above it; the merge-base is the same commit; and the four rule files are the same blobs as at the earlier head, so the three lowered rows still equal their files. The measurement in record 7028512390 therefore stands for this head: 57 values equal the merge-base byte count, three are lower and equal the head blob (SKILL.md 33872, os-dev.md 38848, lanes/skills.md 2666), triage-duties.md is 12399 at both, none is above its merge-base count, and the sum of ceilings equals the sum of sizes, 466,357 bytes. Fetched main has not moved a covered file since the merge-base, so the map also equals what the merged tree measures as of that fetch. Every number is what a command measures; none is typed.

The delta, judged afresh from the tree:

S1: closed. The two new rows put a table row after a closed fence and after closed front matter, the two shapes no fixture had at the earlier head. Traced through advanceState and scanTableRows as they stand at the head: the fence fixture (a fence holding a 5-byte row, then a row of 2 + 40 + 2 bytes) reads 44, and the front-matter fixture (three lines of front matter, then a row of 2 + 30 + 2 bytes) reads 34; both expected values are right. With a fence that never closes the first reads 0, and with front matter that never ends the second reads 0, so both mutations named in S1 are red now. With the two older rows (a row inside a fence and a row inside front matter, each read as 0), all four transitions of the shared function are pinned. Roster and floor moved with the rows, 114 to 116, and the floor's comment says why.

N1: the new wording holds. "A re-wrap that swaps a space for a newline is byte-neutral" is true of countBytes (one byte for one byte), and the self-test row of that name measures a difference of 0. "An un-wrap can free a few bytes ... those are real bytes of the read: the count is the cost" is true of the same count. "Deletion stays the only currency" is the sentence os-dev.md and the guard row keep (新增以删减付账, additions are paid by deletion). The header no longer claims that the unit enforces the deleted re-wrap ban. No rule is stated wrongly.

N2: the new bullet holds against triage-duties.md 例外一 clause by clause: a readings-*.md increment, the row raised to the landed bytes, no decision card, the PR body quoting that rule line and the measured byte delta. "Third" counts right, after the ruling of record and the cross-file move, and the move bullet now reads "a raise" where it read "the one raise". The gate reads none of this text, so no accept set moves. A residue stays (N2 below).

N3: both halves hold. The comment above CEILINGS now says three of the four marked rows were lowered and the fourth, triage-duties.md, was edited byte-neutral, which is what the first round measured. The CJK fixture is 33 repeats of an 18-byte string plus 6 bytes, 600 bytes on one line, and the row asserts exactly that, so its label is true.

Tried to break the delta:

  • The fence fixture staying green under a scan that ignores fences altogether: it would read 44 all the same. The older row with a table row inside a fence, read as 0, catches that; the same pairing holds for front matter.
  • A front-matter state that ends one line early satisfies both front-matter rows. It can only make the scan read more lines, never fewer, so the pin could only turn red sooner. Nothing is owed.
  • The new header bullet read as a raise the gate lets through unseen: no. run() is unchanged, a readings file over its row is red until the row moves, and a moved row is a diff line a reviewer reads against 例外一 and the condition line under it.
  • The CJK row green for the wrong reason: at 600 bytes against a ceiling of 600 it is green only if the count is exactly the bytes, and its twin one byte over stays red.

No must-fix, no should-fix.

Nits. None needs the head moved.

  • N2 (nit) — residue. Three older sentences in the script still count two raise paths: the section heading "The one raise an author may take alone: a same-PR CROSS-FILE MOVE", the note on RULING_CITATION ("the only other way one lands"), and the printed refusal ("authorized only by the ruling of record ... A raise quoting no ruling id stays red"), which the fix report says it left unchanged. All three stood at the merge-base. The new bullet also leaves out that 例外一 has a condition line under it (the seat's acceptance comment checks each item, counts are de-duplicated, one matter per line, re-arrangement not counted); it names the file and the exception, so a reader gets there. The refusal matches the general rule in the SKILL.md guard row, and 例外一 is the exception to that rule, so no rule is stated wrongly; an author of a readings increment who meets the refusal is simply not told of the exception there. Follow-up, with the stale-unit text under carrier fleet skills: fix the passages that contradict the new area and grading rules (skills clean-up step 2) #35230 or on the next edit of the script.
  • N4 (nit, prose face) — carried: "Ruling 4" for the pin's ruling in the first dev report, and lint.yml missing from the list of stale mentions.
  • N5 (nit, prose face) — the PR body still describes the earlier head: "114 cases pass" at the earlier sha, 391 added and 3,867 changed lines (now 404 and 3,880), and two sentences the header no longer makes ("the unit enforces both by construction", and 不计重排 as "also enforced by the unit ... redundant"). After N1 the tree says an un-wrap frees bytes and a wrapped continuation costs some, so that condition still does work, and the tree rightly keeps it. To be brought to this head before landing; it moves no head.

scripts/pm/check-skill-line-ratchet.mjs against the card's done-when, carried and re-read at this head:

  • The ratchet judges bytes: yes. By the decoding rule (reasoned, not run), an ill-formed byte is never a cheaper byte, so the meter reads at or above the file size.
  • Prose may run past 120 bytes: yes; no line-length reading remains.
  • The self-test covers both: yes, with pairs a line counter cannot satisfy (growth at a flat line count is red; a re-wrap at the ceiling is green; one 600-byte line is green at 600 and red at 599), and the CJK half is now an exact twin.
  • The skill gates: 44 check-runs on this head, 25 success and 19 skips, none red, none pending. The Lint lanes (where lint.yml runs pnpm check:pm-skill-ratchet, the self-test and then the sweep), the Type Check lanes, Test Core, the PR-body guards, Check PR Size and the Governed Surface Queue Guard are green.

Carried attempts to break the design, each still answered at this head: a row left in lines (caught by the row that holds every ceiling above its file's line count, and by the first round's measurement); a move declaration used to book a raise no move paid for (still refused: the citation, source and over-claim bars are unchanged); emptied declarations hiding corpus growth (no: the sum of ceilings equals the sum of sizes); the kept pin switched off without a red (this was S1, now closed).

The four hits files are the same blobs as at the earlier head, and each changed line was read again against the gate at this head:

  • SKILL.md, guard row. Bytes only go down, the raise form (the ruling comment's id and the measured byte delta in the PR body, the row moved by at most the delta, no id is red) and pay-by-deletion each have their sentence in the header's discipline list and in the printed refusal. The row is narrower than before, so the file's own pin (341) holds. Holds.
  • os-dev.md, three lines to two. The paying rule keeps its deletion clause, the next line still sends the reader to the ratchet header for the ruled exception, and the measure-first exception reports bytes, which is what the refusal prints. Holds.
  • lanes/skills.md, standing promise. Holds; it restates the same rule in five words.
  • triage-duties.md, 例外一. The grant, its scope and the condition line under it are unchanged; the record of a raise moves from ruledRaises to the PR body, which is forced, since ruledRaises exists only on a move declaration and no readings file can have one. The header now carries this path's sentence (the new bullet), so the gate's own text and the rule line say one thing. Holds.

Rule change (addition 3). The diff against main at this head changes the same lines of the four rule files as at the earlier head, and nothing else under .claude/, AGENTS.md or CLAUDE.md. The rule text changes meaning in three ways. The cited ruling is the maintainer's 「同意」 of 2026-11-18T16:19Z as card #35229's body quotes it: the ratchet "counts BYTES per skill file instead of lines", "the 120-byte line width no longer applies to prose", and the map is "re-based to bytes at the merge-base". It covers each change:

  • The unit, in all four files: directly.
  • The re-wrap ban and the density clause, in three files: both rule on buying lines with a re-wrap, there is no line budget left to buy, and each file keeps its pay-by-deletion sentence.
  • The booking of 例外一: a consequence of the ordered re-base, which removes the line-denominated declaration the old text pointed at. What is granted, to whom and on what conditions does not move.

The delta adds no rule text: the header bullet restates 例外一 in the gate's own comment and grants nothing the rule line does not. Hence ruled.

Implemented-by: claude/project-thread-6u5k4f
Reviewed-by: session_01L6bhgXoRuEJYBD32QLxaq2

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

L2 adoption · 2026-11-20T03:19Z · The seat adopts the #35229 card thread's isolated delta record 7029264110 for head 22d4de19, served at CONTRACT_REVIEW_TIER (the rules face) and posted with --tier-evidence. It was judged under template brief 7029076596, which was posted before the record with its ⛔ lines kept. It is the delta for first-round record 7028512390 (brief 7028216276), by the same reviewer.

The verdict is PASS, with no must-fix and no should-fix items. S1 is closed by the two new scanTableRows self-test rows (floor 116), and N1–N3 are closed. Rule-change-verified: ruled. The record's Scope: line covers the four .claude/** reviewFace hits plus scripts/pm/check-skill-line-ratchet.mjs. The reviewer measured all 60 ceiling values: 57 equal the merge-base byte count and 3 equal the lower head size, none is higher, and none is hand-typed. L1-a delta ACCEPT on this head is 7029118952, and it ablated advanceState: each new row turns red alone.

check-governed-merges --pr 35712 reads GOVERNED, Tier S, with 3,880 changed lines: 3,476 deletions, most of them the old line-counting script. That is over the 3,000-line human-merge threshold. landing-k reads K = 0.

@os-zhuang, please review head 22d4de19 and approve if you agree. The seat lands it afterwards. Landing order with #35610: that PR shares SKILL.md and os-dev.md, so whichever lands second re-measures the merged tree in bytes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fleet skills: the skill ratchet counts bytes, and prose is no longer held to a 120-byte line (skills clean-up step 1)

3 participants