Skip to content

pm-dispatch(main-red): when the anchor card closes, the seats whose PRs were held waiting for main to turn green are knocked to resume them #29445

Closed

Description

@objectstack-fleet

triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

Filing gate ③: a task the maintainer set directly. In the triage seat's session on 2026-11-02, the maintainer said, verbatim: 「这个应该立卡写入 skills:如果到时候发现有哪个 PR 确实因为这次红被挡住(比如有车道把 PR 停下来等 main 绿),我会敲对应车道的邮箱,让它继续推进。」. They were answering triage's account of what happens after main-red anchor #29426 is fixed. ⛔ Not a claim.

维护者速读

  • 问题: main 红修好、锚卡关闭后,没有任何一步告诉"把 PR 停下来等 main 绿"的车道可以继续。这类 PR 要等到它的席位下次巡查时自己发现。
  • 改什么: 第一,停放时写一行指明在等哪张锚卡。第二,锚卡关闭时,由分诊找出所有点名这张锚卡的 open PR,逐个敲它们席位的邮箱。第三,邮箱门铃词表新增一个键。
  • 不改什么: 没有新门禁,也没有新标签和新状态。PR 由各席位自己推进,分诊不替车道动 PR。

What is missing

  • Parking, today. landing-operations.md §C parks a PR that cannot turn green until another PR lands: draft, an exact expected-red list, and a release condition naming that PR. The main-red conventions (①–③) cover the anchor card and the stop-bleed. Neither says how a PR held for a main-red marks what it waits on.
  • Recovery, today. When the anchor's fix lands, the stop-bleed lane closes the anchor. The doorbell table (project-forms.md, record-recognisers.mjs MAILBOX_KEYS) has Notify: unblocked for a p0/p1 card whose Blocked-by closed, but no key for "main is green again, resume your held PR". So a held PR resumes only when its seat happens to look.
  • Context. On main red: Dogfood Regression Gate fails on main since #29365 (dfbe34d8) — flow-runas and declarative-endpoint-anonymous-guest dogfood files #29426 the red is in the main-only battery (dogfood shards are skipped on pull_request and merge_group, ci.yml ≈L118–125). The queue kept merging, so no PR was blocked this time. A red in a per-PR job, or a lane that parks on any main red by caution, does hold PRs, and this card is for that case.

