Repository navigation
Batch rechecks and explain decisive Score flips - #1275
Merged
Merged
Conversation
This was referenced Oct 24, 2026
Merged
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
pending_rechecks.decisive_verdictsmaps each decisivepassedorwrong_findingflip to its provisional Verdict. Existingdecisive_flipsnames remain available. The guide and site describe the CLI workflow.
Closes #1253
Evidence
Seams under test: the
thirdshift experiments <id> --jsonpending Score view and thethirdshift recheckCLI, observed through saved Experiment views and Score histories.cargo test --test experiments rechecks::decisive_score_waits_for_recheck_and_retains_both_scores_and_history -- --exactfailed with an absentdecisive_verdicts;cargo test --test experiments rechecks::batch_rechecks_record_the_reviewed_pending_scores_and_retain_history -- --exactfailed with the old CLI usage error.After: both exact commands pass.
cargo test --test experiments rechecks::passes all 10 tests, covering batch histories, immutable Grader Scores, resume, stale fingerprints, invalid input, concurrent writes, empty batches and legacy metadata. The stale-list test checks that the saved metadata bytes stay identical.cargo checkpassed./usr/bin/time -p scripts/affected-tests issue-1252passed: 50 site tests and 2,812 Rust tests (60 skipped). Nextest execution: 2,144.044 s. Total selector wall time: 2,258.50 s, including 29.14 s Rust compilation and the site checks. The final fixture-only commit leaves the Rust inputs unchanged.cargo test --test command_surface help_is_a_compact_reference_with_a_link_to_the_details -- --exactfailed at 67 help lines.After: the same command passes with the recheck forms on one compact reference line; the existing 65-line limit is retained.
decisive_verdicts, so the saved-record compatibility upgrade recalculated its curated Verdict and pending list; CI's Experiment browser test failed on its forecast assertion.After: the fixture uses the current pending format.
node --test console/tests/experiments.test.cjspasses all 3 tests, including the original live-update, forecast, recheck and phone-layout assertions. The CLI fixture reproduction also preserves the expected forecast and all 6 pending Scores.Merge Danger
Door: two-way
Additive JSON fields and CLI forms; existing single rechecks and the decisive rule stay in place.
Blast Radius: Experiments
A batch applies one decision and reason to every reviewed pending Score. The fingerprint binds the list to its Experiment, and the lock protects validation and the single atomic save.
Unaddressed findings
Security
None. Guidance-mode review of the recheck diff against
issue-1252(ee7fe113) found no introduced vulnerability: experiment IDs stay 64-hex validated before path use (checked with local traversal payloads, all rejected), batch record holds the exclusive lock through the single atomic save, stale and empty batches change nothing (covered bystale_batch_fingerprints_leave_every_score_and_saved_byte_unchanged), and the per-trial void/Score checks run inside the batch loop. No Security fix was needed, so this review changed no code.Standards
None. The independent Standards reviewer reported no findings.
Spec
None. The independent Spec reviewer reported no findings.
Security review outcome
No unaddressed introduced findings.
Review coverage
Independent Standards and Spec review of final head
07c5be2aagainstissue-1252(ee7fe113). Bothreviewers read all ten changed files, including the browser fixture and generated manual HTML.
Unread changed files: none. Generated-output exclusions: none. Each axis's
report and final files-read list are saved in
.thirdshift-review-u3oUsv/.Built with codex · gpt-6.1-sol · xhigh