Skip to main content

Troubleshooting

Every message below is quoted from the code or from a measured run.

Startup and environment​

AILANG_REGISTRY_API_KEY is set in the process environment​

ailang-worldd: broker: AILANG_REGISTRY_API_KEY is set in the process environment: move it to a mode-0600 file outside the working tree and unset it (see design_docs/planned/w-self-mod-vertical.md Decision 4)

Every ailang-worldd command refuses (exit 2), client verbs included; only a --help request still answers. Run unset AILANG_REGISTRY_API_KEY in that shell. world-publish reads the key only from --credential-file.

another process already holds writer authority for this database​

Another process has the store open for writing: usually your running daemon. session new, session mint, session revoke, world-publish transitions and world-publish epoch nominate all need the daemon stopped first (session list does not). The lock file is <db>.writer.lock; do not delete it by hand while a process holds it.

resolve parent of "…": no such file or directory / STOP fence=store reason=unopenable​

The store refuses to create its parent directory. mkdir -p it first.

STOP fence=store reason=unopenable … has user_version 2 … binary requires 4; refusing to modify​

The store was written by an older binary and there is no migration. Use a fresh store file and leave the old one untouched.

bind host "…" is not loopback​

serve accepts only 127.0.0.1, ::1 or localhost in --bind. There is no override.

--addr is a client flag and is not valid for 'serve'​

