Repository navigation
Commit c823577
chore(pm): round length pinned on the seat-lifecycle rule line; stale --tier lane wording dropped (#38212)
<!-- claude-projects-attribution: {"github_login":"os-elon-musk"} -->
_Requested by **Elon** · [project
thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DDypKu7B9nwbu5WuV7AEio8)_
Part of #35237 (slice 9: carrier items 16–19 and L1 N4 of PR #38146; the
card keeps its other items)
Clause-②: no
Metadata-protocol: none
Rule-change: none
## 维护者速读
- 用户无感:车队内部工具的自检与几份派发规则参考页改了措辞,只有派发席位读到。
- 属于「把手抄流程改成脚本」那张收口卡(第 9 片),清掉上一片落地后留下的几处过时说法。
- 措辞或自检错了只会误导席位读者,不影响任何产品行为,整个 PR 可直接撤回。
- 无。
## What changes
- **Item 16, `scripts/pm/round-open.mjs` +
`references/contract-review.md`.** The round-length pin moves from
contract-review.md's phrase to the round rule line in
`references/seat-lifecycle.md` (开轮互斥, which carries the 60-minute figure
since PR #38146). `ROUND_PHRASE` and `CONTRACT_REVIEW_PATH` are gone. In
their place, `ROUND_RULE` and `roundMinutesOfRule(text)` read the NUMBER
out of the line, and the self-test asserts that the file spells it
exactly once and that it equals `ROUND_MINUTES`. A second case shows the
reading follows the text: another figure reads as that figure, and a
line without the spelling reads none. The docblock lines (the window
paragraph and the `ROUND_MINUTES` comment) name the new source. The
battery `the rule text` floor goes 2 → 3 to match its cases. Then
trigger (b) in `contract-review.md` drops 「(约 60 分钟)」, so the figure
lives on one rule line only.
- **Item 17, `references/execution-duties.md` 强制条款②.** The line drops
the clause saying `--tier` still prints the spec-lane sentence as
residual wording. PR #38146 removed that sentence from the script. The
rule itself (no lane move; build and review stay with the claiming seat)
is unchanged.
- **Item 18, `scripts/pm/dispatch-gates.data.mjs` (the tier-glob
header's clause-② docblock).** "A clause-② hit outside the spec lane is
lane ROUTING … and moves there" becomes "A clause-② hit no longer moves
the card to another lane: build and review stay with the seat that
claimed it, as `--tier` says". This matches what `tierLines` in
`dispatch-gates.mjs` prints since PR #38146.
- **Item 19, `references/area-lease.md` 留道.** The precedence clause no
longer names the `--tier` hint, which no longer exists. It now reads 「先于
`domains/spec.md` 的移道」, and the rest of the line is unchanged.
- **L1 N4, `scripts/pm/record-recognisers.mjs`.** The self-test title
for the verbatim-template case said "the template and `HANDOFF_TARGET`
cannot drift apart", but that case checks only that the rule text
carries the template verbatim. The title now says the rule text cannot
drift from the template constant, and it points at the "every target
shape" case, which reads each offered shape back through
`HANDOFF_TARGET`.
Byte deltas on the ratcheted files (`wc -c`, base e3bdc74 → head),
all net ≤ 0, no CEILINGS row touched:
| file | before | after | delta |
|:--|--:|--:|--:|
| `references/contract-review.md` | 6418 | 6403 | -15 |
| `references/execution-duties.md` | 22281 | 22226 | -55 |
| `references/area-lease.md` | 6584 | 6565 | -19 |
Read first, by risk:
1. `scripts/pm/round-open.mjs`, `ROUND_RULE` / `roundMinutesOfRule` and
the two cases in the `the rule text` battery. This is now the only pin
on the round length.
2. `references/contract-review.md:25`, trigger (b): 「已等满一轮」 now takes
its length from the `seat-lifecycle.md` line.
3. `scripts/pm/dispatch-gates.data.mjs`, the clause-② docblock sentence.
Two-minute check: `node scripts/pm/round-open.mjs --self-test` prints `✓
round-open self-test: 38 cases pass across 6 batteries`. Change 「一轮 60
分钟」 in `seat-lifecycle.md` to 45 and it prints `got [45], want [60]`.
## Tests
All readings on head `7b89373f3a` (`git rev-parse --short HEAD`), after
the last commit.
- `node scripts/pm/round-open.mjs --self-test`: exit 0, `✓ round-open
self-test: 38 cases pass across 6 batteries — offline, no network.`
- `node scripts/pm/record-recognisers.mjs --self-test`: exit 0, `✓
record-recognisers self-test: 467 cases pass (…)`.
- `pnpm check:pm-dispatch-gates` (covers `dispatch-gates.data.mjs`):
exit 0, `✓ dispatch-gates self-test (fast tier): 2369 cases pass; 9 slow
section(s) deferred.`
<details><summary>Ablation of the round-length pin (the rule text's
number changed on disk, then restored)</summary>
The fix was committed first, and `node scripts/ablation-replace.mjs` was
run on `references/seat-lifecycle.md` with anchor 「(一轮 60 分钟)」 and
replacement 「(一轮 45 分钟)」, running the self-test:
```text
ablation-replace: anchor x1 -> x0
ablation-replace: replace "(一轮 45 分钟)" x0 -> x1
ablation-replace: ok mutation landed: anchor 1 -> 0, blob 42c56fa -> 3da6c4ddb524
✗ ⭐ one round's length is the number seat-lifecycle.md spells once, on its round rule line, and ROUND_MINUTES is that number — got [45], want [60]
✗ round-open self-test: 1 of 38 case(s) failed, 0 floor breach(es).
ablation-replace: ok restored: blob == HEAD (42c56fa) and `git diff HEAD` is empty
```
Red as expected, then restored. A re-run on the restored tree is green
(38/38).
</details>
## Acceptance notes
- `scripts/pm/check-owed-reviews.mjs:138` keeps its own
`TRIAGE_ROUND_MINUTES = 60`, and its comment quotes 「一轮(约 60 分钟)」 as the
rule's trigger (b). That phrase no longer exists in `contract-review.md`
after this PR. It is a second, unpinned copy of the number in a file
outside this slice's fence, so it goes back to #35237 as a carrier item
and is not edited here.
- Nothing pins `contract-review.md` against getting a figure back. The
one-place property is held by review, not by a gate.
- Changeset: none owed. Every path is `.claude/**` or `scripts/pm/**`
(fast track, nothing published), so the PR carries `skip-changeset`.
## Verification
- Local subset: `node scripts/pm/dispatch-gates.mjs --commands` derived
70 commands for this change set. 68 exited 0. Two exited 3 with
`PREREQUISITE NOT MET` and are NOT MEASURED: `pnpm --filter
@objectstack/lint run check:doc-formula-expressions`
(`@objectstack/formula` not built) and `pnpm check:i18n-coverage` (CLI
and example closure not built). Both are whole-tree families named on
every card and read nothing this diff changes. CI's `Lint & Repo Gates`
runs them.
- `dispatch-gates --ran` reconciliation: `✓ dispatch-gates --ran: 70
derived famil(ies) accounted for — 68 run, 2 NOT-MEASURED (2 DERIVED
from a recorded exit 3).`
- `node scripts/pm/check-skill-line-ratchet.mjs`: exit 0. `node
scripts/check-nul-bytes.mjs`: exit 0. Control-byte scan of the changed
files: no hits.
- `node scripts/check-platform-checklist.mjs --changed-from origin/main`
(two exports were removed from `round-open.mjs`): exit 0, 0 anchored
files in the change set. `git grep` finds no remaining importer of
`ROUND_PHRASE` or `CONTRACT_REVIEW_PATH`.
- `node scripts/pm/overlap-check.mjs
--branch=claude/issue-35237-slice9-residue`: `VERDICT clean exit 0`
(merges cleanly onto `origin/main` e3bdc74).
- No package is touched, so there is no build closure, no package test
and no typecheck. `test:repo` is not run locally and is left to CI.
---
_Generated by [Claude
Code](https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent 5f06672 commit c823577
6 files changed
Lines changed: 14 additions & 12 deletions
File tree
- .claude/skills/pm-dispatch/references
- scripts/pm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1575 | 1575 | | |
1576 | 1576 | | |
1577 | 1577 | | |
1578 | | - | |
1579 | | - | |
| 1578 | + | |
| 1579 | + | |
1580 | 1580 | | |
1581 | 1581 | | |
1582 | 1582 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3407 | 3407 | | |
3408 | 3408 | | |
3409 | 3409 | | |
3410 | | - | |
| 3410 | + | |
3411 | 3411 | | |
3412 | 3412 | | |
3413 | 3413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
576 | 577 | | |
577 | 578 | | |
578 | 579 | | |
579 | | - | |
| 580 | + | |
580 | 581 | | |
581 | 582 | | |
582 | 583 | | |
| |||
644 | 645 | | |
645 | 646 | | |
646 | 647 | | |
647 | | - | |
| 648 | + | |
| 649 | + | |
648 | 650 | | |
649 | 651 | | |
650 | 652 | | |
| |||
0 commit comments