Repository navigation
chore(pm-dispatch): drop the area-thread authorising line from area-lease - #34000
Merged
Merged
Conversation
…ease Step 3 of the seat-opening list now names only the seat-thread (Tier H) line and states that an area thread carries none; the area landing line tells a refused landing to report the refusal text. Claude-Session: https://claude.ai/code/session_01ADHkmPHrmnzkEqCv41vQy7 Co-authored-by: Claude <noreply@anthropic.com>
The area-thread authorising line left area-lease.md at 59 lines against a ceiling of 60. Lower the row to 59 (headroom 0, the ratchet's own convention) and correct the row comment, which still described an authorising line on every thread. Claude-Session: https://claude.ai/code/session_01ADHkmPHrmnzkEqCv41vQy7 Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
domain:skills#1 · os-steve · session_01ADHkmPd7uRqHauEehGPr19 席位核对 · ACCEPT · head
|
scbdzhwl
pushed a commit
to scbdzhwl/objectstack-analysis
that referenced
this pull request
Nov 16, 2026
…tack-ai#33938) Fixes objectstack-ai#33907 Fixes objectstack-ai#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 objectstack-ai#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 objectstack-ai#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 objectstack-ai#33907 (filing gate ③), claim comment 6895484790. - +1, the self-review rule. Ruling of record: 「50 行内由区自审」 (16:06Z, decision card), recorded in comment 6897821873 on objectstack-ai#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 objectstack-ai#34007. The maintainer's words for each card rule, verbatim as objectstack-ai#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 objectstack-ai#33943, the 15:59Z, 16:00Z, 16:06Z and 16:08Z rulings; review-c PASS, record 6897812829); fourth round ff06482 (main merge with PR objectstack-ai#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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Steve · project thread
Fixes #33971
Clause-②: no
Metadata-protocol: none
维护者速读
.claude/skills/pm-dispatch/references/area-lease.md第 26–28 行(第 3 步)与第 44 行(落地行)。git grep -n '本区通过复审' origin/main -- .claude合并后应无任何输出。.claude/**,等席位达档复核 PASS 后由席位落地(若判 Tier H 则需您批准)。What changes
.claude/skills/pm-dispatch/references/area-lease.md, one file, +3 / -4 (59 lines, was 60):landing-operations.md自落,受拒报原文」. A refused landing reports the refusal text; the step-3 sentence above says there is no area line to name instead. The seat-side refusal rule inlanding-operations.md(classifier refusal: stop, report, record the command and refusal reason on the card) already covers seats and is not touched.No line was bought by a re-wrap: the line count falls by the one deleted line, and the two additions ride existing lines inside the 120-byte budget (step 3 header 120 B, bound line 109 B, landing line 120 B).
Tests
No test changes; documentation-only internal tooling. Gates below.
Acceptance notes
git grep -n '本区通过复审' -- .claude AGENTS.md docson head 7dabaf6: zero hits (origin/main 0ac112f: one hit, area-lease.md L27, the only home the card names).pnpm check:pm-skill-ratchetreads area-lease.md at 59 lines. Review record 6897124418 (S1) asked for the ceiling row to follow it down: claim amendment 6897134113 widened the surface toscripts/pm/check-skill-line-ratchet.mjs(that row only), and head bffd9a1 lowers it 60 → 59 (headroom 0) and corrects its comment. On bffd9a1 the derived set widened to 37 commands, all exit 0,--ran0 NOT-MEASURED; the gate table below is the 7dabaf6 run.skip-changeset:.claude/**only, nothing published.Verification
Gates derived by
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackon head 7dabaf6 (17 commands), pluspnpm check:pm-settings-deny-roster(a roster under.claude):Local gate results on 7dabaf6 (18 of 18 exit 0)
Generated by Claude Code