Skip to content
Merged
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
3 changes: 1 addition & 2 deletions docs/agent-resume.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,11 @@ Every captured value eventually enters a shell command, which makes validation t

Each tool implements the `Harness` trait in [`src/harness/mod.rs`](../src/harness/mod.rs). The methods keep detection, evidence collection, and command construction separate:

- `detect` classifies the accepted command shapes.
- `shape` supplies the program word and resume selector. The default `detect` and `resume_command` methods derive the accepted and canonical forms from that pair.
- `instrument` returns spawn-time arguments, environment entries, and an optional pinned ID.
- `parse_capture` reads an ID from hook or notify JSON.
- `scrape_exit` reads an ID from retained terminal text.
- `correlate_fs` finds one matching on-disk session.
- `resume_command` builds the canonical resume form.

The supervisor resolves each harness home from the task's launch environment: the tool-specific variable first, then `$HOME` plus the tool's dot directory. That resolved path remains attached to the task for later filesystem correlation.

Expand Down
Loading