core/evals/adr_0244_identity_gate
Shay c0ff4720b3 feat(adr-0244): Phase 2c — identity-gate detection-value ablation eval
evals/adr_0244_identity_gate/ (off-serving, deterministic) measures, honestly:
does the operator-preservation wave gate add identity-attack detection value
the geometry-blind legacy path cannot?

Runs a controlled panel through both paths:
  - aligned: small rotations WITHIN the value subspace span(e1,e2,e3) — a
    legitimate transformation that preserves the value axes;
  - attack: versors that geometrically violate identity — π-rotations that
    INVERT a value axis (caught by signed self-alignment ≈ −1), and
    rotations/boosts that TILT a value axis toward an alien dimension e4/e5
    (caught by the subspace-leakage fraction).

Measured result (pinned by tests/test_adr_0244_identity_gate_eval.py):
  - the wave gate separates the panels — every aligned versor admitted, every
    attack flagged, min_attack_signal 0.35 > max_aligned_leakage 0.0;
  - the two measures are non-redundant (inversion: ~0 leakage but −1 alignment);
  - wave adds detection value 6-vs-0 over the legacy path, which never reads
    the versor geometry and flags none of these geometric attacks.

Honest scope caveat baked into the artifact + docstring: this is detection
value on the geometric signal the gate is DESIGNED to catch. Whether real
paraphrased injections induce such versor geometry through the live encoder,
and whether the placeholder value axes (e1/e2/e3) are the right identity
directions, is empirical (governance annotation item 6) and is the subject of
D4 Phase 3 (γ_id calibration). The flag stays OFF until that is evidenced.

6 tests + CLI (exit 0 iff separates AND adds detection value).

[Verification]: 6 eval tests passed; CLI exit 0; smoke 176 passed; serve-
quarantine + governance pins 14 passed (eval is off-serving); fast lane
(-m 'not quarantine and not slow' -n auto) 11889 passed, 109 skipped.
Additive-only (new evals/ package + test); no core/chat/algebra changes.
2026-07-17 17:22:17 -07:00
..
__init__.py feat(adr-0244): Phase 2c — identity-gate detection-value ablation eval 2026-07-17 17:22:17 -07:00
__main__.py feat(adr-0244): Phase 2c — identity-gate detection-value ablation eval 2026-07-17 17:22:17 -07:00