Repository navigation
FEAT: add DigBench benchmark integration - #21
Conversation
…f-concept # Conflicts: # README.md # internal/codex/benchmark.go
There was a problem hiding this comment.
🟡 Changes recommended
Timeout enforcement, secret isolation, transcript sanitization, and DigBench result handling have unresolved issues.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds DigBench as an external benchmark suite with isolated authentication, bounded transcripts, and TUI integration.
Changes:
- Adds the DigBench REST client and Codex dynamic-tool runner.
- Splits built-in benchmarks into Core and Extended suites.
- Expands benchmark controls, details, authentication, documentation, and tests.
File summaries
| File | Description |
|---|---|
| README.md | Documents suites, DigBench, authentication, and privacy. |
| main.go | Adds DigBench CLI, discovery, and secret handling. |
| main_test.go | Tests CLI and environment handling. |
| internal/ui/view.go | Adds framed footer actions. |
| internal/ui/model.go | Adds suite selection and transcript caching. |
| internal/ui/benchmark.go | Implements suite scope, DigBench results, and details. |
| internal/ui/benchmark_test.go | Tests new benchmark UI behavior. |
| internal/digbench/client.go | Implements the DigBench REST client. |
| internal/digbench/client_test.go | Tests authentication, retries, and validation. |
| internal/codex/digbench.go | Implements the Codex-driven DigBench runner. |
| internal/codex/digbench_test.go | Tests tool bridging, redaction, and execution. |
| internal/codex/client.go | Stores benchmark credentials and catalog data. |
| internal/codex/client_test.go | Extends the fake app-server authentication flow. |
| internal/codex/benchmark.go | Adds isolated API-key login and expanded transcripts. |
| internal/codex/benchmark_test.go | Tests isolation, planning, and environment scrubbing. |
| internal/codex/benchmark_tasks.go | Defines benchmark suites and DigBench metadata. |
Review details
- Files reviewed: 16/16 changed files
- Comments generated: 8
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
🟡 Changes recommended
Remote-session confirmation can become inaccurate, live-detail Stop is inaccessible, and successful session responses may be discarded on body-close errors.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (2)
Previously missed (2) — in code that hasn't changed since the last review.
internal/ui/model.go:415
- This makes
xclose an open detail even while that detail is showing the active run. Because the detail overlay has no Stop control, the documentedxStop action can no longer interrupt the Codex turn without first closing the view and pressingxagain. Keepxrouted to Stop for a live detail (with Escape or the clickable Close action closing it), and update the detail control label/tests accordingly.
if m.benchmarkDetail != nil {
return m.pressFooterButton(footerButtonBenchmarkClose)
}
return m.pressFooterButton(footerButtonBenchmarkStop)
internal/codex/digbench.go:115
- The remote-session confirmation is based on the UI's cached
benchmarkPlan, but execution performs a fresh model discovery here. If compatibility changes between those calls (for example, a selected model gains another selected effort),selectedgrows and the loop creates more persisted sessions than the user confirmed. Carry the immutable confirmed choices/count into execution, or reject the run beforeStartSessionwhen the revalidated trial count differs.
plan, err := c.BenchmarkPlan(ctx)
- Files reviewed: 16/16 changed files
- Comments generated: 1
- Review effort level: Balanced
Summary
step_indexretriesget_sessionandstepdynamic tools and authoritative win detectionGET /gamesat launch and expose every returned game through a conditionalDIGBENCHsuiteCODEXOMETER COREandCODEXOMETER EXTENDEDsuitesTUI behavior
TOOL REQUEST→TOOL RESPONSE→MOVE→STATE, while preserving the readable move/state representation and showing a workflow legendSafety and privacy
step_indexis retried according to DigBench replay semanticsDIGBENCH_API_TOKENis removed from the process environment before Codex starts and is retained only in memory by CodexometerValidation
go test ./...go vet ./...go test -race ./...go test -cover ./...https://api.digbench.ai/api/agent/openapi.jsonAll DigBench HTTP and app-server integration tests use local fakes. No live remote session is created by the test suite.