Repository navigation
Snapshot completed benchmark records without restarting inference - #351
Draft
seyoung4503 wants to merge 4 commits into
Draft
seyoung4503 wants to merge 4 commits into
seyoung4503 wants to merge 4 commits into
Conversation
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.
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_SNAPSHOTfreezes 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.
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.