You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f69f098
Browse filesBrowse the repository at this point in the historyBrowse files
P-022 Stage 3: re-record the Stage-2 campaign; both inverted mutants caught
p022-stage2-1 @ 0d6686e: 11/11 caught, 0 survived, 0 compile-error, 0 invalid,
0 runner-error; expected catchers missed: none.
S06 and S07 are the pair the cutover had turned into no-ops -- the product
default and the Action's engine input flipping Python -> Rust, which Stage 3
made the shipped state. Inverted, they now flip Rust -> Python and are both
caught by `stage2::public-default-is-rust`, which is what makes that control's
rename load-bearing rather than cosmetic: the same mutant that proved the old
claim now proves its inverse.
The anchor gate went from 16 definitions to 19. The three it gained are the
Stage-1 and Stage-2 campaigns whose absence let this drift hide in the first
place.
Generated fragments regenerated from the evidence; no count is typed. Full
Python suite green, ruff and mypy clean.
Refs #262
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01376o4syzCem5aQ6NssxwX2
Copy file name to clipboardExpand all lines: docs/evidence/p022-stage2-1.result.json
+17-17Lines changed: 17 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,10 @@
3
3
"comment": "Recorded mutation-campaign run (scripts/mutate_campaign.py --run). Raw facts only: outcomes, catchers, provenance. Counts are derived by scripts/render_checkpoint_status.py; regenerate this file by re-running the campaign, never by hand.",
Copy file name to clipboardExpand all lines: docs/generated/p022-stage1-mutations.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,11 @@ Stage 1 makes the Rust core SELECTABLE by the launcher while Python stays the de
8
8
9
9
Campaign `p022-stage1-1` — #262 Stage 1 — the launcher's engine-selection contract: that Python stays the default, that an explicitly selected Rust core actually runs (and needs no Python), that a Rust failure is never a Python success, that an unexpected child status becomes public exit 5 with the raw status retained, that an unusable OWEN_RUST_CORE is a configuration error rather than a fallback, and that compare extracts once, feeds both engines the same bytes, and refuses to answer when they disagree or when either fails. Every mutation is a plausible MISREADING of that contract rather than a syntactic accident: each one would pass a reviewer who had read the stage's summary instead of its rulings. Every mutation edits a PRODUCTION launcher surface, and every declared layer runs for every mutation (no fail-fast).
10
10
11
-
Definition: `docs/evidence/p022-stage1-1.json` (sha256 `c8bd2180f285a130…`, 21 mutations). Replay on a clean tree with `python scripts/mutate_campaign.py --campaign docs/evidence/p022-stage1-1.json --run`; the recorded run is raw outcomes and provenance, the counts below are derived from it.
11
+
Definition: `docs/evidence/p022-stage1-1.json` (sha256 `076165178704095f…`, 21 mutations). Replay on a clean tree with `python scripts/mutate_campaign.py --campaign docs/evidence/p022-stage1-1.json --run`; the recorded run is raw outcomes and provenance, the counts below are derived from it.
| M01 | default-is-python | the Stage-1 default engine is Rust — the cutover read as already decided, instead of Python remaining default until Gate G3 | caught |`stage1::default-stays-python`|
29
-
| M02 | rust-run-needs-no-python | Python is resolved for every engine — the old unconditional resolution kept 'just in case', which silently re-imposes a Python dependency on a Rust-only run | caught |`stage1::rust-actually-runs-rust`|
30
-
| M03 | 70-is-not-a-verdict | 70 is treated as a legal engine result — the shared internal-error code mistaken for part of the verdict contract because both engines document it | caught |`stage1::rc70-is-not-a-verdict`<br>`stage1::rust-failure-no-fallback`|
31
-
| M04 | unexpected-rc-maps-to-5 | an unexpected Rust child status passes through as itself — 'propagate the child's exit code' read as faithfulness rather than as leaking a meaningless number to the caller | caught |`stage1::raw-rc-retained`<br>`stage1::rc70-is-not-a-verdict`<br>`stage1::rust-failure-no-fallback`<br>`stage1::unexpected-rc-maps-to-5`|
28
+
| M01 | default-is-python | the public default engine goes back to Python -- the cutover silently REVERSED. Until #262 Stage 3 this mutant ran the other way (Python -> Rust, 'the covert Stage 3'); the cutover made that the correct state, so the defect it guards against turned over with it. What the mutant is FOR did not change: one edit to one constant moves what every user gets | caught |`stage1::default-is-rust`<br>`stage1::unset-locator-is-d6`|
29
+
| M02 | rust-run-needs-no-python | Python is resolved for every engine — the old unconditional resolution kept 'just in case', which silently re-imposes a Python dependency on a Rust-only run | caught |`stage1::default-is-rust`<br>`stage1::rust-actually-runs-rust`|
30
+
| M03 | 70-is-not-a-verdict | 70 is treated as a legal engine result — the shared internal-error code mistaken for part of the verdict contract because both engines document it | caught |`stage1::default-is-rust`<br>`stage1::rc70-is-not-a-verdict`<br>`stage1::rust-failure-no-fallback`|
31
+
| M04 | unexpected-rc-maps-to-5 | an unexpected Rust child status passes through as itself — 'propagate the child's exit code' read as faithfulness rather than as leaking a meaningless number to the caller | caught |`stage1::default-is-rust`<br>`stage1::raw-rc-retained`<br>`stage1::rc70-is-not-a-verdict`<br>`stage1::rust-failure-no-fallback`<br>`stage1::unexpected-rc-maps-to-5`|
32
32
| M05 | raw-rc-retained | the raw child status is dropped from the report — the human-readable cause already names the number, so the typed carrier looks redundant | caught |`stage1::raw-rc-retained`|
33
-
| M06 | bad-locator-is-2-not-5 | an unusable OWEN_RUST_CORE is an internal error — a failure to start the engine read as Owen's own bug rather than the caller's configuration | caught |`stage1::absolute-locator-only`<br>`stage1::bad-locator-is-2`|
34
-
| M07 | bad-locator-is-2-not-3 | an unusable OWEN_RUST_CORE reuses exit 3 — 'no usable engine runtime' read as the same class as 'no usable Python', which it is not | caught |`stage1::absolute-locator-only`<br>`stage1::bad-locator-is-2`|
33
+
| M06 | bad-locator-is-2-not-5 | an unusable OWEN_RUST_CORE is an internal error — a failure to start the engine read as Owen's own bug rather than the caller's configuration | caught |`stage1::absolute-locator-only`<br>`stage1::bad-locator-is-2`<br>`stage1::unset-locator-is-d6`|
34
+
| M07 | bad-locator-is-2-not-3 | an unusable OWEN_RUST_CORE reuses exit 3 — 'no usable engine runtime' read as the same class as 'no usable Python', which it is not | caught |`stage1::absolute-locator-only`<br>`stage1::bad-locator-is-2`<br>`stage1::unset-locator-is-d6`|
35
35
| M08 | no-fallback-in-the-shell | the shell falls back to Python when the Rust core produces no verdict — 'be helpful, still give the user an answer', which is precisely the silent fallback every ruling forbids | caught |`stage1::rust-failure-no-fallback`|
36
36
| M09 | shell-locator-is-2-not-3 | the shell reports an unusable OWEN_RUST_CORE as exit 3 — the Python-specific 'no usable runtime' code borrowed for the Rust candidate | caught |`stage1::absolute-locator-only`<br>`stage1::bad-locator-is-2`|
37
37
| M10 | divergence-is-5 | a divergence exposes the reference's result — 'Python is still the reference, so trust it' read as a licence to answer while the two engines disagree | caught |`stage1::compare-no-substitution`<br>`stage1::compare-same-input`<br>`stage1::divergence-is-5`|
| M18 | shell-locator-must-be-absolute | the shell accepts a relative OWEN_RUST_CORE — the -f/-x tests look like they answer 'is this a usable binary', and they do, for whatever the current directory made of the path | caught |`stage1::absolute-locator-only`<br>`stage1::locator-shapes`|
46
46
| M19 | compare-verdict-is-stated | the compare verdict is inferred from the Rust-child field again — `child_exit_code is null` reads as 'no engine crashed', but it is only ever about the RUST child, so a Python-only failure is stamped 'divergence' | caught |`stage1::compare-failure-classified`|
47
47
| M20 | absolute-locator-is-accepted | the shell's POSIX arm stops recognising an absolute path — the over-rejection direction of D3, where a validator that refuses EVERYTHING passes every 'reject the relative one' assertion and makes the tool unusable with a correct configuration | caught |`stage1::compare-extracts-once`<br>`stage1::compare-same-input`<br>`stage1::compare-zero-document`<br>`stage1::divergence-is-5`<br>`stage1::exec-failure-is-5`<br>`stage1::locator-shapes`<br>`stage1::rust-failure-no-fallback`|
48
-
| M21 | absolute-locator-is-accepted | the launcher's absoluteness test is inverted — the same over-rejection direction in the C# implementation: every fully qualified locator is refused as 'not absolute' and every relative one is admitted | caught |`stage1::absolute-locator-only`<br>`stage1::candidate-identity`<br>`stage1::compare-failure-classified`<br>`stage1::compare-same-input`<br>`stage1::compare-zero-document`<br>`stage1::divergence-is-5`<br>`stage1::exec-failure-is-5`<br>`stage1::locator-shapes`<br>`stage1::raw-rc-retained`<br>`stage1::rc70-is-not-a-verdict`<br>`stage1::rust-actually-runs-rust`<br>`stage1::rust-failure-no-fallback`<br>`stage1::unexpected-rc-maps-to-5`|
48
+
| M21 | absolute-locator-is-accepted | the launcher's absoluteness test is inverted — the same over-rejection direction in the C# implementation: every fully qualified locator is refused as 'not absolute' and every relative one is admitted | caught |`stage1::absolute-locator-only`<br>`stage1::candidate-identity`<br>`stage1::compare-failure-classified`<br>`stage1::compare-same-input`<br>`stage1::compare-zero-document`<br>`stage1::default-is-rust`<br>`stage1::divergence-is-5`<br>`stage1::exec-failure-is-5`<br>`stage1::locator-shapes`<br>`stage1::raw-rc-retained`<br>`stage1::rc70-is-not-a-verdict`<br>`stage1::rust-actually-runs-rust`<br>`stage1::rust-failure-no-fallback`<br>`stage1::unexpected-rc-maps-to-5`|
49
49
50
50
## Stage 1 — the surfaces only Windows can be asked about: `own-check.ps1`, and the drive-rooted arm of the shell's locator classifier. Measured on a WINDOWS runner, because a mutant of either is invisible to a Linux catcher
Copy file name to clipboardExpand all lines: docs/generated/p022-stage2-mutations.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,11 @@ Stage 2 moves nothing a user can see: it makes THIS repository's CI and dogfood
8
8
9
9
Campaign `p022-stage2-1` — #262 Stage 2 — the CI/dogfood ENGINE-SELECTION seam. Stage 2's deliverable is a configuration, so its mutants are configuration: each one is a plausible way the Rust-default claim could quietly stop being true, or the public contract could quietly start moving, while every job still went green. The catchers are the controls in tests/test_stage2_dogfood.py, which read the workflows rather than being told about them.
10
10
11
-
Definition: `docs/evidence/p022-stage2-1.json` (sha256 `fd96f37ba882a9b9…`, 11 mutations). Replay on a clean tree with `python scripts/mutate_campaign.py --campaign docs/evidence/p022-stage2-1.json --run`; the recorded run is raw outcomes and provenance, the counts below are derived from it.
11
+
Definition: `docs/evidence/p022-stage2-1.json` (sha256 `51118fd9c55f5825…`, 11 mutations). Replay on a clean tree with `python scripts/mutate_campaign.py --campaign docs/evidence/p022-stage2-1.json --run`; the recorded run is raw outcomes and provenance, the counts below are derived from it.
| S03 | the-claim-covers-both-platforms | the Rust-default dogfood matrix loses its Windows leg — 'our CI runs on Rust' quietly becomes a statement about Linux, which is the half of the product whose launcher mechanics never broke | caught |`stage2::platform-leg-lost`|
31
31
| S04 | the-locator-is-owen-rust-core-alone | the dogfood finds its candidate on PATH — 'the binary is right there, why spell out an absolute path', which is precisely how a stale binary stands in for the one under test | caught |`stage2::locator-contract-bypassed`|
32
32
| S05 | a-rust-failure-is-visible | the dogfood run swallows its exit code — the classic 'don't let the dogfood job break the build', which turns every Rust-default claim in this PR into decoration | caught |`stage2::rust-job-falls-back`|
33
-
| S06 | the-public-default-does-not-move | the PRODUCT default flips to Rust — the covert Stage 3, and the single edit that would make every internal Rust job pass by accident while changing what every user gets | caught |`stage2::public-default-moved`|
34
-
| S07 | the-public-default-does-not-move | the ACTION's public engine input defaults to rust — the same cutover through the other public door, and the one a C#-only control would miss| caught |`stage2::public-default-moved`|
33
+
| S06 | the-public-default-does-not-move | the PRODUCT default goes back to Python -- the cutover silently reversed through the C# launcher. Inverted at #262 Stage 3: it used to mutate Python -> Rust, which is now the shipped state | caught |`stage2::public-default-is-rust`|
34
+
| S07 | the-public-default-does-not-move | the ACTION's public engine input goes back to python -- the same reversal through the other public door, and the one a C#-only control would miss. Inverted at #262 Stage 3 for the same reason as S06 | caught |`stage2::public-default-is-rust`|
35
35
| S08 | compare-evidence-is-not-traded-away | a #260 compare gate is disabled — the cheapest way to make a Rust-default dogfood green is to remove the job that would have disagreed with it | caught |`stage2::compare-gate-dropped`|
36
36
| S09 | no-unclassified-call-site | a new bare launcher invocation appears in a job nobody classified — the hole the census exists to close, and the one that reopens every time somebody adds a convenient scan step | caught |`stage2::stage2-census`|
37
37
| S10 | no-escape-by-relabelling | the dog-food job is reclassified out of the Rust-default population — every other rule is satisfied by shrinking Class D, so without a rule that reads the job's own name this is a green way to stop dogfooding | caught |`stage2::stage2-census`|
0 commit comments