Skip to content

chore(pm): round length pinned on the seat-lifecycle rule line; stale --tier lane wording dropped - #38212

Merged
os-zhuang merged 1 commit into
mainfrom
claude/issue-35237-slice9-residue
Nov 28, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/issue-35237-slice9-residue

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Part of #35237 (slice 9: carrier items 16–19 and L1 N4 of PR #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 chore(pm): dispatch-gates --tier drops the spec-lane move; hand-off template, round length, ancestry pointers #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 chore(pm): dispatch-gates --tier drops the spec-lane move; hand-off template, round length, ancestry pointers #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 chore(pm): dispatch-gates --tier drops the spec-lane move; hand-off template, round length, ancestry pointers #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.
Ablation of the round-length pin (the rule text's number changed on disk, then restored)

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:

ablation-replace: anchor   x1 -> x0
ablation-replace: replace  "(一轮 45 分钟)"  x0 -> x1
ablation-replace: ok mutation landed: anchor 1 -> 0, blob 42c56fa9d786 -> 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 (42c56fa9d786) and `git diff HEAD` is empty

Red as expected, then restored. A re-run on the restored tree is green (38/38).

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 pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #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

… --tier lane wording dropped

round-open.mjs reads ROUND_MINUTES out of seat-lifecycle.md's round rule
line instead of contract-review.md's phrase, and contract-review.md drops
the figure. execution-duties.md, area-lease.md and the tier-glob docblock
in dispatch-gates.data.mjs stop naming the retired spec-lane move. The
record-recognisers self-test title says what the case asserts.

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-28T07:35Z · Head-sha 7b89373f3a98df4913f09403d5ebc179ba720b10

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · 7b89373 · 2026-11-28T07:41Z

@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: 7b89373f3a98df4913f09403d5ebc179ba720b10
Local-runs: none
Scope: .claude/skills/pm-dispatch/references/area-lease.md, .claude/skills/pm-dispatch/references/contract-review.md, .claude/skills/pm-dispatch/references/execution-duties.md, scripts/pm/record-recognisers.mjs + scripts/pm/round-open.mjs, scripts/pm/dispatch-gates.data.mjs
Rule-change-verified: none

PR #38212 (Part of #35237, slice 9: carrier items 16–19 and L1 N4 of PR #38146). Read: card #35237 body and all 37 comments, the PR body, its 6-file list, the net diff of the head against merge base e3bdc748841f8ec72aedc3d795227273f25c6baa (+14/-12), and the check-runs on the head. The whole diff is in scope (4 hits + 2 implementing files); there is no remainder for a separate ACCEPT.

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

Rule-change, verified hunk by hunk against the diff (the PR body declares Rule-change: none):

  • area-lease.md 留道: drops 「与 --tier 提示」 from the precedence clause. At the head tierLines in scripts/pm/dispatch-gates.mjs (:13506, :13517) prints that a contract-surface hit no longer moves the card, so there is no lane-move hint left for 留道 to outrank. The rule (修法已清的卡留本席开发、本席 L1/L2; the closed hand-over set) is byte-identical.
  • contract-review.md trigger (b): 「已等满一轮(约 60 分钟)」 becomes 「已等满一轮」. The length is unchanged: seat-lifecycle.md:5 spells 「一轮 60 分钟」 and check-owed-reviews.mjs still reads (b) at 60 minutes. Who reviews, when, and what goes to the maintainer are unchanged.
  • execution-duties.md 强制条款②: drops the aside that --tier still prints the spec-lane sentence. The rule sentence 「默认判断档施工;不再移卡,开发与审核留接卡席」 is kept whole.
    No hunk alters what an agent may do without the maintainer, what gets done or in what order, or what must go to him. These are wording and slimming.

① Derived judgments

  • Published accept sets and public surface: none touched. Every path is .claude/** or scripts/pm/**; no package, schema or exports map is in the diff. Clause-②: no is right.
  • scripts/pm/round-open.mjs module surface: ROUND_PHRASE and CONTRACT_REVIEW_PATH are removed, ROUND_RULE and roundMinutesOfRule are added. Right: at the head no file in the tree imports or names the two removed exports (the only remaining names are in round-open.mjs itself), and the script is unpublished tooling.
  • The round-length pin's accept set changes, and the change is right. Before: contract-review.md had to contain a fixed phrase, and the second leg compared two constants of the same file to each other, so it could not go red on a changed rule. After: seat-lifecycle.md must spell 「一轮 N 分钟」 exactly once and N must equal ROUND_MINUTES. A changed figure, a second spelling, or a respelled line (no match, reads []) each fail the case. That is stricter and fails closed.
  • record-recognisers.mjs: one self-test title string. No recogniser, template or constant changes; the accept set of every reader is unchanged.
  • dispatch-gates.data.mjs: one docblock sentence. No glob, pin or table row changes.

② Semver level

Clause-②: no — nothing published changes, so no changeset is owed. The PR carries skip-changeset, and Check Changeset succeeded on the head. Level: none. This matches what the diff publishes (nothing).

③ Boundary flags

  • Dev report 7235804265: open_questions is empty; security_findings none. Nothing to answer or escalate.
  • Out-of-scope finding 1 (scripts/pm/check-owed-reviews.mjs:138 keeps TRIAGE_ROUND_MINUTES = 60 with a comment quoting the phrase this PR removes): confirmed at the head. It is outside the diff and outside the claim's fence, and it is carried as item 20 on pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #35237 (comment 7235828687). Answered: the carrier is the right place. It is not a regression of this PR, because that constant was unpinned before it too.
  • Out-of-scope finding 2 (nothing pins contract-review.md against a figure coming back): accepted as stated. The byte ratchet (file at 6403, ceiling 6419) is the only brake; a new gate for it is not owed by this slice.
  • The claim's fences held: SKILL.md, AGENTS.md, check-skill-line-ratchet.mjs, os-dev.md and item 7 option B are not in the diff. No ceiling row moved (area-lease 6565 of 6586, execution-duties 22226 of 22307).
  • SQL push-down: not applicable. The diff has no data access, no id materialisation and no join.

④ Design judgment

contract-review.md (hits). Accepted against carrier item 16 and the L2 record's ③ in 7214100600 (the number lives on the seat-lifecycle.md rule line). Trigger (b) holds against the code it is read by: check-owed-reviews.mjs:358 fires (b) once the wait reaches TRIAGE_ROUND_MINUTES, 60, the same number seat-lifecycle.md:5 now carries alone. The order item 16 asked for (pin moved before the figure is dropped, one PR) is what the diff does. The verbatim hand-off template on line 23 is untouched, so the record-recognisers case that reads it still holds.

execution-duties.md (hits). Accepted against carrier item 17. The dropped clause described script output that no longer exists: git grep at the head finds no spec-lane or "moves there" sentence in dispatch-gates.mjs or dispatch-gates.data.mjs. The remaining line agrees with what --tier prints (:13506) and with the neighbouring line 107 (收窄卡不移车道).

area-lease.md (hits). Accepted against carrier item 19. Tried to break it: --tier still prints a clause-② SUSPECT hint, so is a hint that 留道 must outrank being un-ranked? No. That hint at the head (:13517) says build and review are both by the claiming seat, which is 留道's own answer, so no precedence is needed. The kept reference to domains/spec.md still resolves (the file exists at the head and opens with 域席已退役).

record-recognisers.mjs (hits). Accepted against L1 N4 of PR #38146. The new title says what the case asserts: the case checks only that contract-review.md carries CONTRACT_REVIEW_HANDOFF_TEMPLATE verbatim in a code span and that the template starts with the key. The case it points at exists two lines below (its title starts "every target shape the TEMPLATE offers, filled in, READS") and does read each shape back through the reader. No battery floor counts titles.

round-open.mjs (implementing). Sentence by sentence against seat-lifecycle.md:5, 「未收班活动任一未满一轮 ⇒ 自退(一轮 60 分钟);现读 round-open.mjs」:

  • The docblock (:43) and the ROUND_MINUTES comment (:96) name that line as the source, and the quoted spelling matches the file.
  • roundMinutesOfRule uses matchAll, which works on a copy of the regex, so the exported /g constant keeps no state between calls here.
  • Line 88 of seat-lifecycle.md (「一轮 ≥ 半数派发失败」) does not match the pattern, so "spelled once" holds on the live text: the reading is [60].
  • The second case is not a tautology: with the rule text at another figure, the replace finds nothing and the first case alone goes red, which is what the PR body's ablation shows (1 of 38). Its second half proves a line without the spelling reads none.
  • The battery floor 2 to 3 equals the three cases the battery registers.

dispatch-gates.data.mjs (implementing). The new docblock sentence agrees with tierLines word for word in substance ("no longer moves the card", "build and review stay with the claiming seat") and with the CONTRACT_REVIEW_TIER docblock in dispatch-gates.mjs:13270-13273. "As --tier says" is true at the head.

No must-fix, no should-fix.

N1 (nit) — The PR body and the L1 note say the round figure now lives on one rule line only. In the tree, references/landing-operations.md:93 still spells 「一轮分诊(~60 分钟)」, in a form ROUND_RULE does not read. It is a different rule (约定③) and outside this slice, so the diff is right as it stands. Add it to carrier item 20, so that item covers both remaining copies.
N2 (nit) — contract-review.md (b) now says 一轮 with no figure and no pointer to where the length is written. The byte budget explains it, and check-owed-reviews.mjs prints the waited minutes on every row. If item 20 imports ROUND_MINUTES, the reader is covered. Left as an accepted deviation.
N3 (nit) — ROUND_RULE is exported with the g flag. An importer calling .test() on it would carry lastIndex between calls. Nothing imports it today. Left for the file's next edit.

Independence: the diff was produced by session_016WV4cxRDKprCtjpEdtiPFW on the branch below. This record is rendered by a different session, from the card, the PR and the check-runs alone. Nothing was built, run or re-run.

Implemented-by: claude/issue-35237-slice9-residue
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 7b89373f3a98df4913f09403d5ebc179ba720b10 (Part of #35237, slice 9: carrier items 16 to 19 and N4 of #38146). Full read.

Review summary

Shape and gates.

  • 6 files, +14/-12. Check-runs: 26 success, 0 failed, 0 pending.
  • GOVERNED Tier H (.claude/** and scripts/pm/**).
  • At-tier record 7236166019 is PASS, tier verified. It reads Rule-change-verified: none and has no must-fix and no should-fix.

Read against the claim.

Nits, optional. None of these needs a new head.

  • N1: references/landing-operations.md line 93 still spells a round figure. Fold it into the next carrier item.
  • N2: trigger (b) in contract-review.md now carries no pointer to where the length lives.
  • N3: the exported ROUND_RULE has the g flag, so an importer calling .test() would carry state. Nothing imports it today.

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

Next: Tier H, so it goes to seat 1 for the human merge or an authorized approval, then the landing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Seat record · 2026-11-28T07:49Z · PR #38212 (Part of #35237) · head 7b89373f3a98df4913f09403d5ebc179ba720b10 · governed .claude/**, scripts/pm/** — Tier H

维护者速读

Seat opinion: land.

席位核对 — ACCEPT · repo:objectstack#1 · head 7b89373f3a

  1. Shape. Draft, base main, 6 files (+14/−12): three .claude/skills/pm-dispatch/references/*.md pages, scripts/pm/dispatch-gates.data.mjs, scripts/pm/record-recognisers.mjs, scripts/pm/round-open.mjs. Body: Part of #35237 (slice 9: items 16–19 and L1 N4 of chore(pm): dispatch-gates --tier drops the spec-lane move; hand-off template, round length, ancestry pointers #38146), Clause-②: no, Metadata-protocol: none, Rule-change: none. check-governed-merges reads the .claude/** split as Tier H.
  2. Premise measured. Per the records: wording and one self-test pin only. The round-length pin moves to the round rule line in references/seat-lifecycle.md, and the contract record reads Rule-change-verified: none. Ratcheted byte deltas −15/−55/−19; no ceiling row moves.
  3. Gates (check-runs at this head). 26 success, 23 skipped, 0 failed. mergeable clean. landing-k K = 3.
  4. Accepted deviations. 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). It is p1, so the maintainer's 2026-11-28 fleet p1-only line allows it. Security-touching: no.
  6. Landing terms. L1-a ACCEPT 7236175495 + contract review PASS 7236166019 (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/** (Tier H) · PR #38212 (Part of #35237) · head 7b89373f3a98df4913f09403d5ebc179ba720b10

@os-zhuang: slice 9 of #35237. It clears the wording left after #38146: the round-length self-test in round-open.mjs now reads the round rule line in seat-lifecycle.md, and three reference pages and the dispatch-gates.data.mjs docblock drop the retired --tier lane-move wording. One self-test title is corrected too. No ratcheted file grows. Records on this head:

  • L1-a ACCEPT 7236175495
  • contract review PASS 7236166019 (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 08:14
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit c823577 Nov 28, 2026
55 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-35237-slice9-residue branch November 28, 2026 08:56
@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
…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