Task · CFO-0066

Restore AI Gateway catch-up through bounded OTLP delivery

Description

Loop14 deployed v0.10.0 passes container, digest and checkpoint-preservation health checks, and the non-JSON parsing failure is gone. Live AI Gateway acceptance still fails: the log checkpoint remains at the outage boundary and the collector reports log/trace context deadlines during export. Runtime config permits a three-hour AI Gateway window. This is a live delivery blocker, not evidence that the original parser regression remains.

Acceptance Criteria

Definition of Done

Implementation Plan

Diagnose the sanitized deployed settings and exact timeout evidence against collector and real exporter/scheduler paths; obtain an assertion-based failing integration reproduction; fix only bounded delivery or window subdivision; run gate, CodeRabbit and independent review; root owns any further release/deploy/live verification.

Implementation Notes

Real Register/scheduler/provider/SDK reproduction failed the expected checkpoint assertion after the shared 90-second deadline despite healthy local HTTP export responses. Metadata-only capture-disabled control is diagnostic, not a configuration proposal. The effective window is already capped to 15 minutes, superseding the initial three-hour-window hypothesis. Root source readback reports 712 records in the failing 15-minute range; 20 sampled rows have 40 successful body reads, 549526 total captured upper-bound bytes, maximum body 37280 bytes, and maximum source GET latency 0.77 seconds. No explicit numeric SDK timeout/batch environment overrides exist. Individual live OTLP POST statuses, bytes and latency remain unobserved. Adaptive source-window correction is commissioned under the shared third implementation attempt, leaving one implementation attempt, with no arbitrary timeout/capture changes. The initial bounded live watch expired with checkpoint unchanged, zero last-success and stale Alerting; live acceptance remains unsatisfied.

Production-budget real Register/scheduler/provider/SDK integration proves assertion-red aggregate deadline limitation, failed cursor and metric preservation, and subsequent smaller-window required-signal success. Candidate 836cbe7 and integrated a768eb9 passed gate, complete six-file CodeRabbit coverage and fresh exact-integration REV; exact-SHA CI succeeded. Healthy DEP3 v0.10.1 and LIVE54 terminal proof at 13:53:48 show checkpoint advancing across two reads, last-success below 15 minutes and stale Normal. Exclusive live causality remains unproven, and late v0.10.0 recovery is retained. DoD2/3 are conditional and not applicable: no packaging definition or new signal declaration was introduced.

Final Summary

AI Gateway source windows halve on typed aggregate commit deadlines, preserving whole-second boundaries, the 90-second budget, capture caps and required-export-before-metrics/checkpoint integrity. Dense one-second windows fail closed; bounds are learned per scheduler process. Local production-budget proof, independent review, gates, CodeRabbit, CI and deployed recovery proof passed.

View the source file on GitHub