harness-write
Atomic file write + edit + multi-edit with read-before-edit ledger, OLD_STRING_NOT_UNIQUE match locations, fuzzy candidate suggestions.
Rust port of @agent-sh/harness-write. Part of the harness-* monorepo — see the top-level README for architectural context.
Install
[]
= "0.1"
Usage
use ;
use PermissionPolicy;
use Arc;
use json;
let perms = new;
let ledger = new;
let session = new;
// ... after Read, the read-executor should record into ledger ...
let r = edit.await;
Contract
The full contract lives in agent-knowledge/design/write.md. Changes to this crate must stay in sync with that spec, and with the TypeScript sibling at @agent-sh/harness-write.
License
MIT © Avi Fenesh