Repository navigation
feat(pm): put the topic-and-area board builder in the repo - #36757
Conversation
scripts/pm/topic-board.mjs ports the triage seat's board builder (read-only, through gh-pages.mjs), with an offline --self-test chained onto check:pm-board-snapshot; topic-board/page.html is the board page template and topic-board/README.md the 3-hourly refresh runbook. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxba6Siz8egCv4AAnqtU
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj 维护者速读专题和区域看板(objectstack、cloud 两个页签)的生成脚本,以前只存在巡查席的临时目录里,换人或会话结束就没法再刷新。现在放进仓库: 席位核对 — ACCEPT (L1) · repo:objectstack#1 · head
|
…ectstack-ai#36765) <!-- claude-projects-attribution: {"github_login":"os-warren"} --> _Requested by **Warren** · [project thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ8JpuMUc83TvQP7B2uT2pUz5)_ Fixes objectstack-ai#36740 — card item 4, the skill pointer. Items 1–3 (the script, the page template, the runbook) landed in objectstack-ai#36757. Clause-②: no Metadata-protocol: none Rule-change: yes Ruling-ref: ruling record 7107018094 on objectstack-ai#36740 — the maintainer, in the triage session, 2026-11-23: 「看板代码要放进仓库,立卡派发」; and on the seat's decision card, 2026-11-23 15:34Z: 「接,按普通顺序派」. Neither quote names this skill line; the link between the quotes and the card's item 4 (this line) is the seat's reading of card objectstack-ai#36740, so the line itself waits for the maintainer's approval of this PR. ## 维护者速读 - 用户无感:分诊座位的职责说明里加一行,写明每 3 小时照手册刷新专题看板。 - 属于车队工具:上一步已把看板脚本放进仓库,这一行让以后任何分诊座位都知道这是它的固定任务。 - 只改一行说明文字,不碰产品;写错了直接撤回这一行即可。 - 这是技能文本,需要 os-zhuang 批准后才能合并。 ## What changes - `.claude/skills/pm-dispatch/references/lanes/triage.md`: one new line naming the board duty — every 3 h, on the UTC hours 0, 3, …, 21, rebuild both repos' data and refresh the board following `scripts/pm/topic-board/README.md`. Placed with the other per-round duties, after the dropped-seat line. - `scripts/pm/check-skill-line-ratchet.mjs`: the `lanes/triage.md` ceiling rises 2526 → 2637, **+111 bytes**, the measured size of that one line. The file sat exactly at its ceiling, so the line cannot be paid by headroom. The raise cites ruling record **7107018094** (comment on objectstack-ai#36740), in the PR body here and in the row's comment, as the ratchet discipline requires. ## Why The card's item 4: the runbook landed in objectstack-ai#36757, and the triage lane file is what a new triage seat reads first, so the duty has to be named there or a seat on another account would not know the board exists. ## Verification Read first: the one added line in `lanes/triage.md`, then the CEILINGS row for it. Two-minute check: `pnpm check:pm-skill-ratchet` → the `lanes/triage.md` line reads 2637 bytes, ceiling 2637. <details><summary>Local gates at 4e64d5c (dispatch-gates --commands: 40 families)</summary> `node scripts/pm/dispatch-gates.mjs --ran` → 40 accounted: 39 run, all exit 0 — including `pnpm check:pm-skill-ratchet`, `pnpm check:pm-skill-id-lint`, `pnpm check:skill-frame-sync`, `pnpm check:pm-governed-merges`, `pnpm check:pm-record-recognisers` and `pnpm check:pm-dispatch-gates` (fast tier 431 s, exit 0). 1 NOT MEASURED, exit 3 PREREQUISITE NOT MET: `check:doc-formula-expressions` (needs a built `@objectstack/formula`; this diff touches no package). CI builds and runs it. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01JQwxba6Siz8egCv4AAnqtU <!-- signed: repo:objectstack#1 · os-warren · session_01JQwxba6Siz8egCv4AAnqtU --> Co-authored-by: Claude <noreply@anthropic.com>
Requested by Warren · project thread
Part of #36740 — this PR lands card items 1–3 (the script, the page template, the runbook). Item 4, the one skill line in the triage lane file, is governed text, so it follows as its own PR carrying the closing keyword once this one merges; keeping it out keeps this diff out of Tier H.
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
scripts/pm/topic-board.mjs(new): a Node port of the referencebuild.pyfrom the card.--repo=objectstack|cloud --out=DIRwritesepics{,_cloud}.jsonandareas{,_cloud}.json;--self-testruns offline. Read-only: every read goes throughgh-pages.mjs(gh api, the sharedscripts/pmread path); a failed read exits 3 and writes nothing. The retiredlanesoutput (and the seat roster that fed it) is not ported.scripts/pm/topic-board/page.html(new): the card's page template, as attached on the card, unchanged (no path needed fixing).scripts/pm/topic-board/README.md(new): the 3-hourly runbook — build both repos, upload the four JSON files one per call, repoint the four dataset docs withif_version, delete superseded blobs; artifact ownership across accounts; reading a stale row; no artifact URL in the repo.package.json: the self-test is chained onto the existingcheck:pm-board-snapshotscript, so CI runs it with no workflow edit.Why
The board builder lived only in triage#1's session scratchpad and dies with it; the maintainer ordered it into the repo so any triage seat, on any account, can keep refreshing the board.
Tests
node scripts/pm/topic-board.mjs --self-test— 38 cases, all pass, offline. It pins: topic detection (pm:epic,[Epic …],[专题 …],专题:,trackingwith open subs; a closed-out tracking card and apm:seatcard are not topics); parent choice (direct holder beats a larger containing topic; a cycle keeps one link); rollup (a parent's numbers include its descendant topics' cards, topic cards never count as members, closed sub-issues count in total/closed); prose-linked "unlinked" members (#2000and#200号do not match#200); topic cards left out of the area table withtopic_skipped; the 「(未定 area)」 row; the read path (pull requests dropped, request count, a failed sub-issues read fails the whole read).A one-off mutation (direct-holder rule replaced by "any containing topic") turned three cases red, then was restored before the commit (the original line read back).
Acceptance notes
Pacing is at or below the reference's: one paginated open-issues list, one sub-issues read per topic, and one per sub-issue whose
sub_issues_summary.totalis above zero (or absent). The reference read every sub-issue's sub-issues unconditionally; the members found are the same.Area rows: every area of the repo's list gets a row in list order, zero or not, so the page shows every area group; others follow by open count, then 「(未定 area)」. The reference emitted only areas with cards, sorted by count; the page sorts groups by its own order, so only zero groups are new.
topicis 0 by construction (as in the reference) and kept for the page's shape.Faithful to the reference, kept as is: a card detected as a topic by title alone (no
pm:epic/trackinglabel) is not in the area table's skip list, so it counts there when it sits in no other topic.Live-count check (done-when 1) is not measured here: this container's
ghis limited to search. NOT MEASURED: live read, reason: no non-searchgh apiin this container. It is the triage seat's reading, on its next refresh, from a checkout of this branch:Then compare
DIR/epics.json,DIR/areas.json,DIR/epics_cloud.jsonandDIR/areas_cloud.jsonwith the datasets of triage#1's last published refresh: per topicopen/total/closed/unlinked, per areaopen/p1, andtopic_skipped. They should match within the cards that changed between the two builds; the only expected structural difference is the new zero rows for areas with no open cards. The stdout summary line also prints the GET request count of each run.Verification
Read first:
buildBoardinscripts/pm/topic-board.mjs(the parent choice and the cycle guard), thenreadBoard(the read count and failure path).Two-minute check:
node scripts/pm/topic-board.mjs --self-test→topic-board self-test: all passed.The page was rendered in Chromium from the script's own output on a fixture (stub
dash/d3): no page errors, both tabs draw the area groups, the topic tree (child under parent) and the 「专题以外」 rows.Local gates at b85141c (dispatch-gates --commands: 42 families)
node scripts/pm/dispatch-gates.mjs --ran→42 derived famil(ies) accounted for — 38 run, 4 NOT-MEASURED. All 38 run exit 0, includingpnpm check:pm-board-snapshot(now carrying this self-test),node scripts/check-self-test-wired.mjsandpnpm check:pm-dispatch-gates(fast tier 459 s, exit 0).NOT MEASURED (exit 3, PREREQUISITE NOT MET — they read built
dist/, and this diff touches no package):check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closure,check:sourcemap-no-sources-content. CI builds and runs them.🤖 Generated with Claude Code
https://claude.ai/code/session_01JQwxba6Siz8egCv4AAnqtU