Skip to content

Error codes and exit codes ​

Read the message and Next: line before selecting a fix. Structured JSON includes code, details, and next when supplied by the error producer.

Exit codes ​

CodeMeaning
0The requested operation succeeded.
1An infrastructure or unexpected failure occurred.
2A policy, state, or prerequisite refused the operation.
3The command or input is invalid.

Operator codes ​

CodeNext action
CliVersionTooOldUpgrade the CLI to the minimum version in project.toml.
MigrationPreflightFailedRead the failed relocation step, correct the named record, and repeat the upgrade step.
WorkspaceNotRelocatedFollow the upgrade checklist for this checkout.
LegacyOperationUnavailableUse the run or runs action named by the refusal.
ExecutionUnavailableStart through e11 run or continue through e11 runs resume.
ToolkitNotPinnedRun e11 init, verify the pin, and commit project.toml.
PricingUnavailableRestore a valid pricing.json, review rates, and commit the file.
SourceNotAtBaselineCommit the required source bytes and plan from the matching checkout.
Generation1PreparationUnavailableUse the compatible bridge release only within the coordinated cutover procedure.
CleanupStatusNotAdmittedFinish or cancel the run before cleanup. Stopped runs do not admit cleanup.
CleanupHeadMismatchInspect the run branch and its recorded head before cleanup.
CleanupWorktreeDirtyReview and commit wanted worktree changes before cleanup.
CleanupRetentionConflictInspect the retained reference. Preserve the differing head.
AdministrationConfirmationRequiredPreview the administrative operation again and use the current confirmation token.
RunWorktreeRetiredPlan a new run from retained work. Cleanup ends resume and retry access to the released worktree.
SchemaUnsupportedUse a release compatible with the record or store.
LandingNotConfirmedFollow the branch, file, or history correction in the landing refusal.
RunPlanInvalidRead details.problems, correct source documents or profile selection, and plan again.

Error intake codes ​

e11 errors names every refusal with an E_ code and its remedy on the last line. The gate codes are the fails-first verdicts a bugfix profile's acceptance reports.

CodeExitNext action
E_GREEN_AT_BASE2The reproduction passes at the base, so it does not reproduce the bug: rewrite it from a real occurrence.
E_SIGNATURE_MISMATCH2The base fails with another error: fix the reproduction, or record the new signature with --red-only.
E_RED_AT_HEAD2The fix does not make the reproduction pass: the story is not done.
E_TESTS_FAILED2A test that did not fail at the staged base fails at HEAD, or the test command failed and printed no report to compare: fix what the listed tests show.
E_REPRO_DRIFT2The reproduction changed after it was recorded: run verify-repro --red-only again.
E_REPRO_ALTERED2The story edited the staged reproduction: restore it from the staging commit.
E_REPRO_WEAKENED2The story touched a guarded path or the runner's setup: revert that part of the change.
E_REPRO_SKIPPED2The reproduction did not run at HEAD: remove the skip or the filter that hides it.
E_STATE2The row is not in a state this action takes: follow the row's next step in the ledger.
E_STORY2The story draft lacks its # Story X.Y: title or acceptance criteria: fix the draft.
E_INVOKE_TOO_LONG2Shorten the invoke text to 4000 characters or fewer.
E_BASE_NOT_INITIALISED2Commit the e11 errors init output to the base branch.
E_BRANCH_EXISTS2Delete the stale branch, or use the one already there.
E_LEDGER2Correct the listed rows; nothing was appended or cut.
E_PORT_CONFLICT2The fix conflicts with the target branch: re-stage the cause on the current base, or port it by hand.
E_REDACTION2No longer raised: the scan of agent-written text warns and commits anyway.
E_TOOLCHAIN2A tool the night needs is missing or another version: fix the PATH in nightly.env, or start Docker. Schedule from an installed e11, never one npx runs from its cache.
E_PLATFORM2This machine has no launchd: add the printed crontab line, or use another scheduler.
E_ENV_EXPOSED2Others can read nightly.env, which holds tokens: chmod 600 it.
E_NO_PROJECT_ROOT2Run from the checkout, or pass --project-root.
E_NO_CONFIG2Run e11 errors init <project>, or fix .foundry/custom/e11-errors.toml.
E_NO_STAGING_COMMIT2Run the gate on a branch e11 errors stage made, or pass --fp for a hand run.
E_NO_LEDGER_ROW2Name a root cause the ledger holds, by slug or fingerprint.
E_PREPARE_REQUIRED2The fix changes files outside the runner's folder: give the runner a prepare command.
E_DIRTY_WORKTREE2Commit or remove uncommitted changes; the gate reverts the tree in place. For the night's own worktree, reset it: nothing but the night writes there.
E_RESTORE_PENDING2Check out the commit the journal names and run the gate again, or restore by hand.
E_NOT_AT_BASE2Check out the base tip, or name the base with --base.
E_TARGET_EXISTS2The reproduction's target path is taken: choose another target.
E_LOCKED2Wait for the other errors command to finish.
E_NOT_INITIALISED2Run e11 init, then e11 errors init <project>.
E_SOURCE_AUTH2Export the source token the config names, with read scope.
E_RUNNER1The runner crashed, timed out or could not start: read its output and run again.
E_SOURCE1The error source did not answer: run the pull again later.
E_RESTORE_FAILED1The journal is kept: run the gate again to restore, or restore by hand.
E_INTERNAL1Report the message with the command that produced it.
E_USAGE3Correct the command line.
E_RUNNER_UNKNOWN3Define the runner the reproduction names in [[workflow.runners]].

Internal store codes ​

Lease, fencing, journal, and integrity errors belong to Under the hood: the run store. Keep the recorded evidence when reporting a repeatable failure.

Error code contract

Proprietary to Engineering11 LLC.