Skip to content

Commit 33778d0

Browse files
chore(pm): slice 12 of #35237 — the open carrier items 7 (N11), 9, 14, 23, 25 (#38387)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XHogQ9ogKPxHhiFfT2UQgJi)_ Part of #35237 Clause-②: no Metadata-protocol: none Rule-change: none ## 维护者速读 - 用户无感:车队席位与开发助手读到的两行规则指引补全了去处,四个内部脚本的提示文字与一处文件面重叠判断更准。 - 属于「车队技能整理」里把手打流程改成脚本的那张卡,本批收拾前几批评审留下的小问题。 - 出错只影响车队内部工具的提示与在飞重叠检查,不碰产品代码;可直接整体撤回。 - 无。 ## What changes Slice 12 of the card: the carrier items no earlier slice landed, each measured at base `23c311e8ff` first. None changes a rule (each carrier note says so, and this diff keeps it so): two rule lines gain a pointer or an argument spelling, and four tool scripts change what they print or how one reading answers. | Item | Measured at base `23c311e8ff` | What changed | Where | |:---|:---|:---|:---| | 23 (N1 of record 7237837161) | open: the 约定③ line names a round with no home for its length | the line points at `seat-lifecycle.md`, in the form `contract-review.md` trigger (b) already uses | `.claude/skills/pm-dispatch/references/landing-operations.md:96` | | 25 | open: `check-handover.mjs --inflight` with no `--paths=` (typed as written it exits 1 with a usage line) | spelled `--inflight --paths=PATH[,PATH…]`, as `SKILL.md:184` spells it | `.claude/skills/pm-dispatch/references/execution-duties.md:42` | | 7, N11 only (option B stays out) | open: the YIELD line said a push with no `Claude-Session:` trailer "reads foreign the same way", right after "is cleared with --own" — it read as if `--own` cleared it, and it cannot (`mine` needs a non-null session) | the YIELD line says `--own` takes session ids, so it cannot clear such a push, which reads foreign until it is a round old; two self-test cases (the verdict with every session named `--own`, and the printed line) | `scripts/pm/round-open.mjs:410` | | 9 (N12) | open, reproduced: `meetKind('…/references/**/*.md', 'references/contract-review.md')` answered `null` while `…/references/**` answered `suffix` | a glob under a literal directory the claimed fragment starts inside answers as that `DIR/**` does when the fragment's rest matches the glob's remainder; one self-test row (meets, non-matching remainder, deeper fragment, partial segment); inflight floor 45 to 46 | `scripts/pm/check-handover.mjs` `meetKind` | | 14 N3 | open: `RPC failed; HTTP 401` read `network` (retried) while the bare 401 line read `other`; OpenSSL's "Connection was reset" and an HTTP/2 stream or framing error read `other` | every non-403 4xx is `other` in each spelling (checked before the transport words); the three transport failures are `network`; two self-test cases | `scripts/pm/dev-worktree.sh` `classify_push_failure` | | 14 N5 | open: the usage line did not say what a proven `no` is proven against | the usage line says a no is proven against the ref as last fetched; self-test case runs the CLI and reads it | `scripts/pm/git-history.mjs` `usage` | | 14 N6 | open: a failed `rev-parse --disambiguate` became an empty list, read as "absent" | `disambiguate` returns null on failure and `hexPrefixProblem` turns that into a usage refusal ("could not be checked"); self-test case, injected and real (a cwd that does not exist) | `scripts/pm/git-history.mjs` | | 14 N7, script half | open: the skipped-probe line said "run this command again with --probe", and `--probe` alone is usage | the skipped-probe line spells the whole second run (this run's flags plus `--probe --no-install`); `--probe` with no `--branch` gets its own usage line naming that; two self-test cases | `scripts/pm/dev-worktree.sh` | | 24 (N2 of record 7237837161) | open, but NOT where the carrier note puts it: the stale sentence "The name is kept: importers read it" is beside `TRIAGE_ROUND_MINUTES` at `scripts/pm/check-owed-reviews.mjs:140` (nothing imports that name). `round-open.mjs:113`'s sentence beside `ROUND_RULE` is accurate and pinned by its self-test | nothing: `check-owed-reviews.mjs` is outside the claim's file surface | left on the card | | 14 N7, rule half | open: `.claude/agents/os-dev.md:31` spells `dev-worktree.sh --probe` without `--branch` | nothing: `os-dev.md` is outside the claim's file surface; the script now answers that spelling with the right command | left on the card | | 8, 10 | owe nothing (completeness; accepted deviations) | nothing | — | Ratchet: `landing-operations.md` 10684 to 10705 bytes, `execution-duties.md` 22226 to 22249; each pointer is paid out of its file's existing headroom (the ordinary-edit budget the ratchet header names), and both CEILINGS rows are LOWERED to the landed sizes (10717 to 10705, 22307 to 22249). No row is raised. ## Done-when, checked The card's done-when does not hold yet, so this is `Part of`: item 24 and the `os-dev.md:31` half of N7 are still open (both outside this slice's surface), and item 7 option B waits on its own contract-tier review. The card-pick reader was run against the live board at this head: `node scripts/pm/card-pick.mjs --order area:fleet --seat repo:objectstack#5 --limit 3` exit 0, "read: 232 open pm:queue issue(s) over 3 page(s) · the platform counts 232", three picks printed. ## Tests <details><summary>Self-tests at head 5df82fa</summary> - `node scripts/pm/round-open.mjs --self-test` exit 0: 41 cases pass across 6 batteries. - `node scripts/pm/check-handover.mjs --self-test` exit 0: 114 cases pass. - `node scripts/pm/git-history.mjs --self-test` exit 0: all cases passed. - `bash scripts/pm/dev-worktree.sh --self-test` exit 0: 89 cases pass across 7 batteries. - `node scripts/pm/check-skill-line-ratchet.mjs` exit 0. </details> <details><summary>Ablations (each through scripts/ablation-replace.mjs: mutation proven on disk, self-test red, restore proven by blob == HEAD and an empty git diff HEAD)</summary> - round-open: the old YIELD sentence put back, the printed-line case red (1 of 41). - check-handover: the new loop bound set to 0, the N12 row red (1 of 114). - git-history: `disambiguate` back to `?? ''`, the failed-listing case red; the usage line deleted, the usage case red. A first attempt at the first one hit an ambiguous anchor and wrote nothing (the tool refused it); it was re-run with a longer anchor. - dev-worktree: the 4xx arm answering `network`, two cases red; `was reset` removed, the transport case red (got other); the two HTTP/2 patterns removed, the same case red (got other twice); the skipped-probe line's spelled command removed, its case red; the `--probe` usage branch disabled, its case red. A first HTTP/2 ablation stayed green because the row's input also carried `RPC failed`; the rows now use git's unable-to-access spelling, which does not, and the second ablation went red. </details> ## Acceptance notes - Item 24's location: the carrier note and the dispatch name `round-open.mjs` beside `ROUND_RULE`; the record it comes from (7237837161 N2) names `check-owed-reviews.mjs:140`. The edit is one comment sentence there, owed by a later slice whose surface includes that file. - `os-dev.md:31` (N7, rule half): its edit belongs to a slice whose surface includes `os-dev.md`. - Item 7 option B is not in this diff (it needs its own contract-tier review). ## Verification Read first, by risk: `scripts/pm/check-handover.mjs` `meetKind`'s new glob arm (it widens what the in-flight check reports as an overlap); `scripts/pm/dev-worktree.sh` `classify_push_failure` (the order of the 403, 4xx and transport checks); `scripts/pm/round-open.mjs:410`. Two-minute check: `node scripts/pm/check-handover.mjs --self-test` prints `✓ check-handover self-test: 114 cases pass`, and the N12 row is among them. <details><summary>Local gates at head 5df82fa</summary> `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 73 commands; all 73 run under `os-verify-lock.sh` (VERDICT command-exit 0). 71 exited 0. `check:doc-formula-expressions` first answered PREREQUISITE NOT MET (exit 3: `@objectstack/formula` and `@objectstack/lint` unbuilt); after `turbo run build` of those two it exited 0. `check:i18n-coverage` answered PREREQUISITE NOT MET (exit 3: the workspace CLI and the examples unbuilt) and is NOT MEASURED locally, a declared narrowing: this diff touches no translation or label, and CI runs that family. `dispatch-gates --ran`: "73 derived famil(ies) accounted for — 72 run, 1 NOT-MEASURED". `overlap-check.mjs` before each push: VERDICT clean exit 0, against origin/main and 0 PR heads. No changeset: `scripts/pm/**` and `.claude/**` publish nothing (`skip-changeset`). </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2efcedd commit 33778d0

