Skip to content

dispatch: fleet repo list names the nix repo by its pre-rename name — dezren39/darwin-nix is not allowlisted, has no queue/dir mapping, and its OIDC callers are rejected; only the redirected dezren39/nix spelling passes #6940

Closed

Description

@dezren39

dispatch: the fleet repo list names the nix repo by its pre-rename name — dezren39/darwin-nix is not allowlisted, has no queue/dir mapping, and its OIDC callers are rejected; only the redirected dezren39/nix spelling passes

Summary

pm-stack/dispatch/src/config.ts names the fleet's nix repo dezren39/nix everywhere — but that repo's canonical name is dezren39/darwin-nix (the name the rest of the fleet uses, and the origin of the laptop clone at ~/git/nix). dezren39/nix is the pre-rename name; GitHub redirects it, which is why nothing visibly explodes for gh/API reads — but every exact-string check inside dispatch fails for the canonical name:

  • FLEET_REPOS (config.ts:12–19) lists dezren39/nix; the default repoAllowlist is built from it (config.ts:87), so assertCallerRepo (auth.ts:206–212, exact includes match) rejects any request naming dezren39/darwin-nix — and rejects every GitHub Actions OIDC caller from that repo, whose token's repository claim is the canonical dezren39/darwin-nix.
  • REPO_QUEUES (config.ts:22–29) has no dezren39/darwin-nix key, so QueueClient.enqueue (queue.ts:75–76) throws no queue mapped for repo dezren39/darwin-nix.
  • REPO_DIRS (config.ts:32–39) has no canonical key either, so server.ts:417's REPO_DIRS[body.repo]! is undefined for it. (The directory value under the old key, /home/user/git/nix, is correct — that clone's origin is dezren39/darwin-nix; only the key is stale.)
  • APP_INSTALLED_REPOS (config.ts:48) contains only the old name, so for the canonical name dispatch would skip issue creation with a "GitHub App not installed" warning — the opposite of the truth its own comment (config.ts:41–47) records.

The stale name is also baked into the tests (test/config.test.ts:36,70-71, test/auth.test.ts:134,144,158,161,179, test/packet.test.ts:19-20), the README (lines 54, 120, 491), and src/github.ts:7, so the suite passes while pinning the wrong name. A secondary effect: canonicalDedupeKey (packet.ts:21) embeds the repo string, so any task dispatch did manage to enqueue under the old spelling carries dedupe keys no other fleet producer (which all use dezren39/darwin-nix) will ever match.

Evidence (verified this run, laptop, origin/main def55caf484833e062247c46e5b0c4bb719accd3)

  • gh repo view dezren39/nix returns {"nameWithOwner":"dezren39/darwin-nix"} — the old name only resolves via GitHub's rename redirect; the canonical name is dezren39/darwin-nix.
  • Probe ~/git/fleet/probe-dispatch-nix-name/ — the real dispatch modules (config.ts, auth.ts) under bun, loadConfig({SUPABASE_URL: dummy}):
Check dezren39/darwin-nix (canonical) dezren39/nix (stale)
default allowlist includes false true
REPO_QUEUES[repo] undefined → QueueError repo-health-nix-pilot
REPO_DIRS[repo] undefined /home/user/git/nix
APP_INSTALLED_REPOS.has(repo) false true
assertCallerRepo (OIDC caller from this repo) throws repo dezren39/darwin-nix is not in the dispatch allowlist OK
  • Baseline: shipped test/config.test.ts + test/auth.test.ts pass 35/35 on current main — the wrong name is what the tests assert.
  • Laptop check: ~/git/nix exists and its origin is https://github.com/dezren39/darwin-nix.git — directory right, name key wrong.

Distinct from #6859 (program-tending's fleet list naming developing-today/nix in scripts/program_tending.py) — same disease, different file, different wrong name; that fix does not touch dispatch.

Why it matters

Dispatch is the fleet's cross-repo launch door (Actions OIDC → queue task → OpenCode session). For one of the six fleet repos it can only be addressed by a name nothing real presents anymore: a workflow in dezren39/darwin-nix presents its canonical name in its OIDC token and is rejected at the door, and any caller naming the repo the way every other fleet component names it gets "not in the dispatch allowlist" / "no queue mapped". The redirect masks the rot for read paths, so the failure only appears the first time someone actually tries to dispatch nix work by its real name.

Acceptance criteria

  • FLEET_REPOS, REPO_QUEUES, REPO_DIRS, and APP_INSTALLED_REPOS in pm-stack/dispatch/src/config.ts key the nix repo as dezren39/darwin-nix (the REPO_DIRS value /home/user/git/nix stays — it is the actual clone path).
  • A dispatch request naming dezren39/darwin-nix, and an OIDC caller whose token repository is dezren39/darwin-nix, pass assertCallerRepo under the default allowlist; enqueue resolves repo-health-nix-pilot and the session directory resolves to /home/user/git/nix.
  • Tests updated to the canonical name (test/config.test.ts, test/auth.test.ts, test/packet.test.ts — including the canonical dedupe key expectation) and the full dispatch suite passes; README and src/github.ts comments use the canonical name.
  • A note in the fix (PR or issue comment) addresses the dedupe-key spelling change for any dispatch-created nix tasks still live under dezren39/nix keys — migrated, or explicitly accepted as a one-time break with the reason recorded.

Related: #6859 (same disease in program-tending's list — different file).

Activity

  1. developing-today commented on Nov 7, 2026

    @developing-today
    Contributor
  2. added
    source/creatorFiled by the new-issue-creator job
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    effort/xsTrivial: expected under 30 minutes of work
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Nov 7, 2026
  3. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  4. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  5. added
    work/assignedQueue worker lifecycle state
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    and removed on Nov 8, 2026
  6. 21 remaining items

  7. added a commit that references this issue on Nov 11, 2026
  8. added a commit that references this issue on Nov 11, 2026
  9. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done — PR #8697 merged, plus docs fix-forward PR #8709 merged (task 11327, lane code-c)

  10. 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 11, 2026
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/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions