audit hardening: book fully serialized, chain-gated sweep, boot-id single-writer guard, TLS on user-ws, atomic valuebot state, hot-path throttle, newest-kept seen_tx, daily lock, ingest txn, AIcAIc pin

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
jaxperro
2026-07-19 14:07:41 -04:00
parent f826815885
commit baa4182343
8 changed files with 126 additions and 13 deletions
+4
View File
@@ -15,6 +15,10 @@ class Ex:
def __init__(self):
self.fills, self.sold = [], []
def _shares_held(self, tok):
# chain truth for the audit-3.2 gate: DUST really exists on chain
return {"DUST": 1.0}.get(tok, 0.0)
def sell(self, tok, shares, price, meta):
self.sold.append(tok)
self.fills.append({"side": "SELL", "token": tok, "shares": shares,