Skip to content

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

Python

fix(eval): Codex WS PTY enables GRAFF_REPL_DEBUG for compact bus lines

Cursor Agentb2f48e213db6
diff --git a/scripts/codex_ws_test.py b/scripts/codex_ws_test.py
index 68feec0a..78d41da8 100644
--- a/scripts/codex_ws_test.py
+++ b/scripts/codex_ws_test.py
@@ -675,6 +675,9 @@ def run_midturn_compaction_scenario(
"GRAFF_NO_TELEMETRY": "1",
"GRAFF_CODEX_URL": f"http://127.0.0.1:{port}/backend-api/codex/responses",
"GRAFF_SERVER_COMPACT": "0",
+ # ADR 0020/0021: compacting / compacted bus lines are /debug-only.
+ # This scenario asserts those lines and the token count they carry.
+ "GRAFF_REPL_DEBUG": "1",
}
ambient = tuple(
key
@@ -719,6 +722,9 @@ def run_transactional_compaction_scenario(
"GRAFF_NO_TELEMETRY": "1",
"GRAFF_CODEX_URL": f"http://127.0.0.1:{port}/backend-api/codex/responses",
"GRAFF_SERVER_COMPACT": "0",
+ # Same /debug gate as mid-turn: assert_compaction_meter reads the
+ # compacting line. Empty-summary rollback stays on the public bus.
+ "GRAFF_REPL_DEBUG": "1",
}
ambient = tuple(
key