Skip to content

fix: apply configurable retention to LLM traces - #1

Merged
im-tyler merged 4 commits into
mainfrom
fix/llm-trace-retention
Sep 27, 2026
Merged

im-tyler merged 4 commits into
mainfrom
fix/llm-trace-retention

Conversation

@im-tyler

@im-tyler im-tyler commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

LLM traces previously had no scheduled retention policy, so they could grow indefinitely while other telemetry expired. Add a configurable positive OBSERVE_LLM_RETENTION_DAYS window (default 30 days), clean expired traces through the existing bounded retention job, and preserve model-price history.

Validation: the full Go suite with mandatory database integration, build and vet pass against the exact repaired production engine. A custom 7-day regression verifies expired/recent traces and retained pricing. A consistent live snapshot was checksum-verified and restored in isolation; the candidate accepted the existing ingestion key and rejected invalid/cross-site requests. Deployment remains pending final CI and exact-image rehearsal.

Required CI repairs exposed by this change: valid migration fixture secrets, explicit Bash invocation/workspace path, an isolated source-pinned UI workspace with frozen lockfile, built framework/CLI, and normalized build timestamps/gzip OS metadata. Application assets remain strictly freshness-checked. The obsolete Nucleus v0.1.8 full-suite job failed compatibility checks; amd64 now joins arm64 on v1.1.1, with the independent source-pinned lease gate retained. No assertions are weakened. The ingest shutdown fixture is seeded before worker start to avoid racing correct admission refusal after its intentional crash. Upstream nondeterministic metadata is documented in the private upstream ledger.

@im-tyler
im-tyler merged commit bb7dd8b into main Sep 27, 2026
11 checks passed
@im-tyler
im-tyler deleted the fix/llm-trace-retention branch September 27, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant