PASS  Disabled configuration fails closed
PASS  Missing API key fails offline preflight
PASS  Missing price prevents unpriced calls
PASS  Negative price is rejected
PASS  Empty model disables only that profile
PASS  Architecture routes to frontier
PASS  Mechanical implementation routes to economy
PASS  High-risk mechanical work still requires frontier
PASS  Complex work requires frontier
PASS  Missing frontier never silently downgrades
PASS  Pinned economy cannot override high risk
PASS  Unknown phase is not guessed
PASS  Task provider list can restrict but cannot expand operator policy
PASS  CLI phase override wins over task phase
PASS  Required review cannot proceed with only one provider
PASS  OpenAI native loop writes a file then explicitly finishes
PASS  Anthropic native loop uses Messages and tool_result blocks
PASS  Independent review switches provider with observable context
PASS  Same-model OpenAI history preserves reasoning and matches tool outputs
PASS  OpenAI function schemas satisfy strict required-fields shape
PASS  Unconfigured reasoning parameters are not sent
PASS  Pinned Anthropic profile does not silently become OpenAI
PASS  A 429 stops the worker without fallback by default
PASS  Explicit fallback changes provider after an inference failure
PASS  Ambiguous provider timeout retains a conservative spend reservation
PASS  Tiny budget stops before a paid request
PASS  Context ceiling stops without silently truncating history
PASS  Model turn limit preserves edits without claiming completion
PASS  Truncated response cannot execute a partial write
PASS  Text alone is not task completion
PASS  finish_task cannot be batched with mutation tools
PASS  Repeated tool IDs are not replayed
PASS  Malformed OpenAI function arguments do not run tools
PASS  Protected-path denial cannot be reported as completed
PASS  Repository check failures cause mid-execution frontier escalation
PASS  No full task credential object is sent to a provider
PASS  Logs and checkpoints redact known provider secrets
PASS  Worker heartbeat failure aborts the model call
PASS  Absolute paths are rejected
PASS  Symlink escape is rejected
PASS  Symlink ancestor of a new path is rejected
PASS  Hard-link escape is rejected
PASS  Secret and Git paths are denied
PASS  An existing file requires a matching SHA-256
PASS  Exact replacement rejects ambiguous matches
PASS  Review step cannot invoke write tools
PASS  Checks require BOTH operator enablement and task approval
PASS  Unknown check names are not arbitrary shell
PASS  Named checks do not inherit API keys or worker tokens
PASS  Required checks become stale after an edit
PASS  Proposal tool writes approval requests, not operational commands
PASS  Native process argv handles shell metacharacters literally
PASS  Silent child processes still receive ticks and time out
PASS  Legacy custom command driver preserves output and prompt quoting
PASS  Legacy custom commands require a prompt placeholder
PASS  Journal redacts escaped strings without corrupting JSON
PASS  Missing provider usage stops before tools
PASS  Unsupported Anthropic content fails closed
PASS  Optional Anthropic workspace selection is sent only when configured
PASS  Standalone env loader ignores unrelated Laravel interpolation
PASS  Worker configuration failure occurs BEFORE registration or claiming
PASS  Updated command runs native loop and reports structured completion
PASS  Provider capacity maps to existing fail endpoint and stops before another claim
PASS  Command defaults to native and retains legacy executor templates
PASS  Interrupted worktree is preserved instead of force-deleted during preparation
PASS  Installer dry-run, install, and rollback preserve the exact original command
PASS  Installer refuses to overwrite a command changed since the supplied source
PASS  Native branch publication failure is not reported as task completion
PASS  Invalid task timeout fails before any cloud request

69 tests; 0 failures; 0.71s. Fake HTTP only; no paid model calls.
