Files
foxhunt/crates
jgrusewski c2dd6917e0 test(sp17): A-centered invariance under V shift
Verifies the architectural contract: a uniform additive shift to V
across atoms cannot leak into the post-centering distribution. The
plan specifies reading A_centered directly, but A_centered is a
register-local quantity inside compute_expected_q; this test
restates the property as the equivalent behavioral assertion that
adding a uniform constant to V leaves every per-action E[Q]
identical (softmax translation invariance).

A regression that accidentally reduced over (V + A) instead of A
alone would shift the per-atom mean by V_SHIFT and corrupt the
centered logits; the per-action E[Q] would diverge by O(1), failing
the ε=1e-4 assertion.

Plan: docs/superpowers/plans/2026-05-08-sp17-dueling-q-network.md

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-08 22:16:16 +02:00
..