Skip to content

docs(queue): pass remaining shift budget on claims across all four lanes #4713

Open

Description

@dezren39

Goal

Update every active and maintained repo-health lane instruction to pass the real remaining shift budget on every claim, and document the new skip/park behavior.

Design / file enumeration: #3418 (comment)
Claim contract: #3418 (comment)

Files and sections

  • Code active runbook: hidden_files/repo-queue-worker-instruction.md, §1 Claim, §5 CI/park, §11 launch budget.
  • Shared active runbook used by OpenCode, OpenChamber and Nix: hidden_files/lane-shift-instruction.md, §1 Claim and §11 launch budget; also update its park/CI section as needed.
  • Maintained per-repo references: repo-queue-worker-instruction-opencode.md, repo-queue-worker-instruction-openchamber.md, and repo-queue-worker-instruction-nix.md, each §1 Claim and §5 CI/park.
  • Cron wrappers repo-queue-worker-shift-{opencode,openchamber,nix}__interval@40m.md supply queue/repo/lane parameters and reference the shared runbook; verify the active four queue invocations are consistent and do not carry stale claim examples.

Acceptance

  • Every first and subsequent claim recomputes max(0, configured_shift_budget - elapsed) and passes the required remaining-budget argument.
  • Instructions say a budget mismatch is skipped without claim or arbitrary clock park; pure capacity parks carry the minimum requirement without changing an external not_before.
  • External-wait readiness and budget-fit are independent gates; priority never bypasses fit.
  • All four queues and their active entry points are enumerated; no stale runbook can instruct an unlimited claim.
  • Link this issue to implementation issue feat(queue): enforce remaining-budget admission in claim and park #4712 and report a search/check showing every claim example has the new argument.

Excludes

Activity

  1. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · queued

  2. added
    queue/queuedHas a queued task in the Supabase agent queue
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued task in the Supabase agent queue
    on Nov 3, 2026
  3. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

  4. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 3, 2026
  5. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked (correction)

  6. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), launched by opencode-claimant
    • Session / ID: task 6695 / OpenCode session ses_e5e60a0910affeFkVkOWYQ5Cix
    • Found via: queue handoff · opencode-claimant launch
    • Task: Update all four repo-health lane instructions to pass remaining budget
    • Expectation: s — complete the scoped task or record its precise resume/block condition
    • Links: docs(queue): pass remaining shift budget on claims across all four lanes #4713
  7. 177 remaining items

  8. added
    queue/claimedQueue worker lifecycle state
    and removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 6, 2026
  9. developing-today commented on Nov 6, 2026

    @developing-today
    Contributor

    🤖 Agent note · picked up

  10. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 6, 2026
  11. developing-today commented on Nov 6, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  12. added
    queue/queuedHas a queued task in the Supabase agent queue
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 7, 2026
  13. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: task 6695; monitor run 2026-11-07 02:12 CST
    • Found via: monitor reconciliation (claim/label divergence)
    • Task: Claim evaporated — task 6695 is queued and unclaimed in repo-health-code-pilot while this issue still carried claimed/assigned labels. Labels reset to the truth: queue/queued + status/needs-triage. Checkpoint stage at evaporation: probe_lane_check.
    • Expectation: the next lane to claim task 6695 resumes from that checkpoint; do not restart from scratch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

queue/queuedHas a queued task in the Supabase agent queuesource/creatorFiled by the new-issue-creator jobstatus/needs-triageNot yet triaged; needs a first looktask/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