Skip to main content

Troubleshooting

When something doesn't appear, the answer usually already exists in a file. Ask your agent to look: it can read the live state (tie-offs/<rig>/state.json) and the service log (tie-offs/<rig>/knot-service.log) and tell you what it sees — knot-inspect for state, knot-analyst for overall health and blockers, knot-manage for output quality. The symptom list below tells you what to look for; the skills and Concepts carry the detail.

Nothing is happening​

Check: does tie-offs/<rig>/state.json exist and update? If not, Knot probably isn't running. Ask your agent to "start knot" — knot-start launches it in the background with its output appended to the service log, and verifies it came up.

If the service keeps dying, the appended service log is the only record that spans runs (run activity is in-memory per process) — ask your agent to read the tail of tie-offs/<rig>/knot-service.log for warnings, errors, or a panic.

My loom or knot isn't discovered​

Discovery is by convention, and the conventions are strict:

  • Loom directories must end in -loom (rig/planning-loom/, not rig/planning/).
  • Knot definitions must be .md files at the first level inside the loom (not nested subdirectories, not YAML).
  • Profile files live in rig/profiles/, filename stem = name.

Fix the path or name and the file watcher picks it up; ask your agent to confirm via knot-inspect that the loom now appears in state. Parse problems appear as KnotParseWarning lines in the service log.

Processing fails with "profile not found"​

The knot's profile reference must match an existing profile by name. Ask your agent to "fix the profile reference in <knot>" — it runs knot-create and repairs the mismatch (a renamed profile, a typo, a missing file, or invalid YAML frontmatter are the usual causes).

A knot fails or keeps retrying​

Ask your agent to read the service log for this knot's [KNOT][EVENT] lines — the event names diagnose themselves:

  • TimeoutExceeded — the session outlived the profile's timeout budget. Longer timeouts go in the profile; smaller strand files and tighter knot instructions reduce what a session must do.
  • context limit reached — the session's context wouldn't fit the model window even after compaction. Narrow the strand or prompt scope, or point the profile at a larger-window model.
  • AgentInactivity — the session went fully silent (hung command, stalled provider) and the watchdog restarted it with a note telling the agent to stream progress. One is recovery; repeats on the same command mean the command hangs — fix the command.
  • StrandIgnored — the file is binary; Knot processes text only.
  • StrandSkipped — the file was momentarily missing when Knot read it (atomic-save editors do this). Usually resolves on the next save.

The full event taxonomy with causes is in Concepts — Reacting to Knot Outcomes; repeated failures across a run are knot-analyst's blocker report.

I changed a file and the knot didn't trigger​

Touch the strand file to generate a fresh filesystem event, or ask your agent to re-dispatch it (knot-dispatch). A restart always re-scans the rig.

A knot keeps re-running (oscillation)​

Two knots reacting to each other without a convergence mechanism loop forever — the tie-off alternates "changes made" / "no changes needed". Ask your agent to apply a loop-breaking pattern (one-way authority, status-gating, or strand acknowledgement — knot-design's patterns) and check knot-manage's review of the oscillation afterwards.

The service log is missing​

Knot never opens that file itself — the launcher appends to it. If Knot was started with a bare foreground run, its [KNOT][EVENT] / [KNOT][STATE] lines went to the terminal and are gone. This is the main reason to always start Knot through knot-start.

The state file seems stale​

The state writer ticks every five seconds but never rewrites an unchanged snapshot — an unchanged modification time means the rig is idle, not broken. For real-time activity, read the service log.

Using the diagnostic skills​

  • knot-inspect — "show me the rig state": looms, knots, profiles, queue, processing status, in plain language.
  • knot-analyst — "how healthy is the rig?": activity, git history, progress against plans, stagnation, and blockers, scored traffic-light style.
  • knot-manage — "review what the rig produced": tie-off substance vs. rubber-stamping, producer→consumer communication, commit quality.
  • knot-lint — "audit the rig's documents": static consistency (procedure leaking into wiring, multiple editors of one document, orphaned events) without running anything.