Skip to content

design(pm-orchestration): leases, fencing, transactional outbox & direct verified completion #9209

Open
3 of 12 issues completed

Description

@dezren39

Track B. Reliability core (charter §§13–15; proposal §13): atomic claims issuing lease_token, lease_expiration, session_id, and a fencing/version counter — a stale agent cannot overwrite a newer claim; checkpoints + expiry enable interrupted-session recovery; ownership, execution, and GitHub state remain distinct. Transactional outbox: authoritative local state + durable outbox intent committed atomically; external writes delivered, checked, acknowledged later; states pending / delivering / confirmed / retryable_failure / conflict / terminal_failure; stable operation IDs, remote IDs, expected versions; verify-before-retry so retries never duplicate GitHub comments or repeat merges; no pretense that GitHub and the local DB share an atomic transaction. Direct verified completion: fleet work complete <id> --merge-pr … --close-issues … --close-queue --require-clean-reconciliation --verify --wait — validates lease/auth, dependencies, last-minute external activity, PR head SHA, checks/reviews, merge eligibility; moves to completing, persists outbox ops, merges, verifies merge, closes issues, verifies closure, closes the queue item DIRECTLY (no webhook/sweeper dependency for Fleet-initiated completion), records outcome, releases lease. Partial effects (merge ok, closure failed) keep a recoverable completing state and report precisely. The charter's end-to-end scenarios (fresh work; blocked/parked resume; late external comment; near-timeout checkpoint; crash after remote mutation; duplicate webhook; stale lease; conflict; live launch/bind proof per #6533) are this starter's acceptance fixtures. Park semantics must satisfy #9179's constraints.

Part of the PM Stack & Fleet orchestration design mill — starter epic #9196 (urgency 450/High, direct Summit build-out). Sources: the intake exports merged under doc/ in the design directory for #9196 (handoff 01, charter v1.1 02, full proposal 03, recovered original 04, supplemental note 05), staged at ~/.local/share/fleet/intake/pm-orchestration-20261112/.

The Summit owns the build-out under this starter: statement-inventory slice for this domain (numbered, zero unmapped), state-of-the-art expansion, component design (versioned: V1 = what exists today), and granular implementation/validation/migration/documentation issues with stable requirement IDs, measurable acceptance, and native parent/blocker links — filed as native sub-issues of THIS starter. Questions are recorded on #9196 as QUESTION: comments with chosen defaults; never stall. Design only — no live queue/dispatch changes (see #9196 safety gates).

{"pm_meta": 1, "kind": "domain-starter", "design_mill": {"run": "2026-11-12", "starter": true, "mill": "pm-stack-fleet-orchestration"}, "parent_epic": 9196, "urgency": 450, "route": "opencode-route/summit"}

Acceptance criteria

  • A design for leases, fencing, the transactional outbox, and direct verified completion is recorded under the programme design directory and linked from this issue.
  • The design states lease terms, fencing behaviour on expiry or takeover, outbox delivery semantics, and what evidence counts as verified completion.
  • Open questions are recorded with chosen defaults.
  • Granular implementation issues are filed for anything implementable that the design settles.

Sub-issues

Sub-issues

3 of 12 Issues completed
Loading 12 sub-issues

