Repository navigation
chore(pm): the skill ratchet counts bytes, and prose is no longer held to a 120-byte line - #35712
Conversation
…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>
|
repo:objectstack#1 · os-sales · session_01L6bhgXoRuEJYBD32QLxaq2 Final head for review · 2026-11-20T02:10Z Head: Checks on this head, read with 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 Contract-review-claim: session_01L6bhgXoRuEJYBD32QLxaq2 · head 898add7 · 2026-11-20T02:10Z Generated by Claude Code |
|
repo:objectstack#1 · os-sales · session_01L6bhgXoRuEJYBD32QLxaq2 Contract review brief — PR #35712 @ You review at Inputs — these and nothing else: Scope — the paths ⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs Judge, in the record's own sections: 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
Generated by Claude Code |
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 维护者速读
席位核对 — ACCEPT (L1-a) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgXoRuEJYBD32QLxaq2 Contract reviewServed-tier: ① Derived judgmentsRead from the tree at the head against the merge-base 74d3d83. Main has moved five commits since; none touches a covered path, the gate,
② Semver level
③ Boundary flagsDev report (7027898570), deviations:
Out-of-scope findings:
PR body flags:
SQL push-down: not applicable; the diff reads files and holds no query. ④ Design judgmentMap 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:
Tried to break it:
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. Nits. N1 to N3 sit in the script and do not need the head moved for them; N4 is on the prose faces.
The four
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:
Nothing else in the four files changes. Hence Implemented-by: 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>
|
repo:objectstack#1 · os-sales · session_01L6bhgXoRuEJYBD32QLxaq2 Final head for review, round 2 · 2026-11-20T03:04Z Head: Checks on this head, read with 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 |
|
repo:objectstack#1 · os-sales · session_01L6bhgXoRuEJYBD32QLxaq2 Contract review brief — PR #35712 @ You review at Inputs — these and nothing else: Scope — the paths ⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs Judge, in the record's own sections: Additions by the dispatching thread. They add to the judgments above and remove none of them. Rendered 2026-11-20T03:04Z with
Generated by Claude Code |
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 维护者速读
席位核对 — delta ACCEPT (L1-a) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgXoRuEJYBD32QLxaq2 Contract reviewServed-tier: ① Derived judgmentsDelta 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, What the delta implies:
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.
② Semver level
③ Boundary flagsDev fix report (7029046813), claim by claim:
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 SQL push-down: not applicable; the diff reads files and holds no query. ④ Design judgmentMap 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 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 N1: the new wording holds. "A re-wrap that swaps a space for a newline is byte-neutral" is true of N2: the new bullet holds against N3: both halves hold. The comment above Tried to break the delta:
No must-fix, no should-fix. Nits. None needs the head moved.
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
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
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 Implemented-by: VERDICT: PASS Generated by Claude Code |
|
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 The verdict is PASS, with no must-fix and no should-fix items. S1 is closed by the two new
@os-zhuang, please review head |
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.mjsnow judges each covered file by one number, its size in UTF-8 bytes (whatwc -cprints). 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 andcheck:pm-skill-ratchetkeep their names. The table-row pin (MAX_TABLE_ROW_BYTES,scanTableRows,tableRowVerdict) stays exactly as ruled, values unchanged.Files to read first, by risk:
scripts/pm/check-skill-line-ratchet.mjs, theCEILINGSmap and theCROSS_FILE_MOVEScomment (the re-base and the three dropped declarations).run()andverdict()(the unit and the refusal text a seat will see)..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 at1bf30f8b). Re-run and diff it against the map:Output at BASE (60 rows)
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.mdwas edited byte-neutral, so its row equals the output. Headroom is 0 on all 60 rows at the head..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.mdNo 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_MOVESis empty at the re-base, with a comment saying why: the three line-era declarations (intoplatform-readings.md,landing-operations.md,lanes/director.md) carrywasvalues 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 theplatform-readings.mddeclaration also ends the 444-line credit for lines moved into the ninereadings-*.mdfiles (seat 5's note, item 2).ruledRaisesstays 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.mdguard 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.mdstanding promise: 棘轮逐行付账,⛔ re-wrap 筹行 → 棘轮以删减付账.triage-duties.mdexception 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 inruledRaises. 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.mdandos-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
CEILINGSrow 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 at22d4de190(114 at898add71b). 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 (twoscanTableRowsrows that pin a fence closing and front matter closing; review finding S1, see Review below):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
advanceStatedrops 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 onspec-property-retirement/SKILL.md, a file this PR does not edit.check-ratchet-remedy-authoritystill reads this gateexcluded(its self-test green); itswhytext 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) everyCEILINGSand pin key stays a path literal,check:pm-dispatch-gatesgreen; (f) the sentencecheck-harness-current.mjsquotes (".claude/skills/pm-dispatch/SKILL.mdis read in full by every seat session and every Routine fire") is kept verbatim in the header, now on one line; the hermetic-gate sentencecheck-merged-result.mjsquotes is kept too; (g)triage-duties.mdexception one was the only other reader ofruledRaises; (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 inscripts/,.github/ordocs/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.scripts/check-skills-token-ratchet.mjs("prices.claude/**in LINES", fenced by the order), a comment inscripts/check-published-list-mirrors.mjs("a shrink-only line ceiling"), the gate census rows indocs/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..claude/skill files carry no ceiling row, before and after this PR:references/instrument-discipline.mdand.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-ratchetprints 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)
Restored with
git checkout HEAD -- PATH;git diff HEADempty andgit status --porcelainempty afterwards.Prose past 120 bytes is green (self-test, at 898add7)
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 asCOMMAND :: exit N:--ranreconciliation:Run reconciliation — 47 derived, 47 run, 0 NOT-MEASURED, 0 UNRUN.(exit 0).check:doc-formula-expressionsfirst answered exit 3 (PREREQUISITE NOT MET:@objectstack/formulaand@objectstack/lintnot built); afterturbo run build --filter=@objectstack/formula --filter=@objectstack/lintunder 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-freshnessexit 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:
898add71b22d4de190The second commit (
22d4de190, the script only, +21 / -8) answers S1 and the script nits. Two self-test rows onscanTableRowsassert 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 oftriage-duties.mdexception one. The comment aboveCEILINGSsays 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