Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

Tests follow ADR 0232

justrach09d5b87e7bda
diff --git a/scripts/test-repl-background-wait.py b/scripts/test-repl-background-wait.py
old mode 100755
new mode 100644
index 1f36cc31..2586bfdc
--- a/scripts/test-repl-background-wait.py
+++ b/scripts/test-repl-background-wait.py
@@ -31,7 +31,8 @@ class Model(ScriptedModel):
text = json.dumps(body.get("messages", []))
with self._lock:
self.requests.append(body)
- root = PROMPT in text
+ # A child's first message quotes the user's request too (ADR 0232); its own system prompt tells it apart.
+ root = PROMPT in text and "You are a subagent" not in text
if root:
self.root_bodies.append(body)
n = len(self.root_bodies)
diff --git a/src/edit_verify.zig b/src/edit_verify.zig
index 384319c6..17ec8db4 100644
--- a/src/edit_verify.zig
+++ b/src/edit_verify.zig
@@ -584,7 +584,7 @@ test "fsErrorText names the tool, path, and failure (#183)" {
const wr = fsErrorText(gpa, .write, "nope/out.txt", error.FileNotFound).?;
defer gpa.free(wr);
try std.testing.expect(std.mem.indexOf(u8, wr, "write_file") != null);
- try std.testing.expect(std.mem.indexOf(u8, wr, "parent") != null); // distinguishes a missing parent dir
+ try std.testing.expect(std.mem.indexOf(u8, wr, "directory path") != null); // a missing directory is made (ADR 0232); this is a file in the way
const perm = fsErrorText(gpa, .edit, "p", error.AccessDenied).?;
defer gpa.free(perm);