Raxx · internal docs

internal · gated ↑ index

RCA — Bot token mint returning 404 after MooseQuest → raxx-app org migration

Incident ID: 2026-05-09-bot-token-mint-404 Date: 2026-05-09 Severity: SEV-3 Duration: ~1 session (detection → root cause identified; full resolution pending operator vault update) Blast radius: All dispatched agents (sre-agent, feature-developer, product-manager, security-agent, card-groomer, raxx-blr-bot) — all fell back to operator PAT for the entire session Author: sre-agent

Summary

After the GitHub organization was renamed from MooseQuest to raxx-app, all three GitHub App bot tokens (raxx-dev-bot, raxx-ops-bot, raxx-pm-bot) stopped minting. Every agent dispatch fell back to the operator PAT. Two root causes were found: (1) the GitHub App installation IDs stored in Infisical still reference the pre-migration MooseQuest org installations, which no longer exist on raxx-app and return HTTP 404 from the GitHub token-exchange endpoint; (2) a latent code defect in mint_github_token.py caused the default Infisical path prefix to resolve to /MooseQuest/github/<bot> instead of the documented and correct /MooseQuest/<bot>. The code fix ships in this commit; the vault update (new installation IDs) requires operator action in the GitHub UI.

Timeline (all times UTC)

Impact

What went well

What didn't go well

Root cause analysis

Detection

Resolution

Code fix (this commit)

scripts/agents/mint_github_token.py line 137: changed DEFAULT_PATH_PREFIX from "/MooseQuest/github/" to "/MooseQuest/". This aligns the default with the documented vault layout and with the INFISICAL_PATH_PREFIX default shown in agent-bot-tokens-setup.md.

Validation: The existing test at test_mint_github_token.py:216 asserts "/MooseQuest/raxx-dev-bot" in captured.err — this assertion was already correct for the intended path. After the fix, it passes for the default case (previously it would have checked against /MooseQuest/github/raxx-dev-bot which is wrong but the assertion checked the right thing).

Operator vault + installation update (pending — operator action required)

See action items 2 and 3.

Action items

# Action Owner Due Issue
1 Add a scheduled CI smoke-test that mints a bot token (raxx-ops-bot), checks that the output starts with ghs_, and pages/alerts if it falls back to PAT ops 2026-05-16 file new
2 Re-install the three GitHub Apps on the raxx-app org and capture new installation IDs Kristerpher (operator) 2026-05-09
3 Update INSTALLATION_ID in Infisical at /MooseQuest/raxx-dev-bot/, /MooseQuest/raxx-ops-bot/, /MooseQuest/raxx-pm-bot/ with the new IDs from action item 2 Kristerpher (operator) 2026-05-09
4 Verify token mint after vault update: scripts/agents/with_bot_token.sh raxx-ops-bot gh api /user — confirm "login": "raxx-ops-bot[bot]" in response Kristerpher (operator) 2026-05-09

References