# PF-002 mechanism hypotheses, version 1: Stage 2 audit

**Virtual lab - simulated experiment.** This audits a mathematical implementation. The one deterministic primary is spent. It is a complete bound mathematical record: no mechanism is shown to exist, no equipment is qualified, nothing is excluded, and physical validation is absent. Permission to qualify a conditional model mathematically is not endorsement that its reservoir or readout exists.

This file is outside the input set. It may change without changing any bound input.

## State

| Item | Value |
| --- | --- |
| Protocol | Revision 7, `pre_registered`, `execution_authorised` true at its frozen bytes, deterministic primary only. **That authority is spent** |
| Revision commits | 1 `6ebfa63`, 2 `52ff829`, 3 `d78b1fe`, 4 `a507920`, 5 `f155b53`, 6 `3a6e4e0`, 7 `ade1481` |
| Implementation commits | First `836c7fabf995ee1bc40ffc2ed933440442244a27`, then `f155b536ded242782df69be1ba383d326d016b99`, current `59d71ebe0fee7bfe7ce4b0c431fdf3fd3bc8f92d` |
| Deterministic primary | **SPENT once at `ade1481`. Never rerun, replay, retune or edit the 11 frozen inputs** |
| Stochastic cohorts | None. Seeds 9401 to 9404 are reserved and unused |
| Inherited campaigns | None run |
| Full gate, PR, deployment | None |

## Spent-budget ledger

| Item | Value |
| --- | --- |
| Approval | Root passed Stage 2 at `2a7962e8ae48ec75b4244ba31637248d3003e7fa`, scoped to declared mathematics |
| Transition | Revision 7, `ade14814655ea5cda32facf9bc593b648e7e5100`, lifecycle only. Science digest exact, `sha256:3ffa242a5caa2877ba9551b24c66616f5790d24d4025eaa4e59aea71dbb817a9` |
| Run | 2026-11-02 08:41:22Z to 08:41:24Z, 1.759 s outer, 1.615 s by the supervisor, wrapper PID 54734, study PID 54739, exit 0, child exit 0 |
| Record | 64554 bytes, sha256 `e26a61b12ab2d7fa76ca899c9022f3f12ef10f13c5859818a78d8f4bf3712fe5`, 36 rows, 234 entries, 27 adverse cases |
| Cleanup | Verified, 0 survivors, no fallback |
| Root review | Passed. H1 to H9 are supported **as declared mathematics**, with H2's `P-theta` branch conditional, H6's autonomous case `unproved`, and H7's `ell`-following skew a degeneracy |
| Retained | Byte-exact in `pf002-mechanism-hypotheses-v1-primary-evidence/`. Root-reviewed receipt: `pf002-mechanism-hypotheses-v1-primary-receipt.json` |

**This is an operational prohibition, not something the code enforces.** The twin stays authorised at its frozen bytes, so the wrapper would run if invoked, and it must not be. Any later defect is a retained failure and a new version.

**Receipt details from root's review.**

- The raw launch argument vector hash differs from the recorded wrapper hash, because macOS CPython rewrites `sys.orig_argv[0]` to its framework executable. Replacing only that first element with the observed runtime value reproduces the recorded hash exactly. The launch bytes are unchanged.
- The study's argument hash has not been independently reconstructed, because that needs the actual file descriptor vector.
- PID 54767 was a short-lived wrapper child, labelled `other`. It stays unidentified, and it left no survivor. Its cause is not asserted.
- The outer launcher's emergency kill targets the wrapper's group only. It is not an unconditional guarantee for a detached study on arbitrary launcher failure. Actual terminal cleanup passed independently.
- The raw launcher holds a literal private path, so it is never committed. It stays ignored, with its sha256 `3ab259ddd60a59a8a32d151027948c34cf0db74e4d79a72e27a0b601192c01a9` in `launch.json`. No sanitised copy is committed.

