Skip to content

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

Python

feat(evals): six more shipped-PR in-house fixtures

Cursor Agent46e61eb2b821
diff --git a/graff-evals/README.md b/graff-evals/README.md
index 4a7c47ab..e27b6acd 100644
--- a/graff-evals/README.md
+++ b/graff-evals/README.md
@@ -21,7 +21,7 @@ harness under test spends model calls.
| `rlm` | scatter-gather / multi-file reads (where default rlm can overlap) |
| `swe` | DeepSWE-shaped multi-file bugfixes, distilled from [deepswe.datacurve.ai/run](https://deepswe.datacurve.ai/run) (no Harbor/Docker) |
| `mcp` | Linear-shaped fixture MCP (Blacksmith code-mode + muscle memory). Always `--no-lean` (`graff-dev-nolean`): lean is a different catalog and is not on the front. |
-| `inhouse` | Bug shapes distilled from shipped CodeGraff PRs (symlink write, oneshot chrome, cache git-root, stall widen/warn, empty catalog). Self-contained fixtures — not the live repo. Opt-in like `mcp`. |
+| `inhouse` | Bug shapes distilled from shipped CodeGraff PRs (first six: symlink write, oneshot chrome, cache git-root, stall widen/warn, empty catalog; plus hardlink pin, x_search splice, MCP first-turn, rlm showcase gate, codedb menu, peer resume). Self-contained fixtures — not the live repo. Opt-in like `mcp`. |
```sh
./run.py --suite swe --harness graff-dev-old,graff-dev --model grok-4.6 -j 12
diff --git a/graff-evals/fixtures/codedb-menu/SPEC.md b/graff-evals/fixtures/codedb-menu/SPEC.md
new file mode 100644
index 00000000..dd91f5f1
--- /dev/null
+++ b/graff-evals/fixtures/codedb-menu/SPEC.md
@@ -0,0 +1,14 @@
+# Advertise five codedb one-shots (CodeGraff #597 / ADR 0019, distilled)
+
+`menu.py` must expose:
+
+- `ADVERTISED` — `["context", "around", "callpath", "list_dir", "status"]`
+- `HOPS` — hop verbs that stay **callable** but off the menu:
+ `search`, `symbol`, `callers`, `find`, `outline`, `read`
+- `menu() -> list` — exactly `ADVERTISED`, in that order
+- `allowed(sub) -> bool` — true for advertised **and** hops
+- `usage() -> str` — names only the advertised five
+ (`context`, `around`, `callpath`, `list_dir`, `status`)
+
+`update` is never allowed. Hop verbs must not appear in `menu()` or
+`usage()`.
diff --git a/graff-evals/fixtures/codedb-menu/menu.py b/graff-evals/fixtures/codedb-menu/menu.py
new file mode 100644
index 00000000..cf2384ca
--- /dev/null
+++ b/graff-evals/fixtures/codedb-menu/menu.py
@@ -0,0 +1,17 @@
+"""codedb advertised surface — incomplete. Fix the SPEC.md contract."""
+
+ADVERTISED = ["context", "around", "callpath", "list_dir", "status"]
+HOPS = ["search", "symbol", "callers", "find", "outline", "read"]
+
+
+def menu():
+ # BUG: hop verbs ride the catalog listing (ADR 0019).
+ return ADVERTISED + HOPS
+
+
+def allowed(sub):
+ return sub in ADVERTISED
+
+
+def usage():
+ return "codedb <command> — " + " · ".join(ADVERTISED + HOPS)
diff --git a/graff-evals/fixtures/codedb-menu/test_menu.py b/graff-evals/fixtures/codedb-menu/test_menu.py
new file mode 100644
index 00000000..46878e10
--- /dev/null
+++ b/graff-evals/fixtures/codedb-menu/test_menu.py
@@ -0,0 +1,22 @@
+from menu import ADVERTISED, allowed, menu, usage
+
+
+def test_menu_is_five_oneshots():
+ assert menu() == ADVERTISED
+ assert menu() == ["context", "around", "callpath", "list_dir", "status"]
+ text = usage()
+ assert "context" in text and "list_dir" in text
+ assert "search" not in text and "symbol" not in text
+
+
+def test_hops_callable_update_not():
+ assert allowed("callpath")
+ assert allowed("search")
+ assert allowed("symbol")
+ assert not allowed("update")
+
+
+if __name__ == "__main__":
+ test_menu_is_five_oneshots()
+ test_hops_callable_update_not()
+ print("OK")
diff --git a/graff-evals/fixtures/hardlink-pin/SPEC.md b/graff-evals/fixtures/hardlink-pin/SPEC.md
new file mode 100644
index 00000000..a1d12c96
--- /dev/null
+++ b/graff-evals/fixtures/hardlink-pin/SPEC.md
@@ -0,0 +1,15 @@
+# Hardlink the learn pin (CodeGraff #687, distilled)
+
+`pin.py` must expose `pin_executable(source_path, dest_dir, name) -> str`.
+
+It places `name` inside `dest_dir` and returns that path.
+
+- Prefer `os.link(source, dest)` so the pin and the live exe share an inode
+ (`nlink >= 2`). A 127M byte-copy is the wall tax this contract kills.
+- If `dest` already exists, remove it first, then link.
+- Do **not** `chmod` the dest. After a hardlink that would also chmod the
+ live exe.
+- Copy only when `os.link` raises `OSError` (cross-device). The copy must
+ still not chmod the dest.
+- `source_path` must remain a regular file at the same mode it had before
+ the pin.
diff --git a/graff-evals/fixtures/hardlink-pin/pin.py b/graff-evals/fixtures/hardlink-pin/pin.py
new file mode 100644
index 00000000..268b07dd
--- /dev/null
+++ b/graff-evals/fixtures/hardlink-pin/pin.py
@@ -0,0 +1,13 @@
+"""Learn-kit pin — incomplete. Fix the SPEC.md contract."""
+import os
+import shutil
+
+
+def pin_executable(source_path, dest_dir, name):
+ dest = os.path.join(dest_dir, name)
+ if os.path.exists(dest):
+ os.remove(dest)
+ # BUG: always byte-copy, then chmod the dest (would also chmod a hardlink).
+ shutil.copy2(source_path, dest)
+ os.chmod(dest, 0o755)
+ return dest
diff --git a/graff-evals/fixtures/hardlink-pin/test_pin.py b/graff-evals/fixtures/hardlink-pin/test_pin.py
new file mode 100644
index 00000000..f9743ad5
--- /dev/null
+++ b/graff-evals/fixtures/hardlink-pin/test_pin.py
@@ -0,0 +1,25 @@
+import os
+import stat
+import tempfile
+
+from pin import pin_executable
+
+
+def test_same_inode_on_one_fs():
+ with tempfile.TemporaryDirectory() as td:
+ src = os.path.join(td, "graff")
+ kit = os.path.join(td, "kit")
+ os.mkdir(kit)
+ with open(src, "wb") as f:
+ f.write(b"exe")
+ os.chmod(src, 0o700)
+ dest = pin_executable(src, kit, "graff-pinned")
+ assert os.path.isfile(dest)
+ assert os.stat(src).st_ino == os.stat(dest).st_ino
+ assert os.stat(dest).st_nlink >= 2
+ assert stat.S_IMODE(os.stat(src).st_mode) == 0o700
+
+
+if __name__ == "__main__":
+ test_same_inode_on_one_fs()
+ print("OK")
diff --git a/graff-evals/fixtures/mcp-first-turn/SPEC.md b/graff-evals/fixtures/mcp-first-turn/SPEC.md
new file mode 100644
index 00000000..a5837095
--- /dev/null
+++ b/graff-evals/fixtures/mcp-first-turn/SPEC.md
@@ -0,0 +1,18 @@
+# First model call skips the deferred MCP join (CodeGraff ADR 0035, distilled)
+
+`join.py` must expose:
+
+- `defer_mcp_join(yolo, json_mode) -> bool` — `--yolo` (including `-p`)
+ starts MCP in the background. `--json` keeps a blocking connect.
+- `oneshot_skips_imported(oneshot, lean, project_servers) -> bool` — lean
+ `-p` skips imported global/plugin servers only when the project
+ `.mcp.json` is empty (ADR 0029: a project file still connects).
+- `first_request_join(pending_len, already_skipped) -> str` — one of
+ `"none"`, `"skip"`, `"join"`. `already_skipped` is a one-element list
+ used as a mutable flag (`[False]` → `[True]` on the first skip).
+
+`first_request_join` contract:
+
+- `pending_len == 0` → `"none"` (do not flip the flag).
+- First call with pending work → `"skip"` and set the flag.
+- Later calls with pending work → `"join"`.
diff --git a/graff-evals/fixtures/mcp-first-turn/join.py b/graff-evals/fixtures/mcp-first-turn/join.py
new file mode 100644
index 00000000..388c3eb3
--- /dev/null
+++ b/graff-evals/fixtures/mcp-first-turn/join.py
@@ -0,0 +1,17 @@
+"""MCP first-turn join — incomplete. Fix the SPEC.md contract."""
+
+
+def defer_mcp_join(yolo, json_mode):
+ return yolo
+
+
+def oneshot_skips_imported(oneshot, lean, project_servers):
+ # BUG: lean -p always skips, even with a project .mcp.json (ADR 0029).
+ return oneshot and lean
+
+
+def first_request_join(pending_len, already_skipped):
+ # BUG: always join, so the first -p turn waits on the handshake.
+ if pending_len == 0:
+ return "none"
+ return "join"
diff --git a/graff-evals/fixtures/mcp-first-turn/test_join.py b/graff-evals/fixtures/mcp-first-turn/test_join.py
new file mode 100644
index 00000000..66e337d6
--- /dev/null
+++ b/graff-evals/fixtures/mcp-first-turn/test_join.py
@@ -0,0 +1,26 @@
+from join import defer_mcp_join, first_request_join, oneshot_skips_imported
+
+
+def test_defer_and_imported():
+ assert defer_mcp_join(True, False) is True
+ assert defer_mcp_join(True, True) is False
+ assert defer_mcp_join(False, False) is False
+ assert oneshot_skips_imported(True, True, 0) is True
+ assert oneshot_skips_imported(True, True, 1) is False
+ assert oneshot_skips_imported(True, False, 0) is False
+ assert oneshot_skips_imported(False, True, 0) is False
+
+
+def test_first_request_skips_once():
+ skipped = [False]
+ assert first_request_join(0, skipped) == "none"
+ assert skipped == [False]
+ assert first_request_join(2, skipped) == "skip"
+ assert skipped == [True]
+ assert first_request_join(2, skipped) == "join"
+
+
+if __name__ == "__main__":
+ test_defer_and_imported()
+ test_first_request_skips_once()
+ print("OK")
diff --git a/graff-evals/fixtures/peer-resume/SPEC.md b/graff-evals/fixtures/peer-resume/SPEC.md
new file mode 100644
index 00000000..3d41054c
--- /dev/null
+++ b/graff-evals/fixtures/peer-resume/SPEC.md
@@ -0,0 +1,12 @@
+# Resume restores cursor and inbox, not the room (CodeGraff #584 / ADR 0014)
+
+`resume.py` must expose:
+
+- `snapshot(cursor, inbox) -> dict` — `{"cursor": int, "inbox": list}`
+ (a copy of `inbox`)
+- `resume(snap) -> dict` — `{"cursor", "inbox", "history"}`
+
+`/resume` restores the peer-channel **byte cursor** and **inbox**. It does
+**not** replay the room into history. `history` is always `[]`.
+`ROOM` in the file is leftover transcript — do not copy it into the
+restored session.
diff --git a/graff-evals/fixtures/peer-resume/resume.py b/graff-evals/fixtures/peer-resume/resume.py
new file mode 100644
index 00000000..d7725224
--- /dev/null
+++ b/graff-evals/fixtures/peer-resume/resume.py
@@ -0,0 +1,16 @@
+"""Peer-channel resume — incomplete. Fix the SPEC.md contract."""
+
+ROOM = ["[peer] alice: leftover", "[peer] bob: also leftover"]
+
+
+def snapshot(cursor, inbox):
+ return {"cursor": cursor, "inbox": list(inbox)}
+
+
+def resume(snap):
+ # BUG: replays the room into history (ADR 0014).
+ return {
+ "cursor": 0,
+ "inbox": [],
+ "history": list(ROOM),
+ }
diff --git a/graff-evals/fixtures/peer-resume/test_resume.py b/graff-evals/fixtures/peer-resume/test_resume.py
new file mode 100644
index 00000000..da6fd40f
--- /dev/null
+++ b/graff-evals/fixtures/peer-resume/test_resume.py
@@ -0,0 +1,14 @@
+from resume import resume, snapshot
+
+
+def test_restore_cursor_and_inbox():
+ snap = snapshot(42, ["wake-1", "wake-2"])
+ got = resume(snap)
+ assert got["cursor"] == 42
+ assert got["inbox"] == ["wake-1", "wake-2"]
+ assert got["history"] == []
+
+
+if __name__ == "__main__":
+ test_restore_cursor_and_inbox()
+ print("OK")
diff --git a/graff-evals/fixtures/rlm-showcase-gate/SPEC.md b/graff-evals/fixtures/rlm-showcase-gate/SPEC.md
new file mode 100644
index 00000000..94e2eab3
--- /dev/null
+++ b/graff-evals/fixtures/rlm-showcase-gate/SPEC.md
@@ -0,0 +1,15 @@
+# Late rlm showcase (CodeGraff #633 / ADR 0030, distilled)
+
+`gate.py` must expose `should_showcase(*, cli=False, native_batch=None,
+mcp_batch=None, context=0, compact_at=8000) -> bool`.
+
+Showcase `rlm` when **any** of:
+
+- `cli=True` (`--rlm`)
+- `native_batch` has **≥ 4** native tool names (wide native batch)
+- `context >= compact_at // 2` (50% of compactAt)
+
+Never showcase on MCP fan-out: a 4-wide `mcp_batch` is not a native
+batch. `native_batch` / `mcp_batch` default to empty.
+
+`compact_at=8000` → threshold 4000. `context=3999` is still hidden.
diff --git a/graff-evals/fixtures/rlm-showcase-gate/gate.py b/graff-evals/fixtures/rlm-showcase-gate/gate.py
new file mode 100644
index 00000000..81e1ca13
--- /dev/null
+++ b/graff-evals/fixtures/rlm-showcase-gate/gate.py
@@ -0,0 +1,7 @@
+"""rlm showcase gate — incomplete. Fix the SPEC.md contract."""
+
+
+def should_showcase(*, cli=False, native_batch=None, mcp_batch=None, context=0, compact_at=8000):
+ # BUG: any 4-wide batch showcases, including MCP fan-out; no 50% gate.
+ batch = list(native_batch or []) + list(mcp_batch or [])
+ return cli or len(batch) >= 4 or context > 0
diff --git a/graff-evals/fixtures/rlm-showcase-gate/test_gate.py b/graff-evals/fixtures/rlm-showcase-gate/test_gate.py
new file mode 100644
index 00000000..d1797785
--- /dev/null
+++ b/graff-evals/fixtures/rlm-showcase-gate/test_gate.py
@@ -0,0 +1,20 @@
+from gate import should_showcase
+
+
+def test_cli_and_wide_native():
+ assert should_showcase(cli=True) is True
+ assert should_showcase(native_batch=["read_file", "codedb", "bash"]) is False
+ assert should_showcase(native_batch=["read_file", "codedb", "bash", "webfetch"]) is True
+
+
+def test_mcp_fanout_and_context():
+ mcp = ["mcp__linear__list_comments"] * 4
+ assert should_showcase(mcp_batch=mcp) is False
+ assert should_showcase(context=3999, compact_at=8000) is False
+ assert should_showcase(context=4000, compact_at=8000) is True
+
+
+if __name__ == "__main__":
+ test_cli_and_wide_native()
+ test_mcp_fanout_and_context()
+ print("OK")
diff --git a/graff-evals/fixtures/x-search-splice/SPEC.md b/graff-evals/fixtures/x-search-splice/SPEC.md
new file mode 100644
index 00000000..297d6edf
--- /dev/null
+++ b/graff-evals/fixtures/x-search-splice/SPEC.md
@@ -0,0 +1,13 @@
+# Hosted x_search is a splice, not a catalog tool (CodeGraff #632 / ADR 0031)
+
+`splice.py` must expose `splice(tools, provider, kind, enabled=True) -> list`.
+
+`tools` is a list of dicts (the Responses `tools` array). Return a new list.
+
+- When `enabled` and `provider == "xai"` and `kind == "responses"`: append
+ `{"type": "x_search"}` if that type is not already present.
+- Chat-completions (`kind == "chat"`) and every other provider: return
+ `tools` unchanged (copy ok). Never add a catalog function named `x_search`.
+- `enabled=False` (GRAFF_XAI_X_SEARCH=0): never splice.
+- Do not local-exec a resulting `x_search_call`. This fixture only covers
+ the splice.
diff --git a/graff-evals/fixtures/x-search-splice/splice.py b/graff-evals/fixtures/x-search-splice/splice.py
new file mode 100644
index 00000000..0247c229
--- /dev/null
+++ b/graff-evals/fixtures/x-search-splice/splice.py
@@ -0,0 +1,8 @@
+"""x_search splice — incomplete. Fix the SPEC.md contract."""
+
+
+def splice(tools, provider, kind, enabled=True):
+ out = list(tools)
+ # BUG: always appends a catalog-style function, including chat / off.
+ out.append({"type": "function", "name": "x_search"})
+ return out
diff --git a/graff-evals/fixtures/x-search-splice/test_splice.py b/graff-evals/fixtures/x-search-splice/test_splice.py
new file mode 100644
index 00000000..02dd5631
--- /dev/null
+++ b/graff-evals/fixtures/x-search-splice/test_splice.py
@@ -0,0 +1,21 @@
+from splice import splice
+
+
+def test_xai_responses_splices_hosted():
+ tools = [{"type": "function", "name": "bash"}]
+ got = splice(tools, "xai", "responses", enabled=True)
+ assert any(t.get("type") == "x_search" for t in got)
+ assert not any(t.get("name") == "x_search" for t in got)
+
+
+def test_opt_out_and_chat_leave_tools():
+ tools = [{"type": "function", "name": "bash"}]
+ assert splice(tools, "xai", "responses", enabled=False) == tools
+ assert splice(tools, "xai", "chat", enabled=True) == tools
+ assert splice(tools, "openai", "responses", enabled=True) == tools
+
+
+if __name__ == "__main__":
+ test_xai_responses_splices_hosted()
+ test_opt_out_and_chat_leave_tools()
+ print("OK")
diff --git a/graff-evals/hidden/codedb-menu.py b/graff-evals/hidden/codedb-menu.py
new file mode 100644
index 00000000..6eada1e8
--- /dev/null
+++ b/graff-evals/hidden/codedb-menu.py
@@ -0,0 +1,21 @@
+"""Held-out checks for codedb-menu."""
+import os
+import sys
+
+sys.path.insert(0, os.getcwd())
+from menu import HOPS, allowed, menu, usage # noqa: E402
+
+
+def main():
+ assert "callers" not in menu()
+ assert "outline" not in usage()
+ for hop in HOPS:
+ assert allowed(hop), hop
+ assert hop not in menu()
+ assert allowed("read")
+ assert not allowed("delete")
+ print("hidden OK")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/graff-evals/hidden/hardlink-pin.py b/graff-evals/hidden/hardlink-pin.py
new file mode 100644
index 00000000..f34f2630
--- /dev/null
+++ b/graff-evals/hidden/hardlink-pin.py
@@ -0,0 +1,30 @@
+"""Held-out checks for hardlink-pin (not copied into the sandbox)."""
+import os
+import stat
+import sys
+import tempfile
+
+sys.path.insert(0, os.getcwd())
+from pin import pin_executable # noqa: E402
+
+
+def main():
+ with tempfile.TemporaryDirectory() as td:
+ src = os.path.join(td, "live")
+ kit = os.path.join(td, "kit")
+ os.mkdir(kit)
+ with open(src, "wb") as f:
+ f.write(b"x" * 64)
+ os.chmod(src, 0o640)
+ first = pin_executable(src, kit, "graff-pinned")
+ again = pin_executable(src, kit, "graff-pinned")
+ assert first == again
+ assert os.stat(src).st_ino == os.stat(again).st_ino
+ assert os.stat(again).st_nlink >= 2
+ assert stat.S_IMODE(os.stat(src).st_mode) == 0o640
+ assert os.path.getsize(src) == 64
+ print("hidden OK")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/graff-evals/hidden/mcp-first-turn.py b/graff-evals/hidden/mcp-first-turn.py
new file mode 100644
index 00000000..8be1488b
--- /dev/null
+++ b/graff-evals/hidden/mcp-first-turn.py
@@ -0,0 +1,21 @@
+"""Held-out checks for mcp-first-turn."""
+import os
+import sys
+
+sys.path.insert(0, os.getcwd())
+from join import defer_mcp_join, first_request_join, oneshot_skips_imported # noqa: E402
+
+
+def main():
+ assert defer_mcp_join(False, True) is False
+ assert oneshot_skips_imported(True, True, 3) is False
+ skipped = [False]
+ assert first_request_join(1, skipped) == "skip"
+ assert first_request_join(0, skipped) == "none"
+ assert skipped == [True]
+ assert first_request_join(4, skipped) == "join"
+ print("hidden OK")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/graff-evals/hidden/peer-resume.py b/graff-evals/hidden/peer-resume.py
new file mode 100644
index 00000000..a7f3715d
--- /dev/null
+++ b/graff-evals/hidden/peer-resume.py
@@ -0,0 +1,23 @@
+"""Held-out checks for peer-resume."""
+import os
+import sys
+
+sys.path.insert(0, os.getcwd())
+from resume import ROOM, resume, snapshot # noqa: E402
+
+
+def main():
+ snap = snapshot(7, [{"from": "peer", "text": "hi"}])
+ got = resume(snap)
+ assert got["cursor"] == 7
+ assert got["inbox"] == [{"from": "peer", "text": "hi"}]
+ assert got["history"] == []
+ for line in ROOM:
+ assert line not in got["history"]
+ empty = resume(snapshot(0, []))
+ assert empty["cursor"] == 0 and empty["inbox"] == [] and empty["history"] == []
+ print("hidden OK")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/graff-evals/hidden/rlm-showcase-gate.py b/graff-evals/hidden/rlm-showcase-gate.py
new file mode 100644
index 00000000..a9fbc461
--- /dev/null
+++ b/graff-evals/hidden/rlm-showcase-gate.py
@@ -0,0 +1,18 @@
+"""Held-out checks for rlm-showcase-gate."""
+import os
+import sys
+
+sys.path.insert(0, os.getcwd())
+from gate import should_showcase # noqa: E402
+
+
+def main():
+ assert should_showcase() is False
+ assert should_showcase(context=800, compact_at=160_000) is False
+ assert should_showcase(native_batch=["a", "b", "c", "d", "e"]) is True
+ assert should_showcase(mcp_batch=["m"] * 8, context=0) is False
+ print("hidden OK")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/graff-evals/hidden/x-search-splice.py b/graff-evals/hidden/x-search-splice.py
new file mode 100644
index 00000000..a711c7a1
--- /dev/null
+++ b/graff-evals/hidden/x-search-splice.py
@@ -0,0 +1,20 @@
+"""Held-out checks for x-search-splice."""
+import os
+import sys
+
+sys.path.insert(0, os.getcwd())
+from splice import splice # noqa: E402
+
+
+def main():
+ already = [{"type": "x_search"}]
+ got = splice(already, "xai", "responses", enabled=True)
+ assert sum(1 for t in got if t.get("type") == "x_search") == 1
+ empty = splice([], "xai", "responses", enabled=True)
+ assert empty == [{"type": "x_search"}]
+ assert splice([], "anthropic", "responses", enabled=True) == []
+ print("hidden OK")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/graff-evals/hillclimb/baseline.md b/graff-evals/hillclimb/baseline.md
index a5f5bb97..d29f8e4c 100644
--- a/graff-evals/hillclimb/baseline.md
+++ b/graff-evals/hillclimb/baseline.md
@@ -127,11 +127,13 @@ Same-model series is grok-4.6. Native-default series (`opencode-zen`,
`dsh-deepseek`) is a **different chart** — do not read those points as
grok-4.6 list price.
-In-house suite (`--suite inhouse`): six bug shapes distilled from shipped
-CodeGraff PRs (#685/#405 symlink write, oneshot stdout chrome,
+In-house suite (`--suite inhouse`): twelve bug shapes distilled from shipped
+CodeGraff PRs. First six: #685/#405 symlink write, oneshot stdout chrome,
cache-affinity git root, #681 stall widen, rlm-empty-tools catalog,
-stall-bus-silent warn). Fixtures live under `graff-evals/tasks/` +
-`fixtures/`; they are not the live repo.
+stall-bus-silent warn. Next six (verifiers in, not yet remeasured):
+#687 hardlink pin, #632 x_search splice, ADR 0035 MCP first-turn,
+#633 rlm showcase gate, #597 codedb menu, #584 peer resume. Fixtures live
+under `graff-evals/tasks/` + `fixtures/`; they are not the live repo.
Axes: wall, first-token latency, tool calls, tokens (uncached + cached + out),
xAI list-price USD (`$2/$0.50/$6` per 1M under 200k prompt tokens; `$4/$1/$12`
diff --git a/graff-evals/tasks/40-hardlink-pin.json b/graff-evals/tasks/40-hardlink-pin.json
new file mode 100644
index 00000000..b61112c3
--- /dev/null
+++ b/graff-evals/tasks/40-hardlink-pin.json
@@ -0,0 +1,10 @@
+{
+ "id": "hardlink-pin",
+ "suite": "inhouse",
+ "category": "inhouse",
+ "source": "codegraff #687 — hardlink graff-pinned instead of a 127M copy (distilled, not the live repo)",
+ "files_dir": "fixtures/hardlink-pin",
+ "prompt": "pin.py:pin_executable byte-copies the exe and chmods the dest. Read SPEC.md and pin.py, then edit pin.py so `python3 test_pin.py` prints OK. Do not only describe the fix. Do not edit the tests. Prefer os.link so the pin and the live path share an inode; never chmod the dest.",
+ "check": "python3 test_pin.py && python3 \"$TASK_ROOT/hidden/hardlink-pin.py\"",
+ "timeout_s": 240
+}
diff --git a/graff-evals/tasks/41-x-search-splice.json b/graff-evals/tasks/41-x-search-splice.json
new file mode 100644
index 00000000..8a0c2384
--- /dev/null
+++ b/graff-evals/tasks/41-x-search-splice.json
@@ -0,0 +1,10 @@
+{
+ "id": "x-search-splice",
+ "suite": "inhouse",
+ "category": "inhouse",
+ "source": "codegraff #632 / ADR 0031 — hosted x_search on xAI Responses, not a catalog function (distilled)",
+ "files_dir": "fixtures/x-search-splice",
+ "prompt": "splice.py:splice always appends a catalog function named x_search. Read SPEC.md and splice.py, then edit splice.py so `python3 test_splice.py` prints OK. Do not only describe the fix. Do not edit the tests. Hosted x_search is {\"type\":\"x_search\"} on xai+responses when enabled; chat and other providers stay unchanged.",
+ "check": "python3 test_splice.py && python3 \"$TASK_ROOT/hidden/x-search-splice.py\"",
+ "timeout_s": 240
+}
diff --git a/graff-evals/tasks/42-mcp-first-turn.json b/graff-evals/tasks/42-mcp-first-turn.json
new file mode 100644
index 00000000..317aedd8
--- /dev/null
+++ b/graff-evals/tasks/42-mcp-first-turn.json
@@ -0,0 +1,10 @@
+{
+ "id": "mcp-first-turn",
+ "suite": "inhouse",
+ "category": "inhouse",
+ "source": "codegraff ADR 0035 / 0029 — first -p turn skips the MCP handshake wait (distilled)",
+ "files_dir": "fixtures/mcp-first-turn",
+ "prompt": "join.py always waits on MCP before the first model call. Read SPEC.md and join.py, then edit join.py so `python3 test_join.py` prints OK. Do not only describe the fix. Do not edit the tests. First request with pending handshakes is skip; --json still blocks; lean -p still connects a project .mcp.json.",
+ "check": "python3 test_join.py && python3 \"$TASK_ROOT/hidden/mcp-first-turn.py\"",
+ "timeout_s": 240
+}
diff --git a/graff-evals/tasks/43-rlm-showcase-gate.json b/graff-evals/tasks/43-rlm-showcase-gate.json
new file mode 100644
index 00000000..2cbadebe
--- /dev/null
+++ b/graff-evals/tasks/43-rlm-showcase-gate.json
@@ -0,0 +1,10 @@
+{
+ "id": "rlm-showcase-gate",
+ "suite": "inhouse",
+ "category": "inhouse",
+ "source": "codegraff #633 / ADR 0030 — showcase rlm on --rlm, 4-wide native, or 50% compactAt; never MCP fan-out (distilled)",
+ "files_dir": "fixtures/rlm-showcase-gate",
+ "prompt": "gate.py:should_showcase treats MCP fan-out like a wide native batch and showcases on any context>0. Read SPEC.md and gate.py, then edit gate.py so `python3 test_gate.py` prints OK. Do not only describe the fix. Do not edit the tests. Showcase on --rlm, ≥4 native names, or context ≥ compactAt/2.",
+ "check": "python3 test_gate.py && python3 \"$TASK_ROOT/hidden/rlm-showcase-gate.py\"",
+ "timeout_s": 240
+}
diff --git a/graff-evals/tasks/44-codedb-menu.json b/graff-evals/tasks/44-codedb-menu.json
new file mode 100644
index 00000000..79504e0e
--- /dev/null
+++ b/graff-evals/tasks/44-codedb-menu.json
@@ -0,0 +1,10 @@
+{
+ "id": "codedb-menu",
+ "suite": "inhouse",
+ "category": "inhouse",
+ "source": "codegraff #597 / ADR 0019 — advertise five codedb one-shots; hop verbs stay callable (distilled)",
+ "files_dir": "fixtures/codedb-menu",
+ "prompt": "menu.py puts hop verbs on the catalog listing and rejects them as calls. Read SPEC.md and menu.py, then edit menu.py so `python3 test_menu.py` prints OK. Do not only describe the fix. Do not edit the tests. menu() is context/around/callpath/list_dir/status; search/symbol stay allowed.",
+ "check": "python3 test_menu.py && python3 \"$TASK_ROOT/hidden/codedb-menu.py\"",
+ "timeout_s": 240
+}
diff --git a/graff-evals/tasks/45-peer-resume.json b/graff-evals/tasks/45-peer-resume.json
new file mode 100644
index 00000000..0121ea58
--- /dev/null
+++ b/graff-evals/tasks/45-peer-resume.json
@@ -0,0 +1,10 @@
+{
+ "id": "peer-resume",
+ "suite": "inhouse",
+ "category": "inhouse",
+ "source": "codegraff #584 / ADR 0014 — resume restores peer cursor and inbox, does not replay the room (distilled)",
+ "files_dir": "fixtures/peer-resume",
+ "prompt": "resume.py:resume drops the cursor/inbox and replays ROOM into history. Read SPEC.md and resume.py, then edit resume.py so `python3 test_resume.py` prints OK. Do not only describe the fix. Do not edit the tests. Restore cursor and inbox; history stays empty.",
+ "check": "python3 test_resume.py && python3 \"$TASK_ROOT/hidden/peer-resume.py\"",
+ "timeout_s": 240
+}