iii-cloud
v0.2.2Take any project to iii cloud from your harness — sign in, check the cloud plan and run the app here the way the cloud runs it, keep secret values out of the agent's context, merge and deploy pinned to the plan you saw, and follow the deploy to Ready.
Install
iii call compose::add worker=iii-cloud@nextRun in your project with the iii engine running. Exact versions are immutable and digest-pinned.
skill doc
Problem codes
iii-cloud::check returns problems from two sources. A cloud_plan problem
comes from the cloud's plan for the commit. A check_here problem comes from
the fast checks on this machine.
severity:blockstops a deploy.warnandinfodo not. Bring each warning that is not a value to the person anyway, once, with a recommendation.kind:fix_in_repois a change in the files.resolve_hereis a choice.owner:agentmeans you fix it.personmeans you explain it in one sentence, recommend, and let them decide, in the ask card, in your own words (the Fix column is for you, not for them), unless its Fix says otherwise.nonemeans nothing to do.- A problem's
codeis the cloud'scontext.iii_codewhen there is one, else the cloud'scode. The plan issue's ownmessageandfixare the detail. - The cloud plan stops at its first blocking step. Check again after each round.
The owner column follows kind, except these, which always go to the person:
RUNTIME_UNSUPPORTED, LITERAL_CREDENTIAL,
SECRET_MISSING, MULTIPLE_HTTP_GROUPS, every WEB_* code,
LOCAL_CONFIG_NOT_SET, ENV_FILE_MISSING and EMPTY_DEFAULT_VARIABLE.
A warning with no kind goes to the person too. Except: SECRET_MISSING,
EMPTY_DEFAULT_VARIABLE and LOCAL_VARIABLE_UNSET about a database URL
(DATABASE_URL, POSTGRES_URL, ...) are yours: point the name at the managed
database's binding (${DATABASE_<ALIAS>_URL}) in the compose file; iii cloud
makes the database.
Cloud plan codes
MISSING_WORKER_DIRECTORY is not a code of its own. The cloud reports it as
INVALID_COMPOSE_FILE with context.iii_code, and iii-cloud::check shows it
as MISSING_WORKER_DIRECTORY. Its owner is agent: the agent finds the real worker
directory and fixes the path, and asks the person only when no such directory exists.
| Code | Severity | Kind | Owner | Fix |
|---|---|---|---|---|
MANIFEST_NOT_FOUND |
block | fix_in_repo | agent | Edit: the checked compose file (the environment's, or the one the check named) is not at the commit, or is outside the root directory. Create the file there, or ask the person to pick another file or fix the environment on the page (only the person writes settings). Verify: check again. |
PLURAL_FILENAME |
block | fix_in_repo | agent | Rename worker-composes.yaml and its lock to the singular worker-compose.yaml and worker-compose.lock with git mv. Verify: check again. |
PATH_OUTSIDE_BUNDLE |
block | fix_in_repo | agent | Edit: a path:// leaves the repository. Move that folder inside the repository, or use a package:// worker. Verify: the path stays under the repo root. |
INVALID_COMPOSE_FILE |
block | fix_in_repo | agent | Edit the compose file at the issue's file and line, as its message says. MISSING_WORKER_DIRECTORY is one case. Verify: iii compose build -f <manifest>, then check. |
INVALID_CLOUD_BLOCK |
block | fix_in_repo | agent | Edit the cloud: block at the issue's line: keep only web, build, release, healthcheck and runtimes, with the types the message names. Verify: check again. |
COMPOSE_LOCK_OUT_OF_DATE |
block | fix_in_repo | agent | Regenerate the lock: run iii compose build -f <manifest> with the iii version iii cloud's engine runs, in the worktree, and commit the .lock. Verify: the same command with --frozen succeeds. |
LOCK_MISSING |
block | fix_in_repo | agent | Create the lock: run iii compose build -f <manifest> with the iii version iii cloud's engine runs, in the worktree, and commit <manifest stem>.lock next to the manifest. Verify: the same command with --frozen succeeds. |
ENGINE_SECTION_UNSUPPORTED |
block | fix_in_repo | agent | Edit the compose file: remove the engine: setting the message names (the cloud runs its own engine). Verify: check again. |
MISSING_DEPENDENCY |
block | fix_in_repo | agent | Edit the compose file: add the worker the message names as a dependency (a package:// entry), then regenerate the lock with iii compose build -f <manifest>. |
UNSUPPORTED_ARCH |
block | fix_in_repo | agent | Edit: pin the worker to a version published for linux x86_64 and regenerate the lock with iii compose build -f <manifest>. Verify: check again. |
UNSUPPORTED_PACKAGE_KIND |
block | fix_in_repo | agent | Edit the compose file: the entry uses a package kind the cloud cannot run. Use path:// or a registry package:// worker. Verify: check again. |
RUNTIME_UNSUPPORTED |
block | fix_in_repo | person | Person decides: the worker's runtime is not one the cloud builds (see runtimes in GET /support-matrix). Offer to port it or run it elsewhere. Verify: check again. |
UNGROUPED_WORKER |
block | resolve_here | person | Person decides which group the worker joins. Then edit cloud.groups (or the group settings) so the worker is in one. Verify: check again. |
UNKNOWN_GROUP_WORKER |
block | resolve_here | person | Person decides: a group names a worker the file does not have. Fix the name at the issue's line, or remove the group. Verify: check again. |
CRON_GROUP_SCALED |
block | resolve_here | person | Person decides: a group with a cron worker must run once. Set that group's scale to 1 in the environment settings. Verify: check again. |
MULTIPLE_HTTP_GROUPS |
block | resolve_here | person | Person decides which group serves http; the cloud allows one. Move the other http worker to the same group or remove it. Verify: check again. |
INVALID_BRANCH |
block | resolve_here | person | Person decides: the environment's branch name is not valid. The person sets an existing branch in the environment's settings on the page; you never write settings. Verify: check again. |
INVALID_RELEASE_WORKER |
block | resolve_here | person | Person decides: cloud.release.worker names no worker in the file. Set it to a worker that exists. Verify: check again. |
WEB_CONTAINER_UNKNOWN |
block | resolve_here | person | Person decides: cloud.web.container names no container in the file. Set it to a real container name. Verify: check again. |
WEB_CONTAINER_NOT_SERVABLE |
block | resolve_here | person | Person decides: that container has no http port to serve. The Web setting may be stored in the environment (an earlier manifest, the console) and not in the compose file: change Web in the environment's settings, or set it to none (the http package already serves your routes). Verify: check again. |
WEB_CONTAINER_OUTSIDE_HTTP_GROUP |
block | resolve_here | person | Person decides: put the web container in the http group in the group settings. Verify: check again. |
WEB_PORT_RESERVED |
block | resolve_here | person | Person decides: the web port is one the cloud reserves. Choose another port in cloud.web. Verify: check again. |
WEB_CONSOLE_PUBLIC |
block | resolve_here | person | Person decides: the console must not be public. Set cloud.web access to team only. Verify: check again. |
WEB_API_WITHOUT_HTTP |
warn | none | person | Person decides: cloud.web.api.prefix has no http worker behind it. Add the http worker or remove the prefix. Verify: check again. |
WEB_DIRECTORY_UNKNOWN |
block | resolve_here | person | Person decides which folder holds the site; the cloud needs its package.json to build it. Set cloud.web.directory to that folder. Verify: check again. |
UNKNOWN_SCALE_QUEUE |
block | resolve_here | person | Person decides: a scale rule names a queue the file does not have. Fix the queue name in the scale rule. Verify: check again. |
INVALID_RESOURCE_REQUEST |
block | resolve_here | person | Person decides: fix the resource's kind, alias or mode at the issue's line (database, storage, queue, state). Verify: check again. |
SQLITE_UNSUPPORTED |
block | fix_in_repo | agent | Edit the worker's config: replace the SQLite database with a Postgres database resource, and read the URL from DATABASE_URL. Verify: check again. |
STORAGE_PROVIDER_UNSUPPORTED |
block | fix_in_repo | agent | Edit the storage worker's config: use a provider the cloud supports (the message names them). Verify: check again. |
STORAGE_NOTIFICATIONS_UNSUPPORTED |
block | fix_in_repo | agent | Edit the storage worker's config: remove the notifications setting. Verify: check again. |
QUEUE_ADAPTER_UNSUPPORTED |
block | fix_in_repo | agent | Edit the queue worker's config: use an adapter the cloud supports (the message names them). Verify: check again. |
QUEUE_ADAPTER_MISSING |
block | fix_in_repo | agent | Edit the queue worker's config: declare the adapter explicitly. Verify: check again. |
QUEUE_TOPOLOGY_IMMUTABLE |
block | fix_in_repo | agent | Edit: restore the queue names and settings the environment already has. A new topology needs a new environment: ask the person. Verify: check again. |
STATE_ADAPTER_UNSUPPORTED |
block | fix_in_repo | agent | Edit the state worker's config: use an adapter the cloud supports (the message names them). Verify: check again. |
LITERAL_CREDENTIAL |
block | fix_in_repo | person | Edit the file at the issue's line: replace the whole line by its number (`sed -i.bak -E '<n>s |
SECRET_MISSING |
block | resolve_here | person | The page asks for it where it is set: do not ask for it or list it. Say in one sentence that the page waits for values. Verify: status shows the secret as set. |
LIMIT_EXCEEDED |
block | resolve_here | person | Person decides: a plan limit is reached. Reduce what the file asks for, or the person changes the plan on iii cloud's website. Verify: check again. |
LOCAL_CONFIG_NOT_SET |
warn | resolve_here | person | Tell the person: a worker setting has no value in the cloud. Set it in the compose file's config, or on iii cloud's website. Verify: check again. |
MCP_GLOBAL_MIDDLEWARE |
block | fix_in_repo | agent | Edit the http worker's config: remove its global middleware, which would read every MCP client's key. Use route-level middleware. Verify: check again. |
ENV_FILE_MISSING |
warn | resolve_here | person | Tell the person: the file references an .env the repository does not have. Move the values to the compose file's variables; the page asks for their values. Verify: check again. |
ENV_FILE_SHADOWED |
warn | none | person | Note only: the environment's variables replace the .env values. Tell the person. No fix needed. |
PRE_RUN_REPLICATED |
warn | none | person | Note only: a pre-run step runs on every replica. Tell the person; move it to cloud.release if it must run once. |
CUSTOM_REGISTRY_PACKAGE |
warn | none | person | Note only: the package comes from a custom registry. Tell the person. No fix needed. |
SQLITE_DEFAULT_REPLACED |
warn | none | person | Note only: the cloud replaces the SQLite default with Postgres. Tell the person. No fix needed. |
STORAGE_DEFAULT_REPLACED |
warn | none | person | Note only: the cloud replaces the local storage default. Tell the person. No fix needed. |
QUEUE_SEMANTICS_CHANGED |
warn | none | person | Note only: queue behavior differs in the cloud. Tell the person what the message says. No fix needed. |
QUEUE_WORKER_OUTDATED |
warn | fix_in_repo | agent | Edit the compose file: raise the queue worker to the version the message names, then run iii compose build -f <manifest> to refresh the lock. |
WORKER_OUTDATED |
block | fix_in_repo | agent | Edit the compose file: raise the worker to the version the message names, then run iii compose build -f <manifest> to refresh the lock. |
WORKER_VERSION_REFUSED |
block | fix_in_repo | agent | Edit the compose file: pick another version of the worker, then run iii compose build -f <manifest>. Verify: check again. |
EMPTY_DEFAULT_VARIABLE |
warn | none | person | ${NAME:-} defaults to empty. It is a value: the page asks the person for it. Do not edit it, ask for it or list it; say in one sentence that the page waits for values. An empty string is a value: an app that parses the name as a number or a boolean, or validates it, exits on "". Exception: a database URL is yours (DATABASE_FROM_CLOUD rule). |
COMMAND_VARIABLE_EMPTY |
warn | none | person | A ${NAME} in a cloud: command is empty when it runs. Map it in the release worker's environment, or remove it from the command; a build command never gets it. |
ENGINE_SECTION_IGNORED |
info | none | none | Info only: the cloud ignores the engine: section. No fix needed. |
NAMESPACE_IGNORED |
info | none | none | Info only: the cloud ignores the namespace. No fix needed. |
SANDBOX_ADAPTER_IGNORED |
info | none | none | Info only: the cloud ignores the sandbox adapter. No fix needed. |
BUILD_FAILED |
block | fix_in_repo | agent | Read the deploy's build log, fix cloud.build.command, and run it on this machine: check {run: true}. Verify: the build stage passes. |
RELEASE_FAILED |
block | fix_in_repo | agent | Read the release log (the whole one: iii-cloud::check::read), fix cloud.release.command or the migration, and run it in the local run against local Postgres: check {run: true}. Verify: the release stage passes. |
ROUTE_OUTSIDE_HTTP_GROUP |
block | resolve_here | person | Person decides: a route is registered by a worker outside the http group. Move that worker into the group, or stop it serving routes. The cloud only routes through package://http: add it (pinned version) to the manifest if the app serves routes. The local run fails this way when routes exist and no package://http container does. |
HEALTHCHECK_FAILED |
block | fix_in_repo | agent | Fix the path in cloud.healthcheck, or the app so the path answers 200. Run it in the local run: check {run: true}. Verify: the healthcheck stage passes. |
MISSING_WORKER_DIRECTORY |
block | fix_in_repo | agent | A path:// is relative to the compose file's directory: point it at the real worker directory, version that directory in the repository, or use package://. Verify: the folder exists, then check. |
Local codes
These come from the checks on this machine. All block, except where noted. Ready needs none of them, so BASE_NOT_IN_HISTORY and UNCOMMITTED_CHANGES stop a deploy.
| Code | Owner | Fix |
|---|---|---|
LOCAL_ENGINE_VERSION |
person | Install the iii version the cloud runs (GET /support-matrix, field engine) and set iii_bin to it. Verify: <iii_bin> --version prints it. iii 0.26 also refuses the cloud: block. |
ENGINE_VERSION_NOT_COMPARED |
none | Info only. iii cloud's engine version could not be read, so it was not compared with the iii here. Nothing to do. |
GH_NOT_LOGGED_IN |
person | gh is not logged in, and the pull request needs it. Tell the person to run gh auth login in a terminal. Verify: check again. |
SDK_TOO_OLD |
agent | Raise iii-sdk to the cloud's minimum_sdk or newer in the worker's manifest, refresh its lockfile, and commit both. The raise can remove APIs the app uses (in 0.26, registerTrigger is gone and the app crashes on its first route): after it, type-check the worker, then start its entry point once and read the first error in its output; fix each until it starts. Verify: check again, then check {run: true}. |
COMMAND_PRINTS_ENVIRONMENT |
agent | A run, build or release command of the compose file runs env, printenv, set alone or export -p: it prints every variable, secrets included, into the log. Take it out. To see why a command fails, read the whole redacted log of the run with iii-cloud::check::read; never change a command to print the environment or to write a connection string or a secret to a file. Verify: check again. |
RUN_COMMAND_NOT_IN_IMAGE |
agent | Run it with node (node …), or declare the bun runtime and commit a bun.lock. The cloud's node image has no bun: a worker whose run script (or the release command tied to it) starts with bun/bunx exits as it starts (127), though the local run passed with this machine's bun. Verify: check again. |
RUNTIME_LOCK_MISSING |
agent | Run the install of the package manager the repository already uses (packageManager in package.json, else a lock in a worker's folder) at the root directory, and commit the lock it writes (pnpm-lock.yaml, bun.lock, package-lock.json, uv.lock, Cargo.lock). Keep the runtime unless the person asks to change it. Verify: check again. |
RELEASE_IN_CI |
agent | Edit the compose file: add cloud.release with the migration command the workflow runs, naming the worker and a timeout. Verify: check {run: true} passes the release stage. Remove the command from the workflow only if the person agrees. |
HEALTHCHECK_MISSING |
agent | Edit the compose file: add cloud.healthcheck with a path that answers 200 (for example /health) and a timeout. Verify: check {run: true} passes the healthcheck stage. |
LOCAL_VARIABLE_UNSET |
person | For a ${NAME:-} that iii cloud has a value for: "iii cloud has a value for it, so the run here needs one too: add it to an env file of your folder, or skip it to run it empty." Otherwise: not in the run's .env nor in the folder's .env.<env>, .env.local, .env or .env.production (the local run takes it from those). The page asks for it, and the local run takes it from the person's env files: do not ask for it or list it. A non-secret gets a default in the compose file (${NAME:-default}). Verify: check again. |
VARIABLE_SYNTAX_UNSUPPORTED |
agent | iii cloud reads only ${NAME}, ${NAME:-default} and, in config_override, ${NAME:default}; ${NAME:?}, ${NAME?} and ${NAME-x} reach the container as literal text. Edit the compose file: write ${NAME} for a required value or ${NAME:-default}. Verify: check again. |
DATABASE_NOT_MANAGED |
agent | Add the database worker (package://database, version: latest) to the manifest and set DATABASE_URL: ${DATABASE_PRIMARY_URL} on the container that reads it. iii cloud creates a managed Postgres (pgvector included) when the deploy is confirmed; the local run starts one. Never ask the person for a database URL. |
BASE_NOT_IN_HISTORY |
agent | Run git fetch origin and rebase on origin/<branch> (or merge it) in the worktree, then run the checks again. Verify: git merge-base --is-ancestor origin/<branch> HEAD. |
RUN_FILES_RESTORED |
none | Info only. When a local run ends, the copy is put back as it was before it: tracked files the run rewrote (the engine normalizes config files, a ${…} template becomes its resolved value) are back as committed, and files the run created (its data: queues, a vault, logs) are moved out. The versions the run left are kept in the run's left/ folder, with the values of secrets replaced in those copies (a value that came from a variable reads [redacted:NAME], so an ordinary one is recovered from its name). Never commit them, and stage your changes by file (git add <file>, a file, never a folder), never git add -A, git add . or git commit -a. If one was your own edit made during the run, apply it again and commit it; read a version with iii-cloud::check::read (left: "<path>") and compare it with the file. |
RUN_LEFT_FILES |
none | Info only. The local run left these files in your copy, and they do not count as uncommitted while their content is what the run left. Never commit the run's files; commit the ones you wrote. Restore the rest before a rebase, merge or checkout (git checkout -- <file>). A file marked "(created during the run)" did not exist before it: delete it unless you wrote it. Never delete any other file the entry lists. |
UNCOMMITTED_CHANGES |
agent | The detail names up to five of your own uncommitted paths. Commit your own changes with git add <paths>; the files the local run wrote (rewritten seed files such as config/*.yaml, a data directory) are not yours: do not commit them, and the check does not count them while their content is what the run left. Then check and run again. Verify: the next check has no such problem. |
BROUGHT_FILES |
agent | The worktree's uncommitted files are the same files, with the same content, that are uncommitted in the person's folder: an older worker copied them. Do not commit them: remove them from the copy (git checkout -- <file> for a tracked one, delete an untracked one). Verify: check again. |
BROUGHT_FILES_COMMIT |
agent | A commit "Uncommitted changes from <branch>" in base..HEAD was made by an older worker and holds copies of the person's uncommitted files; a deploy would push them. Drop only that commit, keeping the rest: git rebase --onto <sha>^ <sha>. Verify: check again. |
OLD_ATTEMPT_COMMITS |
agent | The worktree branch holds commits from an earlier try that are not on the base. Reset to base.sha of your brief (git reset --hard <base sha>) and redo the fixes. Verify: check again. |
SIGN_IN_REQUIRED |
person | Not signed in to iii cloud, so only the checks on this machine ran. Sign in (iii-cloud::connect), then check again. |
HTTP_WORKER_NOT_PACKAGE |
agent | A container named http (or whose iii.worker.yaml says http) is not package://http; the cloud treats it as plain code and routes nothing to it. Edit the compose file: use package://http with a pinned version, move the route code to a worker that registers on it. Verify: check {run: true} passes the routes stage. |
PROJECT_DELETED |
person | The selected project was removed in iii cloud (status.problems). Tell the person; they choose another with iii-cloud::project::use. |
ENVIRONMENT_DELETED |
person | The selected environment was removed in iii cloud (status.problems). The person picks another environment. |
REPOSITORY_MISMATCH |
person | project::use stopped on a project that deploys another repository. Open that repository's folder, or pick a project of this one (project.cloud_projects). |
LOCK_MISSING |
agent | Create the lock: run iii compose build -f <manifest> with the iii version iii cloud's engine runs, in the worktree, and commit <manifest stem>.lock next to the manifest. Verify: the same command with --frozen succeeds. |
Local run failures
A failed check {run: true} has run.error {stage, code, message} and run.log_tail
(the last 40 lines of the run's log; after a compose or workers failure it also holds
the compose output). Read the stage, then the log, then fix. The stages, in order:
install, build, release, compose_up, workers, routes, healthcheck.
The cloud table above also lists BUILD_FAILED, RELEASE_FAILED,
ROUTE_OUTSIDE_HTTP_GROUP and HEALTHCHECK_FAILED; here they are read from the run.
| Code | Owner | Fix |
|---|---|---|
INSTALL_FAILED |
agent | Stage install. The message says which: the compose file is missing or is not YAML; the runtime of a worker is unknown (set cloud.runtimes, or give the worker an iii.worker.yaml); the repository has no lock for the runtime (RUNTIME_LOCK_MISSING); or the frozen install command exited non-zero, and the last lines of log_tail are its error. Fix that, commit, run again. |
TOOL_MISSING |
person | A program is not on PATH: the package manager of the install (message names it) or iii_bin. Tell the person to install it, or to set iii_bin in iii-cloud's config. Verify: run again. |
BUILD_FAILED |
agent | Stage build: cloud.build.command exited non-zero. The build has no secrets and variables, only PATH, HOME and TMPDIR: a build that reads one fails here as in the cloud. Read the end of log_tail, fix the command or the code. |
RELEASE_FAILED |
agent | Stage release: the command exited non-zero, or the local Postgres did not start. The release runs as the cloud's database user, a regular login (member of the database's owner role, never a superuser). When the command prints no cause, read the whole redacted log with iii-cloud::check::read, then look in the migrations for statements a managed database's login cannot run (CREATE ROLE, ALTER ROLE, CREATE EXTENSION outside the allowed ones (pgvector is already installed), ALTER SYSTEM, superuser-only settings) before you touch the command. What to do about such a statement is the person's decision: put it in ONE harness::ask card and do not decide it or work around it. Never replace the project's migration tool or add retries to hide a failure. |
DOCKER_MISSING |
person | Docker is not installed. Tell the person to install it. Verify: run again. |
DOCKER_NOT_RUNNING |
person | Docker is installed but its daemon does not answer. Tell the person to start Docker. Verify: run again. |
DOCKER_PERMISSION |
person | This user may not use Docker's socket. Tell the person to add the user to the docker group (or start Docker so it lets the user in). Verify: run again. |
DOCKER_FAILED |
person | Docker failed some other way; the message has docker's first error line. Tell the person that line. Verify: run again. |
POSTGRES_NOT_READY |
none | The local Postgres did not accept connections in 30 s; the machine may be slow. Run again. |
PORT_IN_USE |
none | A port on this machine that the local Postgres needs is taken. Not a failure of the app, and nothing to edit: run it again. |
COMPOSE_FAILED |
agent | Stage compose_up: the run's copy of the compose file could not be written, or iii compose exited before any worker connected. log_tail has the compose output: a bad path, an image that does not build, a port, a config the engine refuses. Fix that line in the compose file. |
WORKERS_NOT_READY |
agent | Stage workers. The message names the containers that did not connect; log_tail has the last lines of their logs. It ends when a container exited and is not restarting, or at the compose file's startup_timeout. Before that, a run with no new worker for a minute says so in run.waiting_on and keeps going: act on it then. Read each named container's log first. A worker that crashes: fix the error it prints. A container that is not an iii worker (a plain web server such as a Next.js site) never registers with the engine, so it is never ready: serve the site through cloud.web and take it out of the compose file, or make it a worker. That is a choice for the person (harness::ask, recommend cloud.web). Raise startup_timeout only when the log shows a worker still starting. |
NO_ROUTE |
agent | Stage routes: the http group serves no route, and no web part answers. Find which worker should register routes and why it did not (its log is in log_tail; an old SDK that cannot register is SDK_TOO_OLD). When the app is only a site, set cloud.web. |
ROUTE_OUTSIDE_HTTP_GROUP |
person | Stage routes: a route exists and the compose file has no package://http. Same decision as in the cloud table: add package://http, pinned, or stop the worker serving routes. |
ROUTE_OUTSIDE_PREFIX |
agent | Stage routes: routes outside cloud.web.api.prefix (the message lists them). Put the routes under the prefix, or change the prefix. |
HEALTHCHECK_FAILED |
agent | Stage healthcheck: GET <path> did not answer 2xx in its timeout; the message says the last status or "no answer". No answer: the http container is not serving (read its log). A 4xx or 5xx: fix the route or the path in cloud.healthcheck. |
RUN_TIMEOUT |
agent | The whole run passed run_timeout_s (900 s by default), or one build, release or start command did not end in time; the message says which, and the stage is the one that was running. A timeout in install or compose_up is RUN_TIMEOUT_SETUP, not this. Read the end of log_tail for the command that was still working: a watch mode, a prompt, a server that never exits. Fix the command. Raise run_timeout_s only when the work is real and slow. |
RUN_TIMEOUT_SETUP |
none | The time ran out in install or compose_up: a first install or image pull on this machine is slow. Nothing to fix; run again. |
RUN_CANCELLED |
none | The person stopped the local run. Ask ONE harness::ask "Run it again?" and start no other run until they say yes. |
RUN_REPLACED |
none | An older record only: a newer run replaced this one. Not a failure of the app: read the newer run. |
WORKER_RESTARTED |
none | iii-cloud restarted while the run was going, and the run was finished as failed. Run again. |
RUN_PANIC |
none | The run crashed inside iii-cloud. Run again, and report it if it repeats. |
Call errors
Besides problems, a call can fail with a code:
RUN_BUSY: "A local run (run <id>) is going since HH:MM. Wait for it, or stop it on the page." You cannot stop it: commit your fix, then wait oniii-cloud::on-changekindrunwith that id andterminal, with an expiry.DATABASE_FROM_CLOUD:iii-cloud::secretanswers this for a database URL. iii cloud creates the database: followDATABASE_NOT_MANAGED. Passexternal: trueonly when the person chose a database outside iii cloud.OWN_BRANCH_TAKEN: GitHub already hasiii-cloud/<env>with other commits, so the first assisted deploy stopped before changing anything. The person deletes that branch or sets the environment's branch in iii cloud.BRANCH_NOT_MOVED: the environment could not be pointed at its own branch (the message says what iii cloud answered). Nothing was deployed; deploying again retries without pushing again.PR_HEAD_CHANGED: the pull request's head moved after the check. Check again.SOURCE_CHANGED: the environment's source or compose file changed after the check (the workspace was selected again for another one). Check again.WORKTREE_FAILED:git worktree addfailed. Read the message.IDEMPOTENCY_KEY_REUSED: the key was used for another request. Use a new key.
On the connection
DEVICE_CODE_EXPIRED (the sign-in code timed out: connect again) and ACCOUNT_BLOCKED (tell the person) arrive on the connection record, not as call errors.
Registry decisions
These three came up in a real repository. Each needs the person's answer. Give the recommendation, then let them choose.
path:// or package:// for a folder the Dockerfile downloads.
MISSING_WORKER_DIRECTORY means the repository does not have the folder.
Recommend path://: version the folders and download each binary by sha256 in
the build, as the Dockerfile does. With package://, publishing a fix would
depend on the registry being up.
A bun project with only a pnpm lock. RUNTIME_LOCK_MISSING. The cloud
installs bun projects from bun.lock, so nothing would be installed and
dist/ would not exist. Recommend switching the runtime to the one the lock
belongs to. Add bun.lock only when the person wants bun.
Migrations run in the CD. RELEASE_IN_CI. A workflow runs db:migrate
before each deploy, and the cloud's deploy does not. Without cloud.release,
new code meets the old schema. Recommend cloud.release with the same
command, and run it in the local run against the local Postgres.