feat(physics): chiral orientation sign-gate — sgn(Q)=const fail-closed (ADR-0241 §2.4C) #41
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/chiral-sign-preservation-gate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Builds the one missing safeguard identified by the 4-blueprint integration audit (docs/research/adr-0241-0242-blueprint-integration-plan.md, merged in #40): the mirror-inversion protection — core_ha §5.2 pins
sgn(∫⟨ψ I₅ ψ̃⟩₀) = constas a mathematical invariant safeguard, and ADR-0241 §2.4C promises the chiral charge 'anchors the global orientation of the cognitive manifold, preventing mirror-image inversions.'The substrate had a verified non-vacuous readout (
chiral_charge, Q=−2.5 conserved exactly under transport — W1 adversarial pass), but its only consumer (goldtether_residual) tookabs(), discarding the sign: orientation was measured, never enforced.What lands
core/physics/chiral_gate.py—ChiralOrientationGate: latches sgn(Q) on the first non-vacuous reading (|Q| ≥ 0.1 floor); a materially re-emerging flip raisesChiralOrientationError(fail-closed — a sign flip is unreachable under rotor transport, so it evidences corruption, never averaged away).goldtether_residualfeeds the signed charge to the gate; the residual term keeps magnitude-only semantics byte-identical (pinned by test).Test plan
[Verification]: Smoke suite passed locally (141s, 175 passed)