Skip to content

chore(pm): one round source, stateless ROUND_RULE, inflight --paths and is-ancestor pointers (#35237 slice 11) - #38243

Merged
os-zhuang merged 1 commit into
mainfrom
claude/issue-35237-slice11-round-and-pointers
Nov 28, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/issue-35237-slice11-round-and-pointers

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread
Part of #35237 (slice 11: carrier items 20, 21, 22; the card keeps its other items)
Clause-②: no
Metadata-protocol: none
Rule-change: none

维护者速读

  • 用户无感:车队席位读到的「一轮多长」只剩一处来源,在飞检查命令照文档敲即可运行,查祖先判断的规则能被搜到。
  • 属于车队规则收口专题,替各席位解决三条上一轮评审留下的指针与重复常量问题。
  • 出错只会让欠审清单或开轮自退按错的轮长判断,不碰产品代码,可直接撤回本 PR。
  • 无。

What changes

  • Item 20 (scripts/pm/check-owed-reviews.mjs): TRIAGE_ROUND_MINUTES is now ROUND_MINUTES imported from round-open.mjs (no import cycle: the round-open closure is 5 modules and none of them imports check-owed-reviews). The exported name is kept. Both comments now point at the seat-lifecycle.md round line instead of the retired contract-review.md phrase.
  • Item 21 (a) references/landing-operations.md 约定③ drops its 「(~60 分钟)」 figure, as slice 9 did for contract-review.md.
  • Item 21 (b) references/contract-review.md trigger (b) 「已等满一轮」 now carries the pointer (seat-lifecycle.md). Paid for in the same file by five prose tightenings that keep every rule (不起第二个 agent to 不另起 agent, 所定, 的, 而, 、且).
  • Item 21 (c) scripts/pm/round-open.mjs: the exported ROUND_RULE has no g flag now (/一轮 (\d+) 分钟/u). roundMinutesOfRule scans with a local global copy. A new self-test case pins the export as neither global nor sticky, checks that three .test() calls answer the same, and checks that the scan still reads every figure. The battery floor goes from 3 to 4.
  • Item 22 (a) SKILL.md 〈车道与域〉 spells the in-flight check as the usage line does: check-handover.mjs --inflight --paths=PATH[,PATH…]. Paid for in the same file by six tightenings (绝, 的, 就还 to 即, 自己读的 to 自读, 自己的 to 自有, 的), and no rule is removed.
  • Item 22 (b) The AGENTS.md git-history sentence now reads "an is-ancestor containment one", so a search for the command lands on it.
  • Item 22 (c) The "why" link went to a section that covered only the windowed half. The section is renamed Shallow-clone history (the new anchor is shorter, and that pays for (b)), and one sentence now covers the containment half: a cut only withholds an ancestor path, so exit 0 stands in any clone and a "not an ancestor" result may be the cut; git-history.mjs ancestor proves the negative with a control leg, or it refuses. The anchor had no other referrer (git grep).

Bytes per ratcheted file (wc -c, origin/main bd5407e to this head)

File origin/main this head net ceiling (unchanged)
AGENTS.md 78709 78708 -1 78712
.claude/skills/pm-dispatch/SKILL.md 33342 33340 -2 33351
.claude/skills/pm-dispatch/references/contract-review.md 6403 6402 -1 6419
.claude/skills/pm-dispatch/references/landing-operations.md 10673 10661 -12 10717

No CEILINGS row moved. docs/agents/multi-agent-discipline.md carries no ceiling.

Tests

All runs are on head 329c808fc8.

Self-tests and ablations (on-disk mutation, then restore)
  • node scripts/pm/round-open.mjs --self-test: exit 0, ✓ round-open self-test: 39 cases pass across 6 batteries.
  • node scripts/pm/check-owed-reviews.mjs --self-test: exit 0, 96 cases pass in 10 batteries.
  • Ablation A1, ROUND_MINUTES = 60 changed to 45 in round-open.mjs only. check-owed-reviews goes red through the import (exit 1, ✗ … under a full round, nothing else holding ⇒ WAIT, 1 of 96). round-open goes red against the seat-lifecycle.md line (exit 1, 2 of 39).
  • Ablation A2, the g flag put back on the export. round-open goes red (exit 1, the new case reads got [true,[true,false,true],[60,45]]). That is the lastIndex state the card names.
  • Ablation A3, the seat-lifecycle.md line changed from 60 to 45. round-open goes red (exit 1, got [45], want [60]). The 60 to 45 pin still holds.
  • After each ablation the file was restored, and both suites are green again (exit 0).

Acceptance notes

  • docs/agents/multi-agent-discipline.md is outside the fence's file list, but item 22 (c) says to fix the link, and fixing the link target there is the cheap way to do it. It is not ratcheted.
  • No changeset: nothing in the diff ships (scripts/pm/**, .claude/**, AGENTS.md and docs/agents/** are fast-lane paths). Hence skip-changeset.

Verification

  • Files to read first, by risk: scripts/pm/round-open.mjs (the ROUND_RULE hunk), scripts/pm/check-owed-reviews.mjs (the import and constant hunk), and AGENTS.md (the history sentence).
  • Two-minute check: run node scripts/pm/round-open.mjs --self-test && node scripts/pm/check-owed-reviews.mjs --self-test. You should see two ✓ lines, with 39 and 96 cases.
Local gates: 50 of 50 derived families, every one exit 0
  • node scripts/pm/dispatch-gates.mjs --ran FILE: ✓ 50 derived famil(ies) accounted for — 50 run, 0 NOT-MEASURED (a DERIVED zero — all 50 recorded an exit code and none of them is 3).
  • pnpm check:pm-skill-ratchet exit 0. pnpm check:pm-governed-prose exit 0. pnpm check:pm-dispatch-gates exit 0. pnpm check:nul-bytes exit 0.
  • pnpm --filter @objectstack/lint run check:doc-formula-expressions first exited 3 (dist not built, so it measured nothing). After the formula and lint build under the verify lock (VERDICT command-exit 0) it exits 0.
  • node scripts/pm/overlap-check.mjs --branch=claude/issue-35237-slice11-round-and-pointers: VERDICT clean exit 0.
  • CI families: read them from this PR's check-runs. They were not re-run here.

Generated by Claude Code

…nd is-ancestor pointers

check-owed-reviews.mjs reads TRIAGE_ROUND_MINUTES from round-open.mjs's
ROUND_MINUTES (the seat-lifecycle.md round line) instead of a second literal.
round-open.mjs exports ROUND_RULE without the g flag; the scan takes a local
global copy. landing-operations.md drops its round figure, contract-review.md
trigger (b) points at seat-lifecycle.md, SKILL.md spells --inflight with its
required --paths=, and the AGENTS.md history sentence carries is-ancestor with
a why-section that covers the containment half. Each ratcheted file is paid
for in the same file.

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_016WV4czzx9dtSEm3jWWL9c3

Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · 329c808 · 2026-11-28T10:15Z

@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: 329c808fc85b9e8ff533e66d68d1cdf46bfe4e36
Local-runs: none
Scope: .claude/skills/pm-dispatch/SKILL.md, .claude/skills/pm-dispatch/references/contract-review.md, .claude/skills/pm-dispatch/references/landing-operations.md, AGENTS.md + scripts/pm/round-open.mjs, scripts/pm/check-owed-reviews.mjs, docs/agents/multi-agent-discipline.md
Security-touching: no
Rule-change-verified: none

PR #38243, card #35237 slice 11 (carrier items 20, 21, 22). Net diff of the head against merge base bd5407ec74b280f92a281ca4f82e5c8f0f8bdd47: 7 files, +31 -24. Read-only: the card body and its whole thread, the PR body and file list, the net diff, the check-runs on the head, and the cited code read in the head tree with git show. Nothing was built, run or re-run; the record template was printed as the brief prescribes.

Main has moved from the merge base to 98bd8deed7 (and on, to e42520c67b at my fetch). Its new commits touch packages/plugins/knowledge-turso/**, skills/objectstack-ui/SKILL.md, two scripts/check-*.mjs gates, changesets and changelogs. None is a file of this PR, none imports ROUND_RULE, ROUND_MINUTES or TRIAGE_ROUND_MINUTES, and none refers to the renamed anchor or to the in-flight command. This record is not undercut.

① Derived judgments

  • Published surface: none. The diff is AGENTS.md, .claude/**, docs/agents/** and scripts/pm/**; no workspace package, no schema, no exports map. Right.
  • TRIAGE_ROUND_MINUTES (check-owed-reviews.mjs:141) is now ROUND_MINUTES from round-open.mjs:97, which is 60. The value is unchanged, so trigger (b) at :360 accepts and refuses exactly what it did. Right. No import cycle: round-open.mjs imports ../invoked-as.mjs, ./check-half-states.mjs (which imports ./seat-record.mjs) and ./gh-pages.mjs; none of them imports check-owed-reviews. The import has no side effect: round-open.mjs runs main or its self-test only under isEntrypoint(import.meta.url) (:772).
  • ROUND_RULE (round-open.mjs:112) loses g and gains u. The only reader in the head tree is roundMinutesOfRule on the next line, which now scans with a local gu copy built from ROUND_RULE.source; its results are the same list as before. The export is internal to scripts/pm, nothing else imports it. Right.
  • Anchor #windowed-history-on-a-shallow-clone becomes #shallow-clone-history. The heading ## Shallow-clone history slugs to that anchor, and AGENTS.md:396 is the only referrer in the head tree (searched for both spellings). Check Documentation Links is green. Right.
  • The four byte-ratcheted files are each net at or below zero and under their unchanged ceilings, measured on the two trees: AGENTS.md 78709 to 78708 (ceiling 78712), SKILL.md 33342 to 33340 (33351), contract-review.md 6403 to 6402 (6419), landing-operations.md 10673 to 10661 (10717). No CEILINGS row is in the diff. Right.
  • Gates: every check-run on the head is success or an expected skip (among them Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, Lint · repo & tooling gates, Lint · docs & code guards, Check Documentation Links, Check Changeset, Governed Surface Queue Guard, PR-body guards). No red, none pending.

② Semver level

Clause-②: no — agreed. Nothing in the diff ships, so no changeset is owed; the PR carries skip-changeset and Check Changeset is green. Metadata-protocol: none is also right: no metadata key is touched.

③ Boundary flags

  • open_questions in the dev report (7237450148): empty. Nothing to answer.
  • Dev flag, the PR body carries no signature line because the dispatch fixed its first two lines: noted, no effect on the tree.
  • Dev flag, docs/agents/multi-agent-discipline.md is edited beyond the claim's literal file list: accepted. Item 22 (c) asks for the "why" link to cover the containment half, that file is the link's target, it is not ratcheted, and the edit is one heading and one sentence. I reviewed it as an implementing file.
  • Rule change. I read every changed hunk under .claude/** and in AGENTS.md against the three heads. None alters what an agent may do without the maintainer, what gets done and in what order, or what must go to him: ⛔ 绝不从 to ⛔ 不从 keeps the prohibition; 就还不可标 to 即不可标, 自己读的 to 自读, 自己的 to 自有, 不起第二个 agent to 不另起 agent and the four dropped particles in contract-review.md are wording; the in-flight line gains its required argument; trigger (b) gains a pointer; 约定③ loses a figure whose value (60) stays on the seat-lifecycle.md round line. Hence Rule-change-verified: none.
  • ⛔ The PR body declares NO Rule-change: line. .claude/agents/os-dev.md:225-226 requires exactly one line-start Rule-change: on a PR whose diff touches .claude/**, and says a missing line reads as yes, Tier H; AGENTS.md:298-300 says the same ("no line, yes, settings and hooks are Tier H"). So as the body stands this PR waits for the maintainer whatever this record says. A body edit moves no head: if the implementer adds a line-start Rule-change: none, it equals the value verified here. This is a PR-body gap, not a defect of the tree, so it is not a ④ finding; it is for the dispatching seat to act on before any hand-off.
  • Other author: the PR user.login is objectstack-fleet[bot]; no off-relay author to name.
  • SQL push-down: no data-access code in the diff. No id materialisation, no in-app join. Nothing to find.
  • Security: no hunk teaches permission, sharing, credential, token or authentication behaviour.

④ Design judgment

.claude/skills/pm-dispatch/SKILL.md — holds. Line 184 now spells node scripts/pm/check-handover.mjs --inflight --paths=PATH[,PATH…], which is the usage line of check-handover.mjs (:10 and :1066) character for character; parseInflightPaths (:659-666) refuses a run without --paths, which is the failure item 22 (a) names. The reworded tail, the surface about to be dispatched intersected locally with the surfaces the pm:dispatched claims declare, is what runInflight and inflightVerdict do (:675, :883-905). The six tightenings (lines 151, 152, 166, 201, 215) each keep their rule and their ⛔; none of the old spellings is pinned by any script in the head tree.

.claude/skills/pm-dispatch/references/contract-review.md — holds. Trigger (b) points at seat-lifecycle.md, whose line 5 is the one line that spells 「一轮 60 分钟」 and the line round-open.mjs pins; check-owed-reviews.mjs:360 judges (b) by that same number after this PR, so the text, the pin and the judge now agree on one source. The five tightenings keep every rule; 不另起 agent loses nothing against 不起第二个 agent (area-lease.md:48 keeps the old spelling for its own rule and is untouched).

.claude/skills/pm-dispatch/references/landing-operations.md — holds. 约定③ no longer carries a second, approximate copy of the round figure, as item 21 (a) asks. See N1.

AGENTS.md — holds. The sentence now carries is-ancestor, the word an agent about to type git merge-base --is-ancestor searches for, beside the command git-history.mjs ancestor, whose usage (git-history.mjs:17) exists. The link resolves to the renamed section. tools answering their own question keeps the meaning of the sentence on historyHorizon().

docs/agents/multi-agent-discipline.md (implementing) — agrees with the code. "A cut only withholds an ancestor path, never invents one, so exit 0 stands in any clone" is git-history.mjs:186-188 nearly word for word; "proves the negative with a control leg or refuses" is ancestorReading (:921-979): on a cut clone the negative is proven only by the floor boundary, whose control leg is run (:963), and every other case refuses. On a complete clone there is no boundary and so no control leg (:895), which the section's title, shallow clones, leaves out of scope correctly.

scripts/pm/round-open.mjs (implementing) — agrees. The export is stateless as its new jsdoc says; the new case pins global || sticky false, three equal .test() answers, and a two-figure scan, and the battery floor moves 3 to 4 with exactly four t calls in that battery (:649-652). I tried to break it: a g-less matchAll would throw, but the scan never calls matchAll on the export; the u flag changes nothing for this pattern.

scripts/pm/check-owed-reviews.mjs (implementing) — agrees. One source, the name kept, the docblock at :85-86 and the jsdoc at :140 both name the seat-lifecycle.md round line. Its self-test rides check:pm-record-recognisers and round-open's rides check:pm-prior-rulings (package.json:86-87), so a changed ROUND_MINUTES reaches both.

No must-fix, no should-fix.

  • N1 (nit) — landing-operations.md:93 drops the figure but names no home for it, the same gap item 21 (b) closed in contract-review.md with (seat-lifecycle.md). The file has 56 bytes under its ceiling. Left as a follow-up for the card's carrier list; no effect on the rule.
  • N2 (nit) — check-owed-reviews.mjs:140 keeps the sentence "The name is kept: importers read it", but no file in the head tree imports TRIAGE_ROUND_MINUTES. Harmless; the sentence predates this PR.
  • Note for the carrier list, outside the diff and not reviewed: .claude/skills/pm-dispatch/references/execution-duties.md:42 still names check-handover.mjs --inflight with no --paths=, the spelling item 22 (a) fixed in SKILL.md.

Independence: implemented in session session_016WV4cxRDKprCtjpEdtiPFW on the branch below; reviewed in a different session that took neither the dispatch order nor the dispatching seat's conclusions as input.

Implemented-by: claude/issue-35237-slice11-round-and-pointers
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 329c808fc85b9e8ff533e66d68d1cdf46bfe4e36 (Part of #35237, slice 11: items 20, 21 and 22).

Review summary

  • Item 20. TRIAGE_ROUND_MINUTES is now ROUND_MINUTES (60) imported from round-open.mjs, so the value is unchanged and there is one source. Nothing that round-open.mjs imports (check-half-states.mjs, gh-pages.mjs, invoked-as.mjs) imports check-owed-reviews.mjs, so there is no cycle. Its main is guarded by isEntrypoint, so importing it has no side effect.
  • Item 21. ROUND_RULE has no g flag now. Its only reader, roundMinutesOfRule, scans with a local gu copy, and no other file imports ROUND_RULE. The new case pins the export as stateless, and the battery floor of 4 matches. The 约定③ figure is dropped, and trigger (b) now points at seat-lifecycle.md.
  • Item 22. The in-flight line now matches the check-handover.mjs usage line. The #shallow-clone-history anchor resolves, and AGENTS.md is its only referrer. The containment sentence agrees with git-history.mjs ancestor.
  • Prose tightenings. I read each one, and none drops a rule. All four ratcheted files are net at or below zero, under unchanged ceilings.
  • My local runs at this head. round-open.mjs --self-test passes 39 cases in 6 batteries. check-owed-reviews.mjs --self-test passes 96 cases in 10 batteries.
  • Contract record. 7237837161 is PASS at this head with its tier verified, Security-touching: no, Rule-change-verified: none, and nothing graded open.
    • Nits left as follow-ups: N1, the 约定③ line has no seat-lifecycle.md pointer. N2, the "importers read it" sentence is stale.
    • Also outside this diff, execution-duties.md still spells --inflight without --paths=.
  • Gates. At this head the check-runs read 28 success, 23 skipped, 0 failed and 0 pending, and the PR is mergeable clean. Main's new commits since bd5407ec74 touch none of this PR's files.

Owed before hand-off (body only, no head move): the PR body has no line-start Rule-change: line. Per AGENTS.md and os-dev.md, a missing line reads as yes. Add Rule-change: none, the value the record verified.

Next: governed (.claude/**, AGENTS.md). It goes to seat 1 for the tier reading and the landing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Seat record · 2026-11-28T10:24Z · PR #38243 (Part of #35237) · head 329c808fc85b9e8ff533e66d68d1cdf46bfe4e36 · governed AGENTS.md, .claude/**, scripts/pm/** — Tier H

维护者速读

  • 做什么:车队席位读到的「一轮多长」只剩一处来源(两个脚本共用一个常量,参考页不再各写一个数字);在飞检查命令照文档敲就能运行;开发规范里查祖先判断那句能被搜到。这是「把手抄流程改成脚本」那张卡(pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #35237)的第 11 片。
  • 风险:7 个文件 +31/−24,只动车队规则文字和两个车队脚本的常量与自检,不碰产品代码;受字节上限约束的四个文件都变小了,没有上限被调高。
  • 要你做什么:审批人批准即可。契约审核 PASS 7237837161,Head-sha 329c808fc85b9e8ff533e66d68d1cdf46bfe4e36;批准后座位自主落地。
  • 不批会怎样:一轮时长仍有两处各自写死,日后改一处另一处就会按错的轮长判断。

Seat opinion: land.

席位核对 — ACCEPT · repo:objectstack#1 · head 329c808fc8

  1. Shape. Draft, base main, 7 files (+31/−24): AGENTS.md, .claude/skills/pm-dispatch/SKILL.md, references/contract-review.md, references/landing-operations.md, docs/agents/multi-agent-discipline.md, scripts/pm/check-owed-reviews.mjs, scripts/pm/round-open.mjs. Body: Part of #35237 (slice 11: items 20, 21, 22), Clause-②: no, Metadata-protocol: none, Rule-change: none, the last added as a line-start line at this head with no head move. check-governed-merges reads GOVERNED (4 of 7 paths) ⇒ Tier H.
  2. Premise measured. check-owed-reviews.mjs imports ROUND_MINUTES from round-open.mjs instead of its own constant, and the PR shows no import cycle. ROUND_RULE loses its g flag, with a self-test pinning that. The rest is pointers and wording. Ratcheted byte nets are −1/−2/−1/−12, and no CEILINGS row moves. The contract record reads Rule-change-verified: none.
  3. Gates (check-runs at this head). 29 success, 26 skipped, 0 failed. mergeable clean. landing-k K = 7.
  4. Accepted deviations. None owed. The two L1 nits and the execution-duties.md:42 --inflight spelling go onto pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #35237 as items for a later slice.
  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 7237844806 + contract review PASS 7237837161 (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 AGENTS.md + .claude/** + scripts/pm/** (Tier H) · PR #38243 (Part of #35237) · head 329c808fc85b9e8ff533e66d68d1cdf46bfe4e36

@os-zhuang: slice 11 of #35237. The round length now has one source: check-owed-reviews.mjs imports ROUND_MINUTES from round-open.mjs, and landing-operations.md drops its own figure. ROUND_RULE is no longer global-flagged, with a pinned self-test. The in-flight check is spelled as its usage line in SKILL.md, and the AGENTS.md git-history sentence names is-ancestor. No ratcheted file grows. Records on this head:

  • L1-a ACCEPT 7237844806
  • contract review PASS 7237837161 (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 11:24
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 46139726157 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Dogfood Regression Gate (3/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/expression-conformance.test.ts > ADR-0058 D7 — expression surface conformance ledger > is a sound conformance ledger + ratchet (ADR-0060 checkLedger)
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: UNCLASSIFIED surface — add a ledger row (ADR-0060): data/object.zod.ts:ObjectSchemaBase.uiReadonlyWhen: expected [ Array(1) ] to deeply equal []
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 26 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

Merged via the queue into main with commit 975e34e Nov 28, 2026
61 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-35237-slice11-round-and-pointers branch November 28, 2026 12:59
@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
…rd, across every PR the card produces (objectstack-ai#38280)

<!-- 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#36914

This pull request carries the rule text, card items 1 to 3. The guard
half, card item 4 and acceptance bullet 3, is objectstack-ai#38296. That card also
carries the question of what counts as "the card's pull requests". The
card stays open until this pull request and objectstack-ai#38296 have both landed.

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

Context for the declaration: the maintainer spoke on 2026-11-24 at
08:28Z about objectstack-ai#36860. Seat repo:objectstack#3 relayed it in mailbox
comment 7126265251 as "splitting an over-the-line change so each half
stays under it gets around human review, and that is not acceptable".
That sentence is a seat's English relay, not a quotation. The per-card
sum, the counting of merged pull requests and "every pull request is
Tier H" are the seats' proposed remedy, so this text is the maintainer's
to approve here.

## 维护者速读

- 用户无感;车队内部规则变了:一张卡的改动行数改为把它产出的所有 PR 加在一起算,合计超过三千行,这张卡的每一个 PR
都要你亲自审,拆成几个小 PR 也一样;为给新规则腾出篇幅,同一份文件里删掉了八处与别处重复的话,没有删任何仍在生效的规则。
- 属于「车队自己的规则和权限」这条线:此前行数按单个 PR 算,一个大改动拆成两半就能只靠 AI 审核合并,绕开人工审核,你在 11 月 24
日裁定这不可接受。
- 现有的自动守卫仍然只看单个 PR,合计要靠席位自己加,漏算时机器不会拦;这只是规则文字,可以直接撤回,不影响产品。
- 要你做的:这份规则文字由你在这个 PR 上批准;按整张卡加总、已合并的也算、每个 PR 都归你审,是席位提出的落实办法,不是你的原话。

## What changes

**The rule.** The 3,000-line human-review line is read per card. The
count is additions plus deletions, summed over every pull request the
card produces. Follow-up pull requests split off the same change count,
merged ones count, and generated files count as before. A card over the
line is Tier H in each of its pull requests, including the ones that are
under the line by themselves. A split still goes to the maintainer, and
a seat's order no longer says "stop and propose a split".

The rule's one home is `references/landing-operations.md`, beside the
pre-landing check a seat already runs:

```text
- 行数线按卡计:该卡全部 PR(含拆出的后续与已合并)additions+deletions(含生成物)之和 >3000 即过线卡,
  每张 PR 皆 Tier H。例:一卡拆两张各 2,000 行 PR,两张皆 Tier H。
- 拆分仍交维护者,派发令 ⛔ 不写「停下提拆分」;`--pr N`、队列守卫与中继只读单 PR,卡合计席位自加。
```

The other places keep one short statement or a pointer, with no number
of their own:

| File | Before | After |
|:--|:--|:--|
| `SKILL.md` 〈路径分叉〉 | `>3000 行(含生成物,additions+deletions)或申报收窄同换…` |
`按卡合计 >3000 行(见 landing-operations.md)或申报收窄同换…` |
| `references/area-lease.md` | `受管面与超 3,000 行 PR 区 ⛔ 不落` | `受管面与过线卡的 PR
区 ⛔ 不落` |
| `references/landing-operations.md` (front-of-queue list) | `逾 3,000
行须授权批准在现 head` | `过线卡的 PR 须授权批准在现 head` |
| `references/lanes/queue.md` (two lines) | `三因至逾 3,000 行` · `逾 3,000 行
PR 的批准` | `三因至过线卡` · `过线卡各 PR 的批准` |

**Why the home is `landing-operations.md` and not `SKILL.md`.** The
card's dispatch preferred `SKILL.md` plus pointers. `SKILL.md` cannot
take the text. It had 9 bytes of headroom, and the full rule is about
270 bytes. Its ceiling cannot rise either: `SKILL.md` is the source of
the declared cross-file move into `decision-analysis.md`, and raising a
source re-opens the move. Measured on this branch with the row at 33614:
`check-skill-line-ratchet` answered red, "raises its ceiling 5023→5589
(+566) against a net source decrease of 305". So `SKILL.md` keeps the
one-line statement and the pointer, and the rule lives in the reference
that the landing window reads.

**Bytes.** No volatile count is added.

| File | Before | After | Ceiling |
|:--|--:|--:|:--|
| `SKILL.md` | 33342 | 33350 | 33351, not moved |
| `references/area-lease.md` | 6565 | 6564 | 6586, not moved |
| `references/landing-operations.md` | 10673 | 10696 | 10717, not moved
|
| `references/lanes/queue.md` | 2003 | 1998 | 2003, not moved |

**No ceiling moves: the new text is paid for by deletion.** Seat ruling
7238709377 on this pull request: a seat's relay is not a ruling of
record, so the raise this pull request first carried (10717 → 11021,
+304) was not authorized. This head takes route (a) of that ruling. The
rule text adds 348 bytes to `references/landing-operations.md`, eight
deletions in the same file remove 325 bytes, and the file lands at 10696
bytes, 23 above where it started and 21 under its ceiling. The
`CEILINGS` row is back at 10717, so
`scripts/pm/check-skill-line-ratchet.mjs` is no longer in the diff.

Each deletion is a duplicate of another line, a restatement of a rule
whose home is elsewhere, or a sentence the new rule made untrue. No rule
is removed.

| # | Deleted from `landing-operations.md` | Bytes | Why it is safe |
|:--|:--|--:|:--|
| 1 | `;diff 是事实,卡片语义是预测` (the clause ② gate line) | 37 | A reason, not
a rule. The instruction on that line stays (take the real diff before
ready or the queue). The same point is a rule in `SKILL.md` 〈路径分叉〉 (`⛔
不看报告自述`) and in `contract-review.md` (`⛔ 不读席位自述`). |
| 2 | `PASS ⇒ Tier S ready、auto-merge;Tier H 经 SKILL.md ③ 交棒;` and `;⛔ 免
L2 不放行`, leaving `L2 FAIL ⇒ 撤挂,补丁轮` | 84 | The PASS routing restates
`SKILL.md` 〈路径分叉〉 (`达档 PASS 后 ready→入队`, and `③ 请审 = 交棒`) and
`contract-review.md` (`过则 S 入队、H 等人批`). The last clause repeats the line
four above it in the same file (`无达档 L2(条款②)PASS 在案 ⛔ 禁止入队`). The FAIL
clause is kept because the patch round after an L2 FAIL is stated
nowhere else. |
| 3 | `人闸不是验证层的替代:` | 31 | The same line says it again as its rule: `⛔
不以人闸代替探测`. |
| 4 | `;他人 flake 照四分支重投` (the 谁入队谁看护 line) | 32 | The four branches are
stated fourteen lines above in the same file, for every flake kick with
an unchanged head, and `lanes/queue.md` repeats the pointer for the
queue seat. |
| 5 | `;⛔ 禁 rebase 与 force-push` (section A, the four-step line) | 30 |
The line names `scripts/pm/os-regen-merge.sh` as the authority for the
steps, and the script's header states step 1 as `git merge origin/main
(⛔ never rebase / force-push)`. `AGENTS.md`, Multi-agent working
discipline, items 3 and 6, carries the rule for every branch. |
| 6 | `,漏判会被队列守卫在 merge group 里拒收` (the line before the new rule) | 50 |
A consequence, not a rule, and this pull request makes it untrue for a
split: the queue guard reads one pull request, so it does not refuse a
pull request that is under the line by itself. The new text says so
(`队列守卫与中继只读单 PR`). The measured fact for the cases the guard does catch
stays in `readings-queue.md` (`缺批准 ⇒ 治理守卫 merge_group 腿 CI_FAILURE`). |
| 7 | `;首触事后补,可改域、⛔ 不改动作` (main-red 约定①) | 45 | Stated in the home of
the first-touch rules, `triage-duties.md`: `main-red
锚卡由席位先立先派,首触事后补作记录级:可改域,⛔ 不改动作,在飞照补`. |
| 8 | `;每棒都重走` (section D) | 16 | The line above it already says
`每一棒都是一整圈`. |

**Guard scripts are not changed (card item 4).** The size limb is one
predicate, `sizeVerdict` in `scripts/pm/check-governed-merges.mjs`, and
every reader hands it the numbers of one pull request:

- `check-governed-merges.mjs --pr N` reads `additions` and `deletions`
off that pull request. `--branch` reads one git range. The post-merge
sweep reads each landed commit by itself.
- `check-governed-queue-guard.mjs` reads each queued pull request by
itself (`sizeReading`).
- `dispatch-gates.mjs` reads the worktree diff (`changedLineLines`).
- The relay's `pr_enqueue_front` rule in `fleet-write/ops.mjs` reads the
pull request it is asked to move.
- `label-write.mjs --handoff` takes its tier from `--pr N`.
- `landing-k.mjs` does not read the line.

Following the per-card total is not a cheap change, for three reasons:

1. No reader can list a card's other pull requests today. That needs new
network reads (the card's timeline, then one read per sibling pull
request). One of the readers is the required merge-queue check, where a
read that fails must refuse the queue entry.
2. The mechanical definition is not ruled. A script must decide what
"the card's pull requests" are when a pull request names several cards,
when many pull requests name one tracker card with `Part of`, and when a
pull request was closed without merging. It must also decide whether a
sibling that already merged under the line is listed by the audit once
the total crosses it.
3. Three of the files are guard instruments that are Tier H by
themselves, each with a pinned self-test roster.

The follow-up card is objectstack-ai#38296. Its scope is the readers listed above,
with the split case as a test in each (two 2,000-line pull requests on
one card are both Tier H; one 2,000-line pull request alone is not). It
asks the maintainer the mechanical definition before any script is
written. The rule text added here says plainly that the scripts read one
pull request and the seat adds the card total.

## Tests

No tested behaviour changes. The diff is rule text only (four files
under `.claude/skills/pm-dispatch/`, +16 −13), so there is no ablation.

Local gates ran on head `b21a235f64`, after its commit. Check-runs for
that head had not concluded when this body was written. Contract review
7238652086 (FAIL on M1, the ceiling raise) and L1 REWORK 7238659343 were
given at the earlier head `c142bb23e0`; this head answers M1 by route
(a) of seat ruling 7238709377, and a new contract review is owed at this
head.

<details><summary>Derived gate list: 25 families, all run, all exit
0</summary>

- `node scripts/pm/dispatch-gates.mjs --commands` derived 25 families
from the branch's own change set at `b21a235f64`. The list is shorter
than the 45 of the earlier head because the ratchet script left the
diff. Each ran once, with its exit code recorded before any pipe.
- `node scripts/pm/dispatch-gates.mjs --ran` on that record, exit 0:
`Run reconciliation — 25 derived, 25 run, 0 NOT-MEASURED, 0 UNRUN.`
- `pnpm check:pm-skill-ratchet` exit 0: `landing-operations.md is 10696
bytes (ceiling 10717; headroom 21)`, `SKILL.md is 33350 bytes (ceiling
33351; headroom 1)`, `declared cross-file moves: 1, total ceilings down
2 bytes`. Its self-test: `116 cases pass`.
- The self-tests that pin phrases of `landing-operations.md` all exit 0:
`pnpm check:pm-expected-skips` (it runs the `landing-k.mjs`,
`pr-state.mjs` and `sweep-closed-cards.mjs` self-tests), `pnpm
check:pm-label-write`, `pnpm check:pm-governed-prose`, `pnpm
check:pm-record-recognisers`.
- `pnpm check:pm-skill-id-lint`, `pnpm check:pm-governed-merges`, `pnpm
check:pm-settings-deny-roster`, `pnpm check:nul-bytes`: exit 0.
- Outside the derived list, run once more because the earlier head
carried it: `pnpm check:pm-dispatch-gates` exit 0, `dispatch-gates
self-test (fast tier): 2369 cases pass; 9 slow section(s) deferred`.
- `pnpm --filter @objectstack/lint run check:doc-formula-expressions`
exit 0, after `pnpm exec turbo run build --filter=@objectstack/lint
--concurrency=2` under the verify lock (`VERDICT command-exit 0`).

</details>

<details><summary>Overlap check before the push</summary>

`node scripts/pm/overlap-check.mjs
--branch=claude/issue-36914-review-line-per-card` at `b21a235f64`, exit
0: `VERDICT clean`. It merged cleanly with `origin/main` (`73ec085afa`)
and with the two open pull requests that share a file, objectstack-ai#38271
(`area-lease.md`) and objectstack-ai#38243 (`SKILL.md`, `landing-operations.md`).
objectstack-ai#38243 makes `landing-operations.md` 12 bytes smaller, so the two
together stay under the ceiling.

</details>

## Acceptance notes

- **`AGENTS.md` still states the line per pull request.** Multi-agent
discipline §7 (c) reads "a PR whose changed lines exceed 3,000". The
card lists only the pm-dispatch files, and `AGENTS.md` is outside the
claim's file surface, so it is not touched here. Adding it would also
add two gate families to this pull request (`check:docs-audit-scope`,
`check:required-contexts`), and the file has 3 bytes of headroom. It
stays a follow-up and is not folded into this pull request.
- **`label-write.mjs --handoff` refuses the hand-off this rule orders in
the split case.** For a pull request that is under the line by itself
and touches no governed path, it answers "nobody is owed a hand-off",
because it reads `--pr N`. Until objectstack-ai#38296 lands, a seat that hands over
such a pull request does it by hand. objectstack-ai#38296 carries it.
- **The declaration reads `yes`, not `ruled`.** The maintainer's own
words were said in a project thread and are not on GitHub. Comment
7126265251 and the card body carry a seat's English relay, and the relay
rules only that splitting to get around review is not acceptable.
- **Tracker cards.** By the letter of the rule, every pull request that
names one long-running card with `Part of` counts toward that card's
total. The text does not carve them out, because the ruling does not. It
is the question objectstack-ai#38296 puts to the maintainer before a script enforces
the total.
- **No ceiling row is lowered either.** `area-lease.md` is 1 byte
smaller and `lanes/queue.md` 5 bytes smaller, and
`landing-operations.md` keeps 21 of its 44 bytes of headroom. objectstack-ai#38271 is
moving rows in the ratchet script, so this pull request leaves the
script untouched.
- **The comment in `label-write.mjs` that cites "〈路径分叉〉 Tier H and the
line after it" stays true.** The size line is still the line after the
Tier H line.

## Verification

Read first, by risk:

1. `.claude/skills/pm-dispatch/references/landing-operations.md`, the
three added lines after the `check-governed-merges.mjs --pr N` line.
This is the rule itself.
2. The same file, the eight shortened lines, against the table above.
The riskiest is row 2, the L2 outcome line: check that nothing it said
is now stated nowhere.
3. `.claude/skills/pm-dispatch/SKILL.md`, the one changed line in
〈路径分叉〉.

Two-minute check: run `git grep -n "3,000\|3000"
.claude/skills/pm-dispatch/`. It prints three lines: the `SKILL.md` line
(按卡合计), the `landing-operations.md` line (行数线按卡计), and
`dispatch-runbook.md` (≤3000 字符, a different rule). No line counts per
pull request. A second check: `git diff --stat origin/main...HEAD` lists
four files, all under `.claude/skills/pm-dispatch/`, and no script.

<!-- signed: repo:objectstack#1 · os-elon-musk ·
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