Revision 3 was committed and pushed before any code existed. Revision 4 was committed and pushed before the implementation commit, and the code was uncommitted at that time, as the chronology below says. Revision 5 is a mechanical reconciliation made after the implementation, in one commit with its parser check, and it changed no equation or number. Revision 6 was committed and pushed before any code for root's source review changed.

## What exists

| File | Role |
| --- | --- |
| `pf002_mechanism_protocol_v1.py` | The one strict parser, shared by study and wrapper: frozen values, lifecycle states and the pinned science digest |
| `pf002_mechanism_hypotheses_v1.py` | Exact rational enclosure and loop identities, retained integrals, typed C1 context, observation and rival generators, estimator, hypotheses, adverse cases, and separate fixture and primary builders |
| `pf002_mechanism_oracle_v1.py` | Independent implementation with separate quadrature and closed forms of the same declared equations, not independently established physics. Imports `fractions` and `math` only, enforced by a test |
| `pf002_mechanism_deadline_v1.py` | Wrapper over the reviewed reference-gain supervisor, unchanged, with this study's limits and modes |
| `pf002_mechanism_inputs_v1.py` | Eleven bound inputs: eight own, including the source ledger, and three supervisor |
| `test_pf002_mechanism_hypotheses_v1.py` | 141 focused tests |

## Evidence

Current evidence is in ignored `.cache/review-evidence/pf002-mechanism-hypotheses-v1/fixture-59d71eb/`, and earlier runs stay beside it in `fixture-f155b53/` and `fixture-836c7fa/`. None of it is a result.

| Check | Outcome |
| --- | --- |
| Focused tests at `59d71eb`, CPython 3.14.6 | 141 passed in 11.041 s, exit 0, log sha256 `c92e2ea381494aff685943c2fcacf382a625b10533840154076cd6dbab4147f8` |
| Focused tests at `59d71eb`, CPython 3.9.6 | 141 passed in 13.584 s, exit 0, log sha256 `c91034c0d9efecc50cce585336246e427b3161111b4da4d059f8c23b91492ba4` |
| Supervised fixture at `59d71eb`, CPython 3.14.6 | Exit 0, 1.573 s, 21596 bytes, sha256 `c9111a7718979c0e4e2a76d080228f76eb0dadacdd78f33ac3e2c68998595268`, cleanup verified, 0 survivors, 11 sources bound |
| Earlier tests at `f155b53`, CPython 3.14.6 | 106 passed in 9.127 s, exit 0, log sha256 `2806c8e0b8ed810ab8dfffd07532bc6f2f7ffe1fb20c787c1b8cb4d04a51bda1` |
| Earlier tests at `f155b53`, CPython 3.9.6 | 106 passed in 11.574 s, exit 0, log sha256 `d5ec1d2c945b902f4f564514b5196660bcc7a291c52879d27323145068d4bde5` |
| Processes after the final test runs | None left, by a process listing |
| Earlier fixture at `f155b53`, retained | Exit 0, 1.619 s, 14654 bytes, sha256 `5e12155d9e052d01e25f27e0f0ef82801b86f9e6a05b785a63f76e5dc4d2261c`, cleanup verified, 0 survivors |
| Earlier fixture at `836c7fa`, retained | Exit 0, 1.555 s, 14654 bytes, sha256 `0f990a6a6df47dca4d994f6f3df46856666eeb70cd9ccc06b563c573b1402175`. Earlier tests there: 103 passed, log sha256 `587d18ef5ec746423fe2381054c2056c624dea9294171559f87218fbe1445d4c` |
| Comparison of the `836c7fa` and `f155b53` fixtures | Rows and enclosure equal. Only the prose, twin and study file hashes differ |
| Comparison with `59d71eb` | Rows differ on purpose: I5 has an amplitude channel, and rows hold adverse cases |
| Fixture deadline | 1190 s, inside the 1200 s limit including cleanup |
| Fixture scope | 8 of 36 rows. The 36 row record was not emitted |
| Projected 36 row record | About 122546 bytes against 2097152. This is an estimate from the largest of the 8 fixture rows |
| Primary through the wrapper | Refused, exit 3, no output file |
| Repository policy | Passed on the staged implementation |

