Repair on edits
Status: Partial. General schema repair runs on all tools including
editbefore validation. Hashline-specific lenient parsing inside@veyyon/hashlineremains separate.
When a model emits a malformed edit or apply_patch call:
- Schema repair attempts JSON recovery and ambiguity refusal at the agent-loop seam.
- If repair succeeds, arguments proceed to hashline / apply_patch validation and dispatch.
- If repair cannot disambiguate, the loop returns a loud error with coaching hints (no dispatch).
- Hashline still tolerates envelope stripping and bare-body piping inside
@veyyon/hashline.
See Repair overview and The hashline edit engine.