0 | Applied or created, a dry run or check with no errors, or a clean status | Go on |
1 | The source has errors (each printed as file:line:column with a hint), a locked block (E_APPLY_LOCKED_BLOCK), a name another resource holds (E_NAME_TAKEN), a --run test run that did not complete, a cancelled prompt, or the command failed | Fix what it printed and run it again |
5 | Stale (SOURCE_STALE, or E_APPLY_STALE on a dry run): the server changed what this directory was read from, and nothing was written | sim workspaces source get --dir <fresh dir>, reapply your edit there, dry-run, apply |
6 | A resource is locked (E_APPLY_LOCKED): a workflow or its folder, or a table; a locked block exits 1 instead | Ask someone to unlock it: a workflow in the workflow builder, a table in its settings (the finding's hint names which) |
7 | The source is over the size limits (on a get, status or diff too) | Split function code, or remove blocks or resources |
8 | sim workspaces source apply stopped part-way: what was written is saved into the directory | Apply again until it exits 0 |
9 | Still rate limited (HTTP 429) after the CLI's retries (up to 6, at most a minute apart); nothing more was written | Wait a minute and run the same command again |
10 | Busy: another apply is writing the workspace (SOURCE_BUSY), or another sim command is using this directory (SOURCE_DIR_BUSY); nothing was written | Run it again once the other finished |
11 | status: only your edits, which applying writes | Dry-run, then apply |
12 | status: the server changed since the get (drift, or a conflict with your edits) | Follow the Next: line it prints |
13 | Not logged in, the login expired, or the server refused the credential (AUTH_REQUIRED); nothing was sent | sim login, or fix or unset SIM_API_KEY when the key comes from it; then the same command again |
14 | apply or create without --yes and no terminal to ask: it printed the plan, found no errors, and wrote nothing | Run the same command with --yes |
15 | sim workspaces source apply (or --to) wrote part of its plan and held the rest back: a change that uses a declared secret the workspace has no value for, or a credential key nothing binds to. Its dry run exits 15 too, so a script can tell beforehand that the apply would write only part | Set the secret (sim secrets set) or connect the credential, then apply again |
130 | Interrupted (Ctrl-C). An apply or create already sent is finished and saved into the directory first, waiting up to 60s for its answer; a second Ctrl-C, or no answer by then, stops at once and prints that it may have been written | sim workspaces source status --dir . |