Skip to content

docs(fleet): entry-file pointers for in-flight and containment readings (#35237 slice 10) - #38222

Merged
os-zhuang merged 1 commit into
mainfrom
claude/issue-35237-slice10-entry-pointers
Nov 28, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/issue-35237-slice10-entry-pointers

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread
Part of #35237 (slice 10: carrier items 4, 12, 13, 15; the card keeps its other items)
Clause-②: no
Metadata-protocol: none
Rule-change: none

维护者速读

  • 用户无感:车队代理读的三份入口规则里,两处补上了「该用哪个现成工具」的指名,一处上限收紧到实际大小。
  • 属于车队入口文件收口那张总卡的第十片,替派发席和开发代理省去自己摸索在飞检查与祖先判定的步骤。
  • 只是规则文字与一个上限数字,出错时代理会读到旧指引,随时可以直接撤回。
  • 无。

What changes

  • Item 4 — .claude/skills/pm-dispatch/SKILL.md 〈车道与域〉: the in-flight line now names its reader, node scripts/pm/check-handover.mjs --inflight (usage verified in that script's header and usage text: --inflight --paths=PATH[,PATH…] [--card=N] [--repo=OWNER/NAME]). Paid for in the same file by prose tightening on seven other lines; no rule, gate name or command removed.
  • Item 12 — AGENTS.md: the git-history.mjs paragraph now names the containment reading, git-history.mjs ancestor (usage verified: ancestor --commit=SHA [--ref=origin/main] [--control=SHA]). Paid for in the same file by trimming filler words in four nearby sentences ("actually", "simply", "really exists", "Better still, don't stage it at all").
  • Item 13 — scripts/pm/check-skill-line-ratchet.mjs: the .claude/agents/os-dev.md CEILINGS row is LOWERED 33504 → 33500, the file's size at this head (headroom 0); row comment prepended in the file's own "lowered A → B by …; before that: …" style. No row is raised.
  • Item 15 — verified, no edit: .claude/agents/os-dev.md line 194 points at references/dev-traps.md〈浅检出上的祖先读数〉, and that block's line 24 ends 「现读 git-history.mjs ancestor」, so a reader following the pointer reaches the subcommand. os-dev.md is untouched.

Byte table (ratcheted files, vs origin/main 9609c13)

File before after net ceiling
.claude/skills/pm-dispatch/SKILL.md 33345 33342 -3 33351 (unchanged)
AGENTS.md 78712 78709 -3 78712 (unchanged)
.claude/agents/os-dev.md 33500 33500 0 33504 → 33500 (lowered)

Line counts of AGENTS.md and SKILL.md are unchanged. No volatile count is introduced.

Tests

No tested behaviour changed (a ceiling lowered to the measured size, and prose), so no ablation. The ratchet's own self-test runs inside pnpm check:pm-skill-ratchet.

Acceptance notes

  • Not touched, left on the card: items 7-option-B, 8, 9, 14, 20, 21.
  • The ratchet prints tightening hints outside this slice's fence, left as they are: SKILL.md ceiling headroom 9 after this PR, the AGENTS.md table-row pin headroom 17 (pin 768, widest 751), and the spec-property-retirement pins.
  • No changeset: every path is on the fast track (.claude/**, scripts/pm/**, root instruction file); none ships in any package's files[]. skip-changeset is applied with the create.

Verification

Local gates at ed7e4f4
  • node scripts/pm/overlap-check.mjs --branch=claude/issue-35237-slice10-entry-pointers: VERDICT clean exit 0 (merges cleanly onto origin/main).
  • node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 46 commands derived; all 46 run, each exit 0 captured before any pipe. pnpm --filter @objectstack/lint run check:doc-formula-expressions first exited 3 (PREREQUISITE NOT MET, formula and lint unbuilt); after turbo run build --filter=@objectstack/formula --filter=@objectstack/lint under the verify lock (VERDICT command-exit 0) it exited 0.
  • pnpm check:pm-skill-ratchet: exit 0; os-dev.md is 33500 bytes (ceiling 33500; headroom 0), SKILL.md is 33342 bytes (ceiling 33351; headroom 9), AGENTS.md is 78709 bytes (ceiling 78712; headroom 3).
  • pnpm check:pm-dispatch-gates: exit 0, dispatch-gates self-test (fast tier): 2369 cases pass.
  • --ran reconciliation: 46 derived famil(ies) accounted for — 46 run, 0 NOT-MEASURED.

Read first: the AGENTS.md git-history paragraph (the only bold-rule wording change), then the SKILL.md in-flight line.

Two-minute check: pnpm check:pm-skill-ratchet prints .claude/agents/os-dev.md is 33500 bytes (ceiling 33500; headroom 0).


Generated by Claude Code

…gs (#35237 slice 10)

SKILL.md's in-flight line names its reader, check-handover.mjs --inflight;
AGENTS.md's git-history paragraph also names the containment reading,
git-history.mjs ancestor. Both pay for themselves in the same file. The
os-dev.md ceiling row is lowered to the file's landed size.

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-28T08:26Z · Head-sha ed7e4f40f12a328caecb42bb2392f9f9d30d2312

  • l1-face.mjs --pr 38222 is CLEAN. Checks: 26 succeeded, 23 expected skips, 0 failed, 0 pending. mergeable_state clean.
  • check-governed-merges --pr 38222 reads GOVERNED (AGENTS.md, .claude/**, scripts/pm/**), Tier H. After L1 and the contract-tier review governed rules text owes, it goes to seat 1 for the hand-off; the area does not land it.
  • +17/-17 over 3 files. Part of #35237 (slice 10: carrier items 4, 12, 13; item 15 verified, no edit owed). Bytes: SKILL.md 33345 → 33342, AGENTS.md 78712 → 78709, the .claude/agents/os-dev.md CEILINGS row LOWERED 33504 → 33500 (the file's size, headroom 0); no ceiling raised. os-dev report: pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #35237 comment 7236395333.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · ed7e4f4 · 2026-11-28T08:27Z

@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: ed7e4f40f12a328caecb42bb2392f9f9d30d2312
Local-runs: none
Scope: .claude/skills/pm-dispatch/SKILL.md, AGENTS.md + scripts/pm/check-skill-line-ratchet.mjs
Rule-change-verified: none

Inputs read: card #35237 (body and all 40 comments, the carrier notes 7214125474 and 7226996287 and the slice 10 claim amendment 7236193385 among them), PR #38222 (body, file list of 3, net diff of the head against merge base 9609c137efeff5823852c282089b69240af144a9, +17/-17), and the 49 check-runs on the head: 26 success, 23 skipped, 0 failed, 0 pending. Cited code was read at the head through git objects only; nothing was checked out, built or run.

① Derived judgments

  • No published package, schema, route or exported symbol is in the diff. Public surface change: none. Right.
  • Accept-set, tightened: the .claude/agents/os-dev.md row of CEILINGS goes 33504 to 33500. The blob at the head is 33500 bytes, so the row is the landed size at headroom 0, which is what carrier item 13 asked for ("lower it when that file is next opened"). Right. No row is raised; the SKILL.md (33351) and AGENTS.md (78712) rows are untouched and the two files land under them at 33342 and 78709 bytes, as the PR body's byte table says.
  • Agent-facing route, widened: the bold AGENTS.md sentence that sends a windowed history question through scripts/pm/git-history.mjs now also names the containment question and its subcommand, git-history.mjs ancestor. The subcommand exists at the head with the shape the sentence promises: exit 0 yes, exit 3 a proven no, exit 2 a refusal with empty stdout, so "answer, or REFUSE" holds for it too. Right.
  • Agent-facing pointer, added: SKILL.md line 184 names node scripts/pm/check-handover.mjs --inflight as the reader of the in-flight check and keeps its rule sentence. Right, and in the done-when form of release note 7017468070 (a pointer keeps the rule sentence and names the reader).
  • Item 15, verified with no edit: os-dev.md line 194 still points at references/dev-traps.md section 浅检出上的祖先读数, and line 24 of that file ends 现读 git-history.mjs ancestor. The pointer reaches the subcommand in one hop. Right; os-dev.md is not in the diff.

② Semver level

No changeset, label skip-changeset, check-run Check Changeset success. The three paths (.claude/**, a root instruction file, scripts/pm/**) ship in no package, so nothing is published and no level is owed. Right.

Clause-②: no on the PR body is right: no accept-set narrows for any consumer of a published surface. The one narrowing in the diff is a repo-internal byte ceiling lowered to a size the file already has.

③ Boundary flags

  • open_questions in os-dev-report 7236395333: empty. Nothing to answer.
  • Dev flag, "Rule-change: none chosen ... the seat may read it as yes": answered here, as the brief asks. A changed pointer, meaning a hunk that names a tool (or a different tool) for the same step, is not a rule change under the definition. It does not alter what an agent may do without the maintainer (no merge, check bypass or settings power moves), it does not alter what gets done or in what order (the in-flight check and the containment reading were both already owed: the first by the same SKILL.md line, the second by dev-traps.md on main, whose line 24 already reads 现读 git-history.mjs ancestor), and it sends nothing more or less to the maintainer. It is a process step naming its script, which the definition lists as not a rule change. Every other hunk in the two hits files is wording tightened at equal meaning (read line by line in ④), and the ratchet hunk is a number following a measured size. So Rule-change-verified: none, equal to the declared value.
  • Out-of-scope notes in the report (ratchet tightening hints for the SKILL.md ceiling, the AGENTS.md table-row pin and the spec-property-retirement pins): left on the card by the dev, outside this slice's fence. Accepted as carried.
  • SQL push-down: no data-access code in the diff. Nothing to find.

④ Design judgment

.claude/skills/pm-dispatch/SKILL.md (8 changed lines, read against the script it now teaches and the neighbouring rule text at the head):

  • Line 184, the pointer. check-handover.mjs at the head carries the mode (usage line 10, header section at line 124 titled with this very SKILL.md section, runInflight at line 883). The script reads every open pm:dispatched card's newest unreleased claim and later amendments, takes the File surface: paths and intersects them locally with the dispatch surface. That is the rule sentence the line keeps: 读 pm:dispatched 卡认领申报的文件面,本地求交、不另发查询. The population the script reads is the one the sentence names, so 不另发查询 stays true of it. execution-duties.md line 42 names the same reader for the ui/** case; the two agree. Dropping 评论 from 认领评论申报 loses nothing: the claim is a comment by definition, and the script reads it as one.
  • The seven tightened lines (137, 152, 180, 183, 186, 234, 236) each keep their subject, their modal and their prohibition: 必须 to 须, 不是 to 非, 上行规则的第三例外 to 上行第三例外 (the line above still counts 两例外, so the ordinal still resolves). No gate name, command, label or path was removed. No script at the head pins any of the old spellings (searched the tree for each replaced phrase).
  • Tried to break it: a per-line byte budget (line 184 grows from 112 to 154 bytes) is no longer a rule; the ratchet prices bytes per file and its self-test asserts that prose may run past 120 bytes. The file total is under its ceiling.

AGENTS.md (8 changed lines):

  • Lines 394 to 395, the route. Read against scripts/pm/git-history.mjs at the head: ancestor is a registered command (line 1178), runs the tested leg and a control leg, and refuses rather than report a negative a shallow cut could have produced. The sentence agrees with the code. It also agrees with dev-traps.md, which stays the detailed rule (exit 0 proves itself, only a negative needs the control leg); the entry file names the route and the reference keeps the reasoning.
  • The four trimmed sentences (lines 377 to 378, 382, 390, 809, 949) keep their meaning: "a real commit", "numbers hold", "Better, stage nothing", "only what is mounted", "is not final yet". The comment in .claude/hooks/guard-shared-stash.sh line 41 paraphrases the first one and says AGENTS.md carries the same rule; it still does.

scripts/pm/check-skill-line-ratchet.mjs (implementing file, 1 changed line): the row value equals the blob size at the head, the comment is prepended in the file's own "lowered A to B by ...; before that: ..." chain with the earlier history intact, and the check-runs that carry the ratchet and its self-test are green on this head.

No must-fix, no should-fix.

Third-grade observations (N-prefixed: no effect on correctness or the contract; left as accepted deviations or for a follow-up on the card, no new head asked):

  • N1 — SKILL.md line 184 spells the command without its required --paths= argument. Typed as written it exits 1 with a usage line that names --paths, so the reader is told at once; execution-duties.md line 42 uses the same flag-only spelling.
  • N2 — AGENTS.md line 394 calls the question "a containment one". That is the script header's word, but the rule lines agents meet elsewhere say merge-base --is-ancestor or 祖先, and AGENTS.md holds neither string, so a search of the entry file from the command an agent is about to type finds nothing. os-dev.md line 194 carries that trigger for devs.
  • N3 — the "why" link on the same sentence still lands on the section "Windowed history on a shallow clone", which explains only the windowed half. The containment reasoning lives in dev-traps.md and the script header. That doc is outside this diff.

Implemented-by: claude/issue-35237-slice10-entry-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 ed7e4f40f12a328caecb42bb2392f9f9d30d2312 (Part of #35237, slice 10: carrier items 4, 12 and 13; item 15 verified, no edit owed). Full read.

Review summary

Shape and gates.

  • 3 files, +17/-17. Check-runs: 26 success, 0 failed, 0 pending.
  • GOVERNED Tier H (.claude/**, AGENTS.md, scripts/pm/**).
  • At-tier record 7236645187 is PASS with its tier verified. It reads Rule-change-verified: none, with no must-fix and no should-fix.

Read against the claim.

  • SKILL.md in-flight line. It now names check-handover.mjs --inflight, which exists at this head and does what the kept rule sentence says.
  • AGENTS.md git-history paragraph. It now names git-history.mjs ancestor, whose exits answer or refuse as the sentence says.
  • The os-dev.md ceiling row. It is lowered from 33504 to 33500, which is the real blob size. This is a tightening, and no row is raised.
  • Rule change. I agree with the record: a pointer that names the tool for a step the rules already owed is a process step, not a rule change.

Nits, optional.

  • N1 is worth one line in the next slice. SKILL.md line 184 names check-handover.mjs --inflight without its required --paths= argument, so typed as written it exits 1 with a usage line.
  • N2: the AGENTS.md sentence says "containment" but holds neither is-ancestor nor 祖先, so a search for the command an agent is about to type finds nothing there.
  • N3: that sentence's "why" link explains only the windowed half.

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

Next: it is Tier H, so it goes to seat 1 for the human merge or an 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-28T08:33Z · PR #38222 (Part of #35237) · head ed7e4f40f12a328caecb42bb2392f9f9d30d2312 · governed AGENTS.md, .claude/**, scripts/pm/** — Tier H

维护者速读

  • 做什么:开发规范(AGENTS.md)和派发技能入口页各补一处「该用哪个现成工具」的指名(在飞检查、祖先判定);开发代理说明文件的字节上限收紧到实际大小。这是「把手抄流程改成脚本」那张卡(pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #35237)的第 10 片。
  • 风险:3 个文件 +17/−17,只改车队代理读的规则文字和一个上限数字,不碰产品行为;没有任何上限被调高,两个文件各小了 3 字节。
  • 要你做什么:审批人批准即可。契约审核 PASS 7236645187,Head-sha ed7e4f40f12a328caecb42bb2392f9f9d30d2312;批准后座位自主落地。
  • 不批会怎样:席位和开发代理还得自己摸索该用哪个工具做在飞检查和祖先判定。

Seat opinion: land.

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

  1. Shape. Draft, base main, 3 files (+17/−17): AGENTS.md (+8/−8), .claude/skills/pm-dispatch/SKILL.md (+8/−8), scripts/pm/check-skill-line-ratchet.mjs (+1/−1, the .claude/agents/os-dev.md CEILINGS row only). Body: Part of #35237 (slice 10: items 4, 12, 13; item 15 verified with no edit), Clause-②: no, Metadata-protocol: none, Rule-change: none. Governed AGENTS.md / .claude/** ⇒ Tier H.
  2. Premise measured. Per the records: two pointer lines that name existing tools (check-handover.mjs --inflight, git-history.mjs ancestor), each paid for inside its own file, plus one ceiling LOWERED 33504 → 33500 to the measured size. No row is raised. Byte nets −3 / −3 / 0. The contract record reads Rule-change-verified: none.
  3. Gates (check-runs at this head). 26 success, 23 skipped, 0 failed. mergeable clean. landing-k K = 3.
  4. Accepted deviations. None owed. L1's optional nits are filed on the card as carrier item 22.
  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 (7-option-B, 8, 9, 14, 20, 21, 22) 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 7236651675 + contract review PASS 7236645187 (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 #38222 (Part of #35237) · head ed7e4f40f12a328caecb42bb2392f9f9d30d2312

@os-zhuang: slice 10 of #35237. AGENTS.md's git-history paragraph now names git-history.mjs ancestor, and the pm-dispatch SKILL.md in-flight line names check-handover.mjs --inflight. Each is paid for in its own file, net −3 B. The .claude/agents/os-dev.md ratchet ceiling is lowered 33504 → 33500 to its measured size, and no row is raised. Records on this head:

  • L1-a ACCEPT 7236651675
  • contract review PASS 7236645187 (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:36
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit 6e8056c Nov 28, 2026
55 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-35237-slice10-entry-pointers branch November 28, 2026 09:18
@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