Repository navigation
Commit 2af9c0a
docs(pm-skill): area-lease — the 2026-11-15 maintainer rules (#33938)
Fixes #33907
Fixes #34007
## 维护者速读
- 改了什么:把 2026-11-15 您定下的分区规则写进 pm-dispatch 的
`references/area-lease.md`:认领前三查、dev 开 PR
前自查申报、跨车道卡留道、积压即再拆区、仅呈您的选项组过独立评审且用中文、PASS 后 10 分钟内落地;按您
16:56Z「建议每区3个,你通过降低开发节约token没有意义啊」,每区恒跑 3 个 dev、空位即补,每个位子的上张 PR
进了合并队列才领下一张,等人(Tier H 或待裁)的 PR 让出位子,省 token 只靠省耗行、不减 dev;按 16:08Z 的裁决,p3
不单做、只搭同文件的 p1/p2 PR,只复审区宣布定稿的绿 head,线程 effort high;按 16:06Z「50
行内由区自审」,≤50 行的纯文本或测试 PR 由区自审落地,其余由复核线程作 ACCEPT 读,契约复核记录只在
`contract-review.md` 四面才欠;按 15:59Z「定复审席必须由另一个账号来坐
没有这个规定」,`lanes/review.md` 第 19 行去掉账号限制;删去过期的 11-14 八区示例。
- 为什么改:您说「写仓库」,这些规则此前只在 server 席位的项目工作稿里,其他车道和后续席位读不到。
- 风险与回滚:只改智能体规则文本和一行行数上限,不改产品代码、不发布任何包;回滚即 revert 本 PR。
- 先看:① `.claude/skills/pm-dispatch/references/area-lease.md`
的「区内规则」节(新规则全在此);② `scripts/pm/check-skill-line-ratchet.mjs` 中
area-lease 行 59 → 71 及其裁决引注(记录 6897821873、6898023768 与认领评论 6895484790);③
`.claude/skills/pm-dispatch/references/lanes/review.md` 第 19 行。
- 两分钟验证:`node scripts/pm/check-skill-line-ratchet.mjs`,应见 `area-lease.md
is 71 lines (ceiling 71; headroom 0)` 且退出码 0。
- 需要你做的:无,席位落地(Tier S:受管路径仅 `.claude/**`,`scripts/pm/**` 非受管面;凭本席复核线程的
`CONTRACT_REVIEW_TIER` PASS 记录入队)。
## What changes
`.claude/skills/pm-dispatch/references/area-lease.md`, 59 lines on main
→ 71. The rules are written in the file's own style: short lines, ⛔
markers, and pointers to the owning references (`execution-duties.md`,
`contract-review.md`, `decision-analysis.md`, `landing-operations.md`,
`security-findings.md`, `review-checklist.md`, `os-dev.md`) with no
restatement.
1. Pre-claim three checks, each a line in the claim comment: `Pre-claim
lane:`, `Pre-claim deps:` and `Prior rulings read:` (line shape per
`decision-analysis.md`). A failure, a conflict in the records, or a
route that changes a door's visible behaviour beyond the card's ruling
means no claim and no dev; the question goes to the seat.
2. Only option sets put to the maintainer get an independent
`CONTRACT_REVIEW_TIER` review, several cards in one batch; the seat's
own routing calls start no review and the seat reads the code itself.
Each set carries `Prior rulings read:`, goes before development and
never mid-build, in Chinese.
3. The dev self-checks the declaration lines before opening the PR,
against os-dev.md's Definition of done, with BREAKING and ADR-0087 per
AGENTS.md Post-Task item 3.
4. No standalone p3 (16:08Z ruling): a p3 rides only on a p1/p2 PR
touching the same file, at most 5 cards per PR. At the switch to this
rule, a p3 already claimed but not started is released to the queue
once.
5. An analysed cross-lane card with a clear fix stays in lane even when
it touches `ui/**` or `packages/spec/**`, and is reviewed by this seat.
A live seat in the other lane is only notified. The line takes
precedence over the clause-② line in `execution-duties.md`, the move in
`lanes/spec.md` and the `--tier` hint. The hand-off set is closed: the
other lane's live seat already claimed it, cloud routing, security, ADR
text.
6. Each area keeps 3 dev agents running and refills a freed slot at once
(16:56Z ruling, 「建议每区3个,你通过降低开发节约token没有意义啊」 · 「我要尽快处理」, record
6898023768 on #34007, superseding the 16:08Z 2-dev cap). The merge-queue
gate is per slot: a slot takes its next card only once its own previous
PR is in the merge queue, and until then that dev runs the PR's fix
rounds. A PR waiting on a person (Tier H or a maintainer decision) frees
its slot. The quota-wall pointer to `execution-duties.md` moves onto the
card-folding line. The seat re-checks every area each round. A
backlogged area is split again rather than given a higher per-area
count.
7. A PASSed, all-green, non-governed PR lands within 10 minutes, and the
area first checks for an existing landing comment so it never arms
twice.
Review and cost lines:
- Self-review (16:06Z, 「50 行内由区自审」): a PR of at most 50 changed lines
that edits only text or tests, declares `Clause-②: no` and touches no
other contract face is self-reviewed by the area against
`review-checklist.md`, the ACCEPT names the self-review, and it lands.
Every other PR gets the review thread's ACCEPT read, which takes
precedence over `contract-review.md`'s rule against a second agent.
- The contract record is owed only on `contract-review.md`'s four faces,
and a moved head follows that file's head-move exception
(`Regen-provenance:`). A clean main merge with the same patch-id keeps
only the thread's ACCEPT.
- Review runs only on the green head that the area has declared final in
a PR comment, with delta reviews after fixes.
- Cost: the dev's pre-push scope is os-dev.md's local verification
section (derived gates, and the full dogfood battery on `!` or
`(narrowing)`), pointed to rather than restated; cross-thread messages
carry pointers only; threads run at effort high, and the dev's effort
stays per `execution-duties.md`; tokens are saved through this line,
never through fewer devs. A thread rotates at about 150k at a clean
point, never mid-review, and writes its hand-over to
`/mnt/project-files/SEAT/handover-AREA.md`.
- Review thread (16:00Z, 「复审车道和你这里的复审不是一个概念吗? 你派出的任务需要审核,但未必都需要契约复审」):
the seat's review threads are its PR review threads, not the review
lane, and the `lanes/review.md` seat rules do not apply to them. The
mode line in the file header names it 复核线程.
`.claude/skills/pm-dispatch/references/lanes/review.md` L19, per
「定复审席必须由另一个账号来坐 没有这个规定」 (15:59Z): the account restriction is removed.
Independence is the record's `Implemented-by:`/`Reviewed-by:` pair with
two different sessions, and any account may sit, the dispatching one
included. The file stays at 21 lines.
The dated eight-area example from 2026-11-14 is deleted. The lease table
on the seat post is the one record, and partitioning is re-derived every
shift. Main's removal of the area-thread authorising line (PR #34000) is
kept as main has it.
`scripts/pm/check-skill-line-ratchet.mjs`: the `area-lease.md` row goes
from main's 59 to 71, re-measured against main's 59-line file, +12 in
all. It is three ordinary ruled raises:
- +8, the area-mode rules. Ruling of record: the maintainer, 2026-11-15,
verbatim 「写仓库」, quoted in the body of #33907 (filing gate ③), claim
comment 6895484790.
- +1, the self-review rule. Ruling of record: 「50 行内由区自审」 (16:06Z,
decision card), recorded in comment 6897821873 on #34007.
- +3, the throughput and cost rules. Ruling of record: 「同意他的建议:每区先开 2
个开发代理,上一个 PR 进了合并队列再领下一张卡;不单独做 p3;只复审已经变绿、不再改的提交;线程 effort 用 high。」
(16:08Z, project chat), recorded in the same comment 6897821873.
- +0, the dev line reworded in place by 「建议每区3个,你通过降低开发节约token没有意义啊」 ·
「我要尽快处理」 (16:56Z, project chat), recorded in comment 6898023768 on
#34007.
The maintainer's words for each card rule, verbatim as #33907 quotes
them:
- Rule 1: 「已经开工了,退回的原因是什么?你就是总指挥啊」
- Rule 2: 「你让我选的都用 fable 评审过吗?应该用中文和我沟通」 · 「之前选过的也再评审一遍」
- Rule 4: 「yes」 (to the coordinator's proposal), since superseded by
「不单独做 p3」
- Rule 5: 「已经分析了一轮,换车道的价值大吗?…协调之后继续处理」 ·
「复审也是一样的流程,为什么要对方车道复审?如果车道有人在线,只需要通知他就可以。」
- Rule 6: 「任务很多啊,你应该监督座位全速开发」 · 「比如增加分区」, with the per-area count since
set by 「建议每区3个」
Three of these are carried inline in the file where they are the
operative wording: 「比如增加分区」, 「如果车道有人在线,只需要通知他就可以。」 and 「应该用中文和我沟通」. The
rest live here as provenance, under the line budget. In the file, the
review is named by its tier constant rather than a model name.
SKILL.md is untouched: its 阶段细则索引 already lists
`references/area-lease.md`.
## Tests
No runtime code changed and no tested behaviour moved, so there is no
ablation. `node scripts/pm/check-skill-line-ratchet.mjs --self-test`
passes 164 cases. No other test file names the script.
## Acceptance notes
- `skip-changeset`: `.claude/**` and `scripts/pm/**` publish nothing
from any package.
- The card's claim carries no `Clause-②:` or `Metadata-protocol:` lines,
so none are copied here.
- Round history: first round 2db5497; patch round 3fbadcf (「要同步更新
skills」, review-c S1–S3, record 6896328536); third round 4a5035d (main
merge with #33943, the 15:59Z, 16:00Z, 16:06Z and 16:08Z rulings;
review-c PASS, record 6897812829); fourth round ff06482 (main merge
with PR #34000 at ace5ce6, review-c S4–S6 and N5–N8, then the 16:56Z
dev-line ruling).
## Verification
<details><summary>Ratchet, final head ff06482</summary>
`node scripts/pm/check-skill-line-ratchet.mjs`, exit 0: `area-lease.md
is 71 lines (ceiling 71; headroom 0)`, widest table row 0 bytes (pin 0),
every line at most 120 bytes. `--self-test`, exit 0: 164 cases pass.
</details>
<details><summary>Derived gate families, final head ff06482</summary>
`dispatch-gates.mjs --commands --repo objectstack-ai/objectstack`
derives 37 families for this diff, the same 37 as on 4a5035d. All 37
were run locally on ff06482, with exit codes captured before any pipe.
`--ran` reconciliation: 37 of 37, 0 NOT-MEASURED (a derived zero).
`check:pm-dispatch-gates` fast tier: 2205 cases pass. Every family
exited 0:
- `node scripts/check-closing-keyword-parity.mjs --self-test`: exit 0
- `node scripts/check-closing-keyword-parity.mjs`: exit 0
- `node scripts/check-comment-mask-corpus.mjs`: exit 0
- `node scripts/check-declaration-mirrors.mjs --self-test`: exit 0
- `node scripts/check-declaration-mirrors.mjs`: exit 0
- `node scripts/check-self-test-wired.mjs --self-test`: exit 0
- `node scripts/check-self-test-wired.mjs`: exit 0
- `node scripts/check-self-test-workflow-commands.mjs --self-test`: exit
0
- `node scripts/check-self-test-workflow-commands.mjs`: exit 0
- `node scripts/check-whole-set-label-write.mjs --self-test`: exit 0
- `node scripts/check-whole-set-label-write.mjs`: 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-harness-current.mjs --self-test`: exit 0
- `pnpm --filter @objectstack/lint run check:doc-formula-expressions`:
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: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-governed-merges`: 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
CI on ff06482: 44 check-runs, 25 success and 19 skipped, none failing.
</details>
---
_Generated by [Claude
Code](https://claude.ai/code/session_01QsR2jRsWwTRkuRCyQwvpAG)_
<!-- signed: domain:server#5 · zhuangjianguo ·
session_01QsR2jRsWwTRkuRCyQwvpAG -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 6a83f0c commit 2af9c0a
3 files changed
Lines changed: 52 additions & 14 deletions
File tree
- .claude/skills/pm-dispatch/references
- lanes
- scripts/pm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 15 | | |
21 | 16 | | |
22 | 17 | | |
| |||
34 | 29 | | |
35 | 30 | | |
36 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
45 | 53 | | |
| 54 | + | |
46 | 55 | | |
47 | 56 | | |
48 | 57 | | |
49 | 58 | | |
| 59 | + | |
| 60 | + | |
50 | 61 | | |
51 | | - | |
| 62 | + | |
| 63 | + | |
52 | 64 | | |
53 | 65 | | |
54 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1383 | 1383 | | |
1384 | 1384 | | |
1385 | 1385 | | |
1386 | | - | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
1387 | 1413 | | |
1388 | 1414 | | |
1389 | 1415 | | |
| |||
0 commit comments