Skip to content

eval(verdict-corpus): replay runtime truth with verdict-corpus relabel - #6596

Merged
EffortlessSteven merged 17 commits into
mainfrom
claude/project-thread-7fzkfo
Oct 5, 2026
Merged

EffortlessSteven merged 17 commits into
mainfrom
claude/project-thread-7fzkfo

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Summary

Before: every verdict-corpus label rested on mutants someone ran once, by hand. Mutants were free-text descriptions (n > 100, (delete the statement), 0), so nothing could replay them without guessing which span they replaced, and nothing checked that a label still reproduces.

After: cargo xtask verdict-corpus relabel re-derives truth. For each selected case it copies the subject and runs the case's own cargo test command on the labeled toolchain: once on the unedited tree, once on the edit, and once on each mutant. It fails on drift. Every rewrite mutant now carries mutated_line, the exact anchor line it replays, and failing_test must be one test name. validate enforces both.

How: a new module, xtask/src/reports/verdict_corpus_relabel.rs. Drift is any of:

  • the outcome differs from the label;
  • the named failing test did not fail;
  • the derived truth differs;
  • a mutant does not compile, times out or equals the edited line;
  • repeated runs disagree (--repeat, default 2);
  • zero tests executed;
  • the labeled rustc is not installed. Each case runs via RUSTUP_TOOLCHAIN and never auto-installs.

--sample <n> --seed <s> picks a deterministic subset by sha256(seed, case id), so a scheduled run can rotate. Authored subjects replay offline. Upstream excerpts replay only from --checkouts <dir>/<subject_id>, under these conditions:

  • the checkout is at the pinned commit and has a clean git status;
  • only tracked files are copied;
  • symlinks must resolve to a tracked path;
  • submodules are refused.

Cargo runs with CARGO_NET_OFFLINE=true and no inherited rustc wrappers or flags. RUSTC and RUSTDOC point at the rustup proxies. Build scripts and tests are not sandboxed; the spec states this as a known limit. Test commands that cannot be replayed are refused, by both relabel and validate:

  • --no-run, --manifest-path, --target-dir, --config, and -Z/-C bundles;
  • after --: --list, --format, -q and --quiet.

The tool never clones, fetches or edits the corpus.

Audit results (the reason for the tool)

Decision (reversible): validate requires mutated_line rather than treating it as optional, so new cases cannot land unreplayable. Corpus PRs that merge after this one need the field.

Source-of-truth Links

Spec: RIPR-SPEC-0219, updated for the four subcommands, mutated_line, the relabel contract, known limits and non-goals.
Acceptance delta (one sentence): corpus labels can be re-derived from scratch, and drift fails a command.

Scope Classification

  • Docs/spec/test-only evidence package (xtask + fixture corpus + spec)

Non-goals:

  • wiring relabel into CI (it builds real crates; a scheduled sampled run is a separate decision);
  • changing any verdict or the expected report.

Policy Impact

  • none. There is no new spawn site: the tool runs through run::capture_output_measured / run_output_owned, and cargo runs offline.

Proof

cargo test -p xtask --bin xtask verdict_corpus   # 46 passed
cargo xtask verdict-corpus validate              # 203 cases across 73 subjects valid
cargo xtask verdict-corpus check                 # expected report unchanged
cargo xtask verdict-corpus relabel --checkouts <pinned clones>   # 147 cases on 0c31457, 0 drifted
cargo xtask verdict-corpus relabel <56 grid cases>              # 0 drifted
cargo xtask verdict-corpus relabel <bytesize cases> --repeat 10 --checkouts ...   # clean after the skip
cargo xtask precommit                            # pass on f59e7e3

Negative experiments:

  • a mutated_line equivalent to the edit reports labeled tests_failed but the tests pass, plus the truth drift;
  • an unbalanced mutated_line reports does not compile (error: this file contains an unclosed delimiter).

Claim Boundary

