Skip to content

Commit c823577

Browse files
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/area-lease.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
- 每区 dev 位空即补;逐位上张 PR 入合并队列才领下张,此前跑修复轮;Tier H 或待裁 PR 让位。
4545
- 席每轮逐区查,核认领 Container & model 行;取卡照点名范围次序,p0/p1 插队;p3 留收口或搭同文件 PR 成批(每 PR ≤5 卡)。
4646
- 认领必答:同区卡过 `execution-duties.md` 折叠五门即默认合一 PR,否则串行;额度墙亦照该文。
47-
- 留道:域席已退役,修法已清的卡碰哪个域的路径都在本席开发、本席 L1/L2,先于 `domains/spec.md` 的移道与 `--tier` 提示;交出闭集:他席已认领、cloud 路由、披露纪律卡、ADR。
47+
- 留道:域席已退役,修法已清的卡碰哪个域的路径都在本席开发、本席 L1/L2,先于 `domains/spec.md` 的移道;交出闭集:他席已认领、cloud 路由、披露纪律卡、ADR。
4848
- 送审:≤50 行、只改文本或测试、`Clause-②: no` 且无他契约面 PR 由区照 `l1-review-checklist.md` 自审落地,ACCEPT 点名自审;余者由 L1 线程 ACCEPT 读,先于 `contract-review.md` 不起第二个 agent。
4949
- 契约记录只欠 `contract-review.md` 四面,head 移动照其例外;同 patch-id 干净合 main 只保 ACCEPT。
5050
- 落地:区先读 `check-governed-merges.mjs --pr N`;非受管 PR 照 `landing-operations.md` 自落,受拒报原文。

‎.claude/skills/pm-dispatch/references/contract-review.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
无 L2 席在座改点能取该档的兄弟席,皆无则挂等 L2 标记留欠审表待 (a)(b)(c)。交接行:
2323
- `Contract-review-handoff: <l2-review#N|repo:NAME#N|epic:#N#k> — CONTRACT_REVIEW_TIER unavailable (<HTTP status / error>, <UTC time>) · head <sha>`
2424
- 欠审 PR(含 draft)现 head 无记录无活认领且 (a)(b)(c) 之一 ⇒ 车道达档自审或交接,⛔ 非分诊
25-
- (a) 交接行/敲门点名现 head(同轮所点席接)或带等 L2 标记;(b) 现 head 已等满一轮(约 60 分钟);
25+
- (a) 交接行/敲门点名现 head(同轮所点席接)或带等 L2 标记;(b) 现 head 已等满一轮;
2626
- (c) 车道收班或离总表,欠审入交班简报;L2 席只接 (a) 所点、自记录 delta、他席皆禁之 head。
2727
- L2 席或车道起审前读 PR:现 head 有记录或活认领 ⇒ ⛔ 不起;否则先落认领行,一 head 一行:
2828
- `Contract-review-claim: <session> · head <full sha> · <UTC>`

‎.claude/skills/pm-dispatch/references/execution-duties.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
- ADR 记账行(resolved by/修订注记)归落地席:ACCEPT 记 `carrier:` 注,合并后同轮在 open「ADR revisions, week of …」卡
102102
追加一行(ADR、节、原文所说、现在实情、落地 PR),无 open 卡则开下周卡;周卡以一个受管 `docs/adr/**` PR 落地。
103103
- 只收与 `main` 矛盾的 ADR 文本;纯补记 ⛔ 不立。
104-
- 强制条款②:放宽接受集或扩大公开面的卡默认判断档施工;`--tier` 仍印的 spec 车道句是脚本遗留措辞:不再移卡,开发与审核留接卡席。
104+
- 强制条款②:放宽接受集或扩大公开面的卡默认判断档施工;不再移卡,开发与审核留接卡席。
105105
- 负边界:运行时权限/安全行为变更不是条款②,归人工地板安全/权限边界类。
106106
- 条款②只指已发布契约面,拉回已声明契约不触它;卡面复述仍是条款②。
107107
- 收窄已发布接受集的卡是 `Clause-②: no`,不移车道;入队前欠一次契约审核档 L2 审核。

