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

@@ -90,5 +90,9 @@ export function registerStatusCardEvaluationWork(
) {
return registerDeadlineWork(coordinator, DELIVERY_QUEUES.statusCardEvaluation, {
run: service.run, next: service.next, onSettled: service.changed, canRun, retryMs: 30_000,
// Batch source hints for at most one second after reconciliation. Do not
// use minimumSpacingMs: known policy/retry deadlines must preempt batching.
// This window alone arms no timer when the feature has no pending work.
notificationCoalesceMs: 1_000,
});
}