Skip to content

COE-07: pretrained TRM phase-gauge experiment and dihedral telemetry audit - #72

Merged
patrickdugan merged 5 commits into
mainfrom
feat/coe07-native-trm-phase-gauge-20261115
Nov 15, 2026
Merged

patrickdugan merged 5 commits into
mainfrom
feat/coe07-native-trm-phase-gauge-20261115

Conversation

@patrickdugan

@patrickdugan patrickdugan commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

Runs the COE-01..06 phase-sensitive/cyclic-invariant observer test against the native SHA-pinned 7M Attention-TRM already used in LoopScope-02, instead of the newly trained synthetic tied-attention models.

Preregistered boundaries

  • Protocol committed separately, before the inference runner (d0b1b699).
  • Source LoopedTransformers@f504111e, loader blob a7396bc; original benchmark 59459ae0..., pretrained model SHA-256 932b5e0d... checked before loading.
  • Select 36 fixed Sudoku boards, nine digits per stratum. Probe fit S1 + S3, held-out S2 + S4. Eight outer ACT steps, K9 edge retention on 72 held-out pairs.
  • One shared threshold direction per representation (visible, dark, full, scratch). Four head-selection objectives derive solely from the fit states. Readout modes ordered, cyclic-invariant, count, final-step.
  • Predeclared success gate: dark-space cyclic-minus-count >=8/72 on the cyclic_gain head, with each held-out stratum contributing at least one distinction.

Reproduce

python -m unittest discover -s mechinterp/phase_gauge07 -p 'test_*.py' -v

python -m mechinterp.phase_gauge07.run_native --out /tmp/coe07_native --threads 4

The hosted CPU workflow publishes both raw compressed activations and replayable selected-head receipts as a workflow artifact. No checkpoint mutation, training, merge or deployment. If pretrained inference is unavailable, label the outcome blocked/invalid instead of substituting synthetic evidence.

COE-07R exact replay (2026-11-15)

  • Commit 228678f8 adds dihedral_replay.py and replay tests for rotations, time reversal, repeated target digits, and best in-sample class-majority decoding.
  • Native output-correctness oracle on 64 S4-stalled boards (1,795 unequal-digit pairs): at T=8, ordered 1,414, cyclic 1,389, dihedral 1,389, count 1,369; at T=16, 1,447 / 1,428 / 1,428 / 1,422. Dihedral-beyond-count gains are 20 and 6 pairs, respectively. The bits require ground-truth answers and are not an activation probe.
  • Local: 18 LoopScope unit tests passed, 1 original-source integration test awaits full-checkout execution.
  • Hosted run 43699655642 failed in exact-unit before test steps appeared; rerun had the same issue. Subsequent run 43701640038 likewise stopped before native inference. New pretrained latent-probe outcome remains blocked/unmeasured.
  • Complementary proof work in MathCan PR #47.

Optional local CUDA replica

Commit 71b815c adds --device cuda to the native runner while retaining CPU float32 as the preregistered primary. CUDA is explicitly tagged as exploratory and its results must be reported separately. Run python -m mechinterp.phase_gauge07.run_native --device cuda --threads 4 --out ./coe07_native_gpu followed by the existing replay.py command. The optional path passed syntax checks but has not executed against the external model checkpoint in this environment.

@patrickdugan patrickdugan changed the title COE-07: native pretrained TRM phase-gauge observer benchmark COE-07: pretrained TRM phase-gauge experiment and dihedral telemetry audit Nov 15, 2026
@patrickdugan
patrickdugan marked this pull request as ready for review November 15, 2026 10:08
@patrickdugan
patrickdugan merged commit 932751f into main Nov 15, 2026
1 of 2 checks passed
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