Skip to content

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

Python

docs(release): stamp v0.0.281 for the -p learn skip

Cursor Agentd963dbc647fd
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 82caaf23..f081f86a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,21 @@ The release workflow uses a tag's section here as its release notes (a
hand-written `docs/releases/<tag>.md` wins if present), so keeping this file
current is part of cutting a release.
+## v0.0.281 (2026-08-29)
+
+- Next cut after tagged v0.0.280. Headline is the `-p` / `--json` learn
+ skip (ADR 0044, #668): one-shots no longer copy 132M `graff-pinned`.
+ SuperGrok grok-4.6 SWE went 4/6 in 456s / 230s CPU → **5/6 in 205s /
+ 6.5s CPU**. Interactive REPL/TUI/ACP still auto-init after 5 calls.
+- `graff tui` / TTY `graff repl` claim the alt-screen before credentials
+ and paint live markdown on the cached tail (ADR 0042, #666).
+- `pi-xai` runs Pi on the SuperGrok seat the same way as graff-dev
+ (ADR 0043, #667). Do not steal Pi's 4-tool catalog or 165M heap.
+- Codegraff `glm-5.3-flash` SWE recorded (ADR 0045, #669): Pi 5/6 in
+ 758s, graff 3/6 with three 300s timeouts. Next cut on that model is
+ finishing inside the cap, not a smaller catalog.
+- No tag until asked. Download / notarization ids land after the build.
+
## v0.0.280 (2026-08-28)
- Next cut after tagged v0.0.279. Carries the #645 continuation already
diff --git a/README.md b/README.md
index 56769771..b212b749 100644
--- a/README.md
+++ b/README.md
@@ -114,7 +114,7 @@ Much of this implementation and benchmark work was made possible by
[Cursor Cloud Agents](https://cursor.com/docs/cloud-agent): parallel agents in
isolated environments, with measured evidence merged back into the harness.
-### What shipped in v0.0.277–v0.0.280
+### What shipped in v0.0.277–v0.0.281
- **MCP results learn to slim themselves.** On the Linear fixture, the warm
learnt path moved from **28.0s to 14.8s**, **112k to 31k input**, and **7 to 5
@@ -134,11 +134,15 @@ isolated environments, with measured evidence merged back into the harness.
ACP `graff-login`, local tools, `/schedule`, and JSONL channel workers.
Native `codedb` / `read_file` stay the default readers when codedb-pro
is licensed (ADR 0040).
+- **One-shots skip the 38s learn pin.** `-p` / `--json` no longer copy
+ 132M `graff-pinned`. SuperGrok SWE went **4/6 in 456s → 5/6 in 205s**
+ (CPU 230s → 6.5s). Interactive sessions still auto-init (ADR 0044).
Read the full [v0.0.277 notes](docs/releases/v0.0.277.md), the
[v0.0.278 privacy follow-up](docs/releases/v0.0.278.md), the
-[v0.0.279 ACP native cut](docs/releases/v0.0.279.md), and the
-[v0.0.280 leftover cut](docs/releases/v0.0.280.md).
+[v0.0.279 ACP native cut](docs/releases/v0.0.279.md), the
+[v0.0.280 leftover cut](docs/releases/v0.0.280.md), and the
+[v0.0.281 skip](docs/releases/v0.0.281.md).
### Broader comparison: model choice, footprint, and startup
diff --git a/docs/releases/v0.0.281.md b/docs/releases/v0.0.281.md
new file mode 100644
index 00000000..3d72578c
--- /dev/null
+++ b/docs/releases/v0.0.281.md
@@ -0,0 +1,78 @@
+# v0.0.281 (2026-08-29)
+
+Next cut after tagged [v0.0.280](v0.0.280.md). The headline is the
+one-shot learn skip: `-p` and `--json` no longer copy 132M
+`graff-pinned` on the way out. That was the 456s vs 276s SuperGrok SWE
+gap against Pi — not their catalog.
+
+280 stays published as-is. This is not a retag. No GitHub tag until
+asked; download / notarization ids land after the build.
+
+## One-shots skip learn auto-init (ADR 0044 / #668)
+
+Every graff-dev SWE task used to make exactly 5 API calls (the
+`learn_auto` bootstrap floor) and then `startBackgroundLearning` copied
+`.graff/learn-kit/graff-pinned` and generated suites — **38s of local
+CPU per task**. Tokens and calls already matched Pi.
+
+`startBackgroundLearning` is now a no-op on `-p` / `--json`. Interactive
+REPL / TUI / ACP still auto-init after 5 model calls.
+`GRAFF_LEARN_AUTO=off` still kills the whole trigger. `graff learn init`
+is unchanged.
+
+Confirm (`graff-evals/results/run-20260829-031139.jsonl`, SuperGrok
+grok-4.6, `--suite swe -j 6`):
+
+| | pass | wall | CPU | sandbox |
+|---|---:|---:|---:|---:|
+| before (ADR 0043) | 4/6 | 456s | 230s | 127M pin |
+| after | **5/6** | **205s** | **6.5s** | 100–164K |
+
+Wall **−55%**, CPU **−97%**, same tokens/calls (~160k / 30).
+`json-stream` passed this rep (the model kept “no RS → empty”); the
+earlier Pi 5/6 vs graff 4/6 was one-rep noise on the same SPEC clause
+ADR 0024 already named. `label-sort` still fails — grok-build and Pi
+miss it too. RSS ~91M is the process, not the pin.
+
+Do not steal Pi's 4-tool catalog or 165M heap.
+
+## TUI claims the screen before boot (ADR 0042 / #666)
+
+`graff tui` / TTY `graff repl` claim the alt-screen before credentials
+and leftover MCP/prompt work. Kitty/mouse/paste stay on `run`'s single
+`enable_seq`. Live markdown paints on the cached tail. Welcome stays
+empty. Off a TTY the claim is a no-op.
+
+## Pi on the SuperGrok seat (ADR 0043 / #667)
+
+`pi-xai` maps `~/.xai/credentials/graff-oauth.json` into `XAI_API_KEY`
+and execs stock `pi -p --mode json --provider xai`. Fair A/B is
+`--suite swe --harness graff-dev,pi-xai --model grok-4.6`. Keep Pi on
+stock defaults.
+
+## GLM 5.3-flash on the Codegraff gateway (ADR 0045 / #669)
+
+Same suite after the skip, `CODEGRAFF_API_KEY` →
+`gateway.codegraff.com/v1`, `--model glm-5.3-flash` (uncatalogued, so
+it falls through; do not pass `glm-5.3`, that row is zai).
+
+| harness | pass | wall | RSS |
+|---|---:|---:|---:|
+| graff-dev | 3/6 | 1353s | 90.5M |
+| pi-codegraff | **5/6** | **758s** | 167M |
+
+Graff's three misses were SIGKILL at the 300s cap. Next cut on this
+model is finishing inside that cap, not a four-tool catalog.
+
+## Parked
+
+#664 (TUI first paint vs companion MCP) and #665 (mid-turn stall /
+reconnect off the transcript) stay on their own PRs. yxlyx doctor /
+cube / governed / localhost stay inventory in
+[yxlyx-leftovers.md](../yxlyx-leftovers.md).
+
+## Tests
+
+Test floor stays **1745** (slack 25) until this cut's suite is counted;
+the skip adds one reachable unit test. The floor is bumped in the same
+release if the ratchet has room.
diff --git a/src/cli.zig b/src/cli.zig
index 8d3ad8c4..f893ce28 100644
--- a/src/cli.zig
+++ b/src/cli.zig
@@ -21,6 +21,11 @@ const harness_version = root.harness_version;
pub const changelog_text =
\\What's new
\\──────────
+ \\0.0.281
+ \\ • -p / --json skip learn auto-init — no 132M graff-pinned copy (ADR 0044)
+ \\ • SuperGrok SWE 5/6 in 205s / 6.5s CPU (was 4/6 in 456s / 230s)
+ \\ • TUI claims alt-screen before boot; live markdown on the cached tail (ADR 0042)
+ \\
\\0.0.280
\\ • leftover 279 work: TUI stall/resize, experiment fan-out, /tell /peek, ACP graff-login
\\ • local tools (.graff/tools), /schedule due-claim, JSONL channel workers
diff --git a/src/libgraff.zig b/src/libgraff.zig
index 0e489dd7..f54d9d15 100644
--- a/src/libgraff.zig
+++ b/src/libgraff.zig
@@ -76,7 +76,7 @@ export fn graff_acp_create(new_seed: u32) void {
session_id = null;
seed = if (new_seed == 0) 1 else new_seed;
engine.cancel_flag.store(false, .release);
- engine.implementation_version = "0.0.280-core";
+ engine.implementation_version = "0.0.281-core";
}
export fn graff_acp_feed(len: usize) i32 {