Skip to content

Batch rechecks and explain decisive Score flips - #1275

Merged
JacobStephens2 merged 3 commits into
issue-1252from
issue-1253
Oct 24, 2026
Merged

JacobStephens2 merged 3 commits into
issue-1252from
issue-1253

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

recheck <id> --pending
  list pending Scores and their fingerprint
recheck <id> --batch <fingerprint> pass|fail --reason '…'
  lock Experiment and refuse a changed list
  append one recheck per reviewed Score
  atomically save history, Verdict and updated pending list

pending_rechecks.decisive_verdicts maps each decisive passed or
wrong_finding flip to its provisional Verdict. Existing decisive_flips
names remain available. The guide and site describe the CLI workflow.

Closes #1253

Evidence

Seams under test: the thirdshift experiments <id> --json pending Score view and the thirdshift recheck CLI, observed through saved Experiment views and Score histories.

  • Before: cargo test --test experiments rechecks::decisive_score_waits_for_recheck_and_retains_both_scores_and_history -- --exact failed with an absent decisive_verdicts; cargo test --test experiments rechecks::batch_rechecks_record_the_reviewed_pending_scores_and_retain_history -- --exact failed 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 check passed.
  • /usr/bin/time -p scripts/affected-tests issue-1252 passed: 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.
  • CI on the final commit passed, including Rust, Console browser and site checks.
  • Before: cargo test --test command_surface help_is_a_compact_reference_with_a_link_to_the_details -- --exact failed 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.
  • Before: the Console browser fixture lacked 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.cjs passes 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 by stale_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 07c5be2a against issue-1252 (ee7fe113). Both
reviewers 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

@JacobStephens2
JacobStephens2 merged commit 381ea70 into issue-1252 Oct 24, 2026
18 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-1253 branch October 24, 2026 21:47
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