fix: batch status-card source notifications

Coalesce committed company hints in a fixed one-second window without flooring real deadlines. Verify one hundred ordinary issue/comment writes, company isolation, deadline preemption, retained hints and settled SQL quietness. Await actual evaluation I/O in fake-clock acceptance instead of jumping across connection timers.

Co-Authored-By: Paperclip <paperclip@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-30 18:49:20 -05:00
1 parent 2ee5c7d6dc
commit cd4caaab26
3 files changed
+139 -7

No files matched your search

@@ -123,3 +123,15 @@ five minutes keeps its remaining time without extension. This bounds migration
compatibility delay while preserving prior crash/failure recovery. After the
first successful evaluation all newly saved deadlines have explicit ownership.
No recurring compatibility scan is added.
Source notifications use the shared deadline helper's fixed one-second batching
window. The first hint after idle can reconcile immediately. Later hints merge
by company until that window ends. The window does not slide with each new
write, so a sustained source stream cannot postpone reconciliation forever.
One second keeps reactive cards prompt (the removed heartbeat default was 30s)
and bounds burst SQL. No minimum spacing is set: an already-known policy,
expiry, or retry deadline can preempt batching. The window alone creates no
scheduled work after settlement. Real issue/comment producer acceptance measures
due/next queries and actual searches under 100 writes, preserves both companies'
hints, dispatches another company's saved deadline inside the batching window,
and checks SQL quietness after authorized results.