koi
Documentation / yokai

Driver vocabulary

The terms specific to Yokai: supervisor, connector, turn, session, act, verdict, contract, recovery and the rest, with the words to avoid.

Shared terms are in the Glossary. The source of truth is crates/yokai/CONTEXT.md.

Term Meaning
Driver The whole Yokai application: cockpit, supervisor and connectors.
Supervisor The loop that picks the next phase, runs it, checks the contract and decides to continue, halt or finish. It waits for each turn; it does not fan work out.
Connector The port that runs one turn against an agent and streams progress. Today it is the ACP client in Tori.
ACP adapter The agent-side program that speaks ACP. Claude Code and Codex need one; Cursor and OpenCode have it built in.
Turn One prompt to the agent and its work until it stops.
Session The ACP conversation a turn runs in, with a session_id. Normally one per turn; token savings shares them within a phase.
Act Plan, Build or Seal. Plan and Seal are one turn each; Build is many.
Iteration One Build pass: coder turn, sensors, then a judge turn if the sensors are green.
Judge A read-only turn that reviews one iteration's diff. Blocking findings veto convergence; it never grants it.
Guide Fixed instructions given to the coder before it acts, from build.guides.
Feedback thread FEEDBACK.md, the append-only record of sensor and judge findings. Yokai is its only writer.
Spec What Build converges toward. With Junji, the phase plan.
Budget The iteration limit, build.max_iters. Unbounded when unset.
Verdict Build's result: converged or not-converged. Never "done".
Contract The four facts checked after a phase: card done, new commit, gate green, clean tree.
Stall A phase that two fresh runs in a row fail to advance.
Recovery The cycle that handles a contract or Build miss instead of halting.
Repair Bookkeeping when the gate is green: commit, ignore noise, or mark the card done.
Diagnose Recovery's read-only turn. Names fix, repair or grant_build. Uses the triage role.
Fix Recovery's turn that edits run files under .koi/, never product code.
Save One recovery episode in .koi/run/saves/. A record, not a snapshot.
Candidate One agent, with optional model, effort and speed, in a tier's ordered list.
Skip A candidate that could not open a session: unreachable, limited or unstable. Retried after retry_after_secs.
Run ledger ledger.jsonl: one row per phase run, plus skip rows.
Session log sessions.jsonl: one row per turn.
Agent stream The live text in the cockpit for the current phase. Bounded and cleared each phase.
Phase rail The cockpit strip plan → coder → sensors → judge → seal → gate.
Deliverable The commit range a phase produced, shown in the Deliverable view.
Stopped You pressed x, or the agent was interrupted. r continues.
Halt The run will not continue: cost ceiling, unapproved gated phase, or a miss with recovery off.
Sandbox launcher The host yokai that creates the VM and starts the inner supervisor.

Avoid "step" for any of these. Say act, iteration or rail station, whichever you mean.