Use --bind with serve. --addr (with a scheme, for example http://127.0.0.1:7645) goes before a client verb: ailang-worldd --addr http://127.0.0.1:7645 health.

tool binary is "…"; only "AILANG v0.54.15" is measured for the workspace tools​

--tool-ailang-bin must be exactly AILANG v0.54.15 (v0.52.1 was the tool before row 139 and is refused now). See Install.

the workspace root is refused / … is inside --workspace-root​

The store, its archive, policies/ or cache/ directory, or the examples corpus lies inside --workspace-root. An agent that can edit its own policy has no policy. Put the store in a directory outside the workspace root.

Attended steps​

STOP fence=tty reason=stdin-is-not-the-controlling-terminal​

Printed by world-publish builds before 2026-10-06, in an IDE pane. Current builds read the phrase from /dev/tty themselves, so rebuild (go build -o /tmp/world-publish ./cmd/world-publish) and run the plain command. < /dev/tty also still works.

STOP fence=tty reason=no-controlling-terminal​

There is no terminal at all. A headless process cannot do this step; a human must. Run it yourself from a terminal window (an IDE terminal pane works).

refusing: no controlling terminal (…); minting a session credential requires one human act at a terminal​

Same, for session mint and session new. Run it yourself from a terminal window.

AILANG_REGISTRY_API_KEY is set in the process environment​

Every ailang-worldd verb except --help refuses while the registry key is in the environment (design Decision 4). Run unset AILANG_REGISTRY_API_KEY in that shell, or run the one command as the refusal's last line shows: env -u AILANG_REGISTRY_API_KEY ailang-worldd <verb> ….

STOP fence=confirmation reason=mismatch​

The typed line is not the exact phrase. approve and publish ask for publish world/core@0.1.1 irreversibly; transitions asks for publish <N> transitions to <store>, with the manifest's descriptor count and the --store you gave. Type the line exactly as printed. See Attended steps.

interpreter release "…" is nominated by NO epoch in world/epoch-registry/v1​

world-publish transitions was pointed at a store whose daemon has never run with this interpreter. Start serve --ailang-bin $PIN once against the store, stop it, then publish.

… is not loadable under its pinned interpreter / LDR001​

The transition source failed check under the pinned interpreter. A common cause is importing world/*: publishable modules must be self-contained and import only std/*.

session revoke: refusing: no session credential … nothing was revoked​

ailang-worldd session revoke: refusing: no session credential <id> in <db> (already revoked, or minted in another store); nothing was revoked

The ID is not in this store (exit 1). Check --db and list what the store holds with session list --db /path/world.db. Flags and the ID may come in either order; session revoke --db /path/world.db --episode <ep> revokes every credential of one episode.

… exists and is not a git worktree: … pass --allow-non-git to adopt it as a DEGRADED episode​

session new found <workspace-root>/<episode> already present but not a git worktree. Remove it or pick another episode name (session new --repo <repo> makes the worktree), or pass --allow-non-git to adopt it as a degraded episode: no branch diff, provenance trailer or reset to a base, and walk-basis worktree deltas.

Committing​

401 SessionAbsent on commit​

ailang-worldd: /v1/commit returned HTTP 401 SessionAbsent: a session credential is required: no Authorization Bearer header was present

POST /v1/commit is session-gated. Pass --session "$(cat /path/session)" to commit, or send Authorization: Bearer <token>. This also means the genesis commit comes after session mint. Older runbook text that commits genesis without a session no longer works.

The related classes: 400 InvalidSession (malformed header), 401 SessionUnknown (revoked or never minted, or minted in a different store), 401 SessionExpired.

409 HeadConflict​

The world moved since the head you observed. The body carries observedHead and selectedHead; re-plan against the selected head.

503 CommitUncertain​

The commit budget ended after the durable step began. It landed whole or not at all. Do not resend until you have read the log row at your entry's index (or the receipt, if you sent an invocationId). The current head is not evidence either way.

500 internal store failure on a commit you built yourself​

A payload whose bytes do not hash to its stated hash is refused by the store, but the route currently reports it as an internal failure rather than a client error (finding F-3 of the value demonstration). Check every object hash is sha256: of the exact payload bytes. The daemon's stderr has the real cause.

MCP and the coding tools​

The /mcp/ response is event: message / data: …​

That is correct. /mcp/ answers with SSE framing; the JSON-RPC object is on the data: line. Send both Content-Type: application/json and Accept: application/json, text/event-stream, or the request is refused with Accept must list both application/json and text/event-stream.

tools/list is empty, or a tool is missing​

A session sees only tools whose access effect it holds a live grant for. Check the grants you minted, that the session has not expired, and that the transitions are published in this store (ailang-worldd registry get world/transition-registry/v1).

workspace tools disabled​

ailang-worldd: workspace tools disabled: --workspace-root and --tool-ailang-bin must both be set; every effect-declaring transition is refused

Start serve with both flags. Until then every tool call is refused before any effect runs (rule R8). Over A2A the refusal reads transition declares an effect this daemon has no handler for; over MCP the whole request answers host callback failed.

workspace tools unavailable for episode "…"​

The episode's handler could not be built: check that <workspace-root>/<episode> exists, is a real directory and not a symlink, that the episode ID matches ^[a-z0-9][a-z0-9-]{0,63}$, and that the tool binary still verifies. The episode then gets an empty handler registry.

{"ok":false,"refused":"no examples corpus configured: …"}​

examples-search has no corpus. Run $TOOL examples download (fills ~/.ailang/examples) or start serve with --examples-dir DIR, outside the workspace root.

{"ok":false,"refused":"…"} with effects: []​

The tool's own plan refused the arguments: an unknown key, a missing required key, or a path that is absolute, empty, contains .. or starts with -. The refusal is committed.

denied:budget​

The episode has spent its grant. Budget persists per episode across restarts and across new sessions for the same episode; use a new episode (and worktree) for a fresh budget.

transition invocation is not available in this daemon​

serve ran without --ailang-bin, so there is no invocation coordinator, or a registry read failed. Check the daemon's stderr for an a2a refusal line (A2A) or an mcp refusal line (MCP) with the cause.

effects were requested but the invocation was not confirmed committed; effect records: …​

Over A2A: the effect ran and was recorded, but the commit did not land (for example another writer moved the head). The listed effect records are durable. Do not assume the effect did not happen. See MCP and A2A.

pi or claude hangs when run from a script​

Both read a non-TTY stdin as extra prompt input and wait for EOF. Give them </dev/null.

pi shows the World tools only through a proxy​

pi-mcp-adapter registers direct tools from its cache (~/.pi/agent/mcp-cache.json). Run one interactive pi --mcp-config … session first to write it.

Agent launches and herdr​

See Run your agents through World for the setup these refer to.

doctor exits 10: daemon​

✗ daemon nothing is listening at http://127.0.0.1:47330
fix: start World: ailang-worldd serve --db <db> …

Start World, or pass the --addr it serves on. The same class covers a listener that isn't ailang-worldd (stop it, or serve on another --bind and pass --addr) and a daemon serving another store than --db (pass the store it names with --db).

doctor exits 11: session​

The session file is missing, not mode 0600, expired, revoked or unknown, or the credentials store can't be read. The fix line names the step: chmod 0600 <file>, or a new session with ailang-worldd episode start … (or session new). When the store is the problem, pass --db and --credentials-db naming the store that minted the session.

doctor exits 12: host​

The host is missing from PATH, its --version failed or timed out, or, for pi, the pi-mcp-adapter recorded in hosts.json is missing or changed. Install or repair the host. For pi: pi install npm:pi-mcp-adapter, then ailang-worldd hosts init --replace.

A host warning exits 0 but matters: launch config missing or digest differs; launch would be observed, not confined. Rewrite the launch files with ailang-worldd hosts init --out-dir <dir> --replace.

doctor exits 13: exec​

An exec profile's tool is missing from the profile's path (install <name> in the profile path, then restart World), or it moved since the daemon resolved it at startup (restart World so it resolves the tools again). This check runs without --quick only.

<host>-world: no World session (WORLD_SESSION is unset).​

The launcher needs a session you approved. Start one with ailang-worldd episode start …, then run WORLD_SESSION="$(cat <session file>)" claude-world (or codex-world, pi-world).

The pane says world: fallback​

A World check failed in New World agent and you chose [p]. The pane runs the host plainly in the repo: it is not confined, and World records none of its work. The failed check, its detail and its fix are in the plugin's state directory, in fallbacks.jsonl. Run the fix, then start a new World agent; close the fallback pane when you're done with it.

pi-world starts with no tools​

pi-world launchers written before #381 started pi with no tools at all: pi has no built-in MCP, and those launchers loaded no MCP extension. Install the adapter and rewrite the launchers:

pi install npm:pi-mcp-adapter
ailang-worldd hosts init --replace

A current launcher refuses instead, with pi can't reach World: no pi-mcp-adapter at <dir> and the same fix.

World context unavailable: … at the start of a session​

The context block couldn't reach World. session invalid or expired means a new session is needed; daemon down means World isn't answering at the launch's address: run ailang-worldd doctor. The block and Claude's status line call the ailang-worldd that ran hosts init, by its full path (after #382), and jq, which must be on the agent's PATH. If that binary has moved, the block says no ailang-worldd at <path>: run hosts init --replace with the one you use.

Claude's /remote-control fails in a herdr pane: "Claude.ai login was rejected"​

When herdr's server environment carries CLAUDE_CODE_OAUTH_TOKEN, every pane inherits it, and Claude's /remote-control fails with that message. This isn't World's doing: it happens in plain panes too. Start herdr's server from an environment without that variable.