Every value in the fixture and tests is deterministic, so **it is prior knowledge before any primary**. A primary would add a bound, complete record, not new numbers.

## Results of the mathematics, on declared forms

These are identities and declared-form arithmetic, conditional on the protocol's premises.

| Hypothesis | Status | Note |
| --- | --- | --- |
| H1 recovery | Supported | Zero coupling equals B0 on all seven interventions |
| H2 distinctness | Supported | Effective coupling and admissible interventions only. Unknown is never support. C3's I7 is unknown without `P-theta`, and is reported in a separate ideal branch, 8 values, conditional |
| H3 force gap | Supported | Finite grids only. C1 at `eta = +/-1` reaches the S01 benchmark, and nothing reaches S05. Nothing is stated above the `g` grid |
| H4 ratios | Supported | 16.01 coupling decades and 32.02 force decades, heuristic, no exclusion credit |
| H5 C1 maps | Supported | Nulls come from the typed map through `observe`, and `A_P` matches its closed form |
| H6 identities | Supported | Exact on frozen paths. **Autonomous case `unproved`** |
| H7 skew | Supported | `ell`-invariant skew separates. **`ell`-following skew stays an exact degeneracy** |
| H8 pairing | Supported | Includes the generated matched rivals. See the weakness below |
| H9 readout | Supported | Enclosure proved, `w = 0` on `D`, loop closes to 7.8e-16 rad in the float check, `theta_A` -0.03913 rad |

Enclosure, as a share of `m0`: near at least 0.99941, far between 0.49996 and 0.65686, margin 0.343.

Oracle agreement by a different rule: `f_+` is 0.78914129 from polar Simpson and from Cartesian Gauss, and `D_f` is 0.57828259.

## Prospective changes and failures, in order

1. **Revision 3's guard tripped on the first code run.** The cosine integral differed by 1.25e-7 at 400 and 800 panels, against the frozen 1e-7. I had frozen that grid without measuring it. Radial Simpson error was the cause, measured separately from azimuth. The tolerance stayed, and revision 4 raised the grid to 800 and 1600 panels before the implementation commit.
2. **Revision 3's preparation found a real error from revision 1.** `f_+` was 0.7892 in print, from a midpoint rule with a truncated edge, and the converged value is 0.78914. My first attempt at revision 3 also got this wrong, by placing Simpson nodes on the mask edge. A half-range integral fixed it.
3. **My first draft had a tautological ledger.** `momentum_ledger` defined the assembly as minus the other terms, so its sum could not fail. It now integrates the assembly and reservoir force laws separately. It was replaced before any test ran.
4. **The first H7 draft did not test the degeneracy.** It compared counts of distinct values. It now compares exact means, ell by ell, for following skew and for an invariant skew.
5. **Two tests failed on first run, both faults in the tests.** One compared floats exactly after computing them in a different order. The other expected the enclosure to fail at `d = w/10`, where it validly closes, so it now uses `d` equal to the stroke, which cannot close. Neither threshold moved.
6. **A shell form was refused by the worktree guard** when timing the test run. I did not work around it, and ran a plain command with no timing wrapper. So the receipt has the unittest runtime only.
7. **Root found a stale twin field after revision 3.** `mechanisms.C3.definitions.nu` still read `sin_phi` beside `frozen_domains.nu` and the prose. My sign correction had missed it, and my review of the twin did not catch it, so revisions 3 and 4 and the fixture at `836c7fa` ran with a twin that disagreed with itself. The study never read that field, and the two fixtures' rows are equal. Revision 5 reconciled it, and the parser now refuses a disagreement or a wrong sign in either field. A search found no other stale definition of `nu`.
8. **My first test for that sign was padding.** Its docstring claimed a check its assertions did not make. It was replaced before commit with the signed moment of the retained field.

