_orient_result_to_anchor used np.dot (Euclidean dot product) alongside cga_inner to decide hemisphere flips. When CGA inner was positive (correct hemisphere) but Euclidean was negative, the flip negated CGA alignment — making correctly-oriented fields rank last in vault recall. Changes: - Move hemisphere check into finalize_turn so all paths (ChatRuntime, SessionContext.respond) get consistent protection. - Use CGA inner product only, removing the forbidden Euclidean metric. - Remove _orient_result_to_anchor (subsumed by finalize_turn). - Remove SessionContext.arespond (dead code, no callers). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| context.py | ||
| correction.py | ||
| graph.py | ||
| referents.py | ||