Skip to content

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

Python

fix(learn): write the one-time contribution notice to an absolute path

Rach Pradhan95f9c908f075
diff --git a/src/commands_privacy.zig b/src/commands_privacy.zig
index d1d31319..2e8fcd79 100644
--- a/src/commands_privacy.zig
+++ b/src/commands_privacy.zig
@@ -33,7 +33,7 @@ const notice_file = ".simple-harness-learning-notice";
pub fn firstRunNotice(io: Io, arena: std.mem.Allocator, home: []const u8, out: *Io.Writer) void {
if (home.len == 0 or !privacy.allowsAggregate()) return;
const path = std.fmt.allocPrint(arena, "{s}/{s}", .{ home, notice_file }) catch return;
- const file = Io.Dir.cwd().createFile(io, path, .{ .exclusive = true }) catch return;
+ const file = Io.Dir.createFileAbsolute(io, path, .{ .exclusive = true }) catch return;
file.close(io);
out.writeAll(
\\learning: this build contributes prompt-free aggregate grades (counts, deltas,