May claim: every current label reproduces on its labeled toolchain under replay. Must not claim: exhaustive mutation adequacy; the labels cover only the listed mutants. There is no automated end-to-end test of relabel_case yet (#6706).

Rollback

Revert the PR; the mutated_line field and the validate rules go with it.

Spec-Test-Code Traceability

  • Spec: docs/specs/RIPR-SPEC-0219-labeled-rust-verdict-corpus.md, fixtures/rust-verdict-corpus/SPEC.md
  • Tests: xtask/src/reports/verdict_corpus_relabel_tests.rs, verdict_corpus_tests.rs
  • Code: xtask/src/reports/verdict_corpus_relabel.rs, verdict_corpus.rs

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.

CI Economics

n/a (no workflow change).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Vq4dF6CC5aHi8PNFwTYc9H

claude added 3 commits October 4, 2026 23:12
Every mutant of a behavior-preserving rewrite now carries mutated_line,
the exact anchor line it replays, and failing_test must be one test
name. cargo xtask verdict-corpus relabel copies each selected subject,
runs the case's own cargo test command on the unedited tree, the edit,
and each mutant on the labeled toolchain, and fails on any drift:
outcome, failing test, derived truth, a mutant that does not compile or
changes nothing, disagreeing repeated runs, or a missing toolchain.
--sample/--seed pick a deterministic subset; upstream excerpts replay
from --checkouts at the pinned commit.

Also corrects five equivalence reviews whose inputs or messages did not
match the subject's tests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vq4dF6CC5aHi8PNFwTYc9H
…y bytesize property

relabel now runs each case on its labeled rustc via RUSTUP_TOOLCHAIN
(never auto-installing) and records baseline and edit outcomes. A full
replay found 11 cases labeled on 1.97.0 that only build there, and a
quickcheck property in bytesize 1.3 (alloc_tests::string_round_trip)
that fails on random inputs regardless of the edit; those four cases
now skip it. Also reads #[should_panic] failures by their test name.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vq4dF6CC5aHi8PNFwTYc9H
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vq4dF6CC5aHi8PNFwTYc9H
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven EffortlessSteven self-assigned this Oct 4, 2026
@coderabbitai

coderabbitai Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Summary by CodeRabbit

  • New Features
    • Added a command to replay selected verdict-corpus cases and compare observed test results with their labels. Choose cases or use deterministic seeded sampling, configure repeated runs, and save JSON receipts.
    • Replays run offline with the labeled Rust toolchain and check for label drift, inconsistent results, and invalid mutants. Upstream cases require a clean local checkout at the pinned commit; the command does not fetch or modify corpus data.
  • Documentation
    • Documented replay options, requirements, drift checks, exact failing-test names, and mutated-line labels.
  • Bug Fixes
    • Updated corpus records with clearer test configurations, failing-test details, and mutant descriptions.

Walkthrough

The change adds verdict-corpus relabel to replay selected corpus cases against their labeled test outcomes. It adds mutant replay metadata and validation, records observed outcomes and drift in relabel.json, and updates corpus records and documentation.

Changes

Verdict Corpus Relabel

Layer / File(s) Summary
Replay labels and corpus validation
xtask/src/reports/verdict_corpus.rs, xtask/src/reports/verdict_corpus_tests.rs, fixtures/rust-verdict-corpus/corpus.json
Behavior-preserving mutants now require a trimmed mutated_line that differs from the edited anchor. Behavior-change mutants reject that field. Corpus records clarify mutant effects and test outcomes.
Replay execution and outcome checks
xtask/src/reports/verdict_corpus_relabel.rs, xtask/src/reports/verdict_corpus_relabel_tests.rs, xtask/src/reports/verdict_corpus.rs
The command selects cases, prepares authored copies or supplied pinned checkouts, runs repeated test commands, classifies outcomes, checks labels and derived truth, and records drift in a JSON receipt.
Command wiring and relabel documentation
xtask/src/command.rs, xtask/src/reports/mod.rs, docs/specs/RIPR-SPEC-0219-labeled-rust-verdict-corpus.md, fixtures/rust-verdict-corpus/SPEC.md, changelog.d/verdict-corpus-relabel.md, .ripr/traceability.toml
The relabel subcommand is added to command help and dispatch. Documentation describes its options, offline behavior, replay requirements, and output. The changelog reports a replay of 147 cases and a bytesize quickcheck skip.

Estimated code review effort: 4 (Complex) | ~60 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant Xtask
  participant Relabel
  participant SubjectTree
  participant Cargo
  participant Receipt
  Xtask->>Relabel: dispatch relabel arguments
  Relabel->>SubjectTree: prepare case and apply edit or mutant
  Relabel->>Cargo: run repeated offline test commands
  Cargo-->>Relabel: return run outcomes
  Relabel->>Receipt: write relabel.json with outcomes and drift
Loading
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 68.75% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 64 functions across 6 files. (1 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The description explains the change, scope, proof, claim boundary, rollback, and traceability. It omits several template sections, including Swarm / Source Boundary, Candidate Relationships, Scope, Su… Add the omitted template sections. Confirm the Swarm / Source Boundary; provide source-of-truth links and candidate-relationship status; state the scope and production/evidence deltas; document support-tier impact; complete the Engineering …
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the main change: replaying verdict-corpus runtime truth with the new relabel command.
Full details: Docstring Coverage

Explanation

Docstring coverage is 68.75% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 64 functions across 6 files. (1 skipped: 1 unsupported.)

Full details: Description check

Explanation

The description explains the change, scope, proof, claim boundary, rollback, and traceability. It omits several template sections, including Swarm / Source Boundary, Candidate Relationships, Scope, Support-tier Impact, Engineering Check, and Gates, so it is not complete enough against the repository template.

Resolution

Add the omitted template sections. Confirm the Swarm / Source Boundary; provide source-of-truth links and candidate-relationship status; state the scope and production/evidence deltas; document support-tier impact; complete the Engineering Check and Gates with applicable results or reasons they do not apply.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks each test-run trail,
Then marks the lines where labels fail.
With offline hops and seeds in tow,
It watches truth in outcomes show.
A receipt rests beneath the moon,
While cases bloom in a test-run tune.

Comment @coderabbitai help to get the list of available commands.

coderabbitai[bot]

This comment was marked as resolved.

claude added 2 commits October 5, 2026 00:00
… network

Review of the exact head found the replay could reach outside its run-owned
tree. Cargo now runs offline with the caller's RUSTC, wrappers and
RUSTFLAGS-family variables cleared; checkouts with tracked-file changes or
symlinks that leave the checkout are refused; test commands may not pass
--manifest-path, --target-dir, --config, -Z or -C (validate refuses them
too); repeated runs that fail in different tests now disagree; a blank CRLF
anchor line keeps its line ending. The spec lists the remaining known limits
and the traceability entry names the relabel code and tests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vq4dF6CC5aHi8PNFwTYc9H
… other's trees

Subject trees now live under a per-process directory inside the work dir
and are removed at the end of the run; the per-subject cargo target dirs
stay shared, since cargo locks them. The spec also names the aborted-binary
case, where only the failed outcome is checked.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vq4dF6CC5aHi8PNFwTYc9H
claude added 2 commits October 5, 2026 00:27
Re-review of ce1c589 showed two links that each pass the lexical check can
chain to a path above the checkout. copy_checkout now canonicalizes each
link and requires it to stay under the canonical root, falling back to the
lexical check only for a dangling link. Also refuses short-flag bundles that
carry -Z or -C, clears RUSTC_BOOTSTRAP, refuses checkouts with untracked
files (gitignored output still passes), names differing failing-test sets
when repeated runs disagree, removes the per-process trees on error too,
and tests validate's refusal of an unreplayable test command.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vq4dF6CC5aHi8PNFwTYc9H
A dangling link could only be judged lexically, so a chain ending outside
the checkout still passed and could come alive in the copy. A link that
does not canonicalize is now refused; none of the pinned upstream
checkouts has one. The spec also notes that the short-flag check refuses
attached values containing Z or C.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vq4dF6CC5aHi8PNFwTYc9H
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 5, 2026 00:39
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-05T00:55:50.905306Z e5491f1 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

coderabbitai[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

…ed_line

#6338 landed on main with free-text mutants only, which the new validator
refuses. Each of its 87 mutants now carries mutated_line; verdict-corpus
relabel replays all 43 cases with 0 drift, and the expected report is
unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vq4dF6CC5aHi8PNFwTYc9H
@EffortlessSteven
EffortlessSteven marked this pull request as draft October 5, 2026 00:51
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 5, 2026 00:51
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 5, 2026 05:04
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 5, 2026 05:04
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Member Author

Review of record

Head: 0c3145726da72881cb07f9357a35c981911a6bba

Angles: correctness and edge cases (flag parsing, outcome classification, tree cleanup); tests and regressions; spec and contract (RIPR-SPEC-0219, the fixture SPEC and traceability); security and isolation (checkout copy, symlinks, environment).

Round Head Findings Resolution
1 initial nothing blocking —
2 after the round-1 nits B1: replay trees were left behind when a run errored the replay now runs in a closure, and the tree is removed on success and on error
3 delta nothing blocking —
Bot 0c31457 7 threads: --no-run/--list, --format/-q, untracked and ignored files, zero tests executed, network sandbox, selected-only checkout checks fixed in 0c31457; the sandbox finding was resolved by narrowing the contract (offline cargo, no sandbox, stated under Known limits); each thread is answered and resolved
CI e5491f1 goldens drift (error_path_operand_error_lexeme) came from main, not this PR; fixed by merging main, which carries #6681

Evidence on this head:

  • verdict-corpus relabel: all 147 cases replay with 0 drift, atuin included.
  • cargo test -p xtask --bin xtask verdict_corpus: 46 passed.
  • cargo xtask precommit: passes.

Nothing blocking remains. Merge waits for green CI on this head.


Generated by Claude Code

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Member Author

Review of record, update for head 7e7d61eb59bb15e4c805b1f74e2001e07e606514

This supersedes the head in the earlier review of record. Everything recorded there still stands. This comment covers the two commits since.

Source Finding Resolution
Devin (🔴) When rustdoc failed after the unit tests passed, the run read as tests_failed and could count a mutant as detected 3a15138: such a run is now build_failed; a doctest compile failure is still a named failing test
Devin (🟥) A tracked symlink into an ignored or untracked path dangles in the copy 3a15138: a link must resolve to a copied path; all 20 tracked links in the pinned checkouts still pass
Devin No end-to-end test of relabel_case filed as #6706 (an opt-in test, because it needs cargo builds and the pinned toolchain)
Devin The description said 104 cases, the changelog 147 the description is updated to 147
Delta review (correctness and edge cases, test strength) nothing blocking. Three non-blocking misreads: a test's own running … output counted as a binary header; a nonzero exit after passing results read as a build failure; a test result: FAILED line with no failed count read as a build failure 7e7d61e fixes all three, each with a test

The delta reviewer confirmed that each new test fails if its fix is reverted.

Evidence on 7e7d61e:

  • 46 verdict_corpus tests pass.
  • cargo xtask precommit passes.
  • A replay of 10 sampled authored cases shows 0 drift, as does a replay of the serde, rusqlite and semver upstream cases on 3a15138.
  • The full 147-case replay from the earlier review stands. These commits touch only run classification and the checkout copy, and the sampled replays exercise both paths.

Nothing blocking remains.


Generated by Claude Code

A caller's RUSTDOC or build.rustdoc could run doctests with a different
rustdoc than the rustc the version probe checked. Replays now set both to
the rustup proxy, as RUSTC already was. A sampled replay with
RUSTDOC=/bin/false in the caller's environment shows 0 drift.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vq4dF6CC5aHi8PNFwTYc9H
@EffortlessSteven
EffortlessSteven marked this pull request as draft October 5, 2026 05:43
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 5, 2026 05:43
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Member Author

Review-of-record addendum. The head is now bb8dc85a01997825a51e95fcc35f9042267419e7, which adds one commit after 7e7d61e.

CodeRabbit's 🟡 outside-diff finding was valid: a caller's RUSTDOC or build.rustdoc could run doctests on a different toolchain than the one the rustc probe checked. Fixed in bb8dc85: replays now set RUSTDOC and CARGO_BUILD_RUSTDOC to the rustup rustdoc proxy, the same way RUSTC was already pinned, and the spec says so.

Evidence:

  • A sampled replay with RUSTDOC=/bin/false in the caller's environment shows 0 drift.
  • cargo xtask precommit passes.

The change is three environment entries plus a spec sentence, and nothing else changed. Nothing blocking remains.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed findings

  • This lane's scope (JS-backed memory crossing worker, async, GC, detach, and transfer boundaries) does not intersect the diff. The change is a synchronous Rust xtask subcommand that shells out to cargo; there is no JavaScript runtime, no WebAssembly/JS bridge, no worker thread, no async task, no transferable object, and no shared-memory handle in the new code. A comment would be noise on a non-surface; recorded here for the human reviewer.
  • End-to-end test of relabel_case on a real crate was acknowledged as a gap and filed as #6706 (opt-in due to cargo+toolchain requirement). The 147-case replay and two negative experiments substitute for unit-level coverage, but a regression in the decision path could ship undetected until a manual run.

Verification questions

  • Confirm run_tests in Runner sets RUSTC=rustc and RUSTDOC=rustdoc (proxy names), not absolute paths; relies on PATH-resolved rustup proxies. If a runner's PATH lacks the rustup shim, the labeled toolchain is silently bypassed. Spec acknowledges RUSTC points at the rustup proxy; the test test_command_args_accepts_only_plain_cargo_test confirms command parsing but no test pins that RUSTC/RUSTDOC = absolute rustup proxy path under --checkouts.
  • Confirm all replicated mutations in this diff are replayable test cases run on behalf of an xtask subcommand; build scripts and tests are not sandboxed, but the corpus is read-only, the checkouts are verified clean at the pinned commit, only tracked files are copied, and the labeled toolchain is the only rustc/rustdoc that runs. No secrets are read or written; no new spawn site beyond run::capture_output_measured / run_output_owned; the relabel tool never clones, fetches, or edits the corpus. The seeded review thread confirms prior findings (doctest classification, symlink chain, ignored files, network sandbox) were addressed by code changes pinned in the thread.

Refuted

  • test_command cargo test could be hijacked via whitespace-only shell metacharacters (e.g. cargo test with trailing space) to bypass parser; refuted because: Parser splits on whitespace and requires the first word be exactly cargo, second test. Shell-metachar check iterates rest and refuses any word containing \|/;/&/>/</`/$. UTF-8 whitespace other than ASCII space/tab would still split cleanly with split_whitespace, and the metachar list would not catch Unicode lookalikes — but cargo invocation rejects such bytes via its own argv parser, so no replayable path exists.
  • Box::from(slice) allocation failure does not return None; recoverable fallback claims are dropped.
  • Short-flag bundling refuses any -Z/-C even when legitimate (e.g. cargo test -p), parser checks whole word contains Z/C.
  • No ArrayBuffer/TypedArray/DetachArrayBuffer surfaces exist in this Rust xtask; the relabel path only owns Vec/Vec with no aliasing. Resizable-buffer/active-view UB category does not apply.
  • cargo test -- -Z accepted post--- violates a no-Z rule and makes the test_command_args test tautological; refuted because: test_command_args only filters NON_RUNNING_TEST_FLAGS after --. -Z is short-flag-bundle-rejected only when in the cargo-arg region. cargo test -- --skip a -Z legitimately parses to ['test','--','--skip','a','-Z']; the test asserts that. Non-tautological.
  • run_tests's envs Vec<&str> is reused across the repeat loop, and a previous run could leave a borrow into a backing String that a later env mutation invalidates.; refuted because: envs is a const slice of (&str, &str) built from a local array of &'static str and short-lived String::as_str; the slice is rebuilt only via the local array each call, and the inner loop only mutates the runs Vec, never the env backing.
  • The relabel command could leak cloned PathBuf/tree handles across a worker boundary if an async task is dropped mid-replay.; refuted because: The command is fully synchronous: relabel_case awaits each capture_output_measured call inline, uses only stack-local PathBuf values, scopes trees to process::id() under work_dir, and removes them in a closure on both success and error. No async drop point, no worker handoff, and no shared-memory handle exists to leak.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

claude added 3 commits October 5, 2026 06:12
…mutated_line

#6572 landed on main with free-text mutants only, which the validator in
this PR refuses. Each of its 139 mutants now carries mutated_line;
verdict-corpus relabel replays all 56 cases with 0 drift, and the
expected report is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vq4dF6CC5aHi8PNFwTYc9H
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vq4dF6CC5aHi8PNFwTYc9H
@EffortlessSteven
EffortlessSteven marked this pull request as draft October 5, 2026 06:49
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 5, 2026 06:49
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs reviewer attention before upstream: findings remain.

Confirmed findings

  • Regressions in the toolchain-probe path (labeled_toolchain/toolchain_release) are only covered by parser tests; an installed_release panic or wrong-release match would only surface in a real replay. Add a small test that calls installed_release-equivalent parsing on a synthetic rustc --version string, or stub the probe.
  • The changelog and changelog.d/verdict-corpus-relabel.md claim 'replays of all 203 cases' while the PR description and the relabel receipt header still say 147 (the body states the 147 figure is the 104 originals + 43 from #6338). The 203 number does not match the diff: only 147 mutated_line additions are present in corpus.json and the relabel receipt path. The PR's claim boundary already says 'every current label reproduces' rather than a count; reconcile the changelog or annotate why '203' appears (e.g., future in-flight corpus PRs #6572/#6577 are counted).

Verification questions

  • Confirm copy_checkout refuses links that escape via chain or resolve to untracked/dangling targets; unix-only symlink branch.
  • Confirm spec admits the replay never clones/fetches and is offline, but a stale cargo cache (registry + git deps) is trusted: a poisoned cache entry changes replay outcomes silently. Mitigations: pinned commits, offline mode, and the same anchor/diff for all cases; residual for human to verify cache integrity on a shared runner.

Refuted

  • split('
    ') in apply_mutated_line could split a CRLF file inconsistently and shift a mutation to the wrong line on Windows-style line endings; refuted because: The function explicitly handles the trailing \r on the line being replaced (strip_suffix('\r')) and re-appends the same carriage; tested with the 'a\r\n b\r\nc' case in apply_mutated_line_keeps_indent_and_line_numbers, and the symlink helper is #[cfg(unix)] so the whole feature is Unix-only, removing any CRLF concern in practice.
  • Replay applies mutated_line to a file string and the change is lost if anchor.line is stale (active-view / stale length snapshot analog for an in-memory buffer).; refuted because: anchor.line is a 1-based file line read from the corpus diff and applied_mutated_line indexes split('
    ') with a checked_sub and a length check; the test apply_mutated_line_keeps_indent_and_line_numbers covers out-of-range and CRLF; no backing-store length-snapshot analogy applies because the file is fully read each pass and restored after the mutant run.
  • No JS runtime, worker, async task, transferable, or shared-memory handle exists in the diff. The new module is synchronous Rust that shells out to cargo/git via run_output_owned and capture_output_measured; spawn sites are std::process-based, not JS. Lane is non-surface for this PR.
  • The 20-entry env vector in Runner::run_tests is duplicated logic from the rest of xtask's process-spawn code and should live in a shared helper.; refuted because: Searched xtask/src for any existing centralized env-construction helper; the only related call is run::capture_output_measured which already accepts an env slice, and there is no canonical builder. Duplication is bounded to one site and the env list is a contract, not a reusable abstraction.

Parked follow-ups

  • Runowned-tree cleanup is the one process-boundary detail that was load-bearing; the closure in relabel plus per-pid trees_root keeps removal on both success and error paths, matching the seeded review thread's resolved B1. Architecture-acceptable, no leak to other modules.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

EffortlessSteven commented Oct 5, 2026 •

Copy link
Copy Markdown
Member Author

Replies to the ub-review findings on f59e7e3.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit 8e966fd into main Oct 5, 2026
31 of 32 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-7fzkfo branch October 5, 2026 07:23
EffortlessSteven pushed a commit that referenced this pull request Oct 7, 2026
Resolve corpus conflicts by appending the authored-trap-kit subject and
its 23 cases to main's corpus, adding the verified mutated_line values
for all 69 mutants (#6596 rule), bumping corpus_version to 2026-10-06.2
and re-blessing the expected report. No existing row changed; trap
outcomes are unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jr5a2Q6UrWrqxcKNBHhR5d
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.

2 participants