9. **Root's source review of `840ffe0` found four classes of defect, all mine.** The study had no primary path, and `check_values` could never admit an authorised state. The absorption map was disconnected, and rivals lived only in tests and this audit. Consumed fields were mostly unchecked, so a huge `ell_metres` list would have been walked, and the wrapper parsed loosely. `_differs` counted None against None as different, so unknown could support H2. Revision 6 froze the corrections first, and `59d71eb` applied them. The earlier records stay as they are.
10. **A new test found a new defect.** `within_horizon not in (True, False)` accepted the integer 1, because `1 == True`. That is the bool and number mixing root ruled out, so the code changed to an exact type check.
11. **Earlier test code had leaned on removed flags.** The C1 tests were rewritten against the typed context, rather than preserved by a compatibility shim.
12. **Revision 7 would have made one test launch the primary.** `deadline.main(["deterministic_primary", ...])` asserted a refusal that authority removed. It was rewritten under an explicit earlier state, before the suite ran, and it now fails loudly if it ever reaches launch. The revision 7 suite passed 143 tests with no launch.
13. **The primary record has no final newline, and that defect is retained.** `canonical` here omits the newline that earlier studies' records carry, and neither fixture nor review caught it, because fixtures were never committed. Repository policy stopped the retention commit on it. The record's bytes are frozen, so they stay. Following the existing PF-001 precedent, `check-repository.py` gained one exception bound to this exact path and digest, with a regression test. **That is a repository tool change that root's retention instruction did not name, and root should review it.** The study source is frozen, so its `canonical` stays as it is.
14. **The canonical publication tool refuses two frozen files, and that is retained.** `primary.json` holds 108 negative zeros, all in `loop_contrast` channels of the I6 rows at zero contrast, and the twin holds one whole number above the safe integer range, in `derived_scalars`. The fixture carried 3 of the negative zeros, and it was never put through this tool, so neither my tests nor any review caught this before the primary. No published fact depends on either value. Both files are frozen, so neither changed. At this point no envelope existed and the tool had not changed. [The capacity proposal](../../docs/PF002_MECHANISM_CAPACITY_PROPOSAL.md) set out the options for root.
15. **Root approved a narrow native-evidence compatibility reader, after verifying both defects.** `research-publication.mjs` now reads these two files by exact path and raw digest, and it refuses a wrong path or hash. Strict parsing runs on the original bytes first. A validation copy then replaces exactly the 108 negative zeros and the one value at its exact location, and the existing canonical check must pass on that copy. Callers get the original values, and identities stay raw. `schemas/v1`, `tt-canonical`, the oracle's number rules and generic parsing are unchanged, and no primary or protocol is rewritten. **This is a format compatibility defect exposed in tooling. It is not normative protocol acceptance or new scientific output.** Root also approved the end-of-file exception in item 13, for that one path and digest.
16. **Three page and diagram statements overreached, and root caught them before the envelope.** C3 said "same heat", which is neither measured nor modelled: it now says a matched optical state and dwell schedule, with heat claims unproved. C1 said emitters radiate less, but signed `epsilon` allows more or less. C2 said far below 1 pN without limiting that to the cited couplings: the top grid value reaches about 1 pN. These are presentation corrections, and no input, record or number changed.
17. **Root's actual visual review found three more presentation defects.** The C3 card's vertical arrowheads contradicted their loops, the schematic said a path-length scan separates skew without limiting that to `ell`-invariant skew, and its source caption still named revision 2. All three are fixed, and no input, record or number changed. The envelope prepared at `ba399df` was never released. It is retained byte-exact under `research/publications/superseded/`, is never loaded, and a new envelope replaced it.
18. **No full gate has passed, and the attempts at `4f4cde3` found a real test defect of mine.** One launch command using a `setsid` utility never started, so it was no gate attempt. The first gate stopped on Python 3.9.6 without numpy. The second ran where `ps` and a localhost bind were denied, and gave 67 failure blocks across 64 methods, which showed no code defect but also masked one. A focused rerun of those 64 methods passed 63. `test_pf002_identifiability_v1.WrapperEndToEnd.test_clean_head_binds_into_record_and_manifest` failed, because its manifest named the mechanism wrapper. Each wrapper writes one name global in the shared supervisor at import, so in one process the last import wins, and unittest discovery imports every test module first. Any full gate at `4f4cde3` would have failed there. I copied that write into the mechanism wrapper at `836c7fa`, and my 143 tests missed it because mechanism imports last. All retained run manifests and receipts name the right wrapper, because each wrapper ran in its own process. The wrappers are frozen, so the write stays. Only tests changed: two test classes now patch the name for their own duration, and two new fresh-interpreter methods prove each wrapper's name on a cold start and pin last-import-wins in both orders as an unsafe limitation. The patches alone would prove little, so the assertions rely on those two methods. No input, primary, record or number changed. The envelope prepared at `4f4cde3` was never released. It is retained byte-exact under `research/publications/superseded/`, is never loaded, and a new envelope replaced it.

