Skip to content

fleet: a creation outbox for GitHub issues/PRs — paced, verified, backoff instead of silent loss #3706

Closed

Description

@dezren39

Problem

Fleet GitHub content creation is fire-and-forget, and tonight it lost work silently:

  • 2026-11-01 ~05:55–06:25 CST: four separate attempts to file one evidence issue (provider-routes rollback defect) across three actors produced NOTHING — two gh issue create invocations exited without a URL and without an error (gh's known silent-failure mode), one API POST hit GitHub's secondary rate limit (HTTP 403, content-creation block), and a direct retry an hour later silently no-oped again. The loss was discovered only because a human asked for the issue number.
  • The secondary limit was plausibly sustained by the fleet's own preserved-branch issue burst (hundreds of issues filed in a short window; fork issue numbers past Babysitter access: enroll a paired OpenChamber client for sandbox → laptop, and document the credential home #1271 within the hour). Burst creation is a normal fleet behavior (branch preservation, sweep filings, creator jobs), so this will recur.

Proposal: a creation outbox for fleet GitHub writes

Route fleet issue/PR creation through a small durable outbox (natural home: alongside repo-queue.py / the Supabase agent schema the queue already uses):

  1. Enqueue, don't fire: callers submit {repo, kind (issue/PR/comment), title, body, dedup-key} and get an outbox id immediately. No caller talks to gh directly for fleet filings.
  2. Serial paced drainer: one worker files entries one at a time with a minimum interval, so fleet bursts never present as a burst to GitHub.
  3. Verify by read-back: a creation counts as done only when the object is read back via the API with its number/URL. gh exit 0 is not evidence (it has exited 0 creating nothing, repeatedly).
  4. Backoff, never drop: on 403 / secondary-limit responses, the entry waits with exponential backoff and retries later; the queue reports its depth and oldest-entry age. A rate limit becomes a delay, never a loss.
  5. Dedup: the same dedup-key (repo + normalized title) never files twice — retries and multi-actor submissions are safe.
  6. Loud stall surface: if the queue is blocked beyond a threshold, it reports visibly (chat/heartbeat) instead of sitting silent — the fleet's standing rule is that nothing sits silently.

Notes / alternatives considered

  • A GitHub App installation token gets its own primary-rate bucket with higher per-repo limits and would isolate automation quota, but secondary (burst) limits are behavioral and apply to apps too — an app alone does not fix tonight's failure mode. The outbox is the fix; an app identity for the drainer is a compatible later upgrade.
  • Scope v1: issues + PRs + comments in the four fleet repos. Out of scope: interactive human gh use, review submissions, releases.

Acceptance

  • A burst of 50 filings enqueued at once drains without a single loss and without tripping a secondary limit, each verified by read-back.
  • Killing the drainer mid-burst loses nothing; on restart it resumes from the durable queue.
  • A forced 403 leaves entries pending with visible age, delivered after the limit clears.

Acceptance criteria

  • Fleet issue/PR/comment creation can go through a durable outbox: callers submit {repo, kind, title, body, dedup-key} and receive an outbox id immediately.
  • A creation counts as done only when the created object is read back via the API with its number/URL; a gh exit 0 alone never marks an entry done.
  • On HTTP 403 / secondary-rate-limit responses an entry backs off exponentially and is retried — entries are never silently dropped — and the outbox reports depth and oldest-entry age.
  • Duplicate submissions with the same dedup-key produce one created object.
  • At least one fleet producer job files through the outbox in a trial, and the 2026-11-01 silent-loss case (four attempts, no issue, no error) is replayed against the design in the trial notes.

Activity

  1. developing-today commented on Nov 1, 2026

    @developing-today
    Contributor
  2. added
    priority/highImportant and time-sensitive
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    user/reviewNeeds a user-look: Muse reviews first and handles what it can
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 1, 2026
  3. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    Intake review

    Related: Filed after the 2026-11-01 ~05:55–06:25 CST silent-loss incident described in the body; the preserved-branch filing burst the same morning is the load case. No merged PR referencing #3706 was found at intake.

    Notes: No labels at filing. This is a fleet-wide change to how every producer files, so it carries user/review: Muse should review the proposal (Supabase agent schema home, drainer pacing) before lanes build it. priority/high because silent loss of filed work has already happened once and bursts are normal fleet behaviour.

    Risks: An outbox bug becomes a single point of failure for all filings; pacing that is too slow delays time-sensitive filings (main-broken issues).

    Suggested approach: Build alongside repo-queue.py on the existing Supabase agent schema per the proposal, starting with one producer (new-issue-creator) as the trial caller.

    🤖 Agent note · filed

  4. added
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  5. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: reviewed (coverage loop-back)
    Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 7399 (triage, queued, priority 50) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
    Found via: coverage loop-back 2026-11-03

  6. 180 remaining items

  7. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged

    • Agent: repo queue worker (repo-worker-code), lane code-i (openchamber-scheduled-lane)
    • Session / ID: task 18263 (triage)
    • Found via: scheduled queue claim; fresh GitHub state
    • Verdict: outbox pilot is landed (PR feat(fleet-queue): creation outbox pilot — durable enqueue, paced verified drainer (#3706) #8198 MERGED). The open remainder is the live trials and producer flip, which the prior worker escalated (user/escalated, task 14666). No duplicate escalation is filed here; that decision stays with the user.
  8. removed their assignment
    on Nov 20, 2026
  9. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Picked up task 14666 in lane oc-code-05. Fresh verification: PR #8198 is merged; #8331 is closed with fix 6c104c5 on main; existing trial record reports the live kill/restart rerun passed. The remaining claim is whether a live producer exists for the required flip. The prior runtime check says no, but the checked-in schedule registry lists creator-a enabled; this session cannot reach laptop-agent to recheck runtime, so I am verifying what is available locally and will decide the disposition from recorded evidence rather than wait on an owner. Also checking the existing aged uncertain outbox row before calling the pilot complete.

  10. added
    queue/claimedQueue worker lifecycle state
    and removed
    status/blockedQueue or user escalation state
    user/escalatedRequires a Drew decision or access
    queue/blockedQueue or user escalation state
    on Nov 22, 2026
  11. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Decided: Close #3706 as pilot-proven; defer producer integration until a live creator-class producer exists, and do not substitute an unrelated scheduled job.
    Why: PR #8198 is merged and the broker answers outbox metrics. The issue records the burst and failure-path trials and the post-#8331 kill/restart rerun with no duplicate (comments #3706 (comment) and #3706 (comment); #8331 is closed). The latest direct scheduler inventory recorded here (#3706 (comment)) found no live creator jobs. The checked-in registry still lists creator-a enabled, but that row was last checked Nov 3; laptop-agent is unreachable in this session, so runtime state cannot be refreshed now. The only remaining requested flip therefore has no verified target. The one aged uncertain outbox row is the intentional nonexistent-repository failure probe; it did not create a trial-repo duplicate.
    Undo: Reopen #3706 when a live creator-class producer is available and resume the one-producer integration and drain verification.
    By: oc-code-05

  12. added
    status/triagedTriaged and routed (see agent note)
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 22, 2026
  13. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Closed as implemented.

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

    effort/lLarge: multi-day or open-ended; expect staged check-insepic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/creatorFiled by the new-issue-creator jobstatus/triagedTriaged and routed (see agent note)task/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions