Skip to content

fix(pm): six card readings move from domain:* to area:* and the epic parent - #35587

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-vm9eti
Nov 19, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-vm9eti

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #35234
Fixes #35613

Clause-②: no
Metadata-protocol: none
Changeset: none, labelled skip-changeset. The diff touches four fleet scripts under scripts/pm/, and no published package moves.
Seat: repo:objectstack#1 · os-sales · session_01L6bhgWh7NM35xq2HajeYCx

No script under scripts/pm/ judges a card by its domain:* label any more. The six readings of the first round, plus H38's claim index and H39's census in the second round, all read the card's intake. The one domain:* reading left is a printed column (card-pick.mjs domainOf), and it judges nothing.

维护者速读

  • 用户能看到什么变化:用户无感;车队内部的巡查、待审清单和席位名册改为按「区」和所属专题判断一张卡归哪个席位,旧的「领域」标签单独不再决定归属。
  • 为什么做:落实已商定的「席位加专题」新排班,替换掉还在按退役领域席位分卡的八处判断,为撤掉领域标签扫清路。
  • 出错会怎样:最坏是巡查漏提醒或错提醒某张卡该由哪个席位接,只影响内部派单、不碰产品;直接撤回这次合并即可恢复。
  • 要你做什么:合并后另行确认是否撤除领域标签;脚本已不再依赖它们,撤除前要一并处理的几件事见下文清单。

The domain:* label retirement, for the maintainer

This pull retires and deletes no label. The retirement is the separate step the card reserves for you. No script reading blocks it any more. These things go with it:

  • The vacant domain:* seat posts (for example domain:spec · seat 3) still show as roster rows, with empty card columns, until they are retitled or closed. fleet-roster.mjs now gives such a row no card.
  • ensure-pm-labels.sh still creates the domain:* labels. Retiring them means removing them there as well.
  • LANE_LABEL_ALIASES in check-half-states.mjs, and the write doors that rewrite a retired domain:* spelling when they write a label, go when the labels go. Their only reader left is a seat post's title.
  • card-pick.mjs domainOf is left alone on purpose. It is a printed column that judges nothing, and card-pick.mjs belongs to pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #35237, which is in development. Its unread-legs note still tells a seat to read each row's domain:*, and that note moves with that card.

What changes

