# Troubleshooting
URL: /documentation/reference/troubleshooting



## Goal [#goal]

Find the real cause when a Strata19 tool call, the done-gate hook, the workspace widget, or a routine run is not doing what you expect, instead of reinstalling or restarting blind.

## Before you start [#before-you-start]

* The plugin already installed and previously working at least once. If you have not confirmed a successful install yet, start at [Install the plugin](/documentation/getting-started/install) instead — several of the symptoms below assume the plugin ran successfully before.
* Know which host you are running, Codex or Claude Code — several causes and their fixes differ by host.
* A way to see a tool call's full JSON response, not just your coding agent's summary of it. Several checks below depend on reading a specific field (`provenance`, `reasonCode`, `bindingWarning`) that a paraphrased answer can hide.

## Steps [#steps]

<Steps>
  <Step>
    ### Confirm what is actually installed [#confirm-what-is-actually-installed]

    Ask your agent to list its available tools and compare the `strata19.*` names against what you expect. A tool that used to exist and does not anymore, or a fix that never shows up after a new release, is almost always a stale install rather than a broken tool: both Codex and Claude Code load the plugin from a version-keyed cache directory, never live from source or from the marketplace's latest commit. Reinstall with the same command you used originally (`codex plugin add strata19@strata19` or `claude plugin install strata19@strata19` — see [Install the plugin](/documentation/getting-started/install) for the full command per host). If you maintain the plugin's source yourself, a rebuild has to run and the version has to be bumped before a reinstall has anything new to fetch — that whole loop is [Interface and packaging](/documentation/extensions/interface-and-packaging).
  </Step>

  <Step>
    ### Confirm which repository the plugin is actually bound to [#confirm-which-repository-the-plugin-is-actually-bound-to]

    Every tool response's `provenance` carries a `rootResolutionSource`. `env` (an explicit `STRATA19_PROJECT_ROOT`), `bound` (a session bound via `strata19.initialize_project`, or a call's own `repoPath`), and `client-root` (a workspace root the host declared) are all direct evidence about the current session and need no further check. `cwd` means none of those applied and resolution fell back to the server process's own working directory — read the accompanying `bindingWarning` when one is present: it is attached specifically when that working directory turns out to be the plugin's own install folder rather than a real project, and states plainly that no env override, session bind, or client root was found. If you see it, set `STRATA19_PROJECT_ROOT` explicitly, or call `strata19.initialize_project` with `repoPath` set to your repository's absolute path.
  </Step>

  <Step>
    ### Confirm the relevant configuration actually took effect [#confirm-the-relevant-configuration-actually-took-effect]

    Call `strata19.settings_manage` with `{ "action": "list" }` to see every `STRATA19_*` setting's resolved value and which tier set it: an environment variable, a stored setting, or the built-in default. This covers `STRATA19_WEB_BASE`, `STRATA19_API_KEY`, `STRATA19_API_ENDPOINT`, and `STRATA19_PROJECT_ROOT` directly. It does not cover `STRATA19_GATE_MODE` — the done-gate hook reads that variable straight from its own process environment, not through this tool, so confirm it with your host's own environment inspection instead.
  </Step>
</Steps>

Once you know what is installed, what it is bound to, and what configuration actually took effect, match your symptom below.

## Verify [#verify]

* **Stale install, fixed**: the tool you expected now appears in a fresh tool list, or — if you build from source — the installed cache's bytes match your rebuilt files (see [Interface and packaging](/documentation/extensions/interface-and-packaging)'s verify commands).
* **Wrong repository, fixed**: a tool response's `provenance.rootResolutionSource` reads `env`, `bound`, or `client-root`, with no `bindingWarning` attached.
* **Empty or self-install-only results, fixed**: the response no longer names Strata19's own install folder as the only visible directory, and a scan returns real `file:line` findings about your repository.
* **Done gate, fixed**: the Stop hook blocks or allows according to the mode you configured, not silently allowing every time.
* **Widget, fixed**: the pane renders real content with no "bundle is missing" text, or — with `STRATA19_WEB_BASE` configured — the iframe finishes loading instead of sitting on "refreshing…".
* **Routine, fixed**: `strata19.automation_run`'s `get_receipts` shows the run advanced past the step that was stuck, or `get_next_action` returns a new pending action.

## If it doesn't work [#if-it-doesnt-work]

* **A tool never appears in `tools/list`, or a change you shipped never reaches an already-installed session.** The plugin cache is version-keyed: rebuilding, or even landing a new commit on the pinned ref, never reaches an installed session until the version is bumped in every downstream manifest, rebuilt, pushed, and reinstalled. [Interface and packaging](/documentation/extensions/interface-and-packaging) owns this release loop end to end.

* **A scanning tool comes back with no real findings, or names its own bundled files as your code.** If no project root can be resolved through any tier — no `STRATA19_PROJECT_ROOT`, no session binding, no host-declared workspace root — the server can see only its own install folder and refuses rather than scanning it: the response states plainly that it "could not tell which project to inspect, so it did not inspect anything," and that scanning the install folder would report findings about Strata19's own bundled files, not your code. Fix it the same two ways the message names: call `strata19.initialize_project` with `repoPath` set to your repository's absolute path for the rest of the session, or set `STRATA19_PROJECT_ROOT` in your host's MCP config for every session.