‎scripts/pm/dispatch-gates.data.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,8 +1575,8 @@ export const SERVED_KEY_SET_PINS = Object.freeze({
15751575
* `CONTRACT_REVIEW_TIER` — in-seat when the seat's served tier is that
15761576
* tier, otherwise by the at-tier review subagent the seat spawns — and
15771577
* the declaration alone ⇒ `TIER_DEFAULT`, the lane seat's own review of
1578-
* record. A clause-② hit outside the spec lane is lane ROUTING as well:
1579-
* the work is the spec lane's, whichever seat found it, and moves there.
1578+
* record. A clause-② hit no longer moves the card to another lane:
1579+
* build and review stay with the seat that claimed it, as `--tier` says.
15801580
* Clause ② itself is judged
15811581
* from the card's CONTENT — what the change
15821582
* does to the contract — and a path cannot answer it. An ordinary-looking

‎scripts/pm/record-recognisers.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3407,7 +3407,7 @@ export async function selfTest() {
34073407
t('the separator is any of the four spellings, and the reason may itself carry a comma — the time is the LAST item in the parentheses', ['—', '--', '-', ':'].every((sep) => readContractReviewHandoff(`${CONTRACT_REVIEW_HANDOFF_KEY}: review#1 ${sep} ${CONTRACT_REVIEW_TIER_NAME} unavailable (HTTP 429, quota exhausted, 2026-10-27T13:00Z) · head ${HO_HEAD}`).reason === 'HTTP 429, quota exhausted'));
34083408
t('⛔ a line with no reason, no time or no head is started-and-unreadable, never a reading — the ambiguity the line exists to remove', [`${CONTRACT_REVIEW_HANDOFF_KEY}: review#1 — ${CONTRACT_REVIEW_TIER_NAME} unavailable (, 2026-10-27T13:00Z) · head ${HO_HEAD}`, `${CONTRACT_REVIEW_HANDOFF_KEY}: review#1 — ${CONTRACT_REVIEW_TIER_NAME} unavailable (HTTP 429) · head ${HO_HEAD}`, `${CONTRACT_REVIEW_HANDOFF_KEY}: review#1 — ${CONTRACT_REVIEW_TIER_NAME} unavailable (HTTP 429, 2026-10-27T13:00Z)`, `${CONTRACT_REVIEW_HANDOFF_KEY}: review#1 — ${CONTRACT_REVIEW_TIER_NAME} unavailable (HTTP 429, 2026-10-27T13:00Z) · head 1b03a`, `${CONTRACT_REVIEW_HANDOFF_KEY}:`].every((l) => readContractReviewHandoff(l).state === 'unreadable'));
34093409
t('⛔ the target is the closed set of two shapes and the tier is the constant\'s NAME — `triage`, `director`, a seat with no number, the default tier or a model id is unreadable', [`${CONTRACT_REVIEW_HANDOFF_KEY}: triage — ${CONTRACT_REVIEW_TIER_NAME} unavailable (HTTP 429, 2026-10-27T13:00Z) · head ${HO_HEAD}`, `${CONTRACT_REVIEW_HANDOFF_KEY}: director — ${CONTRACT_REVIEW_TIER_NAME} unavailable (HTTP 429, 2026-10-27T13:00Z) · head ${HO_HEAD}`, `${CONTRACT_REVIEW_HANDOFF_KEY}: review — ${CONTRACT_REVIEW_TIER_NAME} unavailable (HTTP 429, 2026-10-27T13:00Z) · head ${HO_HEAD}`, `${CONTRACT_REVIEW_HANDOFF_KEY}: domain:ui — ${CONTRACT_REVIEW_TIER_NAME} unavailable (HTTP 429, 2026-10-27T13:00Z) · head ${HO_HEAD}`, `${CONTRACT_REVIEW_HANDOFF_KEY}: review#1 — ${TIER_DEFAULT_NAME} unavailable (HTTP 429, 2026-10-27T13:00Z) · head ${HO_HEAD}`, `${CONTRACT_REVIEW_HANDOFF_KEY}: review#1 — ${CONTRACT_REVIEW_TIER} unavailable (HTTP 429, 2026-10-27T13:00Z) · head ${HO_HEAD}`].every((l) => readContractReviewHandoff(l).state === 'unreadable'));
3410-
t('⭐ the line is spelled VERBATIM, in a code span, in the rule text (`references/contract-review.md`) — the template and `HANDOFF_TARGET` cannot drift apart', (() => { const rules = readFileSync(new URL('../../.claude/skills/pm-dispatch/references/contract-review.md', import.meta.url), 'utf8'); return rules.includes(`\`${CONTRACT_REVIEW_HANDOFF_TEMPLATE}\``) && CONTRACT_REVIEW_HANDOFF_TEMPLATE.startsWith(`${CONTRACT_REVIEW_HANDOFF_KEY}: `); })());
3410+
t('⭐ the line is spelled VERBATIM, in a code span, in the rule text (`references/contract-review.md`) — the rule text cannot drift from the template constant (that `HANDOFF_TARGET` reads each shape it offers is the "every target shape" case)', (() => { const rules = readFileSync(new URL('../../.claude/skills/pm-dispatch/references/contract-review.md', import.meta.url), 'utf8'); return rules.includes(`\`${CONTRACT_REVIEW_HANDOFF_TEMPLATE}\``) && CONTRACT_REVIEW_HANDOFF_TEMPLATE.startsWith(`${CONTRACT_REVIEW_HANDOFF_KEY}: `); })());
34113411
t('⛔ the TEMPLATE sent verbatim is unreadable — a placeholder names no seat and no head', readContractReviewHandoff(CONTRACT_REVIEW_HANDOFF_TEMPLATE).state === 'unreadable' && contractReviewHandoff([HO_ROW(CONTRACT_REVIEW_HANDOFF_TEMPLATE, 4407)], HO_HEAD).state === 'unreadable');
34123412
t('⭐ every target shape the TEMPLATE offers, filled in, READS — the placeholder names exactly the live spellings (an L2 seat, a repo seat, an epic seat) and no retired `domain:` seat', (() => { const m = /: <(.*)> — /.exec(CONTRACT_REVIEW_HANDOFF_TEMPLATE); if (!m) return false; const shapes = m[1].split('|'); const fill = (shape) => shape.replace('NAME', 'objectstack').replace('#N#k', '#35205#1').replace(/#N$/, '#2'); const filled = (to) => CONTRACT_REVIEW_HANDOFF_TEMPLATE.replace(`<${m[1]}>`, to).replace('<HTTP status / error>', 'HTTP 429').replace('<UTC time>', '2026-10-27T13:00Z').replace('<sha>', HO_HEAD); return shapes.join() === 'l2-review#N,repo:NAME#N,epic:#N#k' && shapes.every((sh) => { const r = readContractReviewHandoff(filled(fill(sh))); return r.state === 'read' && r.to === fill(sh) && r.head === HO_HEAD; }) && !m[1].includes('domain:'); })());
34133413
t('⭐ the L2 seat is a target under its new word and under the old one: `l2-review#N` reads, lower-cased, and hands the head to it; `review#N` still reads; `l2-review` with no number, `l2#1` and `l1-review#1` are unreadable', (() => { const line = (to) => `${CONTRACT_REVIEW_HANDOFF_KEY}: ${to} — ${CONTRACT_REVIEW_TIER_NAME} unavailable (HTTP 429, 2026-10-27T13:00Z) · head ${HO_HEAD}`; const r = contractReviewHandoff([HO_ROW(line('L2-Review#2'))], HO_HEAD); return r.state === 'handed' && r.to === 'l2-review#2' && readContractReviewHandoff(line('l2-review#12')).to === 'l2-review#12' && readContractReviewHandoff(line('review#1')).to === 'review#1' && ['l2-review', 'l2#1', 'l1-review#1'].every((to) => readContractReviewHandoff(line(to)).state === 'unreadable'); })());

‎scripts/pm/round-open.mjs‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* The verdict: an activity is UN-CLOCKED-OUT when it is newer than reading 1 (or there is no brief), and FOREIGN when
4141
* its session is not `--session` or an `--own` one (a lease-table session, the seat's card threads) — an unread
4242
* session is foreign. A foreign, un-clocked-out activity less than one round old (`--round-minutes`, default
43-
* `ROUND_MINUTES`: contract-review.md's 「一轮(约 60 分钟)」) is the self-exit (YIELD, exit 5). A brief newer than every
43+
* `ROUND_MINUTES`: seat-lifecycle.md's 「一轮 60 分钟」) is the self-exit (YIELD, exit 5). A brief newer than every
4444
* activity is the release marker: clear at once. Every reading is bounded by that window — a card not updated inside
4545
* it buys no thread read.
4646
*
@@ -93,7 +93,7 @@ export const EXIT_PREREQUISITE = 3;
9393
export const EXIT_INCOMPLETE = 4;
9494
export const EXIT_YIELD = 5;
9595

96-
/** One round, in minutes — contract-review.md's 「一轮(约 60 分钟)」, pinned below. */
96+
/** One round, in minutes — the number on seat-lifecycle.md's round rule line (「一轮 60 分钟」), pinned below. */
9797
export const ROUND_MINUTES = 60;
9898
export const LANE_LABELS = Object.freeze(['pm:dispatched', 'pm:queue']);
9999

@@ -108,8 +108,9 @@ export const LIFECYCLE_PHRASES = Object.freeze([
108108
'简报即最新事件 ⇒ 立即坐席',
109109
'`round-open.mjs`',
110110
]);
111-
export const CONTRACT_REVIEW_PATH = '.claude/skills/pm-dispatch/references/contract-review.md';
112-
export const ROUND_PHRASE = '一轮(约 60 分钟)';
111+
/** The round length as that line spells it; the self-test reads the NUMBER out of it, so a changed figure is red. */
112+
export const ROUND_RULE = /一轮 (\d+) 分钟/g;
113+
export const roundMinutesOfRule = (text) => [...text.matchAll(ROUND_RULE)].map((m) => Number(m[1]));
113114

114115
/** The legs this file cannot read, printed under every run. */
115116
export const UNREAD_LEGS = Object.freeze([
@@ -576,7 +577,7 @@ export function main(argv, deps = {}) {
576577
// ---------------------------------------------------------------------------
577578

578579
const SELF_TEST_BATTERIES = Object.freeze({
579-
'the rule text: every phrase this file is built from is in the file that writes it': 2,
580+
'the rule text: every phrase this file is built from is in the file that writes it': 3,
580581
'readings 1 and 2: the newest stand-down brief, the newest seat-signed comment after it': 7,
581582
'reading 3: the newest claim of this seat by another session, and a push on a lane branch': 10,
582583
'reading 4: the first closed lane card with a claim of this seat, timed by its session': 4,
@@ -644,7 +645,8 @@ export function selfTest() {
644645
};
645646
const lifecycle = read(LIFECYCLE_PATH);
646647
t('every reading this file takes is a phrase of seat-lifecycle.md 〈开轮互斥〉, the pointer included', LIFECYCLE_PHRASES.filter((p) => !lifecycle.includes(p)), []);
647-
t("one round's length is contract-review.md's own phrase, and ROUND_MINUTES is its number", [read(CONTRACT_REVIEW_PATH).includes(ROUND_PHRASE), ROUND_PHRASE.includes(String(ROUND_MINUTES))], [true, true]);
648+
t("⭐ one round's length is the number seat-lifecycle.md spells once, on its round rule line, and ROUND_MINUTES is that number", roundMinutesOfRule(lifecycle), [ROUND_MINUTES]);
649+
t('…and the reading follows the text: another figure on that line reads as that figure (so the pin above goes red), a line without the spelling reads none', [roundMinutesOfRule(lifecycle.replace(`一轮 ${ROUND_MINUTES} 分钟`, '一轮 45 分钟')), roundMinutesOfRule('未满一轮 ⇒ 自退(一轮约一小时)')], [[45], []]);
648650
}
649651

650652
battery('readings 1 and 2: the newest stand-down brief, the newest seat-signed comment after it');

0 commit comments

Comments
 (0)