7 files changed

Lines changed: 78 additions & 21 deletions

File tree

‎.claude/skills/pm-dispatch/references/execution-duties.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
- 排队卡含他车道项 ⇒ 发现席自拆:新卡无 `domain:*`,首行 `carries item k of #N; #N keeps items …`。
4040
- 分诊首触定域可改判;拆出卡 ⛔ 不承父卡域(承域只及本车道 sub-issue),父卡余项照 `Fixes`。
4141
- `ui/**` 余项照常自派不拆(同仓同 worktree、门禁、合并队列),⛔ 不作 UI 跳过,非他车道项。
42-
- 派 `ui/**` 余项前,在飞求交加读 `domain:ui` 认领文件面,现读 `check-handover.mjs --inflight`;相交 ⇒ 照重叠检查排队或让行。
42+
- 派 `ui/**` 余项前,在飞求交加读 `domain:ui` 认领文件面,现读 `check-handover.mjs --inflight --paths=PATH[,PATH…]`;相交 ⇒ 照重叠检查排队或让行。
4343
- 自在飞派发升级出的卡首行一句:本卡承哪一半、父卡留哪一半;缺此行不入队不入箱。
4444
- 分诊预见的后续工作是一张卡,触发条件落地时立卡;⛔ 分诊一句话永不授权无卡编辑。
4545
- 阻塞项无主 ⇒ 被挡席认领做掉,不限大小;在该卡走完整认领、尊重其热文件串行队。

