Repository navigation
Commit 776dddf
docs(pm-dispatch): a split card targets the state-owning form; a surface-unchanged acceptance line names its measured consumers (#38967)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwB1hPSUXVWWaX4kvGfBzBT7q)_
Fixes #38910
Clause-②: no
Metadata-protocol: none
Rule-change: yes
Ruling-ref: maintainer ruling record 7309703845 on #38667, verbatim:
「我们是元数据运行引擎,客户不会调用我们的库吧?」 and 「为什么不直接处理」 (the record: the class's
published declaration is not a contract, `.d.ts` byte-identity is not
required, private members and docblock placement may change; the target
state is each module owning its state, with the host block and doubled
signatures and docblocks retired).
Ruling-ref: maintainer ruling record 7310432861 on #38665, verbatim:
「38665 直接做成目标形态」 (the record: state moves into the modules that own it,
constructor dependencies, the original file as composition root with
one-line delegations, no host blocks, one copy of each signature and
docblock, a state-ownership map reviewed before code, then one PR per
cluster with behaviour tests; `facade-delegation-registry.json` rows not
owed for a non-facade file).
Ruling-ref: the maintainer's direction in seat
repo:objectstack@os-justin's session, quoted verbatim in the body of the
rule card #38910: 「是否应该修改 skills,确保以后不犯类似的错误」.
## 维护者速读
- 用户能看到什么变化:用户无感;车队以后立大文件拆分卡时,默认按「各模块自管状态、原文件只做一行委托」的目标形态写,纯移动加 facade
的旧写法只在你明确下令时才用;验收里写「公开面不变」时,必须先实测谁在用。
- 为什么做:回应你说的「是否应该修改 skills,确保以后不犯类似的错误」,以及你对自动化引擎和审批服务两张拆分卡的两次裁决;上一个 PR
因为字节上限没放进这两段,这次补上。
- 出错会怎样:只影响以后怎么立拆分卡、怎么写验收,不碰产品代码,合并前可直接撤回;两份技能文件的字节上限按实测增量各抬一次。
- 要你做什么:技能文本属受管面,需要你批准合并。
## What changes
Three files, the claim's File surface exactly:
`references/area-lease.md`, `references/filing-gate.md`, and their two
rows in `scripts/pm/check-skill-line-ratchet.mjs`. The edits were ported
by hand from the held-back drafts on
`claude/issue-38910-split-card-state-owning-wip` @ `0a39c0b8c` onto
current `main` (50fa10c, which carries PR #38931's text); that branch
was not merged and is deleted once this PR is open.
`Rule-change: yes`, not `ruled`: the two rulings order the state-owning
form for two named cards; this PR makes it the default for every split
card and adds the surface-unchanged acceptance rule, which generalises
their reasoning rather than copying their words. The direction quote is
a question. The L2 decides.
### Ask 1, `area-lease.md`: one split rule, not two
The split line #38931 left (the p1/p2 yield and the efficiency
exception) and the state-owning form are now ONE line, so the split rule
is written once:
```text
- 两卡排同一超 2,000 行源文件 ⇒ 席立其拆分卡,`Blocked-by:` 同文件 p1/p2 卡与其上 open PR,余卡排其后;严重拖累车队效率须即拆者,席写实测代价呈维护者。拆分取状态归属形:模块自有状态、构造器收窄依赖,原文件成组合根、公开方法一行委托,无 host 块,签名与文档注释各一份;先交席审状态归属图,再一状态簇一 PR 带行为测试;纯移动 facade 形仅凭维护者明令,已成 facade 者 `facade-delegation-registry.json` 行照留。
```
Removed from the old line: 「纯移动」 before 拆分卡, and 「拆分 PR 连上限登记
`facade-delegation-registry.json`」 (a state-owning file is not a facade,
per ruling 7310432861 item 1; files already in facade form keep their
rows).
### N7 (contract record 7313946374), the 重叠检查 line
```text
- 重叠检查:认领前与每次推前跑 `overlap-check.mjs`;exit 1 排所列 PR 后(p1/p2 卡遇拆分 PR 除外),3 补前提重跑。
```
「(拆分 PR 除外)」 excepted every branch; it now excepts only a p1/p2 card
meeting a split PR. A p3 card still queues behind an open split PR,
matching the split line's 「余卡排其后」 and the 认领加宽 tail 「拆分认领 ⛔ 不挡 p1/p2 卡」.
### Ask 2, `filing-gate.md`: the surface-unchanged acceptance line, and
how it reads with 读数判据
New line, placed directly under 读数判据's 「半径外含拒绝消息、CHANGELOG
与协议的接受/拒绝行为;「点不出受害者」⛔ 不是证据」:
```text
- 验收行「公开面不变」点名实测消费者:仓内 import 处、`content/docs/**`、`skills/**` 与类所经 spec 接口,界即其所用公开面;私有成员与文档注释位置无从绑定,永不是面,`.d.ts` 逐字节相同是移动校验器 ⛔ 非契约;余下公开成员删改仍照本节。
```
How it is made consistent with the two lines above it, without loosening
the evidence rule:
1. **The consumers named are the shipped surfaces, not an in-radius
zero.** 读数判据 lists `content/docs/**`, `skills/**` and `.d.ts` as outside
the radius, and says a zero read inside the radius (「点不出受害者」) is not
evidence. The new line measures `content/docs/**`, `skills/**` and the
spec interface directly (two of them are on that same list, the third is
the protocol contract), plus the in-repo import sites. So the bar is set
by what the shipped surfaces actually use, not by failing to find a
victim.
2. **What it removes from the bar is what nothing can bind to.** Private
members and docblock placement are dropped because no consumer can reach
them (`private` is not callable from outside; a docblock's position
changes no type), a structural fact, not "no victim found". That is why
`.d.ts` byte-identity is a move verifier: it also flags bytes nothing
can bind to.
3. **Everything else stays under the existing rule.** 「余下公开成员删改仍照本节」:
changing or removing a public member outside what the measured consumers
use is NOT licensed by the acceptance line. It is judged by 读数判据 as
before, where 「点不出受害者」 is still not evidence. A split keeps its public
methods as one-line delegations, so this case does not come up for the
form Ask 1 orders. A package whose declaration a maintainer has ruled is
not a contract (as 7309703845 does for `AutomationEngine`) is covered by
that ruling, not by this line.
`.d.ts` stays on the 读数判据 list of shipped surfaces, unchanged.
Ask 2's file is `filing-gate.md`, as in PR #38931's held-back draft:
`decision-analysis.md` is scoped to `needs-user-decision` cards, and
split cards are filed by the seat through the filing gate, whose 读数判据
already rules on `.d.ts` and the shipped docs.
## Ratchet
Raised under the ruling-of-record path in
`check-skill-line-ratchet.mjs`'s header (ruling record 6184799323,
letter B): the rulings 7309703845 and 7310432861 and the #38910 body
quote above order this text. Seat ruling record 7315869729 on the seat
mailbox (Q1 → A) rules the raise for these two rows only, each at its
measured delta on this PR's head, under ruling record 6184799323, letter
B. Both rows cite 7315869729 and 6184799323 B, with 7309703845,
7310432861 and the #38910 body quote as the sources of the text's
substance, as earlier rows do. No other ratchet row moves and no other
file grows.
Measured with `wc -c`, base `50fa10c76`, head of this PR:
| File | Bytes before | Bytes after | Ceiling before | Ceiling after |
Raise |
|:---|---:|---:|---:|---:|---:|
| `references/area-lease.md` | 7220 | 7484 | 7220 | 7484 | +264 |
| `references/filing-gate.md` | 9184 | 9492 | 9188 | 9492 | +304 |
Where the bytes go:
- `area-lease.md`: the split line 270 to 534 bytes (+264); N7 on the
重叠检查 line +12, paid by four neighbour deletions of a redundant 的 (-12:
「点名的专题」, 「各区转来的」, 「未过 L1 的本地测量」, 「按卡命名的新文件」). Net +264, the same delta
PR #38931 measured for the draft.
- `filing-gate.md`: the new line +311 bytes, less one neighbour
tightening (「见上文」 to 「见上」, -3), is +308; the row's 4 bytes of headroom
take it to a +304 raise. It is 73 bytes over the earlier draft (+235)
because of the consistency half (「界即其所用公开面」, 「无从绑定」, 「余下公开成员删改仍照本节」)
that the draft did not have.
The seat record splits the same totals differently (area-lease: +246 for
Ask 1 plus the 18-byte split exception from the #38931 review;
filing-gate: +235 plus 69 bytes of tie to 读数判据). The per-line figures
above are measured against `main`, where that 18-byte exception had
already landed inside the 7220-byte ceiling; the totals, +264 and +304,
are the same either way.
The neighbour tightening is small because PR #38931 already spent about
230 bytes of tightening in `area-lease.md`; what remains are rule lines
and verbatim quotations.
## Tests
No package is touched, so no build or package test is owed. No
changeset: `.claude/**` and `scripts/pm/**` publish nothing
(`skip-changeset`).
<details><summary>Derived gates on head 989ae8b (41 derived, 40 run
with exit 0, 1 NOT MEASURED)</summary>
`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` on `989ae8bc7` derived 41 commands over the
three paths. Each was run in the foreground, exit code captured before
any pipe, and `--ran` reconciled: "41 derived famil(ies) accounted for —
40 run, 1 NOT-MEASURED (0 DERIVED from a recorded exit 3, 1 claimed)".
- `pnpm check:pm-skill-ratchet`: exit 0 (area-lease 7484 / 7484,
filing-gate 9492 / 9492).
- `pnpm check:pm-skill-id-lint`: exit 0.
- `pnpm check:pm-dispatch-gates`: NOT MEASURED. Its self-test passed,
then the scan hit the 570 s foreground limit (exit 124); CI's `Lint · PM
dispatch-gates` answers it.
- `pnpm --filter @objectstack/lint run check:doc-formula-expressions`:
first run PREREQUISITE NOT MET (exit 3, `@objectstack/formula` not
built); after building `@objectstack/formula` and `@objectstack/lint`,
exit 0.
- `node scripts/check-comment-mask-corpus.mjs`: exit 0 (24685 files, 0
disagree, 310 s).
- The other 36: exit 0.
</details>
## Patch: citation of the seat ruling record (head f3c8120)
- `scripts/pm/check-skill-line-ratchet.mjs`: the area-lease.md and
filing-gate.md rows now cite seat ruling record 7315869729 under ruling
record 6184799323, letter B, keeping 7309703845, 7310432861 and the
#38910 body quote as substance sources. Comment text only: both numbers
(7484, 9492) and both deltas (+264, +304) are unchanged, and the skill
files are byte-identical to `989ae8bc7` (7484 and 9492 bytes).
- Gates on `f3c8120c0`: `node scripts/pm/check-skill-line-ratchet.mjs
--self-test` exit 0 (116 cases), `pnpm check:pm-skill-ratchet` exit 0,
`pnpm check:pm-skill-id-lint` exit 0 (134 files clean). The rest of the
derived set was run on `989ae8bc7` (details above); this commit changes
only comment text in the ratchet script's map, so it was not re-run.
## Acceptance notes
- `references/l1-review-checklist.md` 「移动/拆分重构净增远超纯移动」 takes a pure move
as the baseline for net growth. It does not prescribe the move-only
form, but it reads as if that were the default; it is outside this
claim's surface, so it is not edited here.
- `references/execution-duties.md` (公开面 = 包构建后的入口声明所达, for the Clause-②
widening question) and `.claude/agents/os-dev.md` (「公开面字节不变 ⇒
只欠本包测试与派生门禁」) use "public surface" for other questions (semver widening,
test scope). They are not acceptance bars and are left as they are.
- Ruling 7310432861 also says a state-owning file's line ceiling, if one
is owed, is its measured end size. Ask 1 does not carry that clause and
it is not added.
## Verification
Read first, by risk: `references/filing-gate.md` lines 72 to 74 (the new
line against the two above it), then `references/area-lease.md` line 57
(the merged split rule), then line 35 (N7).
Two-minute check: `pnpm check:pm-skill-ratchet && pnpm
check:pm-skill-id-lint`; expect both green, with exactly the two rows
above raised.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01WGufzfWWgrLkABDvbRjhAk)_
<!-- signed: repo:objectstack@os-support-ai · os-support-ai ·
session_01WGufzfWWgrLkABDvbRjhAk -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 45e4457 commit 776dddf
3 files changed
Lines changed: 10 additions & 9 deletions
File tree
- .claude/skills/pm-dispatch/references
- scripts/pm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
0 commit comments