fix(auditlog): explicit permanent rejections on the ingest ack (IngestAck.rejected_event_ids, field 2) with a dedicated counter; reconciler ignores transient faults for abandonment; persist the served high-water mark; prune only on a non-empty enumeration (review 2026-10-21 06/PERF-1, 06/IMPL-1 adversarial follow-up)

This commit is contained in:
Joseph Doherty
2026-10-22 08:40:42 -04:00
parent 38167bca88
commit b0a08bb63b
23 changed files with 790 additions and 168 deletions
@@ -172,7 +172,15 @@ message AuditEventDto {
}
message AuditEventBatch { repeated AuditEventDto events = 1; }
message IngestAck { repeated string accepted_event_ids = 1; }
// rejected_event_ids (additive, field 2 — review 2026-10-21 06/IMPL-1): ids central
// PERMANENTLY refused (a non-transient per-row SQL error such as an over-width
// value). Only these count toward the site's MaxRejectedPushAttempts; ids that are
// neither accepted nor rejected (DB outage, budget exhaustion) are simply retried.
// An older central never sets it, so the site never counts a refusal.
message IngestAck {
repeated string accepted_event_ids = 1;
repeated string rejected_event_ids = 2;
}
// Audit Log (#23) M3 cached-call combined telemetry: a single packet carries
// both the AuditEvent row to insert and the SiteCalls operational-state upsert