When Opslane stops and hands an issue to a person, it records a reason_code, a reason_message, and a remediation. The catalog lives in packages/worker/src/reason-codes.ts as an exhaustive Record<ReasonCode, string>. Adding a code to shared/src/types.ts without a remediation entry is a compile error, so this table cannot silently fall behind the type.
| Code | Remediation |
|---|
missing_github_token | Connect the GitHub App to this repository (Settings > GitHub) so Opslane can read and open PRs. |
repo_access_denied | Confirm the GitHub App is installed on this repository and has read + pull-request permissions. |
token_decrypt_failed | Reconnect the GitHub integration; the stored credential could not be decrypted. |
auth_invalid | Re-authenticate the GitHub connection; the existing token was rejected as invalid. |
policy_blocked | A repository or org policy blocked the change. Review branch-protection / app permissions, then retry. |
missing_llm_key | Set the ANTHROPIC_API_KEY environment variable on the worker with a valid Anthropic API key. |
| Code | Remediation |
|---|
empty_repository | Push at least one commit to this repository, then retry; there is no branch for Opslane to work from yet. |
invalid_default_branch | This repository’s default branch points at a branch that no longer exists. Set a valid default branch in GitHub (Settings > Branches), then retry. |
unresolvable_head | Opslane could not determine this repository’s default branch. Check the repository is not in an unusual state, then retry. |
| Code | Remediation |
|---|
malformed_diff | Review the error manually; the agent could not produce a valid, applicable diff. |
verification_failed | Review the candidate fix manually; Opslane could not verify it satisfied the failing behavior. |
tests_failed | Review the candidate diff manually; the test suite still fails, so the fix may be partial or cause regressions. |
low_confidence_fix | Review the candidate diff and evidence manually; the candidate did not pass independent fix review or the checks required before Opslane opens a pull request. This code does not gate error diagnosis by confidence. |
repro_not_achievable | Review the candidate diff and evidence manually; Opslane could not construct a reliable reproduction test, so it checked the fix against the existing suite but did not call it verified. |
draft_cap_reached | Review or close an existing Opslane draft PR, then retry this fix. The candidate diff remains available on the incident. |
budget_exhausted | Review the error manually; the agent could not complete within its step or budget limits. Consider guiding it with more context. |
insufficient_context | Add a replay, breadcrumbs, or a reproduction so Opslane has enough context to investigate. |
| Code | Remediation |
|---|
sourcemap_unresolved | Upload source maps for this release (see the SDK build plugin) so the stack trace shows original source locations. |
artifact_fetch_failed | Retry later; Opslane could not fetch a stored artifact needed to analyze this error. |
| Code | Remediation |
|---|
triage_unfixable | Review the error manually; Opslane determined it cannot be fixed with application code changes. |
unfixable_no_app_frames | Add the crossorigin attribute to your <script> tags (with CORS headers) and throw Error objects (not strings) so the SDK captures real stack frames. |
unfixable_test_error | No action needed; this looks like a deliberate test error thrown to exercise Opslane. |
unfixable_third_party | Review manually; the error originates entirely in third-party code, so the fix is not in your application source. |
unfixable_infra | Investigate infrastructure or network behavior such as CORS, DNS, timeouts, and server errors; this is not an application code bug. |
unfixable_no_sourcemap | Upload source maps for this release so the minified stack trace shows original source locations, then retry. |
| Code | Remediation |
|---|
worker_runtime_error | Review the error manually; the Opslane worker hit an unexpected internal error while processing this issue. |
lease_lost | No action needed; the worker lost temporary ownership of the job while it was running, and Opslane will retry the issue automatically. |
verification_infra_error | No immediate action needed; verification infrastructure failed, so the fix could not be proven either way. It will be retried on recurrence; if it persists, check worker logs. |
The drift check fails the repository test gate (pnpm test, which CI runs) if this page and shared/src/types.ts disagree.