Files
legal-ai/scripts
Chaim 75a1b23972
All checks were successful
G12 Leak-Guard / leak-guard (pull_request) Successful in 9s
fix(supervisor): burst set/get via raw SQL, not new db helpers (host-lag-proof)
The host pm2 supervisor imports legal_mcp.services.db from the host repo checkout,
which can lag main by many commits. Depending on the just-added db.set_drain_burst/
get_drain_burst would require the host checkout to be current. Use raw SQL via the
stable db.get_pool() instead — the supervisor now depends only on get_pool + the
drain_controls.burst_until column (the shared contract with the /operations API).
The container-side API keeps using the typed helpers (it ships the code in-image).

Invariants: G1/G2 unchanged (same single DB column, no parallel path).
2026-06-12 11:16:38 +00:00
..