Skip to content

chore(pm): dispatch-gates --tier drops the spec-lane move; hand-off template, round length, ancestry pointers - #38146

Merged
os-zhuang merged 1 commit into
mainfrom
claude/issue-35237-slice8-pointer-edits
Nov 28, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/issue-35237-slice8-pointer-edits

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Part of #35237 (slice 8: carrier items 3, 5, 6 and 11; the card keeps its other items)

Clause-②: no
Metadata-protocol: none
Rule-change: none

维护者速读

  • 用户无感:车队内部工具的输出与几份派发规则参考页改了措辞,只有派发席位读到。
  • 属于「把手抄流程改成脚本」那张收口卡(第 8 片),替各席位把过时的说法对齐到现行席位规则。
  • 措辞错了只会误导席位读者,不影响任何产品行为,整个 PR 可直接撤回。
  • 无。

What changes

  • Item 3, scripts/pm/dispatch-gates.mjs. The --tier output no longer prints "a hit outside the spec lane is spec-lane work and moves there". With the domain seats retired, the clause-② note now says a contract-surface hit no longer moves the card and that build and review stay with the claiming seat; the suspicion line says the same ("both by the claiming seat"), and the CONTRACT_REVIEW_TIER docblock follows. Two self-test pins in dispatch-gates.self-test.mjs move to the new wording and pin the retired sentence absent.
  • Item 5 (and item 10's N6), scripts/pm/record-recognisers.mjs + references/contract-review.md. The Contract-review-handoff: template placeholder now offers the live target spellings, l2-review#N, repo:NAME#N and epic:#N#k, instead of the retired domain-seat spelling (still read by HANDOFF_TARGET, no longer offered). Template and rule text move in one edit; the verbatim pin holds. The comment on the constant is rewritten (N6), and a new self-test case fills in every target shape the template offers and reads it back through the reader.
  • Item 6, references/seat-lifecycle.md. The round rule line (开轮互斥) now carries the round length, 60 minutes, the number round-open.mjs reads as ROUND_MINUTES.
  • Item 11. cross-repo-coordination.md, lanes/security.md, readings-queue.md and readings-shell.md no longer spell raw merge-base --is-ancestor; each points at git-history.mjs ancestor.

Byte deltas on the ratcheted files (wc -c, base 0e36120 → head), all net ≤ 0, no ceiling row touched:

file before after delta
references/contract-review.md 6418 6418 0
references/seat-lifecycle.md 9054 9052 -2
references/cross-repo-coordination.md 4905 4903 -2
references/lanes/security.md 4240 4236 -4
references/readings-queue.md 9074 9067 -7
references/readings-shell.md 2492 2490 -2

Paid by deletion in the same file: contract-review.md drops 请谁 before the l2-review pointer; seat-lifecycle.md shortens "fire 开始、首个写动作之前" and the check-harness-current.mjs path; cross-repo-coordination.md folds the pin-sha clause and drops 那张; readings-shell.md drops 上 and rewords the 127 line's tail.

Read first, by risk:

  1. scripts/pm/dispatch-gates.mjs, tierLines (the clause-② note and the suspicion line): it is quoted into claim comments.
  2. scripts/pm/record-recognisers.mjs, CONTRACT_REVIEW_HANDOFF_TEMPLATE and the new self-test case after "the TEMPLATE sent verbatim is unreadable".
  3. references/seat-lifecycle.md line 5.

Tests

All readings on head 0148d307f0 (git rev-parse --short HEAD), after the last commit.

  • node scripts/pm/record-recognisers.mjs --self-test: exit 0, "467 cases pass" (the new template-shape case included).
  • pnpm check:pm-dispatch-gates: exit 0, "dispatch-gates self-test (fast tier): 2369 cases pass; 9 slow section(s) deferred" (the slow tier is CI's on schedule/push).
  • pnpm check:pm-prior-rulings: exit 0 ("round-open self-test: 37 cases pass across 6 batteries"): the round-open phrase pins on seat-lifecycle.md and contract-review.md still hold.
  • pnpm check:pm-skill-ratchet, check:pm-governed-prose, check:pm-skill-id-lint, check:pm-record-recognisers, check:pm-half-states, check:nul-bytes: exit 0 each.
Reverse verification (both new pins fail on the old text)
  • record-recognisers.mjs: in a throwaway worktree at this head, the template and its rule-text copy were put back to the retired domain-seat placeholder; the self-test went red on exactly the new case ("every target shape the TEMPLATE offers, filled in, READS"), 1 of 467, exit 1. Worktree removed.
  • dispatch-gates.mjs: the two rewritten pin expressions, evaluated against tierLines imported from this head and from base 0e361201: {"pin1":true,"pin2":true} on the head, {"pin1":false,"pin2":false} on the base.
Derived gate families (dispatch-gates --commands, 70 families)
  • 68 of 70 exit 0 on the first pass.
  • pnpm --filter @objectstack/lint run check:doc-formula-expressions: exit 3 PREREQUISITE NOT MET (formula and lint not built) on the first pass; after turbo run build --filter=@objectstack/formula --filter=@objectstack/lint under the verify lock (VERDICT command-exit 0), re-run: exit 0.
  • pnpm check:i18n-coverage: exit 3 PREREQUISITE NOT MET (the workspace CLI and 15 example/plugin packages not built). NOT MEASURED locally, reason: the build closure is unrelated to this diff (no i18n surface touched) and heavy on a shared box; declared narrowing, CI's Lint & Repo Gates runs it.
  • dispatch-gates --ran: "70 derived famil(ies) accounted for — 70 run".

Acceptance notes

  • Item 6 is half done on purpose. The round length now sits on the seat-lifecycle.md rule line. contract-review.md's 「一轮(约 60 分钟)」 stays, because round-open.mjs pins that phrase there (ROUND_PHRASE / CONTRACT_REVIEW_PATH, its self-test, and its docblock), and round-open.mjs is outside this slice (item 7). To finish item 6, the item-7 edit moves the pin to the seat-lifecycle.md line and then drops the figure from contract-review.md. Carrier: pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #35237.
  • Stale after this PR, outside the slice surface (carrier: pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #35237, not filed): references/execution-duties.md (强制条款② line) still says --tier 仍印 the spec-lane sentence as residual script wording, and that sentence no longer prints. scripts/pm/dispatch-gates.data.mjs (the clause-② docblock in the tier-glob header) still says a hit outside the spec lane is lane routing that moves there. references/area-lease.md (留道 line) still ranks the seat ahead of the --tier 提示 to move lanes, and that hint is gone too.
  • The old review#N and the retired domain-seat spelling are still READ by HANDOFF_TARGET; only the template stops offering the retired one. Reader behaviour is unchanged.
  • Rule-change: none: each edit makes the text match a rule or reading that has already landed (the retired domain seats, the hand-off reader's target set, ROUND_MINUTES, git-history.mjs ancestor). What an agent may do, and in what order, is unchanged. dispatch-gates.mjs keeps the whole PR at Tier H either way.
  • Not published: scripts/pm/** and .claude/** only. skip-changeset.

Verification

Two-minute check: node scripts/pm/dispatch-gates.mjs --tier packages/spec/src/data/filter.zod.ts prints "a contract-surface hit no longer moves the card — build and review stay with the claiming seat" and no "spec-lane work"; node scripts/pm/record-recognisers.mjs --self-test passes.


Generated by Claude Code

… at git-history

- dispatch-gates --tier: a contract-surface hit no longer moves the card;
  build and review stay with the claiming seat (docblock, clause-2 note,
  suspicion line, self-test pins).
- Contract-review-handoff template names the live target spellings
  (l2-review, repo, epic) in record-recognisers.mjs and contract-review.md;
  a self-test case reads every offered shape, filled in.
- seat-lifecycle.md round rule line carries the round length (60 minutes).
- Four references point ancestry reads at git-history.mjs ancestor.

Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 28, 2026
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation labels Nov 28, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW

Final green head for L1 · 2026-11-28T04:41Z · Head-sha 0148d307f05157221cd28d89f378ee2e850a6223

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · 0148d30 · 2026-11-28T04:43Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 0148d307f05157221cd28d89f378ee2e850a6223
Local-runs: none
Scope: .claude/skills/pm-dispatch/references/contract-review.md, .claude/skills/pm-dispatch/references/cross-repo-coordination.md, .claude/skills/pm-dispatch/references/lanes/security.md, .claude/skills/pm-dispatch/references/readings-queue.md, .claude/skills/pm-dispatch/references/readings-shell.md, .claude/skills/pm-dispatch/references/seat-lifecycle.md, scripts/pm/record-recognisers.mjs, scripts/pm/dispatch-gates.mjs + scripts/pm/dispatch-gates.self-test.mjs
Rule-change-verified: none

PR #38146 (slice 8 of card #35237: carrier items 3, 5, 6 and 11), net diff of the head against merge base 0e361201b2a6062cccaa1a2f7d37b82b3ed0465a: 9 files, +24/-19. Read: the card body and all of its comments, the PR body, the file list, the net diff, the check-runs on the head, and the cited code in the head tree through git show (no checkout, nothing run).

Check-runs on the head: 49 runs, 26 success, 23 skipped, 0 failed, 0 pending. Success includes Lint & Repo Gates, Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, TypeScript Type Check, Test Core, Check Changeset, PR-body guards and Governed Surface Queue Guard.

① Derived judgments

  • Hand-off reader accept set: unchanged — right. HANDOFF_TARGET and readContractReviewHandoff are not in the diff. The reader still takes l2-review#N, review#N, repo:NAME#N, epic:#N#k and the retired domain:LANE#N. Only the writer-facing CONTRACT_REVIEW_HANDOFF_TEMPLATE changes; it now offers three spellings, each of which the regex on the head reads (checked by hand against the pattern: l2-review#2, repo:objectstack#2, epic:#35205#1). No line a seat already posted becomes unreadable.
  • Template and rule text move together — right. contract-review.md:23 carries the new template byte for byte in a code span; the existing verbatim pin holds it, and the new self-test case reads every offered shape back through the reader.
  • --tier printed text: one sentence replaced in the clause-② note and one in the suspicion line — right. No script parses those sentences: across scripts/, .github/ and .claude/ the retired strings survive only as absence pins in the self-test and in the dispatch-gates.data.mjs docblock (carrier item 18). The MANDATORY lines that coordinator.md and execution-duties.md order quoted are untouched, so the tier derivation, the mandate rows and the suspect table are the same.
  • Published surface: none. scripts/pm/** and .claude/** only; no package, no schema, no export.
  • Byte ratchet: right. Measured with git cat-file -s on base and head: contract-review 6418 → 6418, seat-lifecycle 9054 → 9052, cross-repo-coordination 4905 → 4903, lanes/security 4240 → 4236, readings-queue 9074 → 9067, readings-shell 2492 → 2490. All at or under their ceiling rows; no row moved.

② Semver level

  • No published package is touched, so skip-changeset is right; Check Changeset is green on the head.
  • Clause-②: no is right. The diff widens no published accept set and no public surface, and narrows none.
  • Metadata-protocol: none is right.

③ Boundary flags

  • open_questions in os-dev-report 7234029267 is empty. Nothing to escalate.
  • Dev flag, item 6 half done: confirmed and accepted. round-open.mjs:112 pins ROUND_PHRASE = 「一轮(约 60 分钟)」 in contract-review.md (self-test at :647), and round-open.mjs is fenced out of this slice. The figure on seat-lifecycle.md:5 is the number ROUND_MINUTES (:97) already reads. The remainder is carrier item 16 on the card.
  • Dev flags, stale text outside the slice: confirmed in the head tree and carried as items 17–19 in card comment 7234043631 (execution-duties.md:104, dispatch-gates.data.mjs:1578, area-lease.md:47). None is in this diff.
  • Dev flag, check:i18n-coverage not measured locally: answered by CI, Lint & Repo Gates is green on the head.
  • Rule change: the PR body declares Rule-change: none, and the diff bears it out hunk by hunk.
    • --tier wording: copies rule text already on main. execution-duties.md:104 reads 「不再移卡,开发与审核留接卡席」 and already calls the old sentence leftover script wording; area-lease.md:47 and cross-repo-coordination.md:41 say the same. The script now prints what the rule says.
    • Hand-off template: the rule on contract-review.md:22 (hand to an L2 seat, else a sibling seat that can reach the tier) is unchanged. Only the spelling of the sibling seat follows the seat grammar the reader has taken since PR feat(pm): round-open.mjs and check-handover --inflight read the round-open mutex and the in-flight check #37878.
    • Round length: seat-lifecycle.md:5 names 60 minutes, the value round-open.mjs (the line's own named reading) already enforces. The self-exit rule and its order are unchanged.
    • Ancestry pointers and the byte-paying rewordings: a named script replaces a hand-typed command; each rule sentence is kept.
    • No hunk changes what an agent may do without the maintainer, what is done or in what order, or what must go to him.
  • SQL push-down: not applicable. The diff holds no data access, no id materialisation and no join.

④ Design judgment

No must-fix, no should-fix.

Per file:

  • scripts/pm/dispatch-gates.mjs — holds. The clause-② note, the suspicion line and the CONTRACT_REVIEW_TIER docblock now agree with each other and with execution-duties.md:104. Tried to break it against the hand-off closed set on area-lease.md:47 (another seat's claim, cloud routing, disclosure cards, ADR): none of those is triggered by a contract-surface hit, so the unconditional sentence does not overreach. The narrowing clause (「stays in its lane」) is untouched and matches execution-duties.md:107.
  • scripts/pm/dispatch-gates.self-test.mjs (implementing) — agrees. Both rewritten cases pin the new sentence present and the retired one absent, on the plain and the mandatory rendering and on the suspicion rendering; the surrounding retired-key comments still describe the cases beside them.
  • scripts/pm/record-recognisers.mjs — holds. The rewritten docblock on the template is now true sentence by sentence: the verbatim pin ties rule text to the constant, the old review#N and the retired domain spelling are read and not offered, and the new case fills each placeholder shape and reads it through readContractReviewHandoff (target, lower-cased, and head). The case's fill maps each of the three shapes to a line the regex accepts; a fourth shape added without a reader arm turns it red.
  • references/contract-review.md — holds. Line 23 equals the constant. Line 21's 「(照 lanes/l2-review.md)」 still points at the file whose 〈路由〉 section says which review seat to ask first; nothing is lost with 请谁.
  • references/seat-lifecycle.md — holds. 「fire 后首个写动作前」 keeps the meaning; every phrase in LIFECYCLE_PHRASES (round-open.mjs:101-109) is still present on the head; check-harness-current.mjs exists at scripts/pm/ and is named bare like its neighbours.
  • references/cross-repo-coordination.md — holds. git-history.mjs ancestor --commit=SHA --ref=SHA is the CLI's own spelling (git-history.mjs:17, :1095); --ref resolves any commit, so a pin sha works. A shallow checkout now gets a refusal (exit 2) where raw git gave a false no, which is the stricter side for 「不过 ⇒ 改指 pin-bump 卡」.
  • references/lanes/security.md — holds. A tag commit is a valid --ref; the ⛔ line on merge time versus tag time is unchanged.
  • references/readings-queue.md — holds. With --ref omitted the default is origin/main (git-history.mjs:288), and the tool prints lower-case no for a squash-landed PR head in a complete clone; the lesson (read by content, never by head ancestry) stands.
  • references/readings-shell.md — holds. Trap ④ keeps both failure modes; the reworded 127 line keeps its claim.

Nits (no effect on correctness or the contract; none needs a new head):

  • N1 (nit) — execution-duties.md:104 still says --tier 仍印 the spec-lane sentence; after this PR it does not. Its operative clause stays right. Already carrier item 17 on the card; dispatch-gates.data.mjs:1578 (item 18) and area-lease.md:47 (item 19) are the same family.
  • N2 (nit) — 「no longer moves the card」 is worded against the retired rule; once the old sentence is forgotten, 「does not move the card」 says the same. The self-test pins the current words, so a change rides the next opening of this file.
  • N3 (nit) — the suspicion line's 「both by the claiming seat」 and the note's 「build and review stay with the claiming seat」 leave out the hand-off to an L2 seat when the tier cannot be reached. That route lives only in contract-review.md by its own rule, and the wording copies execution-duties.md:104, so nothing is wrong; a reader of the hint alone does not learn of the route.
  • N4 (nit) — record-recognisers.mjs: the title of the verbatim-pin case still ends 「the template and HANDOFF_TARGET cannot drift apart」, the claim the docblock was just corrected away from; the new case is what makes it true. The neighbouring title 「the closed set of two shapes」 predates this PR.
  • N5 (nit) — readings-shell.md:11 names git-history.mjs ancestor after two failure modes; the rev-list --count one is answered by the same script's count, not by ancestor. Naming the script without the subcommand would cover both and cost fewer bytes.
  • N6 (nit) — seat-lifecycle.md:5 says 「一轮 60 分钟」 while contract-review.md:25 says 「约 60 分钟」 and SKILL.md:73 defines 一轮 as fire to queue empty. The parenthesis reads as the threshold of this line and matches the script exactly; item 16 already carries the contract-review.md side.

Implemented-by: claude/issue-35237-slice8-pointer-edits
Reviewed-by: session_016WV4czzx9dtSEm3jWWL9c3

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

L1 verdict (L1-a): ACCEPT at head 0148d307f05157221cd28d89f378ee2e850a6223 (Part of #35237, slice 8). Full read.

Review summary

Shape and gates.

  • l1-face --pr 38146: CLEAN, 13 items, none flagged. Check-runs: 26 success, 21 expected skip, 0 failed, 0 pending.
  • 9 files, +24/-19.
  • GOVERNED: 8 of 9 paths hit the register (.claude/** six times, record-recognisers.mjs, dispatch-gates.mjs). The landing tier is H, so a human merge or an authorized APPROVED review comes first, and then the seat lands it.
  • The contract-tier record is 7234271222: PASS, tier verified, Rule-change-verified: none, no must-fix and no should-fix.

Read against the claim.

  • dispatch-gates --tier drops the retired move-to-the-spec-lane sentence from both renderings. The self-test asserts the new sentence and the absence of the old one. The wording copies the rule already on main in execution-duties.md, so this is no rule change.
  • The hand-off template offers only the live target spellings: an L2 seat, a repo seat and an epic seat. The new self-test fills each placeholder and reads it back through the unchanged HANDOFF_TARGET, so nothing already posted becomes unreadable. contract-review.md carries the same line verbatim.
  • The four ancestry pointers now name git-history.mjs ancestor with its real flags, in place of the shallow-checkout-unsafe git merge-base --is-ancestor.
  • The round figure (60 minutes) matches ROUND_MINUTES in round-open.mjs.
  • The other edits are wording-only trims. The PR body's byte deltas on the ratcheted files match the blobs.

Nits, optional. These are N1 to N6 of the record, and none needs a new head. N1 (execution-duties.md still says --tier prints the old sentence) is already a carrier item on #35237. N4 is a self-test title that still claims the template and HANDOFF_TARGET cannot drift apart; it is worth folding into the next slice.

Landing rule B: this is Part of #35237, so the card keeps pm:dispatched.

Next: Tier H, governed. It goes to seat 1 for the human merge or the authorized approval and then the landing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

Seat record · 2026-11-28T04:49Z · PR #38146 (Part of #35237) · head 0148d307f05157221cd28d89f378ee2e850a6223 · governed .claude/**, scripts/pm/dispatch-gates.mjs — Tier H

维护者速读

  • 做什么:车队内部工具的输出和几页派发规则参考改了措辞,把已撤掉的「领域席位」说法对齐到现行规则,只有派发席位会读到。这是「把手抄流程改成脚本」那张卡(pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #35237)的第 8 片。
  • 风险:9 个文件 +24/−19,只动派发技能参考页和两个车队脚本的提示文字,不碰产品行为;受字节上限约束的文件都没变大。
  • 要你做什么:审批人批准即可。契约审核 PASS 7234271222,Head-sha 0148d307f05157221cd28d89f378ee2e850a6223;批准后座位自主落地。
  • 不批会怎样:席位继续读到已经过时的说法(比如「领域席位」的写法、手写 git 命令),容易照着旧规则做事。

Seat opinion: land.

席位核对 — ACCEPT · repo:objectstack#1 · head 0148d307f0

  1. Shape. Draft, base main, 9 files (+24/−19): six .claude/skills/pm-dispatch/references/*.md pages, scripts/pm/dispatch-gates.mjs and its self-test, scripts/pm/record-recognisers.mjs. Body: Part of #35237 (slice 8: items 3, 5, 6, 11), Clause-②: no, Metadata-protocol: none, Rule-change: none. Governed .claude/** and dispatch-gates.mjs ⇒ Tier H.
  2. Premise measured. Per the records: wording and template spellings only, aligned to the current seat rules; Rule-change-verified: none. Every ratcheted file's byte delta is ≤ 0 and no ceiling row moves.
  3. Gates (check-runs at this head). 26 success, 23 skipped, 0 failed. mergeable clean.
  4. Accepted deviations. Six nits, none owed.
  5. Out of scope → where it went. pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #35237's other items stay on the card, which keeps pm:dispatched (landing rule B). Under the maintainer's 2026-11-28 line 「fleet 只处理 p1」 this p1 slice finishes; no new fleet card is claimed for the nits. Security-touching: no.
  6. Landing terms. L1-a ACCEPT 7234278277 + contract review PASS 7234271222 (CONTRACT_REVIEW_TIER, same head) ⇒ ②③ in one --handoff stroke. After an authorised APPROVED, seat 1 lands it (maintainer's seat-thread line 2026-11-26T13:33Z 「审批人批准后的 Tier H PR 你可以自主落地」). A head move other than a clean main merge withdraws the hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

Approval request · governed .claude/** + scripts/pm/dispatch-gates.mjs (Tier H) · PR #38146 (Part of #35237) · head 0148d307f05157221cd28d89f378ee2e850a6223

@os-zhuang: slice 8 of #35237. Fleet tool output and six pm-dispatch reference pages drop wording from the retired domain-seat layout: the spec-lane move in dispatch-gates --tier, the hand-off template's target spellings, the round length, and raw merge-base --is-ancestor replaced by git-history.mjs ancestor. No ratcheted file grows. Records on this head:

  • L1-a ACCEPT 7234278277
  • contract review PASS 7234271222 (CONTRACT_REVIEW_TIER)
  • seat record ACCEPT above

Every check is green or expected-skip. An APPROVED review on this head lets seat repo:objectstack#1 ready and land it; nothing else is asked.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 28, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 28, 2026 04:52
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit f496576 Nov 28, 2026
55 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-35237-slice8-pointer-edits branch November 28, 2026 05:31
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 28, 2026
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
… --tier lane wording dropped (objectstack-ai#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 objectstack-ai#35237 (slice 9: carrier items 16–19 and L1 N4 of PR objectstack-ai#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 objectstack-ai#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 objectstack-ai#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 objectstack-ai#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 objectstack-ai#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>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…e probe rule (objectstack-ai#35237 slice 13) (objectstack-ai#38393)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XHogQ9ogKPxHhiFfT2UQgJi)_

Fixes objectstack-ai#35237
Claim on the card naming this branch: 7247494260 (slice 13; base claim
7245952141).
Clause-②: no
Metadata-protocol: none
Rule-change: none

## 维护者速读

- 用户无感:车队开发代理用的内部脚本和开发代理规则里的一行命令写法做了收尾修整,推送前后的行为对用户不可见。
- 属于「车队技能整理」里「把每次手敲的流程改成脚本」这一步,本次清掉这一步最后几项遗留小问题,做完后这一步可以关闭。
- 最坏情况是开发代理推送遇到超时、限流类错误时多重试几次(有固定上限)或照旧提前停下;一个提交即可整体撤回。
- 无

Slice 13 of the card: carrier item 24, the rule half of item 14 N7, and
items 26–29 (notes 7246458172 and 7246788470), plus the card's done-when
check below. 6 files, +54 / −16.

| Item | Where | What changed |
|:---|:---|:---|
| 24 | `scripts/pm/check-owed-reviews.mjs:140` | "The name is kept:
importers read it" was false (nothing imports `TRIAGE_ROUND_MINUTES`).
It now says the name is kept because this file reads it, in the trigger
(b) docblock and `owedReviewRow`, and that nothing imports it. Comment
only. |
| 14 N7 (rule half) | `.claude/agents/os-dev.md:31` | The probe command
now spells `--branch=BRANCH`, so it runs as written instead of ending in
a usage exit. Bytes are offset on the same line (see Acceptance notes).
|
| 14 N7 (ratchet) | `scripts/pm/check-skill-line-ratchet.mjs` | The
`os-dev.md` row is lowered 33500 → 33492, the landed size. No row
raised. |
| 26 | `scripts/pm/dev-worktree.sh` `classify_push_failure` | A new arm,
ahead of the 4xx arm and keyed exactly as it is, reads 408, 421, 429 and
every 5xx as `network`. "Received HTTP code 502 from proxy after
CONNECT" is now placed. The comment now says why. 5 classifier cases;
floor 14 → 19. |
| 27 | `scripts/pm/dev-worktree.sh` `rerun_with_probe` | A flag made
only of characters no shell reads specially is printed as typed
(`--backoff=2,4`). Any other flag is still quoted with `printf %q`. The
pinned line now carries `--backoff=2,4`. One round-trip case; floor 20 →
21. |
| 28 | `scripts/pm/git-history.mjs` self-test | The case titled "a
problem the CLI refuses as usage" now asserts through the CLI: `ancestor
--cwd=` pointed at a missing directory exits 1, prints nothing on stdout
and says "could not be checked" on stderr. |
| 29 | `scripts/pm/check-handover.mjs` `--inflight` clear line | The
line now names the unjudged case: "a claimed path fragment deeper inside
a dispatched directory, spelled DIR, DIR/** or DIR/**/GLOB alike". It is
pinned in the N12 case. |

### Why 408, 421 and 429 are network errors under rule 1
(`os-dev.md:33`, only a network error is retried)

The rule separates two kinds of failure. A refusal on the merits stops
the run (403, and every other judged 4xx). A failure of the path is
retried on a bounded schedule. Each of these three statuses says the
path failed and says nothing about the push itself:

- **408 Request Timeout.** The server closed the connection because the
request did not arrive whole in time. It is the same event as the
`Operation timed out` the classifier already retries; this time the
server noticed the timeout first.
- **421 Misdirected Request.** The request reached a connection that
cannot answer for this host, usually a reused HTTP/2 connection or a
proxy route. It describes the connection, not the request, and the
retry's new connection is the fix.
- **429 Too Many Requests.** The path is throttled for now. HTTP's own
remedy is to wait and retry, and the backoff schedule is that wait: four
retries, 30 s in all, never a loop.

All three read `network` before objectstack-ai#38387 (through the words "RPC failed").
This PR restores that reading and keeps 401, 404, 407 and 409 as
`other`. Every 5xx already read `network` in the `error:` and `HTTP`
spellings. The new arm adds the key words the 4xx arm uses (`status`,
`code`, `response`, `HTTP/N`), so a proxy's "Received HTTP code 502"
reads the same way.

### Done-when check, item by item

The card's done-when: each listed procedure is a script with a
self-test, its prose is a one-line pointer, and the card-pick reader
works against the live board. The closing check also asks that no
carrier item stays open apart from item 7 option B, which landing ruled
out of scope (7222751511 ③).

| Part | State | Evidence |
|:---|:---|:---|
| Slice 1: card-pick, lock depth, prior-rulings `--paths` | landed | PR
objectstack-ai#35482 |
| Slice 2: `landing-k`, `pr-state`, `sweep-closed-cards --pr` | landed |
PR objectstack-ai#35576 |
| Slices 3, 5, 6: `fleet-roster --health`, the dispatch-runbook pointer,
`l1-face` | landed | PR objectstack-ai#35671 |
| Slice 4: `check-handover --inflight`, `round-open` | landed | PR
objectstack-ai#37878 |
| Slice 7: `git-history ancestor`, `dev-worktree.sh` | landed | PR
objectstack-ai#38018 |
| Card-pick against the live board | works | `node
scripts/pm/card-pick.mjs --order area:fleet --seat repo:objectstack#5
--limit 3` at 23:04Z: read 231 open `pm:queue` issues over 3 pages, the
platform counts 231, `card-pick COMPLETE — 3 pick(s)`, exit 0 |
| Carrier items 1, 2 | done | slice 4 (landing note 7226135228) |
| 3, 5, 6, 11 (10's N6 too) | done | slice 8, PR objectstack-ai#38146 |
| 16–19 | done | slice 9, PR objectstack-ai#38212 |
| 4, 12, 13, 15 | done | slice 10, PR objectstack-ai#38222 |
| 20–22 | done | slice 11, PR objectstack-ai#38243 |
| 7 N11, 9, 14 N3/N5/N6 and N7's script half, 23, 25 | done | slice 12,
PR objectstack-ai#38387 |
| 24, N7's rule half, 26–29 | done | this PR |
| 8, 10 | owe nothing | listed for completeness and accepted as
deviations (7222785044) |
| 7 option B | out of scope | landing kept option A (7222751511 ③) |

Each part holds as far as it can be measured, so the first line is
`Fixes objectstack-ai#35237`. One limit: the review reports' section 4, the candidate
list the card names, cannot be read from this project, and slice 3's
claim (7022183772) recorded the same gap. "Each listed procedure" is
therefore checked against the slice plan in claim 7006559529, amendment
7013022048 and release 7017468070. If the seat holds a section-4
candidate outside that plan, the first line should become `Part of`.

## What changes

The four scripts and one comment above, one rule line and one ratchet
row. Nothing here ships in a package.

## Tests

All runs are at head `084b6dba7a`.

<details><summary>Self-tests of every script edited</summary>

- `bash scripts/pm/dev-worktree.sh --self-test`: `✓ dev-worktree
self-test: 95 cases pass across 7 batteries` (89 before: 5 classifier
cases and 1 probe case added).
- `node scripts/pm/git-history.mjs --self-test`: `git-history
--self-test: all cases passed.`
- `node scripts/pm/check-handover.mjs --self-test`: `✓ check-handover
self-test: 114 cases pass`.
- `node scripts/pm/check-owed-reviews.mjs --self-test`: `✓
check-owed-reviews self-test: 96 cases pass in 10 batteries`.
- `node scripts/pm/check-skill-line-ratchet.mjs --self-test`: `116 cases
pass`. The gate itself exits 0.

</details>

<details><summary>Ablations (scripts/ablation-replace.mjs; each mutation
was proven on disk and the restore proven blob == HEAD with an empty git
diff HEAD)</summary>

- A1 `(408|421|429|5[0-9][0-9])` → `(5[0-9][0-9])` in the new arm: 3 of
95 red, the 408, 429 and 421 cases.
- A2 `(408|421|429|5[0-9][0-9])` → `(408|421|429)`: 1 of 95 red, the
proxy CONNECT 502 case.
- A3 the as-typed branch of `rerun_with_probe` back to `printf %q`: 2 of
95 red, the pinned second-run line and the round-trip case.
- A4 the `--inflight` clear line back to its old text: 1 of 114 red, the
N12 case.
- A5 the CLI's usage refusal skipped for a "could not be checked"
problem: 1 red, the item 28 case, through its CLI half alone (the direct
calls stay green).

</details>

<details><summary>Classifier false-match probe (the shapes record
7246776227 tried against the 4xx arm, run against the new arm, at this
head and at the merge base)</summary>

A port (`port 429`, `github.com:502`), an errno (`errno 408`,
`errno=502`), an OpenSSL code (`error:0A000126`, `error:42900000`), a
byte count (`408 bytes`, `Total 429`, `(502/502)`) and an HTTP/2 stream
number (`HTTP/2 stream 421`, `stream 503`) read the same at head as at
base. Only two answers moved: `RPC failed; HTTP 429` and `Received HTTP
code 503 from proxy after CONNECT`, both from `other` to `network`.

</details>

## Acceptance notes

- **os-dev.md byte offset.** Adding `--branch=BRANCH ` costs 16 bytes
against 9 bytes of headroom. The same line drops 「建好分支后」 (15 bytes), so
the file lands at 33492 (+1 against main's 33491), within the 33500
ceiling. The row is then lowered to 33492. The rule is unchanged: the
timing it sets is still 「任何编辑前」, and the one command now builds the
branch and sends the probe in a single run. `BRANCH` is the placeholder
the file already uses three lines up (`Resume-from: BRANCH@SHA`). The
edit stays one line, adding one argument, with the offset on the same
line.
- **The old 5xx alternative is kept.** The case-insensitive
`(error:|HTTP)[ :]+5xx` alternative stays in the transport-words arm, so
no spelling that read `network` before reads anything else now.
- **`check-owed-reviews.mjs` keeps `export`.** Nothing imports the name,
and the sentence now says so. Removing the export would be a surface
change this item did not ask for.

## Verification

Read first, by risk: `scripts/pm/dev-worktree.sh` (the new arm in
`classify_push_failure`, then `rerun_with_probe`),
`.claude/agents/os-dev.md:31`, `scripts/pm/git-history.mjs` (the item 28
case).

Two-minute check: `bash scripts/pm/dev-worktree.sh --self-test` should
print `95 cases pass across 7 batteries`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn)_

<!-- signed: repo:objectstack#5 · os-project-manager ·
session_01FEkQ5oPfjnm2yWHEwkiYrn -->

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants