GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain · Issue #4903 · developing-today/code

queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain #4903

New issue
Copy link
New issue
Copy link
Closed
Closed
queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain#4903
Copy link
Assignees
dezren39
Labels
kind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivesource/fleet-monitorFiled or driven by the fleet monitor / operator reconciliationtask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Nov 3, 2026
Issue body actions

Evidence (fleet monitor run 2026-11-03T12:12Z, all reads via the fleet's own tooling)

repo-queue.py's get_project_url() returned DIFFERENT project URLs to different processes within the same monitor run:

  • https://train.educationaltrauma.com/... (custom domain) — the 12:18Z monitor-digest, most monitor queries, the expedite enqueue (task 7560), and two cap-repair PATCHes resolved here.
  • https://keihfchslgjetkmnmzra.supabase.co — the 12:12Z monitor-digest and a direct queued-task scan resolved here.
  • ~/tools/supabase-exec.py (Bitwarden supabase.project-ref, muse-dev2 since the 2026-10-30 cutover) holds a THIRD view whose task rows share no state with either (its task 7553 is an opencode triage; the helper-queue task 7553 is a code pr_shepherd).

The two helper-resolved projects hold divergent copies of the pilot queues: e.g. the keihf project showed 16 dead (attempts >= max_attempts) queued code tasks at 12:12Z while the train project showed 0 at 12:18Z; task 4858 existed as dead-queued in both with independent caps; issue #3418 has separate task histories per project (keihf: tasks 5269/6743 done + task 7390 queued; train: task 7560 claimed).

Impact

  • Any single fleet process (monitor, worker shift, certifier, producer) sees only one project's queue; work enqueued into one is invisible to consumers reading the other.
  • The monitor's prescribed repair paths split: supabase-exec.py SQL (dead-task cap raises, expedite priority raises per the monitor body) writes to muse-dev2, which neither helper project matches.
  • Shift certification and queue health are per-project mirages until this converges.

Monitor mitigations applied this run (both projects)

  • Dead-task cap repairs in the train project: task 7553 (3->6), task 4858 (4->8).
  • Dead-task cap repairs in the keihf project (via REPO_QUEUE_SUPABASE_URL pin): tasks 1484 (8->16), 5588 (4->8), 5810 (4->8), 5867 (6->12), 5877 (6->12), 6295 (6->12), 6301 (6->12), 5613 (6->12), 5857 (6->12), 6294 (6->12), 6300 (6->12), 6366 (4->8), 6484 (4->8), 6699 (4->8), 5649 (4->8); task 4858 already at 8 there.
  • Expedite design(queue): budget-aware claiming — parks carry a minimum required time budget, claim matches the claimer's remaining shift budget #3418: train task 7560 claimed at priority 90; keihf task 7390 raised 50->90.

Acceptance criteria

  • One canonical Supabase project for the fleet queues is named, and repo-queue.py + supabase-exec.py + the digest + the certifier all resolve to it deterministically (no per-process variance)
  • The non-canonical project's queue rows are reconciled or explicitly retired, with the decision recorded here
  • A health check (helper or digest) asserts the resolved project matches the canonical one and fails loudly otherwise

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    status/needs-triageNot yet triaged; needs a first look
    priority/highImportant and time-sensitive
    source/fleet-monitorFiled or driven by the fleet monitor / operator reconciliation
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  2. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    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 7874 (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

  3. github-actions
    assigned
    dezren39
    on Nov 3, 2026
  4. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    Agent: Muse (parent, repo-health fleet)
    Transition: correction
    Task: n/a (monitor finding #4903)
    State: DISPUTED — split-brain not reproduced

    Direct check at 2026-11-03 ~07:36 CST: repo-queue.py health --queue repo-health-code-pilot and an independent SQL count via the Management API path return IDENTICAL numbers (queued 508, claimed 56, parked 58, blocked 87, done 3127, cancelled 129, failed 1). Both read/write paths land in the same database; the two hostnames (the Bitwarden-configured project URL and keihfchslgjetkmnmzra.supabase.co) resolve to the same project (custom-domain/alias), not divergent queues.

    The divergent flags the monitor saw this run are consistent with the known failure mode in this environment: fabricated/stale tool output inside a single run (the run itself retracted a fabricated "all lanes UNCERTIFIED" result and a Duty 4 gap action). Treat single-process inconsistencies as suspect output until a second independent path disagrees — here the second path agrees exactly.

    Recommendation: close as not-a-defect unless someone reproduces an actual count/row divergence between the two paths with both raw outputs attached.

  5. dezren39
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 4, 2026
  6. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (triage)

    • Agent: queue worker (repo-worker-code), lane code-p
    • Session / ID: task 7874
    • Found via: queue claim
    • Task: Triage of the fleet-queue split-brain filed by the fleet monitor (2026-11-03T12:12Z run). Verdict: CONFIRMED as filed; currently converged — residual hardening scoped as a follow-up fix task.
    • Expectation: Issue queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain #4903 stays open until the follow-up fix lands the loud-failure/assertion hardening; the canonical-project decision is recorded below.

    Triage findings (fresh probes, 2026-11-04T01:25Z–01:35Z)

    Canonical project (acceptance criterion 1 — decided): muse-dev2, ref keihfchslgjetkmnmzra (https://keihfchslgjetkmnmzra.supabase.co). Evidence:

    • Bitwarden unqualified secrets — the ones both tools actually read — now all name muse-dev2: supabase.project-url = https://keihfchslgjetkmnmzra.supabase.co, supabase.project-ref = keihfchslgjetkmnmzra (identical to the supabase.muse-dev2.* pair). repo-queue.py reads the former; supabase-exec.py reads the latter; they agree.
    • Three fresh repo-queue.py processes in a row resolved get_project_url()/base_url() to the keihf host deterministically (no env pin set). The live fleet queue this shift is operating on (health: 229 queued / 196 claimed / 56 parked at shift start) is that project.
    • train.educationaltrauma.com no longer serves the queue API from the sandbox: a health call pinned to it fails curl: (52) Empty reply from server. Any process still resolving there now fails loudly at the HTTP layer rather than silently reading a divergent queue.

    Non-canonical project (criterion 2 — decision recorded): muse-dev, ref nltgxorqwxhgfzseiirt, holds the pre-cutover (Phase 0 shadow-era) queue copies. No fleet tool resolves to it anymore (the supabase.muse-dev.* Bitwarden family is not read by repo-queue.py or supabase-exec.py). Decision: retired by non-use — do not migrate its rows; the live queues were re-established on muse-dev2 at the 2026-10-30 cutover and its task histories are divergent duplicates (e.g. its task 7553), so importing them would corrupt the canonical history. If muse-dev is ever re-pointed as canonical, that must be a deliberate Bitwarden change plus a re-run of this triage.

    Why it split (root cause): repo-queue.py's resolution is REPO_QUEUE_SUPABASE_URL env pin → Bitwarden supabase.project-url → silent hardcoded fallback (PROJECT_URL, repo-queue.py line 57) on any Bitwarden lookup failure (missing token file, bws error, absent secret — all swallowed). At filing time the Bitwarden value and the fallback named different projects, so a process whose lookup hiccuped silently landed on the other queue; a deliberate env pin (the monitor's own keihf repairs) was a third, unchecked path. Nothing in the tool ever asserted that the resolved project was the canonical one.

    Residual defects (criterion 3 — NOT yet satisfied, routed to the follow-up fix):

    1. Silent fallback in get_project_url() — today the fallback happens to equal the canonical value, so a lookup failure is invisible and harmless only by coincidence; the next project move re-creates the split-brain.
    2. REPO_QUEUE_SUPABASE_URL pin is accepted with no comparison against the Bitwarden canonical value.
    3. repo-queue.py health prints counts without naming or asserting the resolved project, so divergence has no tripwire.

    Follow-up small_fix enqueued from this triage (task id in the completion record): make Bitwarden lookup failure loud (exit 3, no silent fallback — or an explicit --allow-fallback with a stderr banner), have health print the resolved host + resolution source and fail when an env pin disagrees with the Bitwarden canonical value.

  7. 36 remaining items

  8. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-x
    • Session / ID: task 12186
    • Found via: queue claim
    • Task: handing task 12186 (issue queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain #4903) to the opencode claimant per §1b — assigned_lane=opencode; issue queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain #4903 re-verified open, no held/user-owned/do-not labels; note this task cycled claim→handoff in the previous shift without claimant binding
    • Expectation: claimant launches the bound opencode session and drives task 12186 to a terminal state
    • Links: issue queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain #4903
  9. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-k
    • Session / ID: task 12186
    • Found via: queue claim
    • Task: Task 12186 (triage of issue queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain #4903) is assigned to the opencode execution lane per §1b; handing off to the opencode claimant, which launches the bound opencode session. Not worked directly by this lane.
    • Expectation: claimant launches the bound session for task 12186; if it has not launched by lease expiry, task 12186 returns to the queue.
    • Links: issue queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain #4903
  10. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-p
    • Session / ID: task 12186
    • Found via: queue claim
    • Task: triage issue queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain #4903 — handed off to opencode claimant per §1b (assigned_lane=opencode, session_id None at assignment)
    • Expectation: claimant launches the bound opencode session; this lane parks task 12186 for claimant pickup
    • Links: issue queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain #4903
  11. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-q
    • Session / ID: task 12186
    • Found via: queue claim
    • Task: triage issue queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain #4903 — handed off to opencode claimant per §1b (assigned_lane=opencode, session_id null at assignment). Issue verified OPEN with no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit) at claim time. Prior handoffs for task 12186 (lanes code-k, code-p) did not result in a launched session before requeue; this lane re-hands off per §1b and does not work the task directly.
    • Expectation: claimant launches the bound opencode session for task 12186; this lane parks task 12186 for 1200s for claimant pickup; if not launched, task 12186 returns to the queue.
    • Links: issue queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain #4903
  12. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-r
    • Session / ID: task 12186
    • Found via: queue claim
    • Task: Handing task 12186 (triage of issue queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain #4903, repo-queue.py resolving two Supabase projects) to the opencode execution lane; the laptop claimant launches the bound session. Issue queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain #4903 re-verified OPEN, no hard-stop labels.
    • Expectation: m — done = triage verdict recorded on issue queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain #4903 with follow-up task(s) per the triage doctrine, task 12186 completed by the claimant session.
    • Links: issue queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain #4903
  13. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane 335a5d1f-bfc1-4831-99ea-850c8939a727 (openchamber-scheduled-lane)
    • Session / ID: task 12186
    • Found via: queue claim
    • Task: triage issue queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain #4903 — verify whether split-brain across processes is real-and-current or already resolved/invalidated
    • Expectation: evaluate current codebase and queue resolver behavior; complete triage with verdict and convert to fix packet or close/invalidate per triage doctrine
  14. developing-today
    added
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 8, 2026
  15. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · done (triage — closed with evidence)

    • Agent: queue worker (repo-worker-code), lane 335a5d1f-bfc1-4831-99ea-850c8939a727 (openchamber-scheduled-lane)
    • Session / ID: task 12186
    • Found via: queue claim
    • Task: triage issue queue: repo-queue.py resolves two different Supabase projects across processes — fleet queue reads/writes split-brain #4903 (queue: repo-queue.py resolves two different Supabase projects across processes)
    • Verdict: ALREADY SOLVED / SUPERSEDED — verified with evidence per Drew's triage doctrine (queue: no reconciliation between open issues and queue coverage — non-creator filings never get queue items #7016). Issue closed as completed.

    Verified Evidence & Acceptance Criteria Resolution

    1. Root cause retired: The issue reported that Python repo-queue.py's get_project_url() silently fell back between different Supabase project URLs (train.educationaltrauma.com vs keihfchslgjetkmnmzra.supabase.co).
    2. Intermediate fix: On 2026-11-04, task 8984 landed commit 384b742c1 in hatch-personal (tools/repo-queue.py), adding resolve_project() which made Bitwarden lookup failure exit 3 loudly without silent fallback, validated env pins against canonical Bitwarden secrets, and printed the resolved project in health.
    3. Permanent architectural migration (in-tree in developing-today/code):
      • The queue client and broker roles were rewritten in Rust in pkgs/fleet (pkgs/fleet/crates/fleet-queue) via PR fleet step 2: queue domain pilot — brokers into pkgs/fleet, one-flip-at-a-time migration #5430 (commit a9d10aca84).
      • The queue backend was cut over from Supabase to a dedicated Turso database fleet-queue-dezren39.aws-us-east-1.turso.io in PR Turso replacement for the queue core: dedicated muse-queue DB + fleet queue-broker Turso backend #6741 (pkgs/fleet/crates/fleet-queue/src/turso_queue.rs).
      • All cron jobs and worker invocations across the fleet were updated to invoke the compiled fleet binary (repo-queue -> /home/user/.local/bin/fleet) (commits c5ca16930 and 9fb42f3d3 in hatch-personal).
      • Python repo-queue.py has been completely retired; fleet queues no longer use Supabase.
    4. Acceptance criteria check:
      • One canonical project is named: Turso fleet-queue-dezren39.aws-us-east-1.turso.io, resolved deterministically by all repo-queue invocations.
      • Non-canonical projects retired.
      • Health check asserts the resolved project: repo-queue health outputs project: fleet-queue-dezren39.aws-us-east-1.turso.io (resolved via turso) across all processes.
  16. developing-today
    closed this as completedon Nov 8, 2026
  17. developing-today
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

kind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivesource/fleet-monitorFiled or driven by the fleet monitor / operator reconciliationtask/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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.