Summary
When the primary backend (Claude CLI) fails, aurscan fails closed to SUSPICIOUS without trying the remaining backends in the preference chain (Codex CLI, API key, local model, etc.).
Expected behaviour
Per the README authentication order, backends are auto-detected in order:
- Claude Code CLI
ANTHROPIC_API_KEY
- Codex CLI
- Local/self-hosted model (
AURSCAN_OPENAI_URL)
- Custom command (
AURSCAN_BACKEND)
- No backend (static rules only)
If the Claude CLI fails, aurscan should fall through to the next available backend (e.g. Codex CLI) before failing closed.
Actual behaviour
:: Downloading PKGBUILDs...
PKGBUILDs up to date
scanning shuck-bin-release-git (2 files) ...
SUSPICIOUS shuck-bin-release-git (confidence 0%)
Scan failed: claude CLI failed: (fail-closed)
!! Build blocked: 1 package(s) flagged SUSPICIOUS.
[A]bort (default) / [c]ontinue anyway: ^C%
The Claude CLI failed and aurscan immediately failed closed to SUSPICIOUS. Codex CLI is installed and logged in, but was never attempted.
Configuration
| Variable |
Value |
AURSCAN_BACKEND |
unset (auto-detect) |
| Claude CLI |
present in PATH but failed |
| Codex CLI |
present in PATH, logged in |
Proposal
When a backend fails (error, timeout, non-zero exit), attempt the next backend in the preference chain before failing closed. Only fail closed if all available backends are exhausted.
aurscan version
0.5.2
Environment
- Arch Linux (AUR package
aurscan-manticore-bin-release-git)
Summary
When the primary backend (Claude CLI) fails, aurscan fails closed to SUSPICIOUS without trying the remaining backends in the preference chain (Codex CLI, API key, local model, etc.).
Expected behaviour
Per the README authentication order, backends are auto-detected in order:
ANTHROPIC_API_KEYAURSCAN_OPENAI_URL)AURSCAN_BACKEND)If the Claude CLI fails, aurscan should fall through to the next available backend (e.g. Codex CLI) before failing closed.
Actual behaviour
The Claude CLI failed and aurscan immediately failed closed to SUSPICIOUS. Codex CLI is installed and logged in, but was never attempted.
Configuration
AURSCAN_BACKENDPATHbut failedPATH, logged inProposal
When a backend fails (error, timeout, non-zero exit), attempt the next backend in the preference chain before failing closed. Only fail closed if all available backends are exhausted.
aurscan version
0.5.2Environment
aurscan-manticore-bin-release-git)