Skip to content

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

Python

docs(adr): 0029 Pareto front — H wall, J tokens

Cursor Agent05a0d5d7b567
diff --git a/docs/adr/0029-mcp-inside-rlm-and-return-shapes.md b/docs/adr/0029-mcp-inside-rlm-and-return-shapes.md
index 61e9f2c6..e1c40dd4 100644
--- a/docs/adr/0029-mcp-inside-rlm-and-return-shapes.md
+++ b/docs/adr/0029-mcp-inside-rlm-and-return-shapes.md
@@ -109,3 +109,27 @@ signal. H/I 7-call structured is the stable cheap path today.
- A later `len`/`for` would cut C/D/F/G retries; do not grow a general
language without that measurement.
- Prompting "prefer one rlm script" is not free. Default no-hint.
+
+## Pareto front (wall / tok_in / calls)
+
+Minimize all three among passing SuperGrok grok-4.6 runs. `len(x)` /
+`project(x, field)` landed in `src/rlm_reduce.zig` so a script can print
+a slim summary. Rerun: `python3 scripts/eval-mcp-pareto.py`
+
+A point is on the front if nothing else is ≤ on every axis and < on one.
+
+| id | wall | in | calls | why it stays |
+|---|---:|---:|---:|---|
+| **H** | **28.0s** | 112k | **7** | fastest / fewest calls (no-hint structured) |
+| **I** | 31.1s | 107k | 7 | same path, slightly fewer tokens |
+| **D-r1** | 41.1s | 107k | 10 | rlm+each, one lucky rep |
+| **J-live** | 47.3s | **84k** | 9 | `each` + `len`/`project`; first script printed ids only |
+
+Everything else is dominated (including `--old`, sidecar, split,
+quiet-print, K-live, and H-live's 70s variance rep).
+
+J used rlm for real (`issues = list_issues(); comments = each(...);
+print(len, project)`). It is the **token vertex**. H is the **wall
+vertex**. There is still no point that wins both. Warm shapes (K) did
+not help J. Do not ship rlm-as-default for this MCP task; keep
+len/project so the token vertex is reachable.
diff --git a/scripts/eval-mcp-pareto.py b/scripts/eval-mcp-pareto.py
index ab917272..d6c2253c 100644
--- a/scripts/eval-mcp-pareto.py
+++ b/scripts/eval-mcp-pareto.py
@@ -37,6 +37,10 @@ HISTORY = [
{"id": "G", "wall": 155.6, "tok_in": 279981, "calls": 21, "ok": True, "note": "quiet + warm"},
{"id": "H", "wall": 28.0, "tok_in": 112073, "calls": 7, "ok": True, "note": "no each() recipe"},
{"id": "I", "wall": 31.1, "tok_in": 107284, "calls": 7, "ok": True, "note": "no recipe + warm"},
+ {"id": "A-live", "wall": 36.13, "tok_in": 133403, "calls": 8, "ok": True, "note": "--old (pareto session)"},
+ {"id": "H-live", "wall": 70.1, "tok_in": 178473, "calls": 14, "ok": True, "note": "no recipe (pareto session; variance)"},
+ {"id": "J-live", "wall": 47.31, "tok_in": 84041, "calls": 9, "ok": True, "note": "len/project recipe, cold"},
+ {"id": "K-live", "wall": 75.46, "tok_in": 113688, "calls": 11, "ok": True, "note": "len/project recipe, warm"},
]