No threshold, coefficient, grid value or tolerance was tuned to obtain a pass.

## Weaknesses and unsupported branches

Root should treat these as open.

- **The primary builder ran once, for real, in the primary itself.** Before that it had only run on stubs. It stayed inside its budgets: 64554 bytes against the projected 122546, with the largest row 3610 bytes.
- **H8 and paired decisions are close to true by construction.** The estimator takes no label, so identical tuples must decide identically. The matched rivals are not free discoveries either: the leakage fraction, skew and hysteresis are set from the candidate's probe to match it. That shows the tuples are reachable by an ordinary generator, and it is the point of `finite_rival_unresolved`. It does not show those ordinary effects have that size.
- **Adverse cases sit at one declared probe per candidate,** not across the grid. They add no configuration, and they are not a scan.
- **Two declared outcomes stay unreached.** `refuted_by_analysis` and `conditional_pipeline_discriminable` have no row that reaches them. The second needs a complete finite map, and no apparatus row has one. It is reachable only through synthetic widths in tests.
- **`A_P` assumes `A` acts on an ordinary pattern with an inert mask,** and I5's onset is an ideal convention. No onset detector or shutter response is modelled.
- **The torque contrast is not implemented.** The twin's B0 I2 row names it, and it stays a hand estimate with no primary read. The half-mask force and axial numbers are also not study rows.
- **The oracle shares the declared forms and frozen scalars.** It does not check `fy_contrast`. Proposition R and I are trivial statements in it, and `mirror_parities` and `absorption_cases` are hand tables.
- **`momentum_ledger` and `prescribed_work` use declared test values in dimensionless units.** They qualify the identities, not the physical scale.
- **Exact rational statements cover the frozen trapezoid only.** Other edge shapes, rise times and timing are `unproved`, and no hardware term has a finite map.
- **The digest pins the twin, not the prose.** Prose is bound by hash and agreement is by review. The parser compares the two `nu` fields, the frozen table and the digest, and does not read the prose.
- **Supervisor paths.** Exercised: normal, timeout, TERM-ignoring child, three output caps, child failure, empty result, no clobber, forced cleanup failure, left-over descendant, changed source, SIGTERM to the wrapper, manifest write failure, and process-scan failure with `_fallback`. All are stubs or forced failures on macOS arm64. Only SIGTERM was sent, and Linux was not run.
- **Receipts hold hashes of argument vectors.** Those vectors contain machine paths, so the hashes are not portable between machines. A path is low-entropy, so a hash is not a strong secret, though no path appears in a record.
- **Stage 2 did not run the full gate.** The test file joins `ci-local.sh` discovery, adding about 11 to 14 s, and this is unverified there.
- **Wrapper names are unsafe to share in one process.** A manifest is right only when one wrapper is imported per process, which is how every retained run was launched. This is a frozen limitation and not a safe API. A later wrapper version should pass its name explicitly. No test here covers a real study run under the fresh-interpreter name check, which imports only.

## Not done

Stochastic cohorts, any old replay, full gate, baseline advance, PR, merge and deployment.

## Next

The owner approved one focused run and, if it passes and root releases it, exactly one full gate on the final tree, with no retry. Root's terminal gate and final Atlas review come next. A baseline advance, PR, merge and deployment stay unauthorised.
