Skip to content

Commit f69f098

Browse files
committed
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
1 parent 0d6686e commit f69f098

3 files changed

Lines changed: 30 additions & 30 deletions

File tree

‎docs/evidence/p022-stage2-1.result.json‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"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.",
44
"campaign": "p022-stage2-1",
55
"definition": "docs/evidence/p022-stage2-1.json",
6-
"definition_sha256": "fd96f37ba882a9b94e7bedf4158574816702ee2023936b7ef27f56656740af3b",
7-
"source_commit": "345cf04fe9f9880a2b316f220b565412e9cb9855",
6+
"definition_sha256": "51118fd9c55f5825d2753451662ca75981e180fe615164cbb16c7cc488180fdd",
7+
"source_commit": "0d6686eddc91613385ce39bccf3f581e9d7a7f05",
88
"dirty": false,
9-
"recorded_at": "2026-09-09T15:14:43Z",
9+
"recorded_at": "2026-09-18T04:30:28Z",
1010
"layers": [
1111
"stage2"
1212
],
@@ -15,7 +15,7 @@
1515
"id": "M00",
1616
"outcome": "survived",
1717
"catchers": [],
18-
"elapsed_seconds": 8.6
18+
"elapsed_seconds": 10.3
1919
},
2020
"mutations": [
2121
{
@@ -24,87 +24,87 @@
2424
"catchers": [
2525
"stage2::internal-default-not-rust"
2626
],
27-
"elapsed_seconds": 6.0
27+
"elapsed_seconds": 6.9
2828
},
2929
{
3030
"id": "S02",
3131
"outcome": "caught",
3232
"catchers": [
3333
"stage2::wrong-rust-candidate"
3434
],
35-
"elapsed_seconds": 6.0
35+
"elapsed_seconds": 6.9
3636
},
3737
{
3838
"id": "S03",
3939
"outcome": "caught",
4040
"catchers": [
4141
"stage2::platform-leg-lost"
4242
],
43-
"elapsed_seconds": 6.0
43+
"elapsed_seconds": 7.1
4444
},
4545
{
4646
"id": "S04",
4747
"outcome": "caught",
4848
"catchers": [
4949
"stage2::locator-contract-bypassed"
5050
],
51-
"elapsed_seconds": 6.1
51+
"elapsed_seconds": 6.9
5252
},
5353
{
5454
"id": "S05",
5555
"outcome": "caught",
5656
"catchers": [
5757
"stage2::rust-job-falls-back"
5858
],
59-
"elapsed_seconds": 6.3
59+
"elapsed_seconds": 6.8
6060
},
6161
{
6262
"id": "S06",
6363
"outcome": "caught",
6464
"catchers": [
65-
"stage2::public-default-moved"
65+
"stage2::public-default-is-rust"
6666
],
67-
"elapsed_seconds": 6.1
67+
"elapsed_seconds": 6.9
6868
},
6969
{
7070
"id": "S07",
7171
"outcome": "caught",
7272
"catchers": [
73-
"stage2::public-default-moved"
73+
"stage2::public-default-is-rust"
7474
],
75-
"elapsed_seconds": 6.3
75+
"elapsed_seconds": 7.1
7676
},
7777
{
7878
"id": "S08",
7979
"outcome": "caught",
8080
"catchers": [
8181
"stage2::compare-gate-dropped"
8282
],
83-
"elapsed_seconds": 6.3
83+
"elapsed_seconds": 6.9
8484
},
8585
{
8686
"id": "S09",
8787
"outcome": "caught",
8888
"catchers": [
8989
"stage2::stage2-census"
9090
],
91-
"elapsed_seconds": 6.0
91+
"elapsed_seconds": 7.0
9292
},
9393
{
9494
"id": "S10",
9595
"outcome": "caught",
9696
"catchers": [
9797
"stage2::stage2-census"
9898
],
99-
"elapsed_seconds": 6.1
99+
"elapsed_seconds": 7.0
100100
},
101101
{
102102
"id": "S11",
103103
"outcome": "caught",
104104
"catchers": [
105105
"stage2::internal-default-not-rust"
106106
],
107-
"elapsed_seconds": 5.9
107+
"elapsed_seconds": 6.9
108108
}
109109
]
110110
}

‎docs/generated/p022-stage1-mutations.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Stage 1 makes the Rust core SELECTABLE by the launcher while Python stays the de
88

99
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).
1010

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.
1212

1313
| measure | value |
1414
|--------------------------------------------------|---|
15-
| recorded at commit | `da897b42fcd76ea1914d286bd6bae6065c072c70` |
15+
| recorded at commit | `f988c8e1be7ff12a99b46d5bff444c68d00b8743` |
1616
| layers run (every one, for every mutation) | `stage1` |
1717
| mutations | 21 |
1818
| caught | 21 |
@@ -25,13 +25,13 @@ Definition: `docs/evidence/p022-stage1-1.json` (sha256 `c8bd2180f285a130…`, 21
2525

2626
| id | rule | mutation | outcome | caught by |
2727
|---|---|---|---|---|
28-
| 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` |
3232
| 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` |
3535
| 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` |
3636
| 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` |
3737
| 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` |
@@ -45,7 +45,7 @@ Definition: `docs/evidence/p022-stage1-1.json` (sha256 `c8bd2180f285a130…`, 21
4545
| 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` |
4646
| 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` |
4747
| 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` |
4949

5050
## 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
5151

‎docs/generated/p022-stage2-mutations.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Stage 2 moves nothing a user can see: it makes THIS repository's CI and dogfood
88

99
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.
1010

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.
1212

1313
| measure | value |
1414
|--------------------------------------------------|---|
15-
| recorded at commit | `345cf04fe9f9880a2b316f220b565412e9cb9855` |
15+
| recorded at commit | `0d6686eddc91613385ce39bccf3f581e9d7a7f05` |
1616
| layers run (every one, for every mutation) | `stage2` |
1717
| mutations | 11 |
1818
| caught | 11 |
@@ -30,8 +30,8 @@ Definition: `docs/evidence/p022-stage2-1.json` (sha256 `fd96f37ba882a9b9…`, 11
3030
| 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` |
3131
| 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` |
3232
| 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` |
3535
| 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` |
3636
| 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` |
3737
| 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

Comments
 (0)