Change

  1. Mark the hold. In landing-operations.md (beside §C or the main-red conventions), a seat that parks a PR because main is red writes one line-leading Waits-on: main-red #<anchor> line in the PR body. A PR that waits only because of the red is parked under §C, with the anchor's fix as its release condition.
  2. Knock on close. In triage-duties.md, and as an addendum to the main-red conventions: when an anchor card closes, the triage seat (the director when triage is absent) reads open PRs whose body carries Waits-on: main-red #<anchor>. It knocks each one's seat mailbox, one doorbell per PR, in the same round. Report the count in the round record.
  3. The doorbell key. Add one row to MAILBOX_KEYS and to project-forms.md's list: Notify: main-green · anchor #n · PR #m, sender triage (or the director), receiver the PR's seat. Update the self-test row for the vocabulary, and the --mailbox-keys output with it.
  4. The receiving seat. On that knock, the seat merges origin/main into the PR (through the relay's pr_update_branch where it applies), removes the Waits-on: line, and resumes its landing as §C's last step describes.

⛔ No new gate, no new label, no new state, no patrol row. This is a doorbell and two text lines. The maintainer's words are quoted above, as instrument-discipline.md asks for any new process step.

Acceptance

  • The four edits are in one PR (.claude/skills/pm-dispatch/** and scripts/pm/record-recognisers.mjs), governed as the skills lane's surfaces are.
  • node scripts/pm/record-recognisers.mjs --mailbox-keys lists the new key, and its --self-test passes, with a refusal pinned for a misspelt variant.
  • A worked example in the edited text: anchor #N closes, so PRs #a and #b carrying Waits-on: main-red #N each get one Notify: main-green knock.

Reader who acts: domain:skills (.claude/skills/pm-dispatch/**, scripts/pm/record-recognisers.mjs).

Dedupe: searched main-red green notify and main-red anchor. The nearest are #27077 (the closed mailbox vocabulary card) and the open anchor #29426; neither covers resuming held PRs. New.


Generated by Claude Code

Activity

  1. added
    tooling
    priority:p2
    pm:queue
    domain:skills
    pm:dispatched
    and removed
    pm:queue
    on Nov 2, 2026
  2. objectstack-fleet commented on Nov 3, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#3 · os-support-ai · session_01WGufzhd2Ad9ANGTyAMW7pH

    Claim: PM loop round 5 · 2026-11-03T15:50Z
    Session: session_01WGufzjF3PXfVhah6UuSDYG (os-dev card thread "Knock seats when main turns green"; dispatched by session_01WGufzhd2Ad9ANGTyAMW7pH)
    Account: os-support-ai
    Branch: claude/project-thread-ut32e6
    Worktree: objectstack-issue-29445
    Domain: domain:skills
    Seat: domain:skills#3
    File surface: references/landing-operations.md (Waits-on: main-red #n hold line), references/triage-duties.md (knock on anchor close), references/project-forms.md 〈信箱 PR〉, scripts/pm/record-recognisers.mjs (MAILBOX_KEYS + self-test rows, new key Notify: main-green · anchor #n · PR #m); ceiling raises only as the ratchet header admits, by measured delta; no changeset (skip-changeset)
    Container & model: M, mode:thread, model: CONTRACT_REVIEW_TIER — reason: governed pm rules text plus the mailbox recogniser (per-card call; --tier: no path mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: none
    Premise: holds — no Waits-on: or main-green text in .claude/** or scripts/pm/** on origin/main 21510bb; MAILBOX_KEYS holds 17 keys after PR #29887
    Serial constraints cleared: no open PR touches the four files (measured over the 19 open PRs at 2026-11-03T15:42Z); disjoint from this seat's #29731 and #29682 surfaces

  3. objectstack-fleet commented on Nov 3, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#3 · os-support-ai · session_01WGufzjF3PXfVhah6UuSDYG
    os-dev-report

    {
      "issue": 29445,
      "status": "done",
      "branch": "claude/project-thread-ut32e6",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/29941",
      "head": "6be5c8c8af9c8d651e89a8b83889cfed9a50b483",
      "session": "session_01WGufzjF3PXfVhah6UuSDYG",
      "premise_still_valid": true,
      "summary": "Change 1-4 in one PR. landing-operations.md section C: the release-condition line folds the hold line (Waits-on: main-red #n, anchor fix as release condition) and one new line says what a seat does on Notify: main-green (merge origin/main via relay pr_update_branch, drop the Waits-on line, resume). triage-duties.md: two lines beside the anchor duties - on anchor close, same round, read the open PRs carrying the line and ring each seat once with Notify: main-green, count in the round record, director when triage is absent, with the worked example (anchor #N, PRs #a and #b, one knock each); one duplicate line (the Clause-2 boundary test execution-duties.md already states) deleted. project-forms.md 信箱 PR names the key. record-recognisers.mjs: MAILBOX_KEYS 17 -> 18 with the reader, --mailbox-keys prints it, doorbell battery pins the reading and the refusal of misspelt variants (maingreen, main-grean, green), floor 41 -> 42, roster pin 17 -> 18.",
      "tests": "node scripts/pm/record-recognisers.mjs --self-test :: exit 0, 363 cases pass (base 362) · pnpm check:pm-record-recognisers :: exit 0 · pnpm check:pm-skill-ratchet :: exit 0 (landing-operations move reads +32 (69→102, less 1 line of ordinary ruled raise); director move +15 (70→86, less 1) against -20) · pnpm check:pm-skill-id-lint :: exit 0 (109 files clean) · node scripts/pm/check-half-states.mjs --self-test :: exit 0 (5161 cases) · the three families re-run on committed head 6be5c8c8 :: exit 0 each. No ablation: scripts and rules text only.",
      "gates": "node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 40 families for the 5-file diff; all 40 run in the worktree, exits captured before any pipe, --ran reconciliation: 40 derived, 40 run, 0 NOT-MEASURED, 0 UNRUN. First pass: 39 exit 0, pnpm --filter @objectstack/lint run check:doc-formula-expressions exit 3 (PREREQUISITE NOT MET: formula and lint not built); after pnpm exec turbo run build --filter=@objectstack/formula --filter=@objectstack/lint it exits 0 and that reading is reconciled. CI families on the PR: in_progress at report time, not re-run locally.",
      "line_budget": "landing-operations.md 101 -> 102 lines (ceiling 101 -> 102, ruled raise +1 recorded under the CROSS_FILE_MOVES destination's ruledRaises); triage-duties.md 99 -> 100 (ceiling 99 -> 100: +2 lines, -1 duplicate deleted, ruled raise +1; a source of the lanes/director.md move, which still reads +15 against -20); project-forms.md 58 -> 59 (ceiling 58 -> 59, ruled raise +1). Every new or edited line is at most 120 B (the two tightest at 120 B). Ruling of record quoted in each CEILINGS row: the maintainer's verbatim word on this card (filing gate 3).",
      "files_changed": [".claude/skills/pm-dispatch/references/landing-operations.md", ".claude/skills/pm-dispatch/references/project-forms.md", ".claude/skills/pm-dispatch/references/triage-duties.md", "scripts/pm/check-skill-line-ratchet.mjs", "scripts/pm/record-recognisers.mjs"],
      "deviations": [
        "Three ceilings raised +1 each (not paid by deletion alone): neighbouring lines sit at 113-120 B so no fold was possible; deletion paid one line (triage-duties.md's Clause-2 boundary test, duplicated in execution-duties.md); the rest is quoted against the card's verbatim maintainer word as the ruling of record.",
        "dispatch-gates --commands first exited 2 (STALENESS NOT MEASURED: a stale local origin/main ref); after git fetch origin main (origin/main = 21510bba, the branch base) it derived normally. No merge of origin/main was needed: main had not moved.",
        "Not subscribed to the PR and no assignee/reviewer set, per os-dev.md rule 2 and the dispatch contract (the seat hands over and owns landing).",
        "No changeset: .claude/** and scripts/pm/** publish nothing; skip-changeset declared on pr_create (read back: labels skip-changeset, size/s)."
      ],
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "5 — GitHub MCP reads only: issue_read get x1, issue_read get_comments x3, pull_request_read get x1; no write tool",
      "api_writes": "2 — relay fleet-write dispatch (pr_create for objectstack-ai/objectstack, draft, labels skip-changeset, no assignees; run 41673580189 success, 6930 bytes sent = stored) · post-stamped comment on #29445 (this report). git push is not a REST write.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  4. objectstack-fleet commented on Nov 3, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#3 · os-support-ai · session_01WGufzhd2Ad9ANGTyAMW7pH

    Seat status · PR #29941 landing · 2026-11-03T16:46Z

  5. removed
    pm:dispatched
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:skillspriority:p2tooling

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions