Skip to content

pm-dispatch: area-lease mode for any lane — dynamic areas, review seats, land-after-PASS, Tier H hand-off, cross-account GitHub handover (from the #33059 pilot) #33751

Closed

Description

@objectstack-fleet

domain:server#6 · os-elon-musk · session_016WV4cztR1A2CZoxSZyuoGP

Filing gate: ③ a maintainer-directed task. Maintainer's words (project thread, 2026-11-15, verbatim): 「然后应该立卡更新skills。这种方式适合推广到其他车道吗?」 · 「所以是否分区域,如何分区域应该是动态的是吗?」 · 「你直接立卡,然后让 server 5 按照你的卡处理也可以」.

维护者速读

1. Pilot evidence (#33059, 2026-11-14 14:30Z → 2026-11-15 09:00Z)

Measure Value
domain:server issues closed 117 (p1 12, p2 69, rest p3/other)
Area PRs merged (head:claude/area-*) 106
Same metric, the two prior 24 h windows 58 and 50 closed
Open domain:server issues created before the pilot 181 at start → 95 still open
Weekly usage on the running account 14% (16:18Z) → 38% → 52% → 61% → 73% → 83% → 84% (08:39Z); ≈ 1.7 cards closed per 1%
Merge-queue failures 28 of 293 queue runs in the first ~11 h; each failure rebuilds every group behind it, so queue duty was added

Shape that worked: 1 seat + 8 areas (A1–A5, E1, E2, E2b) + 3 review seats; up to 4 sub-agents per area; areas land after PASS; seat keeps W0, rulings, Tier H, ledger.

Failures and lessons (each needs a line in the skill):

  1. Tier H hand-off missed. Several governed PRs sat as drafts with a PASS but no ACCEPT / pr_ready / pm:awaiting-merge / pr_request_reviewers, so the maintainer could not see them. Fix: every seat round re-checks every PASS'd governed PR for the four-piece hand-off.
  2. Mailbox not opened at the pilot's seating ("drop the old rules" was read as "no mailbox"), so triage's knocks went nowhere for a day. Fix: the mailbox step is never dropped; re-seating or moving seats opens a new one.
  3. Account handover in local files only. The next account (different login) cannot read project files or memory. Fix: the seat's handover and each area's state go into a GitHub comment on the seat post.
  4. Overlap between two accounts. The outgoing account kept draining while the new one started. Fix: an explicit ownership split on the seat post. The outgoing account moves to a free seat with its own mailbox and posts "ownership transferred" when done.
  5. A measured gain was wrong. A benchmark headline was taken without the security chain the engine really emits. Review caught it before filing. Fix: perf cards quote numbers from the reviewed bench PR only.
  6. Claim label writes silently missing on one card. Fix: read the labels back after a claim.
  7. Context/token cost. Coordination threads that read diffs/logs burned context. Fix: all code reading goes to sub-agents; coordination threads rotate at ~150k.

2. The work plan (seat 5 runs this until the skill lands)

2.1 Goal

Full-speed domain:server p1 + p2. Epic #33631 (SQL performance) children are part of the p1/p2 pool. p3 only as a same-file ride-along (≤5 cards/PR, ≤~100 lines, no Clause-② answer of its own).

2.2 Dynamic partitioning (new rule)

  • At seating, and again at every handover or shift, the seat decides:
    • whether to split into areas at all: split when the open p1/p2 count and the number of independent module clusters they touch justify more than one parallel session (rule of thumb: ≥15 claimable p1/p2 cards across ≥3 clusters);
    • how many areas;
    • their boundaries: group by the files and packages the cards touch, so two areas rarely edit the same function.
  • Merge areas whose queue is drained; split an area that backs up.
  • Review seats scale with active areas: about 1 per 3 active areas. One owns merge-queue duty.
  • The lease table (area → paths → thread → reviewer) lives in the seat post and is rewritten whenever it changes.
  • The 2026-11-14 server split, as a starting point to re-derive, not a fixed rule:
    • A1 plugin-auth
    • A2 plugin-security / audit / email / notify / Setup metadata
    • A3 storage / attachments / approvals / trash / analytics + dataset routes
    • A4 drivers / seed loader / formula / objectql filter compile / schema sync / health
    • A5 runtime (not action routes) / hono server / automation / cli / packaging
    • E1 metadata-protocol (protocol.ts serial)
    • E2 security catalog / webhooks / metadata history + loader
    • E2b runtime action routes / objectql function holders

2.3 Startup

  1. Seat session takes the seat: seat post stub, own mailbox (scripts/pm/mailbox-open.mjs --seat LANE#N --login L; in a cloud container push the session's branch and pass --head), lease table, start comment on the pilot/epic card.
  2. One project thread per area and per review seat.
  3. The maintainer writes one authorising line in each new thread. Auto mode accepts only the maintainer's own words in the acting thread; relayed copies and card taps do not count.
    • Area threads: 「本区通过复审的 PR 都可以 ready + auto-merge」
    • Seat thread: 「审批人批准后的 Tier H PR 你可以自主落地」
  4. W0 in each area's first hour: a close / fold / regrade / decision list to the seat. The seat writes after the maintainer sees it. Start the first p1 at once.

2.4 Working rules

  • Claim: re-read labels, assignee and last comment first. Do not touch a card with another assignee, a Claim: comment, or a lease:* that is not just an epic area tag. Then one label-write.mjs stroke (pm:queue → pm:dispatched + lease:<ID> + assignee) and a Claim: comment naming claude/area-<ID>-<card> (check:closing-target-claim needs it). Read the labels back. Open the draft PR at the first push.
  • Development: all code via os-dev sub-agents (worktree, one card or coupled set each, file-disjoint). At most 4 in development per area, cut to 2–3 when usage runs fast. Land built PRs before starting new cards. Pre-push runs tests for the touched packages plus their dependents, typecheck and lint. A PR touching a shared package (spec, objectql, runtime, metadata, metadata-protocol, plugin-security, rest, core) runs its direct dependents and regenerates pinned baselines on current main before arming.
  • Review:
    • The area sends PR #N · area · Fixes … · head <sha> to its reviewer and leaves a Request: review PR comment.
    • Reviewers post the claim line, then PASS/FAIL. Clause-② yes ⇒ a full contract-review record.
    • Self-review is allowed only for text, comment or test-pin PRs. Areas with no hot red-line surface may also self-review ≤50-line Clause-② no PRs.
    • A clean main merge (same patch-id) keeps the PASS. A resolved conflict needs a delta review.
  • Landing (area):
    1. check-governed-merges.mjs --pr N.
    2. Checks are green on the head.
    3. ACCEPT comment.
    4. Relay pr_ready + automerge_enable.
    5. Follow it to MERGED.
  • Tier H (governed): the seat hands off in one stroke:
    1. ACCEPT comment
    2. pr_ready
    3. pm:awaiting-merge label
    4. pr_request_reviewers os-zhuang, hotlong and the maintainer
      On an APPROVED review from os-zhuang or hotlong, the seat arms it.
  • Merge queue: the queue-duty reviewer classifies every merge_group failure within 15 min as flake, conflict or infra, and routes it. The seat jumps a PR that fixes a signature ejecting others with pr_enqueue_front (audit comment first, one per repo, never re-sent on failure). Builds are set to 20; drop to 15 if runs time out or exceed 50 min.
  • Rulings: a seat ruling that changes observable behaviour or interprets an ADR gets one independent review first. Routing (split, fold, defer, area) needs none. Maintainer decisions are framed as short business-terms options with a recommendation.
  • Seat inbox: decisions, Tier H to land, security (never on GitHub), cross-area file conflicts, blockers and HANDOVER DONE only.
  • Context and quota: rotate a thread at ~150k context at a clean point (never mid-review). At each usage reading, log %, cards closed and PRs merged.
  • At ~80% usage, HANDOVER:
    1. No new dispatch of any priority.
    2. Let current pushes finish and put every branch in a draft PR.
    3. Write the handover on GitHub: the seat post comment carries ownership, open PRs and next steps, pending approvals and traps.

2.5 Ownership during overlap (current)

os-elon-musk drains from domain:server seat 6 (#29908, mailbox PR #33750). It holds the PRs listed in #28677 (comment) until it posts "ownership transferred" on #28677. Seat 5 takes only the free set listed there.

3. Skill changes (the deliverable)

  • .claude/skills/pm-dispatch/ gains an "area-lease mode" reference covering:
    • §2.2 dynamic partitioning
    • §2.3 startup, including the authorising-line step
    • §2.4 rules
    • the cross-account GitHub handover and ownership split
    • the Tier H four-piece re-check every round
    • the mailbox-on-every-seating rule
  • seat-lifecycle.md: moving seats with your own mailbox and an "ownership transferred" comment, for an account that keeps draining while another takes its seat.
  • lanes/*.md: one line naming area-lease mode as available to any lane whose open p1/p2 backlog crosses the split threshold.
  • Generalisation: nothing here is server-specific except the example split. Other lanes derive their own areas from their card/file map.

Reader

domain:server#5 (zhuangjianguo) runs §2 now. The skills lane (or seat 5, if the maintainer says so) writes §3 as one PR. Tier H: the skill tree is governed, so the PR needs os-zhuang or hotlong approval.

Dedupe

repo:objectstack-ai/objectstack is:issue area-lease skill → only #33059 (the pilot card) and seat posts. No skill card exists.

Activity

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

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 13
    Session: session_01FEkQ5pjSPT7ui2EUcunaVb
    Account: os-project-manager
    Branch: claude/project-thread-g5qfeh
    Thread session: session_01FEkQ5mRxLrH1HxoctPNjqu
    Worktree: objectstack-issue-33751
    Domain: domain:skills
    Seat: domain:skills#1
    File surface: .claude/skills/pm-dispatch/references/ (a new area-lease reference, seat-lifecycle.md, lane lines), SKILL.md index, scripts/pm/check-skill-line-ratchet.mjs (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 skill text (area-lease mode from the #33059 pilot)
    Thread-read: none
    Premise: holds (pilot evidence on #33059)
    Serial constraints: one card per file at a time; contract-review.md, filing-gate.md, triage-duties.md, landing-operations.md stay with other cards; lanes/queue.md after PR #33732 lands.
    Order: /mnt/project-files/pm-orders/skills/order-33751.md (project file). Ruling-ref: Leehom 「后续只处理 p1 p2」 (2026-11-15T05:05Z). Claimed 2026-11-15T10:07Z.

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

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5mRxLrH1HxoctPNjqu
    os-dev-report
    {
    "issue": 33751,
    "status": "done",
    "branch": "claude/project-thread-g5qfeh",
    "pr": "#33777",
    "session": "session_01FEkQ5mRxLrH1HxoctPNjqu",
    "premise_still_valid": true,
    "summary": "New .claude/skills/pm-dispatch/references/area-lease.md (60 lines, lane-neutral): dynamic partitioning re-decided at seating and every hand-over or shift, startup with the maintainer's authorising line per thread and W0, in-area rules as pointers to their owning references, the per-round re-check of PASS'd governed PRs, mailbox on every seating, cross-account hand-over and ownership split on GitHub, and one line each for lesson 5 (bench numbers) and lesson 6 (label read-back). seat-lifecycle.md gains the moving-seat line; SKILL.md gains one phase-index row that is also the single lane-wide availability line (cheaper than 15 lanes/.md lines). Ratchet: new CEILINGS row 60 and MAX_TABLE_ROW_BYTES row 0; ordinary ruled raises SKILL.md 319 to 320 (+1) and seat-lifecycle.md 99 to 100 (+1), citing the maintainer's verbatim words in the card body (filing gate 3) and claim comment 6892768967.",
    "tests": "Text-only skill change; no package touched, no build closure owed. node scripts/pm/check-skill-line-ratchet.mjs exit 0 (SKILL.md 320/320, seat-lifecycle.md 100/100, area-lease.md 60/60, every line within 120 bytes); --self-test exit 0, 164 cases pass. node scripts/pm/check-skill-id-lint.mjs exit 0 (115 files clean).",
    "gates": "Head b741f82. dispatch-gates --commands derived 41; all 41 run after turbo build of formula and lint closures (os-verify-lock VERDICT command-exit 0, 79s); every exit code captured before any pipe: 41 x exit 0. dispatch-gates --ran: 41 derived, 41 run, 0 NOT-MEASURED (a derived zero). Record: project file pm-orders/skills/33751-gates-ran.txt and the PR body details block. dispatch-gates --tier: Model tier MANDATORY at CONTRACT_REVIEW_TIER via .claude/skills/pm-dispatch/SKILL.md (clause 1); 90 changed lines, under 3000. check-governed-merges --branch: GOVERNED Tier S (.claude/** x3). PR check-runs: in_progress at report time.",
    "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
    "mcp_calls": "6: mcp__github__issue_read only (get and get_comments on 33751 and 33059); no MCP write",
    "api_writes": "2 relay writes: pr_create (fleet-write dispatch, PR 33777, body read back identical 9690 bytes, label skip-changeset) and this os-dev-report comment (post-stamped). Plus git push x2, not REST.",
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [
    "carrier: domain:skills#1 seat. Card section 2.4 'a clean main merge with the same patch-id keeps the PASS' is not written: the head-move rule is owned by contract-review.md (closed to this order) and the queue guard reads a current-head record. It needs its own card on contract-review.md if wanted; noted in the PR's Acceptance notes, not filed.",
    "carrier: domain:skills#1 seat. Card section 2.4 'a seat ruling that changes observable behaviour or interprets an ADR gets one independent review first' conflicts with the SKILL.md red line (no proxy ruling; seats analyse and recommend). The reference lets the seat decide routing only and sends behaviour or ADR readings through the escalation section. Noted, not filed.",
    "carrier: domain:skills#1 seat. Branch names claude/area-ID-CARD from card section 2.4 conflict with AGENTS.md branch naming (claude/issue-N-SLUG, force-push criterion 1); the reference follows AGENTS.md and carries the area on the lease label and lease table. Lesson 5 would naturally also sit in filing-gate.md (closed to this order); it sits in area-lease.md. The lease:
    labels are not in scripts/pm/ensure-pm-labels.sh; area-lease.md is their named reader. Noted, not filed."
    ],
    "files_changed": [
    ".claude/skills/pm-dispatch/references/area-lease.md (new, 60 lines)",
    ".claude/skills/pm-dispatch/references/seat-lifecycle.md (+1)",
    ".claude/skills/pm-dispatch/SKILL.md (+1 table row)",
    "scripts/pm/check-skill-line-ratchet.mjs (+27/-2: two raised rows with comments, two new rows)"
    ],
    "line_budget": "pm ratchet: SKILL.md 319 to 320 (+1, ruled raise), seat-lifecycle.md 99 to 100 (+1, ruled raise), area-lease.md new row 60; all headroom 0; MAX_TABLE_ROW_BYTES SKILL.md widest still 341/341, area-lease.md 0. skills token ratchet not applicable (no skills/** path).",
    "deviations": [
    "Tier: dispatch-gates --tier reads MANDATORY CONTRACT_REVIEW_TIER from the SKILL.md path; this card ran at the claim's default tier. The SKILL.md edit is one index row (one-line-class exit) and references/** is outside the path mandate; the compensating control is the at-tier contract review the seat routes. Seat to confirm.",
    "PR body ends with the signed HTML-comment trailer the standing lines and seat-post-protocol.md require, while os-dev.md forbids dev-written HTML comments; followed the standing lines (the relay patch path needs the trailer).",
    "Card section 2.4 items not written (same-patch-id PASS carry, independent review of seat rulings, claude/area branch names): see out_of_scope_findings and the PR Acceptance notes."
    ]
    }

  5. added a commit that references this issue on Nov 16, 2026
    45dee17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

documentationdomain:serverdomain:skillspm:dispatchedpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions