Skip to content

Commit cbc61eb

Browse files
committed
feat(pm): a seat-signed card is the fleet's, and the summary query names its window test
A card is fleet-authored when an App opened it or when its body opens with a seat signature, since seat-operated human accounts file cards too. h67ReadOrder reads the signature with readSignatureLine, the one reader record-recognisers.mjs also imports, and the H67 self-test pins a seat-signed human card behind an older fleet card next to the same card with the signature off its first line. The daily-summary and candidate-order lines carry the same definition, and the summary query names the local created_at / closed_at window test that the since listing needs. All edits are in place: both files stay at their ceilings. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8VVAjYZRbZ8TG8TRzG5zd
1 parent 7d105ed commit cbc61eb

3 files changed

Lines changed: 16 additions & 10 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
@@ -52,7 +52,7 @@
5252
- 标签序:`priority:p0` > `pm:blocking` > 功能点位次 > `target:` 板上项 > p1 > p2 > p3 > 无级。
5353
- `pm:blocking` 级内先按解锁扇出(从 `Blocked-by:` 反向索引现算,⛔ 扇出数不落标签)。
5454
- 全序每级现读/现算,零逐卡维护;无级/缺 `Path:` 轮报记分诊缺口。
55-
- 同级先非车队作者(`user.type` 非 `Bot`)卡,再 `Bug`,再卡龄;⛔ 不升级、不越 `priority:p0`。
55+
- 同级先非车队卡(作者非 `Bot` 且首行非席位签名),再 `Bug`、卡龄;⛔ 不升级、不越 p0。
5656
- 一车道多席按全序交替取卡:席 1 奇位、席 2 偶位;只为破交替才发 `split`;认领戳仲裁。
5757
- 空闲杂务:无卡可认领或等分诊的车道席对本车道卡做下四件;⛔ 不定级,自分诊例外照旧。
5858
- ① 交付卫生:交付卡补收尾记录;离手摘 `pm:*` 同笔设下一态;`Blocked-by:` 全关即重验回队。

‎.claude/skills/pm-dispatch/references/lanes/director.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@
7272
## 职责四:每日摘要、发版板与总表
7373

7474
- 每日摘要:在飞/待裁/待落地/撞墙、复审逾 24h 的 PR、发版板、无卡 fork PR、外部需求行。
75-
- 外部需求行一行三数,摘要时现查并贴查询;非车队 = 作者 `user.type` 非 `Bot` 的人工账号。
75+
- 外部需求行三数现查并贴查询;非车队 = 作者 `user.type` 非 `Bot` 且正文首行非席位签名。
7676
- ① 窗内非车队开卡数;② 窗内关卡中非车队所开占比;③ open 无 `pm:*` 非车队卡逐张带龄。
77-
- 查法:①② 取 `since` 窗起的全态列表,③ 取 open 全量;皆排 PR,本地按 `user.type` 与标签求。
77+
- 查法:①② 取 `since` 窗起列表(超集),本地 `created_at`/`closed_at` 落窗才计;③ 取 open;皆排 PR。
7878
- 座位贴与在飞活性复查归本摘要,见 `../dispatch-runbook.md` 巡查常设项与 `../triage-duties.md`。
7979
- 发版板 `target:<major>` 主仓归本席;判据二元,⛔ 不做优先级渐变:不修它,RC 能不能发。
8080
- 判阻塞四类:① 用户今天就撞的已发布面缺陷;② 公开契约 declared≠enforced。

‎scripts/pm/check-half-states.mjs‎

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17547,10 +17547,11 @@ export function h66ReleasedNonDispatchableRemainder(issue, commentRows) {
1754717547
// ⛔ It models the full 取卡全序 only in part, and says so rather than implying
1754817548
// otherwise: `target:` board membership is a board read this file does not
1754917549
// make, and the same-priority 「先 `Bug`」 tiebreak is not taken. The author leg
17550-
// IS taken: within one rank a card opened by a human account sorts before one
17551-
// an App (`user.type` `Bot`, every `[bot]` login) opened, and ⛔ it never lifts a
17552-
// card out of its rank. An unreadable author reads as the fleet's, ⛔ never
17553-
// promoted. An unreadable `created_at` sorts LAST rather than first (#4690's
17550+
// IS taken: within one rank a non-fleet card sorts before a fleet card, and ⛔
17551+
// it never lifts a card out of its rank. A card is the fleet's when an App
17552+
// opened it (`user.type` `Bot`, every `[bot]` login) OR its body opens with a
17553+
// seat signature (`readSignatureLine`), since seat-operated human accounts file
17554+
// cards too. An unreadable author reads as the fleet's, ⛔ never promoted. An unreadable `created_at` sorts LAST rather than first (#4690's
1755417555
// direction on every timestamp here), with `number` as a total-order tiebreak
1755517556
// so two runs over one board agree.
1755617557
// ---------------------------------------------------------------------------
@@ -17661,7 +17662,7 @@ export function h67SpeaksAbout(issue) {
1766117662
/**
1766217663
* Which candidates this run buys a page for, and which it defers — OLDEST
1766317664
* FIRST, by the legs of 取卡全序 this file can read for free: rank, then a
17664-
* human author before an App author, then age.
17665+
* non-fleet card before a fleet one (App author or seat-signed body), then age.
1766517666
*
1766617667
* ⛔ The opposite of `h66BuyOrder`, deliberately, and the header carries the
1766717668
* argument: H66 chases a fresh write, this one chases the card a dispatching
@@ -17684,8 +17685,10 @@ export function h67ReadOrder(issues, cap = H67_TIMELINE_READ_CAP) {
1768417685
const at = H67_SELECTION_ORDER_LABELS.findIndex((l) => labels.includes(l));
1768517686
return at === -1 ? H67_SELECTION_ORDER_LABELS.length : at;
1768617687
};
17687-
// A human account before the fleet, inside one rank only; unread reads as fleet.
17688+
// Non-fleet before fleet, inside one rank only; a seat-signed body or an
17689+
// unreadable author reads as the fleet's.
1768817690
const fleet = (issue) => {
17691+
if (readSignatureLine(issue?.body) !== null) return 1;
1768917692
const author = artefactAuthor(issue);
1769017693
return author && !author.isApp ? 0 : 1;
1769117694
};
@@ -25249,7 +25252,7 @@ export const SELF_TEST_BATTERIES = Object.freeze({
2524925252
// being asserted would still print rows, and every one of them would read as
2525025253
// 「close this」, which is the one thing the card forbids. Pinned AT the count
2525125254
// since the read order took the author leg, so the same-priority pair cannot go.
25252-
'H67 queued merged-delivery reading': 156,
25255+
'H67 queued merged-delivery reading': 158,
2525325256
// Registered with the decorated ownership-marker reading (#18680); the pin
2525425257
// sits just under the count on its neighbours' grounds. What this battery
2525525258
// floors is a WIDENING of the two markers' READING, so the FIRING CONTROLS
@@ -36135,6 +36138,9 @@ Doubles as the fire's **write self-check** (step 0). \`201\` is not the reading.
3613536138
b(BATTERY67, '⭐ H67 order: within ONE priority a human-opened card is reached before an OLDER fleet-opened one', order67(PAIR67, 2), '22,21');
3613636139
b(BATTERY67, 'H67 order: …and the author leg is the ONLY reason — two fleet cards of that priority stay oldest-first', order67([PAIR67[0], { ...PAIR67[1], user: fleet67 }], 2), '21,22');
3613736140
b(BATTERY67, '⛔ H67 order: the author leg never lifts a card OUT of its priority, and never past p0', order67([{ ...PAIR67[1], labels: [{ name: 'priority:p3' }] }, PAIR67[0], { ...PAIR67[0], number: 23, labels: [{ name: 'priority:p0' }] }], 3), '23,21,22');
36141+
const SIGNED67 = 'domain:skills#1 · huangyiirene · session_01J8VVAnMUWA9rufXzFaEh4J\n\nFiling gate ③ …';
36142+
b(BATTERY67, '⭐ H67 order: a HUMAN account whose body opens with a seat signature is the fleet\'s — it stays behind the older fleet card', order67([{ ...PAIR67[1], body: SIGNED67 }, PAIR67[0]], 2), '21,22');
36143+
b(BATTERY67, 'H67 order: …while the same human card with the signature off its first line is still reached first', order67([{ ...PAIR67[1], body: `A user report.\n\n${SIGNED67}` }, PAIR67[0]], 2), '22,21');
3613836144
b(BATTERY67, 'H67 order: every App author is the fleet\'s (`github-actions[bot]` too), and an unreadable author ⛔ is never promoted', order67([{ ...PAIR67[1], user: { login: 'github-actions[bot]', type: 'Bot' } }, { ...PAIR67[1], number: 24, user: undefined }, PAIR67[0]], 3), '21,22,24');
3613936145
b(BATTERY67, 'H67 order: `pm:blocking` ranks above p1, as the selection order does', order67([{ number: 8, created_at: '2026-09-10T00:00:00Z', labels: [{ name: 'priority:p1' }] }, { number: 9, created_at: '2026-09-11T00:00:00Z', labels: [{ name: 'pm:blocking' }] }], 2), '9,8');
3614036146
b(BATTERY67, 'H67 order: ⭐ it is the OPPOSITE of H66\'s, and that is the point', order67(CAND67.filter((i) => i.number !== 3 && i.number !== 4), 2) === h66BuyOrder(CAND67.filter((i) => i.number !== 3 && i.number !== 4).map((i) => ({ ...i, updated_at: i.created_at })), 2).buy.map((i) => i.number).join(','), false);

0 commit comments

Comments
 (0)