Repository navigation
IMPROVE: strengthen DigBench agent harness - #26
Merged
Merged
Conversation
merefield
marked this pull request as ready for review
August 23, 2026 01:22
There was a problem hiding this comment.
🔵 Needs a closer look
It changes core DigBench turn/tool-bridging behavior and model-facing I/O shaping in ways that warrant a final human review with real DigBench runs beyond unit tests.
Pull request overview
This PR strengthens the DigBench “agent harness” in Codexometer by making each trial a single continuous app-server turn with stricter, state-driven tool usage and by reducing the size of model-facing tool responses while preserving full transcripts for operators.
Changes:
- Updates DigBench prompting/policy to enforce an observe → reason → single-action loop, include task description, and incorporate creative-mode metadata via
creative_toggle. - Compacts model-facing tool responses (state-focused slices) while keeping the full sanitized API payload in the benchmark transcript.
- Improves operator UX: clearer Scope labels for the published
gpt-5.6-sol/highcondition, simplified live “IN PROGRESS (LVL x)” status, and increases the default DigBench timeout to 2 hours.
File summaries
| File | Description |
|---|---|
| README.md | Documents the updated DigBench timeout defaults and the harness/prompting behavior. |
| main.go | Switches --digbench-timeout default to codex.DefaultDigBenchTimeout. |
| intro-post.md | Updates public-facing writeup to reflect new prompt/compaction/progress behavior. |
| internal/ui/benchmark.go | Adds published/enhanced labels in Scope and simplifies live DigBench “IN PROGRESS” display. |
| internal/ui/benchmark_test.go | Updates expectations for the new live status label and adds coverage for Scope labeling. |
| internal/digbench/client.go | Extends DigBench state decoding to include creative_toggle. |
| internal/digbench/client_test.go | Verifies creative_toggle decoding. |
| internal/codex/digbench.go | Implements prompt strengthening, compact agent tool responses vs full transcript payloads, and exports the 2h default timeout. |
| internal/codex/digbench_test.go | Adds/updates tests for prompt behavior, redaction, compact-vs-full tool responses, and timeout default. |
Review details
- Files reviewed: 9/9 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
get_sessionandsteptoolsIN PROGRESS (LVL x)because the game already appears in the task columnWhy
The previous harness did not faithfully preserve the provider's reasoning continuity across a game session and sent unnecessarily large tool responses back into the active context. Discovery-heavy DigBench games also need clearer operating instructions and more time to complete. The UI repeated the
P-xgame identifier in both TASK and RESULT columns.This makes the benchmark loop closer to the intended agentic setup, keeps detailed evidence in the transcript without bloating model-facing responses, and makes live progress easier to scan.
Validation
go test ./internal/codex ./internal/digbench ./internal/ui