You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 635b0a6
Browse filesBrowse the repository at this point in the historyBrowse files
chore(pm-dispatch): an underived ceiling order goes back before a thread opens; a card thread checks the tier it is served (#36413)
<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbCxiFE11rsKwyNffJZKYqJs)_
repo:objectstack#7 · zhuangjianguo · session_01QsR2jSQkebczqNyjnNrLRH
Fixes#36358
Clause-②: no
Metadata-protocol: none
Rule-change: yes
## 维护者速读
- 用户无感:这是车队内部规则的补充,新增五条你在决策卡上选了「五条都写」的规则,并按你上午的答复改掉了派单工具里那句过时的档位提示。
- 为什么做:上午两张派单写了最高档却没人核对;现在开线程前先查档位那一行,线程开工先核对实际拿到的档,协调者、区线程、总监的取值也补齐了。
- 出错会怎样:席位或协调者可能误退一张派单,或线程多报一次档位,耽误几分钟;撤回本次合并即可恢复原文,不影响产品和用户数据。
- 要你做什么:这个 PR 新增了车队规则,需要你批准合并。
## What changes
The second and last pull request of the card: items 11-15, which the
maintainer approved as a set (Q13 of ruling record 7076315104 on the
card: the decision card 「定一下:五条新增规则要不要写进技能」, chosen 「五条都写」), the two
answers recorded in ruling record 7077400471 (「1 同意、2 同意」), and the
three nits the contract review of the first pull request left for this
one.
**The five rule lines (Q13)**
- Item 11, `references/coordinator.md` 四, one sentence: before a card
thread opens, the coordinator reads the order's `model:` line. If it
names the ceiling and the same line carries neither a `--tier` MANDATORY
line nor a `reason:` that names a ruling (a comment id, or a standing
tier order's id and time), the order goes back to the seat and no thread
opens.
- Item 12, two halves. `.claude/agents/os-dev.md`: a card thread's first
step reads the tier it is served (`readings-session.md`) and compares it
with the order; a mismatch in either direction is reported to the seat
before any work, and the first report carries the served tier.
`references/dispatch-runbook.md` (card-thread section): the seat writes
that tier into the claim's `Container & model` line, and on a mismatch
the thread does not start until the seat decides.
- Item 13, the home (`references/execution-duties.md`, 定档): the
coordinator session runs at the default tier, effort `high`.
- Item 14, the home: an area thread runs at the default tier, effort
`high`; a card with a MANDATORY line is built by an isolated ceiling
sub-agent or in its own card thread. The area-thread value leaves the
card-thread line and gets its own line.
- Item 15, the home: the director seat's effort is `high`; its tier
stays the maintainer's per-project choice.
**Ruling record 7077400471**
- Item 1, no text change: a card that only declares a contract change
(`Clause-②: yes`) keeps its L2 review at the default tier.
`contract-review.md` (its declaration row) already says so, and the
home's review-tier line says that tier lives only in that file. The
first two heads added a line to the home that restated it; the contract
review found its wording could be read wider than the rule (S1 of
7078357171), and the seat chose to drop the line, so the third commit
removes it.
- Item 2, `scripts/pm/dispatch-gates.mjs`, one printed sentence, text
only. With no path-derived mandate the tool printed "The tier stays the
PM's per-card judgment call (floor · default · ceiling)", which the
home's first two lines contradict. It now prints "The tier stays below
the ceiling: with no mandate the PM picks floor or default per card, and
a ceiling build takes a path-derived mandate or the maintainer's
explicit order (floor · default · ceiling)". No judgment logic,
derivation row or constant changes. The opening words and the closing
parenthesis are kept because the tool's self-test finds the line by
them, and the sentence says "path-derived mandate" because the same
self-test refuses the upper-case word in the no-mandate rendering.
`dispatch-gates.data.mjs` is not touched.
**Nits carried from the first pull request's contract review (N8-N10)**,
all in `.claude/skills/pm-dispatch/SKILL.md` 〈升级与决策〉
- N8: on the "a ruling is put only through the director seat and
decision threads" line the exception now follows the route, so it no
longer reads as qualifying "always decided by the maintainer".
- N9: the "a question for the maintainer first goes through a decision
thread" line carries the same exception as its neighbours.
- N10: the exception names seats and triage. A dev still reports
`needs_decision` and never asks directly, as `os-dev.md` has said
throughout; the earlier wording listed dev among those who may ask.
## Why
Two orders on 2026-11-22 named the ceiling tier for the build with no
derivation, both threads were in fact served the default tier, and
nobody read either the order or the served tier. The first pull request
made the rule readable in one place; these lines add the two reads that
would have caught it (the coordinator before the thread opens, the
thread at its first step) and fill the role values the home had no ruled
value for (the coordinator session, the area thread's tier, the
director's effort).
## Tests
No test file changes. The one script line is a printed sentence. `pnpm
check:pm-dispatch-gates` (the tool's self-test battery, 2252 cases)
exits 0 with it, and `dispatch-gates.mjs --tier` on a
`packages/spec/src/**` path prints the new sentence under "no
path-derived mandate". The first wording of the sentence failed one case
of that battery ("the no-mandate rendering claims no mandate") at the
first pushed head; the second commit rewords it.
## Acceptance notes
- The card's acceptance for this pull request: an order line `model:
CONTRACT_REVIEW_TIER (reason: spec contract surface; Clause-② yes)` is
returned before a thread opens. The written step in `coordinator.md` 四
covers it: that `reason:` names no ruling.
- No value is written outside the home: `coordinator.md`, `os-dev.md`
and `dispatch-runbook.md` gain procedure only.
- No skill line carries a card number, a comment id or a dated
quotation.
- N10 is a reading of the maintainer's Q14 words (addendum 7076338827),
which do not say who asks. Keeping the dev rule strict is the narrower
reading; say so if seats' devs should be allowed the direct question
too.
## Verification
**Bytes** (`node scripts/pm/check-skill-line-ratchet.mjs`, exit 0 at the
head). Every row below is raised by exactly the bytes of the new text,
and each row comment quotes its ruling id.
| File | main | head | ceiling row | ruling |
|---|---|---|---|---|
| `references/coordinator.md` | 4230 | 4427 | 4230 → 4427 (+197) |
7076315104, Q13 (item 11) |
| `.claude/agents/os-dev.md` | 38846 | 38986 | 38848 → 38986 (+138; 2
bytes were headroom) | 7076315104, Q13 (item 12) |
| `references/dispatch-runbook.md` | 20344 | 20483 | 20344 → 20483
(+139) | 7076315104, Q13 (item 12) |
| `references/execution-duties.md` | 22158 | 22316 | 22158 → 22316
(+158) | 7076315104, Q13 (items 13-15) |
| `.claude/skills/pm-dispatch/SKILL.md` | 33881 | 33919 | 33881 → 33919
(+38) | 7076338827, Q14 (N9 and N10; N8 is byte-neutral). The row
comment says the naming of seats and triage is a reading, not the
ruling's words |
**Gates** (`dispatch-gates.mjs --commands` over the seven changed files
derives 71 commands). The local record is in three parts, stated here
rather than hidden:
- 69 commands ran at the first pushed head `fd54f8fb4` and exited 0.
- The other two were not green there and were re-run alone at the second
head `e116b15bf`: `pnpm check:pm-dispatch-gates` (exit 1 at the first
head, one case of 2252, fixed by the second commit; exit 0) and `pnpm
check:i18n-coverage` (exit 3 at the first head, a missing local build of
the workspace CLI and the example apps, nothing in this diff; exit 0
after that build). `--ran` over that record: 71 derived, 71 run, 0 NOT
MEASURED, 0 UNRUN.
- The third commit (the review fix) touches
`references/execution-duties.md` and
`scripts/pm/check-skill-line-ratchet.mjs`. The 41 commands derived for
those two files, the self-test battery among them, were run again at the
final head `36cce5462`: all exit 0, and `--ran` reads 41 derived, 41
run, 0 NOT MEASURED, 0 UNRUN.
The other 30 commands of the 71 were not run again locally after the
first head; CI at `36cce5462` runs the final tree.
`node scripts/pm/overlap-check.mjs` at the final head: merges cleanly
into `origin/main`, verdict clean.
**Read first** (by risk)
1. `scripts/pm/dispatch-gates.mjs`, the one changed line: text only,
inside the `!mandatory` branch of the tier printer.
2. `references/coordinator.md` 四, the new second line: what makes the
coordinator return an order.
3. `references/execution-duties.md`, 定档: the three role lines (director,
coordinator, area thread).
**Two-minute check**: run `node scripts/pm/dispatch-gates.mjs --repo
objectstack-ai/objectstack --tier
packages/spec/src/api/error-code-ledger.zod.ts` and expect the second
line of the tier block to start "The tier stays below the ceiling".
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(No `packages/spec` change.)
- [x] 2. Every name I added uses the casing for its kind. (None added.)
- [x] 3. No formatter ran; `pnpm lint` passes. (Markdown, one data
table, one string literal.)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request. (The card's second pull request, as the card orders; the first
one merged.)
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset. (Nothing
publishes; `skip-changeset`.)
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (Not touched.)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English. (The 维护者速读 section is
the maintainer's Chinese summary.)
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.
---
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01QsR2jSQkebczqNyjnNrLRH
<!-- signed: repo:objectstack#7 · zhuangjianguo ·
session_01QsR2jSQkebczqNyjnNrLRH -->
---------
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: scripts/pm/check-skill-line-ratchet.mjs
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -81,8 +81,8 @@ const REPO_ROOT = new URL('../../', import.meta.url);
81
81
// moves a row later says why in its body; the row carries a one-line comment
82
82
// only when a reader needs the ruling at the row.
83
83
exportconstCEILINGS=newMap([
84
-
['.claude/skills/pm-dispatch/SKILL.md',33881],// lowered 33934 → 33872 by the re-basing PR's own edit; raised 33872 → 33881 (+9) by ruling record 7076338827, the addendum to 7076315104 (the simple-question exception is said on each of the three lines of 升级与决策 it qualifies: 「不一定要写成文件吧?简单的问题是不是直接和我沟通就可以」)
85
-
['.claude/skills/pm-dispatch/references/dispatch-runbook.md',20344],// raised 20070 → 20354 (+284) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): a card thread confirms Actions started after each push; the seat reads pr-state of every in-flight card PR; lowered 20354 → 20344 by the PR that moved the tier and effort values to the one home
84
+
['.claude/skills/pm-dispatch/SKILL.md',33919],// lowered 33934 → 33872 by the re-basing PR's own edit; raised 33872 → 33881 (+9) by ruling record 7076338827, the addendum to 7076315104 (the simple-question exception is said on each of the three lines of 升级与决策 it qualifies: 「不一定要写成文件吧?简单的问题是不是直接和我沟通就可以」); raised 33881 → 33919 (+38) by ruling record 7076338827 (the simple-question exception on the decision-thread line; that it names seats and triage only is the seat's reading, the ruling's words do not say who asks)
85
+
['.claude/skills/pm-dispatch/references/dispatch-runbook.md',20483],// raised 20070 → 20354 (+284) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): a card thread confirms Actions started after each push; the seat reads pr-state of every in-flight card PR; lowered 20354 → 20344 by the PR that moved the tier and effort values to the one home; raised 20344 → 20483 (+139) by ruling record 7076315104 (Q13, the decision card 「定一下:五条新增规则要不要写进技能」: 「五条都写」): the thread's first report carries the served tier and the seat writes it into the claim
['.claude/skills/pm-dispatch/references/decision-analysis.md',5023],// raised 4892 → 5023 (+131) by ruling record 7076338827, the addendum to 7076315104 (a simple question goes to the maintainer in chat after the at-tier analysis: 「不一定要写成文件吧?简单的问题是不是直接和我沟通就可以」)
@@ -106,14 +106,14 @@ export const CEILINGS = new Map([
['.claude/skills/pm-dispatch/references/seat-lifecycle.md',9070],// raised 9070 → 9076 (+6) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): card-pick --why every patrol round; lowered 9076 → 9070 by the PR that moved the tier and effort values to the one home
108
108
['.claude/skills/pm-dispatch/references/area-lease.md',6586],// raised 6401 → 6586 by the ruled text (one seat per lane by default; a new `area:*` is a partition of that seat), ruling record 7030459053
109
-
['.claude/skills/pm-dispatch/references/coordinator.md',4230],// raised 3781 → 4265 by the ruled text (one seat per lane by default; a new `area:*` is a partition of that seat), ruling record 7030459053; lowered 4265 → 4230 by the PR that moved the tier and effort values to the one home
109
+
['.claude/skills/pm-dispatch/references/coordinator.md',4427],// raised 3781 → 4265 by the ruled text (one seat per lane by default; a new `area:*` is a partition of that seat), ruling record 7030459053; lowered 4265 → 4230 by the PR that moved the tier and effort values to the one home; raised 4230 → 4427 (+197) by ruling record 7076315104 (Q13, the decision card 「定一下:五条新增规则要不要写进技能」: 「五条都写」): the coordinator returns an underived ceiling order before a thread opens
['.claude/skills/pm-dispatch/references/triage-duties.md',13544],// edited byte-neutral by the re-basing PR (12399 → 12399); raised 12399 → 13559 (+1160, the landed bytes) by the rulings whose rows are written in it: ruling records 7031931263 (rows 2–5: 「adr接受你的建议」, 「只考虑合并没人认领的,没开始开发的,你负责处理」, 「影响评测的卡不能关,这个会影响到AI的开发效果」, 「adr和skills修改相对是重要的」), 7032145340 (row 6: 「同意」) and 7032418455 (row 7: 「你分诊的时候是不是应该同时评估大概的卡大小作为参考」); review record 7038100802 triggered the part of rows 2, 3 and 6 added in fix round 1 (one close reason, the sweep roll-over, the never-fold list of standing exclusions) and is a trigger, not a ruling; lowered 13559 → 13544 by the PR that moved the tier and effort values to the one home
116
-
['.claude/skills/pm-dispatch/references/execution-duties.md',22158],// raised 19810 → 20148 (+338) by ruling records 7031931263 (row 2, the weekly ADR card: 「adr接受你的建议」) and 7032145340 (row 6, the lane seat claims the weekly sweep card: 「同意」); 20148 → 20154 (+6) by ruling record 7073679594 (the L2 review effort line moves to `high` on the review sweep's readings: 「C」, under ruling 7073045669 point 4); 20154 → 20277 (+123) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): a hold is Blocked-by + pm:blocked on the card, the probe covers card threads; 20277 → 22158 (+1881) by ruling record 7076315104 (the one home for tier and effort, the 定档 section: 「要把规则文字同统一整理一下,避免散落在各处,避免ai犯错」)
116
+
['.claude/skills/pm-dispatch/references/execution-duties.md',22316],// raised 19810 → 20148 (+338) by ruling records 7031931263 (row 2, the weekly ADR card: 「adr接受你的建议」) and 7032145340 (row 6, the lane seat claims the weekly sweep card: 「同意」); 20148 → 20154 (+6) by ruling record 7073679594 (the L2 review effort line moves to `high` on the review sweep's readings: 「C」, under ruling 7073045669 point 4); 20154 → 20277 (+123) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): a hold is Blocked-by + pm:blocked on the card, the probe covers card threads; 20277 → 22158 (+1881) by ruling record 7076315104 (the one home for tier and effort, the 定档 section: 「要把规则文字同统一整理一下,避免散落在各处,避免ai犯错」); raised 22158 → 22316 (+158) by ruling record 7076315104 (Q13, the decision card 「定一下:五条新增规则要不要写进技能」: 「五条都写」) (the coordinator session, the area thread and the director's effort)
117
117
['.claude/skills/pm-dispatch/references/filing-gate.md',9089],// raised 9096 → 9101 (+5) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): same-epic order is the later card's Blocked-by; raised 8386 → 9096 (+710, the landed bytes) by the rulings whose rows are written in it: the rule card's body ruling (row 1, a dedupe hit on an open same-mechanism card ends in a comment: 「感觉你的第二种方案也很好啊」) and ruling record 7032145340 (row 6, the weekly sweep card entry rule and triage's move at first touch: 「同意」); review record 7038100802 triggered the quota line's pointer to row 1 (fix round 1) and is a trigger, not a ruling; lowered 9101 → 9089 by the PR that moved the tier and effort values to the one home
118
118
['.claude/skills/pm-dispatch/references/project-forms.md',4889],// raised 4669 → 4889 (+220 B, the two project-memory lines less 48 B of restatement cuts) by ruling record 7046610679 「同意,立卡派发」 under ruling record 6184799323, letter B
['.claude/skills/pm-dispatch/references/lanes/objectstack.md',2540],// raised 2270 → 2540 by the ruled text (one seat per lane by default; a new `area:*` is a partition of that seat), ruling record 7030459053
137
-
['.claude/agents/os-dev.md',38848],// lowered 39008 → 38848 by the re-basing PR's own edit
137
+
['.claude/agents/os-dev.md',38986],// lowered 39008 → 38848 by the re-basing PR's own edit; raised 38848 → 38986 (+138) by ruling record 7076315104 (Q13, the decision card 「定一下:五条新增规则要不要写进技能」: 「五条都写」): a card thread's first step reads the tier it is served and compares it with the order
Copy file name to clipboardExpand all lines: scripts/pm/dispatch-gates.mjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13331,7 +13331,7 @@ export function tierLines(result) {
13331
13331
if (!mandatory) {
13332
13332
return [
13333
13333
`Model tier — no path-derived mandate: the surface hits none of the ${declared} declared glob(s), derived here, not recalled.`,
13334
-
` The tier stays the PM's per-card judgment call (floor ${TIER_FLOOR} · default ${TIER_DEFAULT} · ceiling ${TIER_CEILING}).`,
13334
+
` The tier stays below the ceiling: with no mandate the PM picks floor or default percard, and a ceiling build takes a path-derived mandate or the maintainer's explicit order (floor ${TIER_FLOOR} · default ${TIER_DEFAULT} · ceiling ${TIER_CEILING}).`,
0 commit comments