Repository navigation
Commit 124c934
chore(pm-dispatch): tier and effort live in one section; the build tier is derived, effort tops at high (#36376)
<!-- 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
Part of #36358 (items 1-10, the ruled copy; items 11-15, the five new
rule lines the maintainer approved as Q13, stay on the card for a second
pull request)
Clause-②: no
Metadata-protocol: none
Rule-change: ruled
Ruling-ref: 「要把规则文字同统一整理一下,避免散落在各处,避免ai犯错」 — the maintainer, project
thread, 2026-11-22T07:47Z (Q10 of ruling record 7076315104 on #36358,
which holds Q1-Q13 verbatim; its addendum 7076338827 holds Q14)
## 维护者速读
- 用户无感:这是车队内部规则文字的整理,档位和 effort 的取值从十几个文件收到一处,其他文件只留指向它的一句话。
- 为什么做:有两张派单把「改产品契约」读成了「要用最高档开发」;现在写明只有改车队自己规则的卡才用最高档开发,effort 最高用
high,更高的只留 ADR 修订和高危安全修复的对抗复核两处。
- 出错会怎样:席位派单时档位或 effort 可能取错,表现为某张卡开错档;撤回本次合并即可恢复原文,不影响产品和用户数据。
- 要你做什么:无。
## What changes
One section now holds every tier and effort value: `### 定档` at the end
of the dispatch section of
`.claude/skills/pm-dispatch/references/execution-duties.md`. Every other
file points at it and states no value.
**The home, read top to bottom**
- Lines 1-3 answer the question that was misread (items 1 and 3; Q1,
Q8). A card is built at the ceiling tier for two reasons only:
`dispatch-gates.mjs --tier` prints a MANDATORY line for its paths, or
the maintainer's own words name it. Size, difficulty, heavy process,
doubt, p1, the `security` label and a product-contract change are named
as non-reasons. A product-contract card (`Clause-②: yes`, a
`Metadata-protocol` kind, a `packages/spec/src/**` path) is built at the
default tier; those three signals decide whether a card thread opens and
which L2 review is owed, never the build tier.
- Clause ① and the mandated set are re-laid, not changed (Q8): the four
surfaces, the one-line-class exit, its absence for `skills/**` and
`docs/adr/**`, the compensating L2 review, the two quota exits, no
downgrade for a missing grant. The term 协议语义面 is renamed 车队规则面, with the
old name kept beside it and a clause saying it never means the product
protocol or a product contract (item 10).
- By role (item 8a): seat sessions, the director seat (tier only; no
effort row, the card orders it left out), decision threads, card
threads, area threads, sub-agents.
- Effort (item 5; Q2-Q6, Q9, Q12): S, nit and text cards `medium`; M, L
and XL `high`; L2 review, design re-read, red-line re-read and the
four-axis decision analysis `high`; a medium-severity security change
`high`. `high` is the top. Above it only two cases: an ADR revision (the
standing order, unchanged), and the read-only adversarial review of a
high-severity security change, whose value is passed to that sub-agent
and never claimed. That case is graded by consequence whatever its
carrier (Q4 and Q12 name no carrier).
- Gone: the unattended-over-30-minutes and measured-gain exits to the
higher effort, and the top effort level by name or standing order. The
measurement line now chooses among `low`, `medium`, `high`.
**Former restatements and the pointer that replaced each (item 9)**
| File | Was | Now |
|---|---|---|
| `references/coordinator.md` 四 | its own tier sentence for 协议语义面 cards
| "values live only in the home; the coordinator opens the thread as the
order says" |
| `references/coordinator.md` 五 | decision thread at the ceiling, effort
stated | pointer to the home |
| `references/decision-analysis.md` | decision-thread tier and effort,
the named-only top level | pointer; plus the Q14 line (below) |
| `references/dispatch-runbook.md` | probe tier, long-thread reader
tier, scope-review agent tier, "the `--tier` line or the difficulty
reading" | no tier words; the contract line says the three signals only
decide whether a thread opens; the order quotes the `--tier` line for
the tier and the difficulty reading for effort (item 2) |
| `references/seat-lifecycle.md` | seat-session effort value | pointer |
| `references/area-lease.md` | thread effort value, option-set review
tier | pointer |
| `references/triage-duties.md` | triage sub-agent tier | no tier word
(the invariant line in `SKILL.md` names the home) |
| `references/lanes/l2-review.md` | seat-session tier and effort |
pointer (the account-capability sentence stays: it is a seating
condition, not a value) |
| `references/lanes/security.md` | review-agent tier | pointer |
| `references/lanes/skills.md` | "the pm-dispatch root is always the
ceiling" (wrong for `references/**`) | pointer |
| `references/lanes/server.md`, `lanes/spec.md` | pointers to a table
`SKILL.md` does not hold | pointer to the home |
| `references/filing-gate.md`, `.claude/agents/os-dev.md` |
"ceiling-tier decision thread" | "decision thread" |
| `references/readings-session.md` | the no-downgrade rule restated |
pointer |
| `references/seat-post-protocol.md` | "pick the tier by duty" | pointer
|
| `.claude/skills/pm-dispatch/SKILL.md` | triage default tier; "ceiling"
before decision thread, twice; the director-tier rule | one invariant
line naming the home; the director line keeps only its ledger duty |
| `SKILL.md` claim template, effort slot (item 6) | four levels, with
timing and measured-record citations | `medium` or `high` by difficulty;
the higher level only for an ADR revision; a security change claims
`high` and the review value goes to the sub-agent only |
| `.claude/skills/checklist-test/SKILL.md` (item 7) | its sentence
naming the higher level | "anything higher follows the pm-dispatch
home"; its own QA-runner values stay |
| `docs/qa/platform-checklist/RUNNER.md` | the security effort values
restated in a parenthesis | pointer to the home |
- `os-dev.md` keeps its front-matter and the one line a card thread acts
on without reading the skill (an order with no derivation is sent back),
now pointing at the home for values.
- One line is deleted from `dispatch-runbook.md` to pay bytes: "a thread
or area that sees an order with no derivation does not start". The same
rule stays in `os-dev.md`, which every thread and area reads.
- `contract-review.md` is untouched: it keeps the review tier by face,
and the home points at it.
**Q14 (addendum 7076338827)**, built in as the order says:
`decision-analysis.md` gains one line. A simple question, one whose
answer no ruling, pull request or other seat will cite, still gets the
at-tier independent analysis first and is then asked in chat, and need
not be written as a file or a decision card (the ruling's own modality,
「不一定」); a question whose answer will be cited is recorded on a card as
before. `SKILL.md` says the exception on each of the three lines of
〈升级与决策〉 it qualifies: "card before the prompt" (277), "do not ask the
maintainer in your own session" (280) and "a ruling is put only through
the director seat and decision threads" (284).
**Review round, folded in at this head**: the L1 item (the "card before
the prompt" line contradicted Q14) and the contract review's S1 (the
same section, lines 277 and 284), N1 (the chat-question line copies the
ruling's modality), N3 (the named effort cases again say they win over
the size line, as main's text did), N5 (a pointer in `triage-duties.md`
that named no file is dropped) and N6 (three ratchet row comments). N2,
N4 and N7 were accepted as they stand; N7 is met anyway, since the
invariant line no longer says "nowhere else". The L1 nit on the clause-②
line of the dispatch section is left: the card says those lines stay as
they are.
## Why
Orders for two cards on 2026-11-22 named the ceiling tier for the build
because the cards changed a product contract. The rule text never said
that, but it was spread over more than a dozen files that disagreed, and
one sentence used 协议 for the fleet's own rule files while the same word
names the product protocol elsewhere. The maintainer ordered the text
into one place (Q10) and set the effort scale (Q2-Q6, Q9, Q12).
Two earlier readings are superseded here, both by the maintainer's later
words: the red-line re-read moves to `high` (Q3; it was set higher by
decision 二 of ruling record 7024443457, landed by #36254), and the
long-unattended and measured-gain exits that #35270 had left standing
are removed (Q5). #36267 (the adversarial review keyed on the advisory
carrier only) is folded in: the home keys it on consequence. One
follow-up is filed and not part of this diff:
objectstack-ai/hotcrm#2738, whose `AGENTS.md` still states the old
review effort.
## Tests
No test file changes: the diff is rule text and the ratchet's `CEILINGS`
rows. No self-test row changes outside
`scripts/pm/check-skill-line-ratchet.mjs`.
`scripts/pm/dispatch-gates.mjs` and `dispatch-gates.data.mjs` are not
touched.
## Acceptance notes
- `git grep -n -E 'xhigh|\bmax\b'` over `.claude/skills/pm-dispatch`,
`.claude/agents/os-dev.md`, `.claude/skills/checklist-test/SKILL.md` and
`docs/qa/platform-checklist/RUNNER.md` returns five lines: three in the
home (the ADR-revision rule, the security adversarial review, the 拿不准
prohibition), the `SKILL.md` claim template's effort slot, and
`os-dev.md` 93, which is the Node flag `--max-old-space-size`, not an
effort level.
- The home's first three lines, read alone, answer "does a
`packages/spec/src/**` card build at the ceiling?" with no.
- `dispatch-gates.mjs --tier` on `SKILL.md` and `os-dev.md` prints the
same MANDATORY rows as on main; the tool is byte-identical.
- No skill line carries a card number, a comment id or a dated
quotation; the sources are in this body and in the ratchet's row
comments.
- Tier and effort words that remain outside the home, each on purpose:
`checklist-test/SKILL.md` keeps its QA-runner values (item 7);
`SKILL.md` keeps the claim template's spelling of the two slots and one
`TIER_DEFAULT` in a review-routing pointer; `lanes/l2-review.md` keeps
the account capability; `readings-session.md` keeps one measured fact
about Routine seats.
## Verification
**Bytes** (`node scripts/pm/check-skill-line-ratchet.mjs`, exit 0 at the
head; main is ed33f8a, which holds the four rows #36205 raised, and
the deltas below are measured on top of them)
| File | main | head | delta | ceiling row |
|---|---|---|---|---|
| `execution-duties.md` (the home) | 20272 | 22158 | +1886 | 20277 →
22158 (+1881), raised by ruling record 7076315104 (Q10); the other 5
bytes are headroom main's row already had |
| `decision-analysis.md` | 4892 | 5023 | +131 | 4892 → 5023, raised by
addendum 7076338827 (Q14) |
| `SKILL.md` | 33865 | 33881 | +16 | 33872 → 33881 (+9), raised by
addendum 7076338827 (Q14: the exception on lines 277 and 284); the other
7 bytes are headroom main's row already had |
| `coordinator.md` | 4265 | 4230 | -35 | lowered to 4230 |
| `readings-session.md` | 4874 | 4828 | -46 | lowered to 4828 |
| `filing-gate.md` | 9101 | 9089 | -12 | lowered to 9089 |
| `dispatch-runbook.md` | 20354 | 20344 | -10 | lowered to 20344 |
| `lanes/skills.md` | 2666 | 2656 | -10 | lowered to 2656 |
| `seat-lifecycle.md` | 9076 | 9070 | -6 | lowered to 9070 |
| `triage-duties.md` | 13559 | 13544 | -15 | lowered to 13544 |
| `lanes/l2-review.md`, `lanes/security.md`, `lanes/server.md`,
`checklist-test/SKILL.md` | | | -2 each | lowered to the landed size |
| `os-dev.md` | 38845 | 38846 | +1 | 38848, unchanged |
| `area-lease.md`, `lanes/spec.md`, `seat-post-protocol.md` | | | 0 |
unchanged |
The home's raise of +1881 is the measured cost of the section: it takes
in the role, sub-agent and decision-thread values that lived in ten
other files, and spells out lines 1-3 and the renamed term so that no
line needs a second file to be read. The three raised rows quote their
ruling ids in the row comments. `docs/qa/platform-checklist/RUNNER.md`
has no ratchet row (88986 → 88872).
**Gates** (head bc2415b, which merges main ed33f8a and carries the
review round): the 51 commands `dispatch-gates.mjs --commands` derives
for this diff all exit 0, each code captured before any pipe.
`dispatch-gates.mjs --ran` reads the record as "51 derived, 51 run, 0
NOT-MEASURED, 0 UNRUN". `check:doc-formula-expressions` needs `turbo run
build --filter=@objectstack/formula --filter=@objectstack/lint` first
(run under the verify lock; without it the gate exits 3, nothing
measured). The phrase-pin self-tests the card names (`card-pick.mjs`,
`check-prior-rulings.mjs`, `fleet-roster.mjs`, `label-write.mjs`) exit
0. `overlap-check.mjs` at this head: clean, no open pull request shares
a file. Two merges of main: the first took one conflict, in the
ratchet's rows only (the four rows #36205 raised are re-measured on top
of its values); the second was clean.
**Read first** (by risk)
1. `references/execution-duties.md`, the `### 定档` section: lines 1-7
(the ceiling's two reasons and the mandated set) against Q8. A change in
meaning there is REWORK.
2. `SKILL.md` 277, 280 and 284: the Q14 exception, said on each line it
qualifies (review finding S1 of the contract review and item 1 of the L1
review, both folded in), and the 9-byte raise of that file's row.
3. `references/dispatch-runbook.md` 122-127: the contract line, the
derivation line, and the deleted third line.
**Two-minute check**: run `git grep -n -E 'xhigh|\bmax\b' --
.claude/skills/pm-dispatch .claude/agents/os-dev.md
.claude/skills/checklist-test/SKILL.md
docs/qa/platform-checklist/RUNNER.md` and expect the five lines listed
above.
## 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 and one data
table.)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [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>1 parent a57efde commit 124c934
20 files changed
Lines changed: 88 additions & 81 deletions
File tree
- .claude
- agents
- skills
- checklist-test
- pm-dispatch
- references
- lanes
- docs/qa/platform-checklist
- scripts/pm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| |||
273 | 274 | | |
274 | 275 | | |
275 | 276 | | |
276 | | - | |
| 277 | + | |
277 | 278 | | |
278 | | - | |
279 | | - | |
| 279 | + | |
| 280 | + | |
280 | 281 | | |
281 | 282 | | |
282 | | - | |
283 | | - | |
| 283 | + | |
| 284 | + | |
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
| |||
315 | 316 | | |
316 | 317 | | |
317 | 318 | | |
318 | | - | |
| 319 | + | |
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
| 126 | + | |
| 127 | + | |
129 | 128 | | |
130 | 129 | | |
131 | 130 | | |
| |||
140 | 139 | | |
141 | 140 | | |
142 | 141 | | |
143 | | - | |
| 142 | + | |
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
147 | 146 | | |
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
151 | | - | |
| 150 | + | |
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
| |||
0 commit comments