‎.claude/skills/pm-dispatch/references/landing-operations.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
- p0 fix-forward 止血跳队,限机械、根因已核实;维护者可按 governed 例外人工直合一行修复。
9494
- 止血非机械 ⇒ 锚卡点名归属车道、敲其信箱 `Notify: main-red`;根因卡恒归该车道。
9595
- main-red 约定②:一个失败 check 只锚一张卡,先立者赢,后见者评论到锚卡,⛔ 不另立。
96-
- 约定③:锚卡一轮分诊无人认领 ⇒ 分诊与总监当轮轮报点名卡与归属车道。
96+
- 约定③:锚卡一轮(`seat-lifecycle.md`)分诊无人认领 ⇒ 分诊与总监当轮轮报点名卡与归属车道。
9797
- 再一轮无人认领 ⇒ 分诊贴标准认领行、派一个 os-dev 只做止血;每轮一张,分诊不成车道。
9898
- 止血 PR 的 L1/L2 归车道席或总监,⛔ 非分诊;Tier H 仍等审批人;车道席到场经认领行交回。
9999

‎scripts/pm/check-handover.mjs‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ export function stayBehindText(reported) {
453453
export const EXIT_SURFACE_UNREAD = 5;
454454

455455
/** How many `inflight: ` self-test cases must register — the mode's battery floor (AGENTS.md, writing a `--self-test`). */
456-
const INFLIGHT_CASE_FLOOR = 45;
456+
const INFLIGHT_CASE_FLOOR = 46;
457457

458458
/**
459459
* The claim template's `File surface:` key line (SKILL.md 〈模板与表〉), read one line at a time. A qualifier in
@@ -569,7 +569,8 @@ const globRegex = (p) =>
569569
* suffix a claimed path FRAGMENT (`lanes/director.md`, `references/contract-review.md`, the fleet's way of naming
570570
* a skill file) meets a dispatch path ending in it on whole segments, a dispatch directory — bare or
571571
* spelled `DIR/**`, one directory — that the fragment STARTS inside (its leading segments end the
572-
* directory), and a glob whose trailing segments match it.
572+
* directory), a glob whose trailing segments match it, and a glob under a directory the fragment starts
573+
* inside whose remainder matches the fragment's rest (`DIR/**` followed by `/*.md` answers as `DIR/**`).
573574
*
574575
* Where it cannot tell it does NOT report: a name against a `DIR/**` or a bare directory (whose contents this reader
575576
* cannot list — it would meet every claim that names a `package.json`) is no meeting, and `inflightVerdict` lists such
@@ -602,7 +603,13 @@ export function meetKind(dispatch, claimed) {
602603
return null;
603604
}
604605
const tail = a.split('/').slice(-segs.length);
605-
return tail.length === segs.length && !tail.includes('**') && globRegex(tail.join('/')).test(b) ? 'suffix' : null;
606+
if (tail.length === segs.length && !tail.includes('**') && globRegex(tail.join('/')).test(b)) return 'suffix';
607+
// A glob under a literal directory (`DIR/**/*.md`) answers as `DIR/**` does: the fragment's leading segments end
608+
// that directory, and its remaining segments match what the glob spells below it.
609+
const head = staticPrefix(a).replace(/\/$/u, '');
610+
const below = globRegex(a.slice(staticPrefix(a).length));
611+
for (let k = 1; k < segs.length; k++) if (head.endsWith(`/${segs.slice(0, k).join('/')}`) && below.test(segs.slice(k).join('/'))) return 'suffix';
612+
return null;
606613
}
607614

608615
/** The root-relative reading of `meetKind` (its `path` arm). Pure. */
@@ -1602,6 +1609,7 @@ export function selfTest() {
16021609
t('inflight: N4 — a clear run NAMES the claimed bare names it could not judge against a directory or `DIR/**`; a `No changes outside …` clause is surface, not a fence', n4.exit === EXIT_OK && n4.notCompared.map((x) => x.claimed).join() === 'package.json' && inflightText(n4, { repo: 'o/r', paths: ['scripts/pm/**'], read: 'x' }).includes('1 claimed bare name(s) NOT COMPARED') && surfaceTokens('No changes outside `packages/lint/**`.').paths.join() === 'packages/lint/**');
16031610

16041611
t('inflight: ⭐ S5 — ONE directory, two spellings, one answer: a fragment that starts inside `DIR` meets `DIR` and `DIR/**` alike; a deeper fragment meets neither, and the clear line says so', meetKind('.claude/skills/pm-dispatch/references', 'references/contract-review.md') === 'suffix' && meetKind('.claude/skills/pm-dispatch/references/**', 'references/contract-review.md') === 'suffix' && meetKind('.claude/skills/pm-dispatch/references/**', 'lanes/director.md') === null && meetKind('.claude/skills/pm-dispatch/references', 'lanes/director.md') === null && inflightText(inflightVerdict({ paths: ['x/y.md'], held: [] }), { repo: 'o/r', paths: ['x/y.md'], read: 'x' }).includes('deeper inside a dispatched directory'));
1612+
t('inflight: ⭐ N12 — a glob under the directory a fragment starts inside answers as the bare `DIR/**` does: `references/**/*.md` meets `references/contract-review.md`, a remainder that does not match (`**/*.ts`) and a fragment that would sit deeper (`pm-dispatch/**/*.md`) do not', meetKind('.claude/skills/pm-dispatch/references/**/*.md', 'references/contract-review.md') === 'suffix' && meetKind('.claude/skills/pm-dispatch/references/**/*.md', 'references/lanes/director.md') === 'suffix' && meetKind('.claude/skills/pm-dispatch/references/**/*.ts', 'references/contract-review.md') === null && meetKind('.claude/skills/pm-dispatch/**/*.md', 'references/contract-review.md') === null && meetKind('.claude/skills/pm-dispatch/xreferences/**/*.md', 'references/contract-review.md') === null);
16051613
t('inflight: N8 — a single-segment dispatch directory (`scripts/`) lists a claimed bare name NOT COMPARED, like `scripts/pm/` and `scripts/**`', ['scripts/', 'scripts/pm/', 'scripts/**'].map((d) => inflightVerdict({ paths: [d], held: [{ issue: IF_CARD(), ...inflightSurface(IF_CARD(), [IF_CLAIM('File surface: `card-pick.mjs`.')]) }] }).notCompared.length).join() === '1,1,1');
16061614

16071615
// The claim-surface card, PR A: the qualified key, each claim's width, and the reconciliation against its pull.

‎scripts/pm/check-skill-line-ratchet.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const CEILINGS = new Map([
9999
['.claude/skills/pm-dispatch/references/rest-channel.md', 7698],
100100
['.claude/skills/pm-dispatch/references/l1-review-checklist.md', 6875],
101101
['.claude/skills/pm-dispatch/references/review-checklist.md', 79],
102-
['.claude/skills/pm-dispatch/references/landing-operations.md', 10717],
102+
['.claude/skills/pm-dispatch/references/landing-operations.md', 10705],
103103
['.claude/skills/pm-dispatch/references/release-aftercare.md', 3526],
104104
['.claude/skills/pm-dispatch/references/seat-post-protocol.md', 7720],
105105
['.claude/skills/pm-dispatch/references/true-green.md', 2068],
@@ -113,7 +113,7 @@ export const CEILINGS = new Map([
113113
['.claude/skills/pm-dispatch/references/reading-discipline.md', 3822],
114114
['.claude/skills/pm-dispatch/references/cross-repo-coordination.md', 4959],
115115
['.claude/skills/pm-dispatch/references/triage-duties.md', 13709], // edited byte-neutral by the re-basing PR (12399 → 12399); raised 12399 → 13559 (+1160, the landed bytes) by the rulings whose rows are written in it: ruling records 7031931263 (rows 2–5: 「adr接受你的建议」, 「只考虑合并没人认领的,没开始开发的,你负责处理」, 「影响评测的卡不能关,这个会影响到AI的开发效果」, 「adr和skills修改相对是重要的」), 7032145340 (row 6: 「同意」) and 7032418455 (row 7: 「你分诊的时候是不是应该同时评估大概的卡大小作为参考」); review record 7038100802 triggered the part of rows 2, 3 and 6 added in fix round 1 (one close reason, the sweep roll-over, the never-fold list of standing exclusions) and is a trigger, not a ruling; lowered 13559 → 13544 by the PR that moved the tier and effort values to the one home; raised 13544 → 13709 (+165, the landed bytes) by ruling record 7135874506 (items B4, B7 and C1: 「照推荐:采纳 5 条」)
116-
['.claude/skills/pm-dispatch/references/execution-duties.md', 22307], // raised 19810 → 20148 (+338) by ruling records 7031931263 (row 2, the weekly ADR card: 「adr接受你的建议」) and 7032145340 (row 6, the lane seat claims the weekly sweep card: 「同意」); 20148 → 20154 (+6) by ruling record 7073679594 (the L2 review effort line moves to `high` on the review sweep's readings: 「C」, under ruling 7073045669 point 4); 20154 → 20277 (+123) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): a hold is Blocked-by + pm:blocked on the card, the probe covers card threads; 20277 → 22158 (+1881) by ruling record 7076315104 (the one home for tier and effort, the 定档 section: 「要把规则文字同统一整理一下,避免散落在各处,避免ai犯错」); raised 22158 → 22316 (+158) by ruling record 7076315104 (Q13, the decision card 「定一下:五条新增规则要不要写进技能」: 「五条都写」) (the coordinator session, the area thread and the director's effort); lowered 22316 → 22307 by the PR that drops the triage suggestion line (item C1 of ruling record 7135874506)
116+
['.claude/skills/pm-dispatch/references/execution-duties.md', 22249], // raised 19810 → 20148 (+338) by ruling records 7031931263 (row 2, the weekly ADR card: 「adr接受你的建议」) and 7032145340 (row 6, the lane seat claims the weekly sweep card: 「同意」); 20148 → 20154 (+6) by ruling record 7073679594 (the L2 review effort line moves to `high` on the review sweep's readings: 「C」, under ruling 7073045669 point 4); 20154 → 20277 (+123) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): a hold is Blocked-by + pm:blocked on the card, the probe covers card threads; 20277 → 22158 (+1881) by ruling record 7076315104 (the one home for tier and effort, the 定档 section: 「要把规则文字同统一整理一下,避免散落在各处,避免ai犯错」); raised 22158 → 22316 (+158) by ruling record 7076315104 (Q13, the decision card 「定一下:五条新增规则要不要写进技能」: 「五条都写」) (the coordinator session, the area thread and the director's effort); lowered 22316 → 22307 by the PR that drops the triage suggestion line (item C1 of ruling record 7135874506); lowered 22307 → 22249 to its landed size by the #35237 slice-12 pointer PR
117117
['.claude/skills/pm-dispatch/references/filing-gate.md', 9124], // raised 9096 → 9101 (+5) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): same-epic order is the later card's Blocked-by; raised 8386 → 9096 (+710, the landed bytes) by the rulings whose rows are written in it: the rule card's body ruling (row 1, a dedupe hit on an open same-mechanism card ends in a comment: 「感觉你的第二种方案也很好啊」) and ruling record 7032145340 (row 6, the weekly sweep card entry rule and triage's move at first touch: 「同意」); review record 7038100802 triggered the quota line's pointer to row 1 (fix round 1) and is a trigger, not a ruling; lowered 9101 → 9089 by the PR that moved the tier and effort values to the one home; raised 9089 → 9124 (+35, the landed bytes) by ruling record 7135874506 (item A1: 「照推荐:采纳 5 条」)
118118
['.claude/skills/pm-dispatch/references/project-forms.md', 4889], // raised 4669 → 4889 (+220 B, the two project-memory lines less 48 B of restatement cuts) by ruling record 7046610679 「同意,立卡派发」 under ruling record 6184799323, letter B
119119
['.claude/skills/pm-dispatch/references/app-platform-boundary.md', 3928],

0 commit comments

Comments
 (0)