land: bounded-mutation-diffs

AF
12d ago
+1093-118

Accepted agent delivery; branch-keyed search descriptor included.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Bounds optional diff metadata in patch, edit, write, and approval replies with a shared 8 MiB wire budget. Oversized patches are now omitted while file outcomes and line counts stay complete, marked by diff_omitted and a notice; small patches on large files still arrive unchanged.

  • Pure additions and deletions are preflighted before line-diff construction, so huge files never render a patch.
  • Every reply shape now carries diff_omitted and diff_notice; per-file entries drop patch and set diff_omitted instead.