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
+3 -1
View File
@@ -57,10 +57,12 @@ def main():
d.get("size"), d.get("tx"), d.get("title")))
except Exception:
pass
if rows:
con.execute("BEGIN") # audit 3.10: atomic pair — a crash
if rows: # between the two inserts re-ingested
con.executemany("INSERT INTO trades VALUES (?,?,?,?,?,?,?,?,?)", rows)
con.execute("INSERT INTO ingested VALUES (?,?,?)",
[s, len(rows), int(time.time())])
con.execute("COMMIT")
box(f"rm {SEG}/{s}")
total += len(rows)
print(f"[ingest] {s}: {len(rows)} rows")