Skip to content

Coach eval harness: measure the coach on annotated captures - #14

Merged
Roddygithub merged 2 commits into
mainfrom
coach-eval-harness
Nov 11, 2026
Merged

Roddygithub merged 2 commits into
mainfrom
coach-eval-harness

Conversation

@Roddygithub

Copy link
Copy Markdown
Owner

What

Implements the measurement plan discussed for the live coach (ECC-inspired eval-driven development):

  • gamebuddy eval <dataset> runs annotated captures through the real coach perception call and grades every answer on four measures:
    • perception — annotated entities / resources / options readable in the structured state
    • grounding — delivered advice references an annotated option, no hallucinated options, gate accepts ADVISE cases and stays closed on silence cases
    • latency — time to decision within the case budget
    • decision — model judgement matches the annotation (silent on ambiguous frames)
  • pass@k / pass^k metrics with --repeat k, per case and per measure
  • Replayable reports: --replay <report> re-grades the recorded raw answers with the current parser/gate/graders — no model call — for free regression checks after prompt or gate changes
  • Fail-closed dataset loading: a broken case aborts the run instead of silently shrinking the measurement
  • coach.save_frames (opt-in): candidate frames saved to ~/.local/share/gamebuddy/coach_frames/<game>/ (last 200 per game) so real sessions can be annotated into eval cases
  • Two synthetic example cases under evals/coach/ (generated by the committed evals/coach/_make_examples.py)

Why

125 green unit tests still say nothing about whether Buddy reads a real bench correctly. This gives the workflow: play with coach.save_frames = true, annotate 20–30 captures, run the eval before/after every coach change, track pass^k.

Verification

  • Full suite: 181 tests pass (17 new in tests/test_eval_harness.py), ruff clean
  • Live run attempted against the configured Codex provider: blocked by the ChatGPT usage limit (resets Nov 14) — provider errors are handled as failed runs with readable notes, not crashes; live validation of the example dataset to do once the quota resets

gamebuddy eval <dataset> grades the coach on annotated captures across
four measures (perception, grounding, latency, decision to stay silent)
with pass@k / pass^k metrics and replayable reports; coach.save_frames
keeps candidate frames so real sessions can grow the dataset.
@Roddygithub
Roddygithub merged commit c10bf87 into main Nov 11, 2026
3 checks passed
@Roddygithub
Roddygithub deleted the coach-eval-harness branch November 11, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant