Make turn diff tracking operation backed (#21180)

## Summary
- replace filesystem-based turn diff tracking with an operation-backed
accumulator
- preserve enough verified apply_patch state to render move-overwrite
cases correctly
- keep the turn/diff/updated contract intact while removing remote-only
turn-diff test skips

This takes the assumption that no 3P services rely on the output format
of `apply_patch`

## Why
For the CCA file system isolation push

---------

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
jif-oaiandCodex authored and GitHub committed 2026-05-07 11:33:47 +02:00
1 parent b2268999fe
commit f7e8ff8e50
15 files changed
+1050 -898

No files matched your search

+2 -2
View File
@@ -159,8 +159,8 @@ fn is_write_patch_constrained_to_writable_paths(
// Determine whether `path` is inside **any** writable root. Both `path`
// and roots are converted to absolute, normalized forms before the
// prefix check.
let is_path_writable = |p: &PathBuf| {
let abs = resolve_path(cwd, p);
let is_path_writable = |p: &Path| {
let abs = resolve_path(cwd, &p.to_path_buf());
let abs = match normalize(&abs) {
Some(v) => v,
None => return false,