Skip to content

feat(eval): capture_dir glass-box — wrap the eval-fork in JsonlWorkspaceCaptureSink so a MEASURED run is readable - #1948

Merged
joelteply merged 1 commit into
canaryfrom
feat/eval-capture-glassbox
Jul 8, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/eval-capture-glassbox

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Opt-in CognitionEvalParams.capture_dir: Option<String> (None → Noop, zero change to existing paths). When set,
cognition/eval wraps the fork's cognition via cycle.with_capture(JsonlWorkspaceCaptureSink::open(dir, persona))
BEFORE the run, so every tick's bids + DECISION + timings append to

/.jsonl. This is task #14's own
primitive, wired into the measurement path — you can now read WHY a persona scored what she did (did she Act or
Respond? which tool? did deliberation fail?), not just the final number.

VALIDATED live + immediately earned its keep: pointed at a flask SWE run, it revealed the real cause of the
persona's 0-byte diff — ALL 15 deliberation ticks failed with the local llama-server returning 500 "Compute error"
(confirmed by a direct say hi probe → HTTP 500). Not exam-framing, not tools, not the model — a broken local
inference lane. The 0-edit read itself off the trace in one line. run_ours.py now passes --capture_dir.

Co-Authored-By: Claude Opus 4.8 [email protected]
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…aceCaptureSink so a MEASURED run is readable

Opt-in `CognitionEvalParams.capture_dir: Option<String>` (None → Noop, zero change to existing paths). When set,
cognition/eval wraps the fork's cognition via `cycle.with_capture(JsonlWorkspaceCaptureSink::open(dir, persona))`
BEFORE the run, so every tick's bids + DECISION + timings append to <dir>/<persona>.jsonl. This is task #14's own
primitive, wired into the measurement path — you can now read WHY a persona scored what she did (did she Act or
Respond? which tool? did deliberation fail?), not just the final number.

VALIDATED live + immediately earned its keep: pointed at a flask SWE run, it revealed the real cause of the
persona's 0-byte diff — ALL 15 deliberation ticks failed with the local llama-server returning 500 "Compute error"
(confirmed by a direct `say hi` probe → HTTP 500). Not exam-framing, not tools, not the model — a broken local
inference lane. The 0-edit read itself off the trace in one line. run_ours.py now passes --capture_dir.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 09a8f24 into canary Jul 8, 2026
@joelteply
joelteply deleted the feat/eval-capture-glassbox branch July 8, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant