Skip to content

pm: merge-queue stewardship without the maintainer — a relay dequeue door, the front-jump for approved large PRs, each landing seat owning its queued PRs, and a queue#1 seat for the cross-lane duties #33647

Closed

Description

@objectstack-fleet

triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

Filing gate: ③ maintainer-directed. In the triage seat session on 2026-11-15, verbatim: 「建议有专人来跟进队列吗?这种操作不应该等我」, then 「queue 立卡处理,是否建议区域租约试点座位自己跟进」. ⛔ Not a claim.

维护者速读

今天队列上的操作都要等你:带冲突的 PR 要移出队列(#33591),超过 3,000 行的 PR 要插队(#33227)。原因是中继没有「移出队列」的操作,插队又被行数线拦着。本卡补工具,并把队列的事分成两层:

  1. 每个落地座位管好自己在队列里的 PR:冲突、被自己的问题踢出、重新入队。
  2. 跨车道的队列事务交给一个中立的 queue#1 座位:排头被抖动测试踢掉、插队仲裁、main 卡住超过 90 分钟。

区域租约试点座位(server#5)不兼任 queue#1。它是 server 车道最大的落地方,自己判谁插队、谁出队会有利益冲突,而且它已经扛着 7 个区。它照第 1 层管自己的 PR。在 queue#1 开起来之前,分诊临时兼任第 2 层。

Evidence (2026-11-14/15)

What lands

  1. A relay op pr_dequeue (scripts/pm/fleet-write/execute.mjs, GraphQL dequeuePullRequest), fenced to three causes:

    • (a) the entry conflicts with its base;
    • (b) the entry's own change failed its queue build (not a flake by the three-fact test in landing-operations.md);
    • (c) its landing seat asks.

    Each use leaves one audit comment on the PR naming the cause. The queue is read back to confirm removal, and a 200 is never trusted on its own. automerge_disable stays as is; it does not dequeue.

  2. pr_enqueue_front for an approved large PR: a PR over 3,000 lines may be jumped by a seat when it already carries an authorized APPROVED review on its current head (or a carried approval the maintainer confirmed). The jump reasons (a)/(b)/(c) and the one-jumper rule are unchanged. The approval stays the maintainer's.

  3. Landing-seat duty (landing-operations.md): a seat that queued a PR owns it in the queue. When it conflicts or is ejected for its own cause, the seat dequeues, fixes and re-queues within one patrol. When it is ejected by someone else's flake, the seat re-queues under the existing three-fact rule.

  4. A queue#1 lane charter (references/lanes/queue.md), patrolling every 15–20 min:

    • the stall check, which fires at 90 min without main advancing (>2 h: notify the maintainer);
    • head ejections: name the cause; on a flake's second hit, file an anchor at p0 and knock the area;
    • dequeueing on the owner's behalf when the owner is offline;
    • arbitrating jumps under the three reasons;
    • tracking queue-config changes (e.g. max_entries_to_build).

    It holds no lane cards and lands nothing of its own. Until it is seated, triage carries this charter on its hourly patrol.

  5. The maintainer's one-time grant: the objectstack-fleet App needs Merge queues: write. execute.mjs already names this grant in its jump failure text. This is a manual step for the maintainer, listed here so it is not forgotten.

Not in scope

The approval of >3,000-line or governed PRs, and the Version Packages merge, stay the maintainer's.

Grade

p1: a stalled queue blocks every lane, and today each fix waited on the maintainer.

Activity

  1. added
    tooling
    priority:p1
    pm:queue
    domain:skills
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: landing order, so queue#1 can be seated before the tooling lands · 2026-11-15T04:43Z

    ⛔ Not a claim.

    The maintainer asked whether queue#1 must wait for this card to land (「queue是不是要等技能落地才能开?」). Only one small piece is a hard prerequisite:

    • scripts/pm/mailbox-open.mjs:187 SEAT_BARE_LANES is ['triage', 'director', 'security', 'review', 'qa', 'eval']. Without queue in that list, a queue#1 seat cannot open its mailbox through the door. There is also no references/lanes/queue.md charter for its seat stub to point at.

    So land this card in two PRs:

    1. PR 1, small and first: add queue to SEAT_BARE_LANES (with its self-test row), and add references/lanes/queue.md carrying item 4's charter, scoped to the doors that exist today:

      • the stall check, flake anchors and knocks;
      • re-queueing a flake victim under the three-fact rule;
      • pr_enqueue_front for a ≤3,000-line ACCEPTed PR under the jump reasons.

      It names dequeueing and the large-PR jump as the maintainer's until PR 2. Once this lands, queue#1 can sit.

    2. PR 2: pr_dequeue (item 1), the approved-large-PR jump (item 2) and the landing-seat duty text (item 3). The charter then widens.

    Until PR 1 lands, triage carries the charter on its hourly patrol, as the body says.

  3. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

    Claim: PM loop round 9 (PR 1 of 2, per triage comment 6889317333)
    Session: session_01FEkQ5pjSPT7ui2EUcunaVb
    Account: os-project-manager
    Branch: claude/project-thread-dz3jnm
    Thread session: session_01FEkQ5mG9Vc2BSB9XBpfq1n
    Worktree: objectstack-issue-33647
    Domain: domain:skills
    Seat: domain:skills#1
    File surface: scripts/pm/mailbox-open.mjs (+ self-test), .claude/skills/pm-dispatch/references/lanes/queue.md (new), at most a one-line roster entry under .claude/skills/pm-dispatch/** (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: opus (default; dispatch-gates --tier on the real diff decides), effort default
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — PM tooling (queue#1 seat prerequisite)
    Thread-read: none
    Premise: holds (no Blocked-by)
    Serial constraints: one card per file at a time. PR 2 (pr_dequeue, large-PR jump, landing-seat duty) touches scripts/pm/fleet-write/execute.mjs and waits for #33540's PR.
    Order: /mnt/project-files/pm-orders/skills/order-33647.md (project file). Ruling-ref: Leehom 「后续只处理 p1 p2」 (2026-11-15T05:05Z). Claimed 2026-11-15T06:08Z.

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  5. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5mG9Vc2BSB9XBpfq1n
    os-dev-report
    {
    "issue": 33647,
    "status": "done",
    "branch": "claude/project-thread-dz3jnm",
    "pr": "#33688",
    "session": "session_01FEkQ5mG9Vc2BSB9XBpfq1n",
    "premise_still_valid": true,
    "summary": "PR 1 of 2 per triage comment 6889317333: queue joins SEAT_BARE_LANES (mailbox-open.mjs) and SIGNATURE_LANE_SOURCE (check-half-states.mjs), so a queue#1 seat can open its mailbox and sign. New charter references/lanes/queue.md (27 lines) carries item 4 scoped to today's doors: stall check, head-ejection causes, p0 flake anchors with a knock, flake-victim re-queue under the three facts, pr_enqueue_front for an ACCEPTed PR of at most 3,000 lines; dequeue and the large-PR jump are named as the maintainer's until PR 2. Ratchet CEILINGS/MAX_TABLE_ROW_BYTES rows and the project-forms.md seat word added.",
    "tests": "head e82b3f0: mailbox-open.mjs --self-test 90 cases pass (89 on base d4e3dcc plus the queue-seat row); fleet-roster.mjs --self-test 115 cases pass (lane grammar ONE set holds); check-skill-line-ratchet.mjs exit 0 and --self-test 164 cases pass. No ablation: script/config/docs diff (os-dev.md: no ablation for scripts and docs).",
    "gates": "head e82b3f0: dispatch-gates --commands derived 55; all 55 exit 0 (captured before any pipe), after pnpm --filter @objectstack/lint... build under the lock (VERDICT command-exit 0). --ran: 55 derived, 55 run, 0 NOT-MEASURED, 0 UNRUN. Extra (rule 5): mailbox-open, fleet-roster, check-skill-line-ratchet self-tests exit 0. --tier: no path-derived mandate. check-governed-merges --branch: Tier S (.claude/** x2). PR check-runs: in_progress at report time.",
    "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
    "mcp_calls": "0",
    "api_writes": "3 — git push (branch), relay pr_create (PR 33688, labels skip-changeset), relay post-stamped comment (this report) on issue 33647",
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [],
    "deviations": "File surface wider than the order's expected surface: scripts/pm/check-half-states.mjs (SIGNATURE_LANE_SOURCE, else the seat cannot sign and fleet-roster self-test reds) and scripts/pm/check-skill-line-ratchet.mjs (CEILINGS + MAX_TABLE_ROW_BYTES rows, required for every lanes/*.md). Same six files as the lanes/eval.md precedent; nothing under scripts/pm/fleet-write/** or .github/**. Roster entry went to project-forms.md, not SKILL.md: SKILL.md lane-table row is 340 B against its 341 B width pin. project-forms.md line pointer shortened to lanes/ to stay under 120 B with no added line.",
    "files_changed": [
    ".claude/skills/pm-dispatch/references/lanes/queue.md (new)",
    ".claude/skills/pm-dispatch/references/project-forms.md",
    "scripts/pm/check-half-states.mjs",
    "scripts/pm/check-skill-line-ratchet.mjs",
    "scripts/pm/mailbox-open.mjs"
    ],
    "line_budget": "lanes/queue.md 27/27 (new ceiling row, headroom 0); project-forms.md line count unchanged at ceiling; +54/-14 over 5 files"
    }

  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5mG9Vc2BSB9XBpfq1n
    os-dev-report
    {
    "issue": 33647,
    "status": "done",
    "branch": "claude/project-thread-dz3jnm",
    "pr": "#33688",
    "session": "session_01FEkQ5mG9Vc2BSB9XBpfq1n",
    "premise_still_valid": true,
    "summary": "Round 2 (review record 6890622635, PASS with S1, S2, N1). Head 4e8ca44, one commit on e82b3f0, touching lanes/queue.md and its CEILINGS row (27 to 30). S1: the seat finds the anchor first (landing-operations.md main-red convention 2, one anchor per failing check) or files one, and asks triage for the grade with Request: urgent-triage; it sets no grade. Only a flake also red on main takes the main-red convention 1 p0 exception, with Request: main-red to triage and Notify: main-red to the anchor lane (project-forms.md anchor-filer row). S2: the dequeue line drops its off-table knock; the cause goes into the PR's audit comment. N1: the stall check fires only while the queue is non-empty. N2 and N3 left for PR 2 as the seat accepted.",
    "tests": "head 4e8ca44: check-skill-line-ratchet.mjs exit 0 (lanes/queue.md 30/30, every line at most 120 bytes) and --self-test 164 cases pass. mailbox-open, fleet-roster and check-half-states unchanged since e82b3f0.",
    "gates": "head 4e8ca44: dispatch-gates --commands derived the same 55 families as round 1; all 55 exit 0 after the lint-closure build under the lock (VERDICT command-exit 0); --ran 55 run, 0 NOT-MEASURED. origin/main 6ff3eee carries no change to the PR's files (PR 33687 not landed yet), so no merge. PR check-runs: pending at report time.",
    "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
    "mcp_calls": "0",
    "api_writes": "2 — git push (4e8ca44), relay post-stamped comment (this delta) on issue 33647",
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [],
    "deviations": "The order's ruling text says flake anchors at p0 on a second hit; per review S1 the charter now leaves the grade to triage (triage-duties.md and SKILL.md reserve grading) and keeps p0 only under the named main-red exception. Made at the seat's direction; the card's intent (an anchor plus a knock on the second hit) holds. The PR body still describes round 1; the body edit is the seat's (os-dev.md rule 3). Body text owed: What changes item 3, flake bullet, becomes find-or-file the anchor and ring triage for the grade (main-red exception by name); maintainer bullet drops the knock; stall check reads queue non-empty; 27 lines becomes 30 throughout.",
    "files_changed": [
    ".claude/skills/pm-dispatch/references/lanes/queue.md",
    "scripts/pm/check-skill-line-ratchet.mjs"
    ],
    "line_budget": "lanes/queue.md 30/30 (own new ceiling row, raised 27 to 30 in this PR before landing, headroom 0)"
    }

  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

    Claim: PM loop round 10 (PR 2 of 2; supersedes claim 6890154597)
    Session: session_01FEkQ5pjSPT7ui2EUcunaVb
    Account: os-project-manager
    Branch: claude/project-thread-7tfnah
    Thread session: session_01FEkQ5nn2c5rose69uoEzmE
    Worktree: objectstack-issue-33647
    Domain: domain:skills
    Seat: domain:skills#1
    File surface: scripts/pm/fleet-write/**, .claude/skills/pm-dispatch/references/landing-operations.md, references/lanes/queue.md, one line-ratchet row (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: opus (default; dispatch-gates --tier on the real diff decides), effort default
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — PM tooling
    Thread-read: none
    Premise: holds (PR 1 is PR #33688, in the merge queue; #33540 merged: PR #33686)
    Serial constraints: one card per file at a time. #33715 (relay comment tier) waits for this PR on scripts/pm/fleet-write/**.
    Order: /mnt/project-files/pm-orders/skills/order-33647b.md (project file). Ruling-ref: Leehom 「后续只处理 p1 p2」 (2026-11-15T05:05Z). Claimed 2026-11-15T07:23Z.

  8. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb
    os-dev-report

    {
      "issue": 33647,
      "status": "done",
      "branch": "claude/project-thread-7tfnah",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/33732",
      "session": "session_01FEkQ5nn2c5rose69uoEzmE",
      "premise_still_valid": true,
      "summary": "PR 2 of 2 at head e40c1bd6. Item 1: new relay row pr_dequeue (GraphQL dequeuePullRequest) fenced on open, head, release, queue, queued and cause (conflict = mergeable_state dirty; own-failure = entry UNMERGEABLE or merge-group rollup FAILURE/ERROR; seat-asks = a fleet comment signed by the dispatching session); one audit comment posted before the mutation, the queue read back for 30 s, still listed => FAILED UNCONFIRMED; merge-queues grant minted for its stroke alone, travels alone. Item 2: pr_enqueue_front's over-3,000-line fence lifts on an authorised APPROVED review on the current head, or on approval_comment (a GOVERNED_APPROVERS comment on this pull naming the head); jump reasons, governed and one-jump fences unchanged. Item 3: landing-operations.md carries the lift, pr_dequeue's three causes and 'who queued it watches it'; lanes/queue.md widened (dequeue (a)(b) on an offline landing seat's behalf, the lift). Carried for #33718 at the seat's request: the retro-review line now routes findings through the filing gate (ruling record 6891082225).",
      "tests": "fleet-write/execute.mjs --self-test: 403 cases across 30 batteries pass (new: SIZE lift, pr_dequeue — every fence both ways, audit-before-mutation, no mutation when the audit fails, GraphQL error FAILED naming Merge queues: write, still-listed read-back FAILED UNCONFIRMED, late removal lands). fleet-write/validate.mjs --self-test: 428 cases across 22 batteries pass (new pr_dequeue battery). fleet-write/dispatch.mjs --self-test: 401 pass. check-skill-line-ratchet.mjs exit 0, --self-test 164 pass. All on e40c1bd6.",
      "gates": "dispatch-gates --commands on the real diff: 47 derived, each run on e40c1bd6, exit captured before any pipe, 47 of 47 exit 0; --ran: 47 derived, 47 run, 0 NOT-MEASURED, 0 UNRUN. dispatch-gates --tier: no path-derived mandate. check-governed-merges --branch: Tier S (.claude/** x2; scripts/pm/** not on the register), 716 changed lines, under 3,000. PR check-runs: not yet concluded at report time; the seat holds the events.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "1 — mcp__github__pull_request_read (get, #33688, read-only)",
      "api_writes": "0 direct REST writes. Writes: git push x4 (c9b41edc, 70b33883, 8ef85602, e40c1bd6); relay pr_create (request fw-20261115T082221Z-0fbf1c, run 43694191160, #33732, body read back byte-identical, label skip-changeset, no assignees); this comment via post-stamped",
      "line_budget": "landing-operations.md 108 -> 112 (+4, measured; ruledRaises record 2026-11-15 on its CROSS_FILE_MOVES entry); lanes/queue.md 30 -> 32 (+2, measured). Both cite card #33647 (filing gate ③), verbatim 「建议有专人来跟进队列吗?这种操作不应该等我」. Every line <= 120 bytes. The #33718 carry adds 0 lines.",
      "files_changed": [".claude/skills/pm-dispatch/references/landing-operations.md", ".claude/skills/pm-dispatch/references/lanes/queue.md", "scripts/pm/check-skill-line-ratchet.mjs", "scripts/pm/fleet-write/execute.mjs", "scripts/pm/fleet-write/ops.mjs", "scripts/pm/fleet-write/validate.mjs"],
      "deviations": [
        "Signature session: standing-lines says session_<your thread session>; the seat's correction says the seat's session. The PR body, its signed trailer and this comment carry the seat's session (matching claim 6891021684's Session line); this run's own session is in `session` above and the claim's Thread session line.",
        "Two line-ratchet rows moved, not one: both files the order names grew, each with its own measured ceiling.",
        "N2 not done: the SKILL.md lane-table row is 340 bytes against a 341-byte pin; the pointer needs about 360, so a row-pin raise would be needed. N3 done (charter keeps 'opens no PR' as worded on main).",
        "#33718 carry: to fit the 120-byte cap, 「落地后才见」 became 「落地后见」 on the same line (now exactly 120 bytes).",
        "Not measured: dequeuePullRequest's input shape and whether it needs Merge queues: write (GraphQL is closed to this container; read from GitHub's schema docs). The first live stroke measures both; a GraphQL error is a FAILED action naming the grant."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: c · reach: exception: maintainer · .github/workflows/fleet-write.yml still calls pr_enqueue_front the ONE consumer of validate's permission_merge_queues output; pr_dequeue now consumes it too (comment only, no functional change; .github/** out of this order's scope) · dedupe words: fleet-write.yml ONE consumer permission_merge_queues",
        "class: c · reach: exception: release-text · AGENTS.md PD#14 says no seat act is measured to dequeue; stale once #33732 lands · dedupe words: PD#14 dequeue seat act",
        "carrier: maintainer · item 5, the objectstack-fleet App's Merge queues: write grant, named in the PR body · noted, not filed"
      ]
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

domain:skillspm:dispatchedpriority:p1tooling

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions