graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
docs(adr): 091123 SWE is 106k / 24 calls / 8.5M after presence skip
Cursor Agent928d803605e8
diff --git a/docs/adr/0024-three-harness-compare-prompt-subagent-rss.md b/docs/adr/0024-three-harness-compare-prompt-subagent-rss.mdindex 8a75dbdf..3235d280 100644--- a/docs/adr/0024-three-harness-compare-prompt-subagent-rss.md+++ b/docs/adr/0024-three-harness-compare-prompt-subagent-rss.md@@ -363,3 +363,37 @@ test → done). Leftover suite tokens/calls are **edit_file/write_file retries**on validated / map-conflict / config-parse (same failed span three times,then a full rewrite) — not prefix, not catalog `read_file`, not grok's heap.RSS still ~9M. Do not copy 159M. `label-sort` still fails both harnesses.++## The retries were the shared-tree checkpoint under `-j 6`++Those "failed spans" were `#469` presence: SWE sandboxes live *inside* the+harness git checkout, so `rev-parse --git-dir` is the parent repo. Six+parallel `-p` sessions shared one identity; each `edit_file`/`write_file`+checkpointed once per sibling (`action was NOT performed`). grok has no+such lock.++**Take:** `--lean` / `-p` does not `announce` and `gateCheck` is a no-op+(`3dc8937`). Interactive multi-session still checkpoints. One-shots and+eval sandboxes do not tax each other.++SWE (`run-20260825-091123.jsonl`, SuperGrok grok-4.6, `-j 6`):++| harness | pass | wall (sum) | first | RSS | in | out | calls |+|---|---:|---:|---:|---:|---:|---:|---:|+| default rlm | **5/6** | **198s** | 11.3s | **8.5M** | **106210** | 11969 | **24** |+| grok-build | **5/6** | **506s** | 1.6s | 177M | **194069** | 33577 | **39** |++Every graff task is **4 API calls** (rlm → edit(s) → test → done). Versus+grok's historical 157–185k / ~31 and this-rep 194k / 39: **fewer tokens,+fewer calls, ~20× less RSS, faster wall**. `label-sort` still fails both.++| task | graff in / calls | grok in / calls |+|---|---:|---:|+| config-parse | 16k / 4 | 43k / 5 |+| cookie-store | 23k / 4 | 36k / 7 |+| json-stream | 19k / 4 | 89k / 13 |+| label-sort (fail both) | 18k / 4 | 9k / 4 |+| map-conflict | 16k / 4 | 8k / 6 |+| validated | 15k / 4 | 9k / 4 |++Do not copy grok's 177M heap. Do not re-enable presence announce on `-p`.diff --git a/docs/adr/README.md b/docs/adr/README.mdindex 5f7c4dea..773cc460 100644--- a/docs/adr/README.md+++ b/docs/adr/README.md@@ -34,7 +34,7 @@ record only when you need the evidence or the edge cases.| [0021](0021-transcript-is-the-task-not-the-bus.md) | Transcript is the task, not the event bus: bookkeeping is silent, todos are WORKING, subagents are scouts. || [0022](0022-rlm-is-opt-in-speculative-ptc.md) | `rlm` (Alex Zhang spec-ptc + RLM, Zig) is the default loop. `--old` restores structured-only. Prime persist + `subagent()` only — no IPython. || [0023](0023-codex-subagent-is-sidecar-not-v8.md) | Codex check: take sidecar-vs-critical-path spawn prompts; reject V8 Code Mode, extra spawn tools, and parent-history fork. |-| [0024](0024-three-harness-compare-prompt-subagent-rss.md) | Steal short child briefs + sidecar spawn from grok-build/kimi/dsh; `print(read_file)` must return the file; do not drop catalog `read_file` on lean; reject root conv-id share, datetime/tree prefix, fork-seed, Harbor, grok heap. |+| [0024](0024-three-harness-compare-prompt-subagent-rss.md) | Steal short child briefs + sidecar spawn; `print(read_file)` returns the file; `-p` skips the shared-tree checkpoint (evals are sibling sandboxes); reject rlm-only catalog, grok heap, Harbor. || [0025](0025-io-uring-is-not-the-process-io.md) | Process Io stays Zig `Threaded`. spec-ptc is already the default loop (ADR 0022). Do not take ublk or switch `main` to `std.Io.Uring`. |## When to write one