Activity

  1. added
    app/pm-stack
    kind/design
    on Nov 13, 2026
  2. developing-today commented on Nov 13, 2026

    @developing-today
    Contributor
  3. added
    app/fleet
    epic/pm-stack
    on Nov 13, 2026
  4. 11 remaining items

  5. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    Agent note — triage re-verification (openchamber scheduled lane code-i, task 20371)

    State: triaged. Fresh check 2026-11-18: #9209 OPEN; #9512 (claim/lease compatibility vs #9178) OPEN. Existing verdict from task 18921 still holds: design-mill starter, remaining work is the filed granular sub-issues in dependency order, first step #9512. No new follow-on packet, no duplicate design work.

  6. removed their assignment
    on Nov 20, 2026
  7. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Lane xaltha — hand evaluation (2026-11-23, fleet-work-loop-hourly)

    Handed via fleet agent next (shortlist rank 3). Preflight: issue OPEN, design-only mill starter, no live lane claim, no open PR implementing it, no covering xaltha branch.

    Verdict: blocked — no startable slice in this issue. Confirming the triage record (tasks 18921, 20371):

    Moving to the next hand.

  8. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    Contributor

    Premise check — lane felix, 2026-11-25 (shortlist draw on #9209).

    Verdict: no startable slice in this starter right now — same shape as the 2026-11-23 xaltha hand evaluation, but the frontier has moved. Fresh state, verified via the dependencies API and native sub-issue list today:

    So the next slice of this domain is not a new PR from this starter: it is #9434 closing (via PR #14820 and its implementation filing), which unblocks #9513 and #9429, which in turn unblock #9514/#9516/#9519. Filing duplicate design work or a duplicate follow-on packet here would collide with those tracks — this lane stands down and leaves the starter as the tracker. Refs #9209

  9. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    Triage verdict (oc-code-01, 2026-11-26): #9209 remains an open design-mill domain starter/tracker; do not implement from the starter or create duplicate design/fix packets. Fresh update to the prior frontier note: CEN-04 integration PR #14820 merged at 2026-11-26T20:28Z, but #9434 remains OPEN as its slice tracker. The prior sequenced granular children remain the routing surface, with multiple independently tracked prerequisites and downstream slices; #9209 itself has no startable bounded remainder. Keep this starter open, and let the relevant child tasks advance in dependency order. No design or implementation authorization inferred from the starter.

  10. developing-today commented on Nov 27, 2026

    @developing-today
    Contributor

    🤖 Agent note (lane code-j, 2026-11-26, triage task 25214): concur with the 23:37Z oc-code-01 verdict — tracker stays open, no packet.

  11. dezren39 commented on Nov 27, 2026

    @dezren39
    MemberAuthor

    Triage verdict — lane xaltha, 2026-11-26 (queue task 25624, coverage-reconciliation re-import).

    Concur with the standing verdicts (tasks 18921, 20371, felix premise check 2026-11-25, oc-code-01 2026-11-26T23:37Z, code-j 2026-11-27T00:11Z): #9209 is an open design-mill domain starter/tracker under epic #9196 with no startable bounded slice in the starter itself — do not implement from it and do not file duplicate design/fix packets.

    Fresh evidence this pass:

    Disposition: starter stays open as tracker; queue task 25624 completed with this verdict. No code change, no PR — none is appropriate for a tracker triage.

  12. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    Contributor

    Agent note · premise-check — lane any-n, 2026-11-28T00:38:16Z

    Shortlist draw; read the issue + recent notes firsthand. Concur with standing verdicts (oc-code-01 2026-11-26, code-j, xaltha 25624): open design-mill domain starter/tracker with Summit ownership and design-only safety gates — no startable code slice from the starter in this lane. Routing surface remains the sequenced granular children. No PR opened.

  13. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · lane oc-code-03, 2026-11-28: Premise check on shortlist draw. Concur with standing triage verdicts (oc-code-01, xaltha, any-n): #9209 is an open design-mill domain starter/tracker under epic #9196 with no startable code slice in the starter itself. Granular child sub-issues remain the execution surface in dependency order. Releasing claim as tracker triage complete.

  14. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Agent note · lane oc-code-02, 2026-11-29T12:14:06Z — shortlist draw premise-check on #9209.

    State: concur with the standing verdicts (triage any-j 18921, re-verification c-i 20371, xaltha 11-23, felix 11-25, oc-code-01 11-26, code-j 11-26, xaltha 25624, any-n 11-28, oc-code-03 11-28): #9209 remains an open design-mill domain starter/tracker whose concrete deliverables are the filed granular children. No code changed, no PR opened, no duplicate design/fix packet filed.

    Fresh evidence (checked 2026-11-29, via gh):

    • design(pm-orchestration): leases, fencing, transactional outbox & direct verified completion #9209 OPEN; app/pm-stack, app/fleet, kind/design, status/triaged, priority/high, epic/pm-stack; no open PR implementing the starter; no covering branch from this lane.
    • Starter-level gate unchanged: design-only, no live queue/dispatch changes; its end-to-end acceptance fixtures are exercised through the built domain, not from the starter itself.
    • Child surface: the filed sub-issues remain the routing surface, each carrying its own tracked prerequisites/work state; horizon root design(pm-orchestration): Cross-model schema owner and migration compatibility matrix #9434 (cross-model schema owner / migration compatibility matrix) still OPEN with status:in-review — that remaining step is a slice tracker in review, not claimable from this draw.
    • Nothing bounded remains in the starter that is not already owned elsewhere, so this draw ends as a stand-down with a record rather than a slice. Children advance in dependency order under their own tasks/references.

    Lane claim released.

  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Lane 0640-T premise check on #9209 (2026-11-29).

    Concur with the standing verdicts: #9209 is a design-mill domain starter/tracker; its deliverables are the filed granular children, and the starter itself carries a design-only safety gate (no live queue/dispatch changes). Fresh blocker evidence via the dependencies API today:

    So the next slice of #9209 is genuinely gated on the design chain advancing in dependency order (#9502/#9511 → #9487 → …), which is Summit-routed design work, not a bounded code slice this lane can land without duplicating the mill's packets. No code changed, no PR opened, no duplicate packet filed. Lane 0640-T releases #9209 and moves to its next queue item.

  16. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Census note · lane CEN-C07, 2026-11-29 full issue census (firsthand recheck)

    Verdict: blocked — every remaining child is a design issue gated behind at least one other open design issue; the chain order is now explicit.

    State: this starter (leases/fencing/outbox/verified completion) is a tracker; #9512 (the previous first step) is CLOSED. Fresh dependency-API evidence (lane 0640-T, today) maps the whole frontier:

    Blockers: #9502 and #9511 first; then #9487. No bounded code slice exists at starter level — nine lanes have verified the stand-down; the routing surface is the children.

    Census actions: none to labels — priority/high, status/triaged, kind/design, epic/pm-stack all correct.

  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full recheck of this issue — body, all 12 comments, labels, and native blocked_by edges read firsthand; blocker states verified live today.

    STRENGTHS

    • substantive body (2857 chars) with scope and deliverable; acceptance criteria present in the body; design record landed: PR design(cen-04): cross-model schema owner and migration compatibility matrix (#9434) #13341; 12 comments of working history, latest 2026-11-29; This is a design-mill domain starter: its deliverables are the granular children filed under it (the REL/DSP slices in this census band), several of which now carry merged design records..

    GAPS

    • none material — labels, edges, and detail are consistent with the verified state.

    FIXES I APPLIED

    • None needed from me: a sibling census lane's fixes today were verified in place, and my recheck found the labels/edges consistent.

    REMAINS

    • Felix lane 0640-T drew this today via the queue and recorded the gated stand-down: the starter itself authorizes no live queue/dispatch change. It closes when its children complete; no Drewry decision needed.
  18. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Second-pass census note (group code-09101-09459 audit). A first census note from lane CEN-C07/CEN-C08 is already on this issue today; this pass re-verified the live state, labels, body, and newest comments firsthand and applied the residual fixes below — it does not repeat the earlier note's verdict or blocker record, which stand.

    Gaps found: No ## Acceptance criteria section.

    Strengths found: Detailed, self-contained body with named parent/source and scope; a first census note from lane CEN-C07/CEN-C08 is already on this issue today (2026-11-29) with a firsthand verdict and blocker record, re-verified live by this pass.

    What this pass did: Appended a ## Acceptance criteria section to the body (original text unchanged), formalising the acceptance seed/scope already stated in the body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/fleetapp/pm-stackeffort/lepic/pm-stackkind/designpriority/highstatus/triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions