Skip to content

Snapshot completed benchmark records without restarting inference - #351

Draft
seyoung4503 wants to merge 4 commits into
experiment/codex-coverage-completionfrom
feat/completed-run-snapshots
Draft

seyoung4503 wants to merge 4 commits into
experiment/codex-coverage-completionfrom
feat/completed-run-snapshots

Conversation

@seyoung4503

@seyoung4503 seyoung4503 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Long Codex evaluations could only be scored after the entire run completed, or through ad-hoc record copies. Add a reusable completed-record snapshot command so finalized successes AND failures can be scored while inference continues, without restarting models or marking the parent run complete.

python -m bench.accuracy.snapshot --source RUN --output FRESH_SNAPSHOT freezes the record inventory, reuses the existing atomic JSON writer and hash helper, verifies prompt/event hashes where recorded, SQL consistency, CSV row counts and concurrent mutations, then publishes a staged directory. Fresh output outside the source is required. No model/SQL/grader invocation occurs inside snapshot creation; scoring remains the existing official path. The full original manifest/run/denominator stays untouched.

Validation:348 root tests passed,1 skipped; Ruff/diff checks pass. Nine tests cover parent immutability, preserved failure/CSV bytes, incomplete records, fresh-output restrictions, corruption, changing artifacts and metadata read races. No product source or prompt change. Current coverage runs continue in their separate frozen worktree at0c79539. Live verification succeeded: captured18completed BIRD records and18completed Spider records while both parent processes continued. Official checkpoint scores are BIRD18/18 and Spider13/18 (four clarification/no-SQL failures, one SQL-result mismatch). These are nonrandom early subsets, not full accuracy. Selected source artifacts/metadata remained byte-identical after snapshot/scoring; neither parent status was marked complete. Evidence and hashes are archived under bench/accuracy/mcp-review-results/live-checkpoint-001/. No additional model calls were made to snapshot or score.

Snapshot accuracy is only a completed-record subset diagnostic. It cannot establish full500/135 accuracy or repeated reliability, and repeated snapshots must not be added together. Legacy absent trace hashes are explicitly disclosed.

Principle Verdict Evidence
Reuse O Existing digest/write_json and official scorer; one snapshot operation plus CLI entrypoint; benchmark module+177lines, product net0
Cause/scope O Safe live-run completed-record scoring only
Logging O Source/output/count on publish, unfinished record logs, failed CLI traceback
Errors O Corruption/mutation aborts before publish; failures stay in subset
Environment N/A No env settings/read added
Issue comments O No issue numbers in code comments
Verification O 348passed/1skipped, Ruff/diff; no CODE MAP generator exists
Authority O PR only, no merge; no restart of live model runs
Consumers O CLI produces input for existing evaluate score
Sync/async O Synchronous filesystem CLI; no async/blocking mix or duplicate implementation
Constants/deployment O File/protocol names only; no operational configuration

Second live checkpoint is archived under bench/accuracy/mcp-review-results/live-checkpoint-002/: BIRD32/32, Spider24/33 (seven clarification/no-final-SQL cases and two result mismatches). This overlaps checkpoint001 and must not be summed with it. All466 archive hashes and copied source artifacts were verified. No model call, product edit, prompt edit, or parent-run restart was made for this checkpoint.

Offline local360 diagnosis isolates two errors: including sessions without a target event and projecting pre-target rows instead of the target event. Excluding no-target sessions and returning the target row matches reference_b without URL normalization. Four SQL variants, output CSVs, source observations and the unchanged official comparison function provenance are retained. These analyst counterfactuals are not inference inputs or model repair scores. local356 recovered its initial SQLite timeout through MATERIALIZED CTEs but still returned a wrong44-row result; the final error is not a timeout. Further event-semantics diagnosis remains open.

Follow-up evidence is archived under bench/accuracy/mcp-review-results/checkpoint-evidence-review/. The existing evidence-only review retried only local360/local356 once each, with original inputs and exactly whitelisted prior answer/tool observations (verified byte-for-byte). Official repair score0/2: local360 corrected the projected event but retained the no-target session; local356 retained the extra pit-data-availability filter. Do not repeat this unchanged probe. Offline local356 ablation removes only that unrequested filter:44to76rows, exact reference_a match. The original filter limits races to2011onward; unavailable historical pit data remains an observational limitation, not a reason to silently change the requested cohort. Analyst SQL never entered inference and is not a model repair score. No product/prompt changes;29archive hashes verified, paired HTML/JSON traces included.

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