Skip to content

Fleet tooling hardcoded the old Supabase project ref/URL — audit for remaining hardcodes #2796

Open

Description

@dezren39

During the 2026-10-30 cutover from muse-dev (nltgxorqwxhgfzseiirt, down in WAL recovery) to muse-dev2 (keihfchslgjetkmnmzra), flipping the canonical Bitwarden supabase.* pointers was NOT sufficient: two fleet tools hardcoded the old project and would have kept hitting the dead instance (supabase-exec returned 403 with the new scoped token against the old ref):

  • ~/tools/supabase-exec.py — REF_DEFAULT = "nltgxorqwxhgfzseiirt" (fixed 2026-10-30: now resolves Bitwarden supabase.project-ref)
  • ~/tools/repo-queue.py — PROJECT_URL = "https://nltgxorqwxhgfzseiirt.supabase.co" (fixed 2026-10-30: now resolves Bitwarden supabase.project-url, new URL kept as fallback)

Related drift found the same day: the Supabase backup config's schemas list omitted engineering (the laptop pg_dump was empirically full-database so no data was lost, but the api transport would have silently skipped that schema).

Ask: audit the remaining fleet tooling (mirror scripts, idea mirror, fleet job bodies, laptop tools) for other hardcoded project refs/URLs or stale schema lists, and convert them to the canonical Bitwarden pointers (supabase.project-ref, supabase.project-url, supabase.service-role-key, supabase.access-token-muse-cli) so the next project move is config-only. Context: code#2767 (fleet queue unreachable during the outage).

Acceptance criteria

  • A repo-wide audit of fleet tooling (mirror scripts, idea mirror, fleet job bodies, laptop tools) finds every remaining hardcoded old Supabase project ref/URL or stale schema list; each find is either fixed in place or listed on this issue with an owner.
  • All converted tools resolve the canonical Bitwarden pointers (supabase.project-ref, supabase.project-url, supabase.service-role-key, supabase.access-token-muse-cli) instead of embedded project values.
  • The two known fixed tools (~/tools/supabase-exec.py, ~/tools/repo-queue.py) are re-verified working against muse-dev2 after the audit.

