Skip to content

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

Python

release: v0.0.242 notes for /btw and the usage-attribution invariant

Rach Pradhanf7d6ac6cc3f7
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4d3c4ff2..65570a39 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -65,8 +65,24 @@ current is part of cutting a release.
predicted it would. The inventory also found that `approvals.zig` was on the
ban list as a consent surface rather than for any terminal coupling, so its
pure half moved to `harness_policy.zig`.
+- `/btw` asks a side question over the live conversation with tools disabled,
+ renders the answer, and adds nothing to the session (#415). It is billed in
+ the `[usage]` footer, because the cost is real even though the exchange is
+ not kept. There are two persistence paths to stay out of now — the session
+ file and the new append-only transcript — and both are asserted byte-for-byte
+ before and after. A `{"type":"btw"}` `--json` control replies with an explicit
+ `persisted:false` so a client mirroring the stream can tell it apart from a
+ real turn.
- A GUI panel answers "what are my agents doing" without opening each
conversation, sorted attention-first (#419).
+- Child usage is pinned to the bill and kept out of the parent's context math
+ (#418). The audit found no leak — a subagent gets a fresh `Agent` whose meter
+ starts at zero and a `ToolCtx` with no pointer back to the parent, so it has
+ nothing to write to — and the invariant is now held by a test rather than by
+ construction alone: eight workers each ending past the parent's compaction
+ threshold leave the parent's context estimate identical to the control, while
+ the bill moves by exactly their usage. Had it leaked, compaction would fire
+ early on every fleet-heavy run.
- Two eval harnesses became durable rather than living in scratch: the live A/B
token-economics rig that produced the numbers above, and the golden
byte-identity harness the engine work is verified against.
diff --git a/scripts/eval/tier1-manifest.json b/scripts/eval/tier1-manifest.json
index b91b7aea..f4c1e8ea 100644
--- a/scripts/eval/tier1-manifest.json
+++ b/scripts/eval/tier1-manifest.json
@@ -14,7 +14,7 @@
"src/main.zig",
"src/repl.zig"
],
- "test_count_baseline": 1116,
+ "test_count_baseline": 1125,
"test_count_slack": 25,
"required_invariants": [
{
diff --git a/src/cli.zig b/src/cli.zig
index 5755c98e..422263f8 100644
--- a/src/cli.zig
+++ b/src/cli.zig
@@ -26,6 +26,7 @@ pub const changelog_text =
\\ • A big tool result returns a handle — preview, path, byte count, shape — instead of its contents, so it never occupies context turn after turn
\\ • Sessions keep an append-only transcript compaction cannot rewrite, and compaction now states what survives on both sides of the boundary
\\ • Windows: the transcript wrote 0 bytes on every run; the durable-transcript prompt line now waits for the first compaction instead of being paid for from turn one
+ \\ • /btw asks a side question over the live context with tools off, then throws it away — billed, rendered, never added to the session
\\
\\0.0.241
\\ • Goal/loop runs stop paying for verifications the workspace cannot have changed: an unchanged tree skips the eval command and its judge call, and the model is steered to edit first