feat(physics): chiral orientation sign-gate — sgn(Q)=const fail-closed (ADR-0241 §2.4C) #41

Merged
core-labs merged 2 commits from feat/chiral-sign-preservation-gate into main 2026-07-15 21:37:44 +00:00
Owner

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₅ ψ̃⟩₀) = const as 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) took abs(), discarding the sign: orientation was measured, never enforced.

What lands

  • core/physics/chiral_gate.pyChiralOrientationGate: latches sgn(Q) on the first non-vacuous reading (|Q| ≥ 0.1 floor); a materially re-emerging flip raises ChiralOrientationError (fail-closed — a sign flip is unreachable under rotor transport, so it evidences corruption, never averaged away).
  • Honesty pins (#19 family): even field-states stay vacuous — no orientation fabricated, retired grade-5 gate NOT revived; |Q| may pass below the floor legitimately (latch persists).
  • goldtether_residual feeds the signed charge to the gate; the residual term keeps magnitude-only semantics byte-identical (pinned by test).
  • Serve-path even fields never latch → the gate is behaviorally inert on today's serve path; armed for the odd-capable spinor future.
  • Docs: integration-plan missing-piece row → BUILT; fidelity ledger §12 gains the failable pin row.

Test plan

  • TDD RED→GREEN: tests/test_chiral_orientation_gate.py — 7 passed (latch/conserve, mirror-flip fail-closed, even-field honesty, vacuous-after-latch, determinism, goldtether wiring + byte-identical residual)
  • Goldtether-consumer regression (9 files): 99 passed
  • Serve quarantine transitive guard: green

[Verification]: Smoke suite passed locally (141s, 175 passed)

## 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₅ ψ̃⟩₀) = const` as 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`) took `abs()`, 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 raises `ChiralOrientationError` (**fail-closed** — a sign flip is unreachable under rotor transport, so it evidences corruption, never averaged away). - Honesty pins (#19 family): even field-states stay **vacuous** — no orientation fabricated, retired grade-5 gate NOT revived; |Q| may pass below the floor legitimately (latch persists). - `goldtether_residual` feeds the **signed** charge to the gate; the residual term keeps magnitude-only semantics **byte-identical** (pinned by test). - Serve-path even fields never latch → the gate is behaviorally inert on today's serve path; armed for the odd-capable spinor future. - Docs: integration-plan missing-piece row → BUILT; fidelity ledger §12 gains the failable pin row. ## Test plan - [x] TDD RED→GREEN: tests/test_chiral_orientation_gate.py — 7 passed (latch/conserve, mirror-flip fail-closed, even-field honesty, vacuous-after-latch, determinism, goldtether wiring + byte-identical residual) - [x] Goldtether-consumer regression (9 files): 99 passed - [x] Serve quarantine transitive guard: green [Verification]: Smoke suite passed locally (141s, 175 passed)
core-labs added 1 commit 2026-07-15 21:01:07 +00:00
feat(physics): chiral orientation sign-gate — sgn(Q)=const fail-closed (ADR-0241 §2.4C)
All checks were successful
lane-shas / verify pinned lane SHAs (pull_request) Successful in 17m17s
smoke / smoke (-m "not quarantine") (pull_request) Successful in 5m8s
301742a38a
Builds the one missing safeguard from the 4-blueprint integration audit:
the mirror-inversion protection (core_ha §5.2: sgn(∫⟨ψ I₅ ψ̃⟩₀) = const).
The chiral charge was a verified non-vacuous READOUT, but goldtether took
abs(), discarding the sign — orientation was measured, never enforced.

- core/physics/chiral_gate.py: ChiralOrientationGate latches sgn(Q) on the
  first non-vacuous reading (|Q| >= 0.1 floor); a materially re-emerging
  flip raises ChiralOrientationError (fail-closed; a sign flip is
  unreachable under rotor transport, so it evidences corruption).
  Even field-states stay vacuous — no orientation fabricated, no #19
  revival; the gate is behaviorally inert on today's serve path.
- goldtether_residual now feeds the SIGNED charge to the gate; the
  residual term keeps magnitude-only semantics byte-identical (pinned).
- Docs: integration-plan missing-piece row -> BUILT; fidelity ledger §12
  gains the failable pin row.

TDD RED->GREEN. [Verification]: smoke suite passed locally (141s, 175
passed); gate suite 7 passed; goldtether-consumer regression 99 passed.
core-labs added 1 commit 2026-07-15 21:07:52 +00:00
docs(audit): D10 acceptance packet for Joshua + anyon ledger honesty fix (W4)
Some checks failed
smoke / smoke (-m "not quarantine") (pull_request) Successful in 5m8s
lane-shas / verify pinned lane SHAs (pull_request) Has been cancelled
a98fd565bf
- adr-0241-0242-acceptance-packet-2026-07-15.md: evidence summary, five
  deviations for ruling (P7 demote-with-proof recommended accept-as-honest
  per #19 precedent; T1/T2 serve-boundary reconciliation for ratification),
  filtered R&D claims, capability additions (PR #41 chiral gate), open
  items. Prepare-only — nothing self-Accepts.
- fidelity ledger: Fibonacci anyons (V5) row downgraded from prose-only
  green to 'NOT BUILT — claim-quarantined' (W1 Finding #5).

[Verification]: Smoke suite passed locally (175 passed)
core-labs merged commit 717aca9bab into main 2026-07-15 21:37:44 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: core-labs/core#41
No description provided.