Repository navigation
Description
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) listsdezren39/nix; the defaultrepoAllowlistis built from it (config.ts:87), soassertCallerRepo(auth.ts:206–212, exactincludesmatch) rejects any request namingdezren39/darwin-nix— and rejects every GitHub Actions OIDC caller from that repo, whose token'srepositoryclaim is the canonicaldezren39/darwin-nix.REPO_QUEUES(config.ts:22–29) has nodezren39/darwin-nixkey, soQueueClient.enqueue(queue.ts:75–76) throwsno queue mapped for repo dezren39/darwin-nix.REPO_DIRS(config.ts:32–39) has no canonical key either, soserver.ts:417'sREPO_DIRS[body.repo]!isundefinedfor it. (The directory value under the old key,/home/user/git/nix, is correct — that clone's origin isdezren39/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/nixreturns{"nameWithOwner":"dezren39/darwin-nix"}— the old name only resolves via GitHub's rename redirect; the canonical name isdezren39/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.tspass 35/35 on current main — the wrong name is what the tests assert. - Laptop check:
~/git/nixexists and its origin ishttps://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, andAPP_INSTALLED_REPOSinpm-stack/dispatch/src/config.tskey the nix repo asdezren39/darwin-nix(theREPO_DIRSvalue/home/user/git/nixstays — it is the actual clone path). - A dispatch request naming
dezren39/darwin-nix, and an OIDC caller whose token repository isdezren39/darwin-nix, passassertCallerRepounder the default allowlist; enqueue resolvesrepo-health-nix-pilotand 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 andsrc/github.tscomments 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/nixkeys — 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
developing-today commentedon Nov 7, 2026
CODE-2188
dezren39 commentedon Nov 7, 2026
🤖 Agent note · filed
dezren39/nixto the canonicaldezren39/darwin-nixin pm-stack/dispatch (config maps, allowlist, app-installed set, tests, README), keeping the/home/user/git/nixdirectory value.~/git/fleet/probe-dispatch-nix-name(laptop); related issue program-tending: the default fleet list names a repo that does not exist — developing-today/nix 404s every run and dezren39/darwin-nix is never tended #6859 (same disease, different file)developing-today commentedon Nov 8, 2026
🤖 Agent note · handed off
21 remaining items
Merge pull request #8697 from developing-today/queue/11327-6940-dispa…
Merge pull request #8709 from developing-today/queue/11327-6940-readm…
dezren39 commentedon Nov 11, 2026
🤖 Agent note · done — PR #8697 merged, plus docs fix-forward PR #8709 merged (task 11327, lane code-c)