Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions adapters/local/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ adapters/local/driver version # {"driver": "local", ..., "can": [.
- **Errors never repeat raw output:** the clone's and every turn's output goes only to the run's owner-only log (`$OPENWIZ_LOCAL_STATE/<run>.log`). A failed clone or first turn answers a fixed reason (not signed in, refused a tool, failed, could not clone), its exit code, and that log's path.
- **Runs:** `start` saves the run, then runs its first turn. A run whose first turn began but couldn't be saved is ended, and its error says the outcome is unknown and what to check; it never says retry. `wake` runs another turn on the same ticket, in which the agent edits its own status note. While the run's last turn is still running, `wake` answers `woke: true` and starts no second turn, so one ticket never has two agents. On Linux, `stop` ends every process the run's turns started, whatever their session or environment: a polite signal, then a kill after 10 seconds. Each turn runs under a small supervisor (`driver --turn`) that keeps every process it starts (a Linux subreaper), so a worker in its own session or with a clean environment is still stopped. On macOS, `stop` ends every process it can find, within the gap and the `lsof` fallback above. A wake and a stop on one run take turns under its lock. Several runs at once are independent.
- **State:** each run's request, its workspace and each turn's output log, owner-only, in `$OPENWIZ_LOCAL_STATE` (default `~/.local/state/openwiz-local`).
- **Usage limits and overload:** when a turn ends non-zero with a usage-limit or overload message in the last lines of its log (built in for `claude` and `codex`, or via a row's optional `limit` pattern), its supervisor waits out the window (`reset + 15 s + up to 30 s` random jitter, or `60 s` then `120 s` then stop for overload with no reset time) and resumes once with the normal wake prompt on the same harness and model. Resets more than 6 hours away are not waited for; during a wait (or before a >6-hour reset), `wake` refuses under D3 naming the limit and reset time, and `start`'s first-turn check reports a limit the same way.
- **On a VPS:** sign in to the harness and to `gh` there, and run the driver there, for example over `ssh`.

`schema.json` is byte for byte the kit's `kernel/driver-kit/schema.json`.
Expand Down
Loading
Loading