* **A finding, a coverage answer, or a Specbook criterion reads as `indeterminate` or `unmeasured` instead of a real verdict.** These are typed, honest states, not failures — see [Limits](/documentation/reference/limits) for what each one does and does not prove. Call `strata19.get_capability_coverage` to see which languages and analysis kinds actually reached `FULL` versus `PARTIAL`/`HEURISTIC`/`UNSUPPORTED` for this run, and `strata19.get_analysis_caveats` for this run's specific bounds and dangling edges, before treating the result as wrong.

* **A check reads `unresolved` and you do not know why.** `unresolved` means the check could not run or ran in a way that says nothing about the code; it is never `failing`. The label carries one reason (for example `no-runner`, `policy-refused`, `build-boundary`, `flaky`, `index-unavailable`). Each reason, who acts and what to do is listed in the plugin's `docs/TROUBLESHOOTING.md`.

* **The done-gate Stop hook never runs.** Confirm `STRATA19_GATE_MODE` is not `off` — unset or an unrecognized value behaves as the default, `ask`, which still runs the gate. On Codex, plugin hooks are non-managed by default: run `/hooks` in a conversation and approve the `strata19 session-bind` and `strata19 done-gate` definitions by content hash, or neither one runs at all; editing either hook's content later re-breaks trust and needs re-approval. On Claude Code, an enterprise `allowManagedHooksOnly` policy can block plugin hooks entirely with no runtime signal to the hook process when it does — that is a host policy decision the plugin cannot detect or route around.

* **The workspace pane is blank, or shows "Strata19 workspace bundle is missing."** On a default Free Local install, the widget is a self-contained bundle built into the plugin — it needs no `STRATA19_WEB_BASE` and no running web app. If the pane shows that exact message, the bundle file was not found next to the installed server: a packaging fault, not something about your repository. Rebuild with `pnpm build:plugin` if you build from source, or reinstall the plugin — see [Interface and packaging](/documentation/extensions/interface-and-packaging).

* **You set `STRATA19_WEB_BASE` and now the pane never loads, or sits on "refreshing…" forever.** Configuring `STRATA19_WEB_BASE` opts the widget out of the bundled default and into an iframe pointing at your web app instead — a deliberate choice for a hosted deployment, not something Free Local needs. Once set, further requirements apply, and their symptoms look identical, so check them in order: the app must actually be reachable at that origin; the origin must be `https://` — an https-sandboxed widget frame cannot load `http://localhost`, independent of CSP configuration, so front a local dev server with a tunnel first (`cloudflared tunnel --url http://localhost:4001`, then set `STRATA19_WEB_BASE` to the printed URL); and for a `next dev` server specifically, the tunnel host must also be listed in `allowedDevOrigins` (`STRATA19_DEV_ORIGINS=<tunnel-host> pnpm dev` in this repository), or the frame loads and never hydrates past "refreshing…".

* **A routine run will not advance past `get_next_action`.** Call `strata19.automation_run` with `{ "action": "get_receipts", "executionKey": "..." }` and read the execution's actual status rather than trusting a step's own claimed `status: "success"` — for a dispatcher-bound action kind, the engine independently re-derives the real outcome. A run parked at `waiting_for_human` is blocked one of two ways: a **human-input park** is waiting for a typed answer to an `ask_question`/`request_form_input` action; an **approval-grant park** means a `human_gate` action was refused advance because it has no persisted approval or live durable grant, and needs one issued through `strata19.automation_approvals` (`{ "action": "grant", ... }`) from a different driver identity than the one that will consume it. Restarting the run does not substitute for either. A step can also legitimately stop because its declared action kind has no local dispatcher binding — `strata19.automation_run` returns a typed `unsupported` outcome with a `reasonCode` rather than fabricating a result, and some of those genuinely run elsewhere (tenant-scoped, or needing a network/unattended runtime this local dispatcher cannot reach). See [Routines](/documentation/plugin/routines) for the full run lifecycle.

* **`strata19.get_next_task` always returns no task, even on a repository with real, uningested work.** This is expected on the free tier: the tool is genuinely remote-only, because the dependency order it returns comes from the Strata19 living graph, which needs a premium account. Its own description now says so up front, so a host that lists the tool shows the requirement before you spend a call on it. Without both `STRATA19_API_KEY` and `STRATA19_API_ENDPOINT` set, it returns no task and names exactly which of the two is missing, alongside a local-mode alternative: run `strata19.verify_implementation` for real local findings, or open the project in the Strata19 web app to pick a task manually. See [`strata19.get_next_task`](/documentation/reference/tools/get_next_task).

* **A routine started from the plugin does not appear in, or does not match, the web app's view of the same routine.** They are not the same engine yet: plugin routines run on a local adapter, and the web app's managed execution runs on a different workflow library with a different data shape — a run started from one is not portable to the other today (see [Limits](/documentation/reference/limits)). Before assuming anything is broken, call `strata19.sync_publish` with `{ "action": "status" }` to see the current authority matrix and whether anything has actually left the machine — nothing in Strata19 syncs on a timer, a file save, or a watcher, so an apparent disagreement is often just two views that were never connected.

## Related [#related]

* [Install the plugin](/documentation/getting-started/install) — installation-specific failures, hook trust, and the repository-binding resolution order
* [Interface and packaging](/documentation/extensions/interface-and-packaging) — the release loop that ships a fix, a new tool, or a rebuilt widget bundle
* [Limits](/documentation/reference/limits) — what a clean, `indeterminate`, or typed-refusal result actually proves
* [Routines](/documentation/plugin/routines) — running, pausing, resuming, and reading receipts for a routine
* [Local data](/documentation/plugin/local-data) — the settings and sync surfaces referenced throughout this page
