fix(supervisor): burst set/get via raw SQL — host-lag-proof #236

Merged
chaim merged 1 commits from worktree-halacha-burst-ops into main 2026-06-12 11:17:00 +00:00
Owner

המתזמר על המארח מייבא את legal_mcp.services.db מעץ-ה-repo המקומי, שיכול לפגר אחרי main בכמה commits. תלות ב-db.set_drain_burst/get_drain_burst החדשים הייתה דורשת עץ-מארח מעודכן. במקום — raw SQL דרך db.get_pool() היציב: המתזמר תלוי כעת רק ב-get_pool + עמודת drain_controls.burst_until (החוזה המשותף עם ה-API). ה-API בקונטיינר ממשיך עם ה-helpers המוטיפסים (הקוד ב-image).

Invariants: G1/G2 ללא שינוי (אותה עמודת-DB יחידה, אין מסלול מקביל).

🤖 Generated with Claude Code

המתזמר על המארח מייבא את `legal_mcp.services.db` מעץ-ה-repo המקומי, שיכול לפגר אחרי main בכמה commits. תלות ב-`db.set_drain_burst`/`get_drain_burst` החדשים הייתה דורשת עץ-מארח מעודכן. במקום — raw SQL דרך `db.get_pool()` היציב: המתזמר תלוי כעת רק ב-`get_pool` + עמודת `drain_controls.burst_until` (החוזה המשותף עם ה-API). ה-API בקונטיינר ממשיך עם ה-helpers המוטיפסים (הקוד ב-image). Invariants: G1/G2 ללא שינוי (אותה עמודת-DB יחידה, אין מסלול מקביל). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chaim added 1 commit 2026-06-12 11:16:53 +00:00
fix(supervisor): burst set/get via raw SQL, not new db helpers (host-lag-proof)
All checks were successful
G12 Leak-Guard / leak-guard (pull_request) Successful in 9s
75a1b23972
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).
chaim merged commit b6dec104c8 into main 2026-06-12 11:17:00 +00:00
chaim deleted branch worktree-halacha-burst-ops 2026-06-12 11:17:01 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ezer-mishpati/legal-ai#236