Activity

  1. dezren39 commented on Oct 30, 2026

    @dezren39
    MemberAuthor

    Cutover-day progress: the audit also found laptop/tools/supabase-mirror/sync_agent_to_turso.py hardcoding the old ref — fixed the same day (now resolves Bitwarden supabase.project-ref; committed in hatch-personal, live laptop copy updated). Remaining audit scope from the issue still stands for other tooling and job bodies.

  2. added
    kind/infrastructureInfrastructure / host-portability work
    priority/highImportant and time-sensitive
    effort/mMedium: expected under 1 day of work
    source/fleet-monitorFiled or driven by the fleet monitor / operator reconciliation
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 30, 2026
  3. dezren39 commented on Oct 30, 2026

    @dezren39
    MemberAuthor

    Intake review

    Fleet monitor intake pass (2026-10-30).

  4. developing-today commented on Nov 3, 2026

    @developing-today
    Contributor

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

  5. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: picked_up
    Found via: OpenChamber scheduled lane
    Task: 7363 (repo-health-code-pilot)
    Worker: repo-worker-code
    Lane: 8ac61616-3815-4e7b-b33d-840a3829154a
    Session: ses_e5e5c374d17ffezowNmwt2RE2W
    Next: Audit the old Supabase project ref/URL and stale schema lists across fleet tooling, then verify remaining known tools against muse-dev2.

  6. 140 remaining items

  7. added and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 13, 2026
  8. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — audit re-verified complete; the merged fix landed; only owner-side items remain (task 18237, queue repo-health-code-pilot, lane code-a)

    • Pickup: claimed task 18237 this shift; fresh revalidation of issue Fleet tooling hardcoded the old Supabase project ref/URL — audit for remaining hardcodes #2796 below. No held, user/owned, do-not-merge, or do-not-auto-edit labels.
    • Verdict: the fleet side of this issue is DONE — audit complete (task 14528, 2026-11-12), its in-repo fix has since merged, and the core claim re-verifies fresh today. What remains is explicitly owner-side, named below.
    • Fix landed: PR fix(aggregator): resolve Supabase ref from canonical pointer #9040 ("fix(aggregator): resolve Supabase ref from canonical pointer") — MERGED 2026-11-14T19:44:02Z. The 2026-11-13 fallback note (comment 6867098733) recorded it as still open only because that shift's laptop route was down; it merged the next day.
    • Fresh audit re-verification this shift (2026-11-17), code search over developing-today/code: the old project ref nltgxorqwxhgfzseiirt — 0 hits. The current ref keihfchslgjetkmnmzra — 0 hits: no project ref is hardcoded anywhere in the repo at all. Every consumer (pm-stack/aggregator, pkgs/fleet/supabase-exec.py, pm-stack/shared-schema/orchestration-writer.py, the fleet-feed collector) builds its URL from a resolved ref against api.supabase.com — the canonical-pointer pattern the audit asked for. Remaining supabase.co hits are the generic API host, a pooler hostname default with an env override (pm-dashboard-backup.sh), and test fixtures — none is a project hardcode.
    • Remaining, both owner-side and already named on this issue: (1) live verification of the laptop tools in the authenticated environment (the two tools named in the body were fixed 2026-10-30 to resolve the Bitwarden supabase.* pointers; the in-repo half is now proven by the search above); (2) the Drew-owned backup config pin from the 2026-11-13 release note. Neither is fleet-clearable from a queue lane, and neither needs a packet.
    • Labels cleaned: stale claim-era status/in-progress and queue/queued removed; status/triaged added. priority/high and effort/m stand as the record of the audit's weight.
  9. added
    status/triagedTriaged and routed (see agent note)
    and removed
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 17, 2026
  10. removed their assignment
    on Nov 20, 2026
  11. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up — Lane HB (archer), 2026-11-23

  12. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · criterion-3 live re-verification — Lane HB (archer), 2026-11-23

    Ran the closing verification prior lanes were blocked on (laptop route down in their shifts). Result: the audit itself fully re-verifies — no hardcodes remain anywhere — but criterion 3's live leg FAILS on a credential-scope problem, filed as #12986. #2796 stays open on that one item.

    Re-verified clean this shift:

    • Repo (fresh code search + git grep on current main): old ref nltgxorqwxhgfzseiirt — 0 hits; current ref — 0 hits. No project ref is hardcoded anywhere in developing-today/code. (Reconfirms the 2026-11-17 audit.)
    • Laptop ~/tools/*.py, ~/tools/*.sh, ~/tools/supabase-backup/*: 0 old-ref hits. Sandbox ~/tools/*.py, ~/tools/*.sh: 0 hits.
    • ~/tools/supabase-exec.py (the live copy): contains no ref/URL at all — ref resolves from BWS supabase.muse-dev2.project-ref (verified resolving to the muse-dev2 ref), token from supabase.muse-dev2.access-token-muse-cli.
    • ~/tools/repo-queue.py: gone as a standalone file — superseded by the fleet binary's queue surface (the queue itself cut over to Turso; see doc/fleet/queue-turso-cutover.md). Its old PROJECT_URL hardcode died with the file. The installed laptop binary's help surface was verified working earlier tonight (Lane GI, repo-queue CLI has no discoverable usage: every --help is rejected and bare list hides actionable work #10838 close-out).
    • Backup config (the drift named in the body): live ~/tools/supabase-backup/config.json points at muse-dev2, credentials resolve via BWS names, and the schemas list now includes engineering plus every fleet-owned schema, with the api-vs-pgdump behavior documented in schemas_note. The cutover-day omission is fixed.

    The one failure — #12986: supabase-exec's live run against muse-dev2 returns HTTP 404 "Resource has been removed": the canonical management token authenticates (GET /v1/projects → 200) but lists zero projects — muse-dev2 is outside its scope. The tool is correctly converted; the token is the stale layer. Fix is a Supabase-account action (owner: Drew): re-scope/re-mint the token into the same BWS name, no code change.

    Remaining on #2796: only #12986. When it closes, criterion 3 passes and this issue can close — every other criterion is verified above.

  13. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Picked up by any-o — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while any-o posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  14. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    OpenChamber lane any-o (2026-11-23): rechecked the criterion-3 live-verification slice. The repository remains clean: git grep finds 0 hits for retired ref nltgxorqwxhgfzseiirt, 0 hits for current ref keihfchslgjetkmnmzra, and the only supabase.co literal is a test fixture. This workspace does not contain ~/tools/supabase-exec.py or the superseded ~/tools/repo-queue.py; fleet shell targets reports the laptop unreachable, so I could not rerun the authenticated laptop checks. The known remaining blocker is still #12986: the management token needs to be re-scoped/re-minted into BWS by the account holder before supabase-exec.py can pass a live read-only query. No code change or verification pass is claimed. Releasing this fallback claim free for the next laptop-reachable lane; next slice: rerun the two known tools against muse-dev2 after #12986 is resolved.

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/mMedium: expected under 1 day of workepic/saas-serviceEpic: epic/saas-service (fleet reprioritization 2026-11-12)kind/infrastructureInfrastructure / host-portability workmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivequeue/claimedQueue worker lifecycle statesource/fleet-monitorFiled or driven by the fleet monitor / operator reconciliationstatus/triagedTriaged and routed (see agent note)work/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions