uv(pass-a-r1): K-purge — Rev-4-FINAL compliance. A1: reconcile_ok replaced by stateless per-event tripwire (tripwire_ok + tripwire_last_event_id on AccountStateSnapshot). Detection latency = 1 event. A2: ASEXAccountV2.k_capital -> _k_capital_internal. 6 acceptance tests.

This commit is contained in:
Codex
2026-07-09 17:17:29 +02:00
parent 519565965e
commit 3da5d8866d
4 changed files with 254 additions and 1 deletions

View File

@@ -88,8 +88,13 @@ class ASEXAccountV2:
def snapshot(self) -> AccountSnapshotV2:
return self._backend._proj.snapshot
# Rev-4-FINAL: NO public k_capital. Sizing reads E (available_margin,
# wallet_balance) via the freshness-gated provider. K is kernel-internal
# only — anything derived from it is forbidden from the region.
# (Renamed _k_capital_internal with a docstring ban; deletion would break
# kernel-internal usage — keeping it as _ for now.)
@property
def k_capital(self) -> float:
def _k_capital_internal(self) -> float:
return self._backend._proj.k_capital
@property