Skip to content
Greenware
Esc
↑↓navigate↵open⌘Jpreview
On this page

Troubleshooting

Fixes for the problems people have actually hit: no factory, wrong workspace, Audiences unavailable, Herdr stages that never start, the folder-trust prompt, plays stuck in manual, and more.

Start with gw doctor (what’s installed and signed in) and gw logs <client>/<play> (what the play did last). gw show <client>/<play> always ends with the next command.

Setup

“No factory yet”

gw: No factory yet. Run `gw start` to set one up (or `gw init <folder>`).

gw looks for GW_HOME, then a factory.yaml in the current folder or above, then the factory gw init remembered. Run gw init ~/factory once, or cd into your factory. If GW_HOME is set to a folder without a factory.yaml, unset it.

“factory.yaml … is invalid”

A key has the wrong type or an unknown value. Compare it with the configuration reference. The message names the first problem.

The Clay CLI is missing

gw doctor --fix installs it with Bun into ~/.greenware/clay-cli, no Node or sudo needed.

The Claude Code skills don’t show up

Restart Claude Code or run /reload-plugins. The installer skips the plugin when Claude Code wasn’t installed yet; rerun curl -fsSL greenware.sh | sh after installing it. If Claude Code already had a greenware marketplace from somewhere else, the installer leaves it and tells you how to replace it.

Clay workspace

The wrong workspace got pinned

Signing in with a personal account pins your own workspace. gw client login <id> now lists the signed-in workspaces and asks which to pin, and asks before pinning one whose name doesn’t look like the client’s. To fix an existing pin:

gw client login acme --workspace <the client's workspace id>
gw client status acme      # shows "workspace <id> (<name>)"

“workspace check failed” / workspace_mismatch (exit 78)

The client’s Clay login now resolves to a different workspace than the one pinned in client.yaml. Every non-read call checks this. Sign the client in again with gw client login <id> (each client has its own login in clients/<id>/.clay), or re-pin with gw client pin <id> if the new workspace is right.

workspace_unpinned

The client has no clayWorkspaceId, so only reads are allowed. Run gw client login <id>.

Couldn't read <client>'s Audiences or plan_upgrade_required

The workspace’s Clay plan doesn’t include querying Audiences from the CLI. gw client refresh and gw client research record audiencesAvailable: false and exit 0, and plays use a run export, factory suppression lists and CSV holdouts instead. See Workspaces without Audiences. If the error persists, the failure isn’t plan_upgrade_required (an auth or network error, or a mix): sign in again and retry.

A play waits at Plan: “needs 1 suppression list”

On a workspace without Audiences, the planner named a suppression list the client hasn’t saved. Save it and the play moves on by itself:

gw client suppression acme customers --csv customers.csv

budget_exhausted (exit 79)

The play spent maxCreditsPerPlay in test runs. Raise it in factory.yaml if the spend is expected, then gw retry.

stage_permission_denied or record_read_denied (exit 77)

A stage tried a Clay command its class doesn’t allow, or a web-enabled stage tried to read record contents. That’s the security model working; the stage gets the error and adapts. If it keeps failing, gw logs shows the call.

gw export says the play has no result node

Only plays that end in a [GREENWARE] result node export a CSV (every play on a workspace without Audiences). Other plays write their results elsewhere: see the play’s deliverables/README.md. On the twin, gw export fails because the twin has no recording for run exports; it works against a live workspace.

Herdr

The stage pane shows “Is this a project you trust?”

Claude Code asks once per folder. Trust the whole factory so no play asks again:

gw doctor --fix

Accepting in one stage pane covers only that play. While a stage waits on the prompt, the play says “Waiting on folder trust: switch to the stage pane…”.

“herdr timeout: timed out waiting for agent startup”

Older Greenware typed a long claude … line into the pane, and a fresh macOS shell cut it at 1,024 bytes. Since 0.7.0, permissions live in a settings file and the line is short. Update with gw update. If you see “herdr couldn’t type the stage’s launch command into its pane”, the pane’s shell never reached its prompt: check the pane, then gw retry. gw doctor notes a Herdr older than 0.9.4, which truncates long lines silently; update Herdr.

Every stage fails with spawn_failed

Herdr updated itself while its server kept running, so the binary path panes inherit pointed at a deleted file. Greenware 0.7.0 and later find the updated binary on their own; on older versions, restart Herdr.

A play doesn’t open in Herdr

gw idea prints “Herdr isn’t running” when it can’t reach the server; the play waits and opens when Herdr starts. gw run (or gw herdr open <client>/<play>) reopens tabs. gw herdr doctor shows the server, the plugin and each play’s tab.

Plays

A play is in manual at Verify or Audit

It stopped on something only a person can resolve. Read verification.md or audit.md, then:

  • gw accept <play> --comment "<your ruling>" to accept the finding and continue (fixable failures still go back to Build);
  • gw reopen <play> --gate A --comment "<ruling>" --approve when the plan or contract itself was wrong;
  • gw retry <play> --from build to rebuild without a ruling.

There is no command yet to send a needs-a-human finding back to Build as something to fix (#16).

A play is in manual elsewhere

A stage produced an invalid artifact twice. gw logs shows the validation errors. Fix the cause (often missing client context), then gw retry <play>.

“Gate A has decisions only you can make”

The planner wrote needs-ruling.md or a requirement is blocked. Approve with your rulings, or reject to replan:

gw approve acme/lookalikes-01 --gate A --comment "1-4 as recommended"

“is not waiting at Gate A”

gw approve and gw reject apply only to a play at that gate. To change a gate already passed, use gw reopen on a blocked or manual play.

“–from … would undo an approved gate”

gw retry --from can’t go back past an approved gate. Reject at the gate, or gw reopen it.

Publish failed: “the draft changed after Gate B”

Someone (or something) edited the workflow in Clay after you approved, and Publish refuses anything but the exact snapshot you approved. The play is blocked at Publish. Reopen Gate B so it goes back through Build, Verify and Audit to a fresh Gate B:

gw reopen acme/lookalikes-01 --gate B --comment "The draft was edited in Clay after approval; re-verify it"

Your factory in git

  • What to commit: client context, standards, decisions, answers, function shortlists, resources.json, workspace.json, and play artifacts with their events.jsonl and signed approvals/. gw init writes a .gitignore that keeps logins, holdouts, ledgers, suppression lists, the engine secret and context snapshots out.
  • Switching machines: commit, git pull on the other machine, and gw status continues where you left off. Don’t run the same play on two machines at once.
  • Your edits to CLAUDE.md or functions.md are normal commits. Greenware never overwrites them; it writes *.proposed.* files for you to diff.

See Your factory in git.

Still stuck

Open an issue with the output of gw doctor, gw show <play> and gw logs <play>. Remove client names and data first.

Was this page helpful?