Skip to content

IMPROVE: strengthen DigBench agent harness - #26

Merged
merefield merged 3 commits into
mainfrom
codex/digbench-harness-fidelity
Aug 23, 2026
Merged

merefield merged 3 commits into
mainfrom
codex/digbench-harness-fidelity

Conversation

@merefield

Copy link
Copy Markdown
Owner

Summary

  • run each DigBench trial as one continuous Codex app-server turn with scoped get_session and step tools
  • strengthen the model prompt and policy around state inspection, creative mode, note-taking, and one observed move at a time
  • preserve full benchmark transcripts while returning compact, state-complete tool results to the model
  • expose live DigBench level progress and simplify the result label to IN PROGRESS (LVL x) because the game already appears in the task column
  • increase the discovery-game timeout and document the live-run behavior

Why

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-x game 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

@merefield merefield changed the title [codex] strengthen DigBench agent harness IMPROVE: strengthen DigBench agent harness Aug 23, 2026
@merefield
merefield marked this pull request as ready for review August 23, 2026 01:22
@merefield
merefield requested a lite review from Copilot August 23, 2026 01:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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/high condition, 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.

@merefield
merefield merged commit 5be1473 into main Aug 23, 2026
7 checks passed
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.

2 participants