Reading Before After
H71 h71UnclaimedOnDutyLane a queued card's domain:* label against the domain lanes of on-duty seats the card's intake (area:* labels, plus epic:#N when its REST parent_issue_url is an issue on this board) against the intake keys a 🟢 seat post's title names
H32 lane inventory (sweepInto) and h32SeatIdleOverQueue the seat's domain lane, counted over cards carrying that domain:* label the seat's intake, counted over cards whose intake meets it (seatIntakeInventory), each card once
H73 h73RuledCardStillInBox named the owing seat by the card's domain:* label names the seat whose post names the card's area:* labels or its epic parent. The epic is said, never numbered. A card with neither goes to triage.
H74 h74InheritsFromParent a sub-issue inheriting its parent's domain:* or grade was exempt inheriting the parent's area:* or grade is exempt. A domain:* label alone no longer exempts.
check-owed-reviews.mjs lane seat (laneSeatOf) the card's domain:* label against seat lanes the card's intake against each seat's intake (read from its post title). The snapshot carries the card's parent_issue_url.
fleet-roster.mjs cardLaneMatch a domain:x seat row owned the cards labelled domain:x a domain:x row owns no card. A repo:x seat owns its repo's cards by account, as before.
H38 newestLaneClaim and h38SeatPostStale (and the sweepInto caller) the seat's domain:* lane, through the alias map, against a dispatched card's domain:* label the seat post's seatIntakeKeys against the card's cardIntakeKeys. A post whose title names no intake on this board (a retired domain seat, a sibling board's lane, triage) takes no row. The finding names the intake.
H39 censusLanesOf a closed card bucketed by its domain:* (alias-resolved) and repo:* labels bucketed by its intake (area:*, a same-board epic:#N) and repo:*. A domain:* label alone is (no lane).
ensure-pm-labels.sh comment said disjunct ③ and H13 read domain:* says they read area:* (the first half of the card moved them)

There are two new pure helpers in check-half-states.mjs, and the other scripts import them. seatIntakeKeys(post) reads the area:x tokens and epic #N / epic:#N off a seat title. It returns them only for a lane on this board: a repo: lane of another repo, a @ elsewhere suffix, a domain:* seat and an unparseable title all give no intake. cardIntakeKeys(card) reads the card's area:* labels plus epic:#N from a same-repo parent_issue_url. parent_issue_url is on the REST issue row, so the epic reading costs no extra request.

seatLane stays: it gives the seat number off any title, and it reads a domain:* seat title through the alias map. h32NeedsSeatComments keeps its domain leg, which only keeps a retired domain seat's thread read (H44 reads it anyway) and judges no card. H32 and H38 both skip such a post, since it names no intake.

Rounds 3–4: the claim's seat number reads today's seat spellings

  • CLAIM_SEAT_DECLARATION_ANYWHERE (the mid-line Seat: presence probe behind claimSeatNumber) now recognises every seat spelling live on the board: repo:NAME#N (dots and dashes allowed, e.g. repo:www.objectos.ai#2), epic:#N#K, and the retired domain:LANE#N. It still demands the whole payload and is still case-sensitive. Before, a mid-line Seat: repo:objectstack#3 read as seat 1, so H38 could flag a seat-1 post as stale over another seat's claim. Now that declaration reads as unreadable and matches no seat.
  • claimSeatNumber reads a line-initial epic:#N#K payload (optionally backticked) as seat K, not the epic number N; before, Seat: epic:#31527#1 read as seat 31527 and matched no seat. Every other spelling still takes the first #digits, so a trailing note never changes the answer.

Round 5: the sweep's ③ counts pm:epic as a state (#35613), and H74's wording

  • First-touch sweep ③ (「area:* 无 pm-state」) counts pm:epic as a state, as H13 does for the same phrase. An epic card with an area and a grade but no dispatch position is no longer FOUND on every fire. The type row and the area backstop row are unchanged.
  • H74: the coverage sentence now says a sub-issue inherits its parent's area or grade (it said domain or grade). The branch merged main once after fix(pm): run records leave the area patrols and the grade row, epics leave the type row #35532 landed (merge 7d2be2b, no conflict).

Tests

Every changed behaviour has a self-test case. Battery pins were moved to the new counts, with a comment on each move:

  • check-half-states.mjs --self-test: 5356 → 5378 cases, exit 0 (round one 5369, round two adds nine: H38 two post scopes and five intake cases, H39 two lane cases). In the domain:server lane aliases battery, the five claim-index and two census cases were rewritten in place to pin that a domain:* label, in any spelling, is on no intake. The count did not change, so that pin did not move. Pins: H70/H71 seat patrol 30 → 35, H73 ruled card in the decision box 25 → 26. H74 stays at 46. It still registers more than that, and leaving the pin line alone keeps it clear of the other open pull's edit there.
  • check-owed-reviews.mjs --self-test: 91 → 94 cases, exit 0. The triggers pin moved 10 → 13.
  • fleet-roster.mjs --self-test: 116 cases in 9 batteries → 118 in 10, exit 0. The fixture battery dropped 29 → 24: nine domain-ownership cases became four cases that pin a domain row owning nothing. A new battery (7) shows a repo: seat owning cards by account for in flight, landing, merge and rulings. The battery floor moved 9 → 10.

Each new reading has one ablation, run through scripts/ablation-replace.mjs. Each one reverts the reading to domain:*, runs the battery, and restores. Every one went red, and every restore proved the blob equals HEAD with an empty git diff HEAD.

Ablation readings (1–6 on head 0e19c38, 7–9 on head a00496a)
# Reading reverted Battery Result
1 H71 card lanes ← domain:* labels check-half-states 7 of 5369 failed, exit 1
2 H32 inventory ← domain:* labels check-half-states 2 of 5369 failed, exit 1
2b H32 seat gate dropped (no-intake seat admitted) check-half-states 3 of 5369 failed, exit 1
3 H73 intake ← domain:* labels check-half-states 3 of 5369 failed, exit 1
4 H74 inherits domain: instead of area: check-half-states 2 of 5369 failed, exit 1
5 laneSeatOf ← seat lane against card label check-owed-reviews 27 of 94 failed, exit 1
6 cardLaneMatch domain branch re-added fleet-roster 3 failures, exit 1
7 H38 newestLaneClaim card match back to its alias-resolved labels check-half-states red, exit 1: the first affected case throws (null .number)
8 H38 h38SeatPostStale back to the seatLane domain lane check-half-states 11 of 5378 failed, exit 1
9 H39 censusLanesOf back to domain:/repo: labels check-half-states red, exit 1: the first affected case throws (undefined lane row)

The first attempt at 6 was a no-op: its replacement still contained the anchor, so the tool refused it before running anything. It was rerun with an anchor the replacement does not contain. 7 and 9 went red by a TypeError in the first case that reads the reverted value, not by a counted failure. The battery exits 1 either way. Every restore line reads ok restored: blob == HEAD and git diff HEAD is empty.

Acceptance notes

  • ui/scripts/__tests__/cross-file-line-citation-census.test.ts is the only test that names these scripts. It uses scripts/pm/check-half-states.mjs as a path string in a fixture and does not exercise the script, so it is not owed here.
  • objectui seat posts could not be read from this session (403), so they were not checked against the new rule that a domain row owns no card. objectui now lives in the ui/ tree, so the risk is low.
  • A claim's Seat: declaration carried mid-line is read as unreadable only when it spells a domain:* seat (CLAIM_SEAT_DECLARATION_ANYWHERE). A mid-line Seat: repo:objectstack#3 reads as seat 1 (claimSeatNumber gives 1; the domain:spec#3 control gives null). This reads claim text, not a card's labels. It was left out of this pull and is reported to the seat.
  • H74's wording on one line (the sentence that describes a sub-issue inheriting its parent's grade) still says "domain or grade". Changing it collides with the other open pull that edits next to H74, so it was left for that pull or the follow-up.

Verification

Read first, by risk:

  1. scripts/pm/check-half-states.mjs: seatIntakeKeys / cardIntakeKeys / seatIntakeInventory (after seatLane), then H71 and the sweepInto hunk that builds onDutyLanes.
  2. scripts/pm/check-owed-reviews.mjs: laneSeatOf and the readSnapshot hunk that adds intake and cardParent.
  3. scripts/pm/fleet-roster.mjs: cardLaneMatch and the new repo-lane battery.

Two-minute check: node scripts/pm/check-half-states.mjs --self-test && node scripts/pm/check-owed-reviews.mjs --self-test && node scripts/pm/fleet-roster.mjs --self-test. Expect three success lines, with 5378, 94 and 118 cases.

Local gates

Round two, head a00496a2. The gates were narrowed to the ones reading the round-two edit, by the seat's order. Each exit code was captured before any pipe:

  • node scripts/pm/check-half-states.mjs --self-test: exit 0, 5378 cases pass
  • node scripts/pm/check-owed-reviews.mjs --self-test: exit 0, 94 cases
  • node scripts/pm/fleet-roster.mjs --self-test: exit 0, 118 cases in 10 batteries
  • pnpm check:pm-half-states: exit 0
  • pnpm check:nul-bytes: exit 0
  • pnpm check:scripts-symbol-anchors: exit 0, 4489 anchors across 300 scripts resolve
  • check-partof-closing-keyword over this body (PR_BODY): exit 0
  • node scripts/pm/overlap-check.mjs --branch=HEAD: exit 0. origin/main (bf69cb4) merges cleanly, and the open pull that shares check-half-states.mjs merges cleanly.

Round one, head 0e19c38e. Derivation: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack gave 70 commands. Each exit code was captured before any pipe.

  • 68 exit 0, each run as printed: node scripts/check-closing-keyword-parity.mjs, node scripts/check-closing-keyword-parity.mjs --self-test, node scripts/check-comment-mask-corpus.mjs, node scripts/check-declaration-mirrors.mjs, node scripts/check-declaration-mirrors.mjs --self-test, node scripts/check-issue-citations.mjs, node scripts/check-platform-checklist-watchdog.mjs, node scripts/check-platform-checklist-watchdog.mjs --self-test, node scripts/check-release-section-coverage.mjs, node scripts/check-release-section-coverage.mjs --strict, node scripts/check-self-test-wired.mjs, node scripts/check-self-test-wired.mjs --self-test, node scripts/check-self-test-workflow-commands.mjs, node scripts/check-self-test-workflow-commands.mjs --self-test, node scripts/check-skills-token-ratchet.mjs, node scripts/check-skills-token-ratchet.mjs --self-test, node scripts/check-whole-set-label-write.mjs, node scripts/check-whole-set-label-write.mjs --self-test, node scripts/ci/plan-test-core-shards.mjs --self-test, node scripts/ci/scheduled-full-run-card.mjs --self-test, node scripts/ci/scheduled-full-run.mjs --self-test, node scripts/ci/snapshot-next.mjs --self-test, node scripts/pm/bare-root-worklist.mjs --self-test, node scripts/pm/board-snapshot.mjs --self-test, node scripts/pm/check-governed-queue-guard.mjs --self-test, node scripts/pm/sweep-closed-cards.mjs --self-test, node scripts/render-release-coverage-anchor.mjs --self-test, pnpm check:adr-anchors, pnpm check:agent-test-spelling, pnpm check:bash32-floor, pnpm check:ci-filter-parity, pnpm check:cli-command-ids, pnpm check:closing-target-claim, pnpm check:commit-card-trailers, pnpm check:cross-package-test-inputs, pnpm check:declared-population-live, pnpm check:driver-memory-census, pnpm check:entry-guard, pnpm check:gitlink-declared, pnpm check:issue-citations, pnpm check:nul-bytes, pnpm check:parse-guard, pnpm check:partof-closing-keyword, pnpm check:pm-board-snapshot, pnpm check:pm-close-cards, pnpm check:pm-dispatch-gates, pnpm check:pm-expected-skips, pnpm check:pm-fleet-token, pnpm check:pm-fleet-write-dispatch, pnpm check:pm-fleet-write-execute, pnpm check:pm-fleet-write-validate, pnpm check:pm-governed-merges, pnpm check:pm-governed-prose, pnpm check:pm-half-states, pnpm check:pm-issue-create, pnpm check:pm-issue-transfer, pnpm check:pm-label-desc-cap, pnpm check:pm-label-write, pnpm check:pm-post-stamped, pnpm check:pm-prior-rulings, pnpm check:pm-record-recognisers, pnpm check:pnpm-filter-targets, pnpm check:pnpm-flag-spellings, pnpm check:ratchet-remedy-authority, pnpm check:refd-timer-probe, pnpm check:scripts-symbol-anchors, pnpm check:single-claim-paths, pnpm check:watch-hint-literal.
  • pnpm check:i18n-coverage: exit 3, PREREQUISITE NOT MET (the workspace CLI is not built), so NOT MEASURED. The diff touches no package, and CI's built tree reads it.
  • pnpm check:platform-checklist: exit 1. It reports one problem: platform-core.seed-mode-matrix: VARIANTS STALE, with SeedMode read as 0 members. SeedMode became enumWithRetiredValues(...) in an earlier main commit, which is an ancestor of this base. This diff touches only scripts/pm/, so the red is on main and not from this change.
  • node scripts/pm/dispatch-gates.mjs --ran ran.list: exit 0, 70 derived famil(ies) accounted for — 69 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).
  • node scripts/check-platform-checklist.mjs --changed-from origin/main: exit 0, 0 anchored files in the change set — nothing judged.
  • node scripts/pm/overlap-check.mjs --branch=HEAD: exit 0. origin/main: merges cleanly, and the one open pull that shares scripts/pm/check-half-states.mjs merges cleanly.

Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgWh7NM35xq2HajeYCx

…arent

check-half-states H71, H32's lane inventory, H73 and H74's parent
inheritance, check-owed-reviews' lane seat and fleet-roster's seat row no
longer read a card's domain:* label. A seat's intake is the areas and
epics its title names on this board's repo lane (seatIntakeKeys); a card's
is its area:* labels and its same-repo sub-issue parent (cardIntakeKeys).
H74 inherits a parent's area or grade. A domain: roster row owns no card.
The stale disjunct comment in ensure-pm-labels.sh reads area:*.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgWh7NM35xq2HajeYCx
…omain:*

H38 newestLaneClaim matches a dispatched card's cardIntakeKeys against the
seat post's seatIntakeKeys, and h38SeatPostStale judges a post only when its
title names an intake on this board; a retired domain:* seat takes no row.
H39 censusLanesOf buckets a card by its intake plus repo:* lanes; a domain:*
label alone is (no lane). The alias-map docblock now says the one reader
left is a seat title.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgWh7NM35xq2HajeYCx
@github-actions github-actions Bot added size/l and removed size/m labels Nov 19, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgWh7NM35xq2HajeYCx

Final head for L1 · 2026-11-19T17:00Z: a00496a2cc5135cc037c53f41d345a7e76f0e40f. CI on it: 31 success, 22 skipped, 0 failed; mergeable clean. Not governed (check-governed-merges.mjs --pr 35587: 0 of 4 paths hit the register; 662 changed lines). Card #35234, claim 7014329727, os-dev reports 7015442401 (round 1) and 7015719402 (round 2).


Generated by Claude Code

…pellings

CLAIM_SEAT_DECLARATION_ANYWHERE recognised a mid-line declaration only when it
spelled a domain:* seat, so a mid-line `Seat: repo:objectstack#3` read as seat
1 and H38 could row a seat-1 post over another seat's claim. It now demands
the whole payload in any live spelling: repo:NAME#N (dots and dashes allowed),
epic:#N#K, or a retired domain:LANE#N. Still case-sensitive; the prose control
keeps reading as seat 1.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgWh7NM35xq2HajeYCx
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

维护者速读

  • 用户能看到什么变化:没有。车队的巡查、待审清单和席位名册,改为按卡的「区」标签和所属专题父单判断归哪个席位,不再看「领域」标签。
  • 出错会怎样:最坏是巡查漏提醒或错提醒某个席位,只影响内部派单,撤回即恢复。
  • 要你做什么:不需要你做任何事。区域会再推一个小 delta(claim 里 Seat: repo:…#N 的写法),那个 delta 还要再过一次 L1。

席位核对 — ACCEPT (L1-a) · repo:objectstack#1 · head a00496a2cc5135cc037c53f41d345a7e76f0e40f · 2026-11-19T17:05Z


Generated by Claude Code

…mber

claimSeatNumber took the first #digits of a line-initial Seat: payload, so
`Seat: epic:#31527#1` read as seat 31527 and the claim matched no real seat.
The epic shape epic:#N#K now yields K. Every other spelling keeps the first
#digits, so a trailing note never moves the answer.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgWh7NM35xq2HajeYCx
… grade

The sweep's ③ row read 「area:* 无 pm-state」 with the six dispatch positions
only, so an epic card with an area and a grade but no position was FOUND on
every fire, while H13 reads the same phrase with pm:epic counted. ③ now counts
pm:epic too; the type row and the area backstop row are unchanged. H74's
coverage sentence now says a sub-issue inherits its parent's area or grade.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgWh7NM35xq2HajeYCx
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgWh7NM35xq2HajeYCx

Final head for the L1 delta · 2026-11-19T18:05Z: 560644f799c6d994221cde8e81cae1b7df74f45e. Delta since the ACCEPT on a00496a2 (7016190003): rounds 3–5 — the claim's seat-number spellings (repo:NAME#N, epic:#N#K), one merge of main after #35532 (7d2be2b, no conflict), H74's wording, and #35613 folded in (Fixes #35613, claim 7017026970). CI on this head: 32 success, 22 skipped, 0 failed; mergeable clean. Not governed (check-governed-merges.mjs --pr 35587: 0 of 5 paths; 714 changed lines). Reports: #35234 7016224117, 7016304281, 7017165524; #35613 7017187233.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

维护者速读

  • 这一轮补了几处读法:
    • 认领评论里 Seat: 一行改写成新座位名(repo:…#N、epic:#N#K)后能读准;
    • 每日首触巡查不再把专题父单列为「缺状态」;
    • 一句过期的说明改正了。
  • 要你做什么:不需要你做任何事,区域自己落地。

席位核对 — ACCEPT (L1-a, delta) · repo:objectstack#1 · head 560644f799c6d994221cde8e81cae1b7df74f45e · 2026-11-19T18:07Z

Delta read: a00496a2..560644f7, 4 commits (two own rounds, one main merge, one round folding #35613). ACCEPT 7016190003's readings are carried.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgWh7NM35xq2HajeYCx

Landing · 2026-11-19T18:08Z: head 560644f799c6d994221cde8e81cae1b7df74f45e, L1-a ACCEPT 7016190003 + delta ACCEPT 7017716013 on this head. Not governed (check-governed-merges.mjs --pr 35587: 0 of 5 paths, 714 lines), no L2 owed (Clause-②: no, no contract face). CI 0 failed, mergeable clean. Ready + auto-merge into the queue. Fixes #35234 and #35613.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/l skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants