Skip to content

Add production observability and release assurance - #497

Merged
anandtopu merged 13 commits into
mainfrom
feat/production-observability
Nov 27, 2026
Merged

anandtopu merged 13 commits into
mainfrom
feat/production-observability

Conversation

@anandtopu

@anandtopu anandtopu commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add privacy-bounded traces, structured logs and metrics across the API, Celery workers, Beat and MCP. Preserve backend request IDs in CLI and MCP errors.
  • Add durable telemetry, authenticated scrapes, queue and datastore monitoring, Grafana dashboards, scoped service objectives and an independently verifiable Alertmanager heartbeat.
  • Make upload delivery recoverable through PostgreSQL receipts and add durable pipeline event replay, audit custody controls and process-bound worker readiness.
  • Extend the existing CI and release gates with infrastructure policy, mounted-rule checks, source scanning, exact-commit secret scanning and immutable image verification.

Validation

  • The PR head passed all 29 reference deployment renders, source policy and Gitleaks.
  • The final focused runs passed 115 backend and 96 monitoring tests. One optional Grafana integration test was skipped. The locked MCP suite passed 1,223 tests in the earlier telemetry iteration. The Windows CLI run reproduced four existing Rich color assertion failures.
  • Disposable tests exercised PostgreSQL and Valkey recovery, real Celery workers, MCP through the Collector and Prometheus, mTLS exporter scraping, and separate Prometheus and Alertmanager outages.

Rollout

Apply migrations 0261 through 0265. For migration 0265, upgrade the ingestion workers before enabling the new API producer. Deployment acceptance includes verifying immutable candidate images, site scrape and receiver identities, and audit retention and restore controls. Upload rollout guide, Delivery ledger.

Start iteration 1 on one shared branch and preserve the upstream main/MFA
changes. Track all eight epics and 43 stories in the maintainer delivery
ledger; advance 13 stories without claiming production acceptance.

Sanitize all configured trace sinks, bound browser telemetry bytes, preserve
core error correlation, reset worker context/readiness, and keep ambiguous
upload publication off the API loop without deleting its payload.

Expose bounded collection freshness and durable SQL workflow outcomes.
Correct quiet-webhook alert semantics, filter stale replicas before shared
state aggregation, and run checksum-pinned semantic fixtures in existing CI.
Require trusted exact-SHA scan evidence for publication/release and scan raw
candidate blobs in addition to history. Keep synthetic fixture exceptions
narrow and remove the former SDK-directory exemption.

Validation: 371 focused backend cases; 18 frontend telemetry cases; production
build, type and bundle checks; 501 release/docs/quality contracts; pinned
Python 3.14 / SDK 1.45.2 trace and Celery 5.7 upload checks; 38 Prometheus rules
and 12 semantic fixture groups. Generated references and source/CR parity pass.

Durable upload reconciliation, deployed signal delivery, persistent logs and
traces, audit archival, SLO/capacity work and hosted gate acceptance remain
tracked. No deployment, push or workflow dispatch is part of this iteration.

Signed-off-by: Anand Topu <anand.goud.2020@gmail.com>
Use one queue inventory and read every priority list from the actual
Celery broker. Measure pool saturation and acquisition outcomes per API
and worker process. Clean up dead-child gauges in the worker parent and
retain completed task counters.

Observe fresh Redis and Valkey application/broker memory through the
bounded scrape collector. Scope alerts and dashboards to TestLookup.
Support secret-backed API scrape authentication in optional Compose and
Kubernetes profiles. Validate mounted configs and alert behavior in the
existing CI jobs and track acceptance in the delivery ledger.

More work remains on queue age and consumer signals, dependency and host
exporters, and production PostgreSQL and scraper profile acceptance.

Signed-off-by: Anand Topu <anand.goud.2020@gmail.com>
Add an opt-in Alertmanager profile with authenticated incident and watchdog
receivers. Preserve the scrape configuration and check real delivery against
a disposable TLS sink using the existing backend CI job.

Define the expected targets and metrics independently from discovery. Track
weekly digest delivery and nightly slot completion in durable observations,
so worker replacement, quiet workloads, misses and recovery stay distinct.

Validation: 406 focused backend cases passed and one needs a disposable
PostgreSQL DSN. Forty Prometheus scenarios, ten alert delivery tests, forward
and reverse migration SQL, rendered profiles and generated references passed.
Record remaining site acceptance and the next work in the delivery ledger.

Signed-off-by: Anand Topu <anand.goud.2020@gmail.com>
Add a private Compose reference profile with durable Collector queues, Loki logs and Jaeger traces. Export bounded API, Celery and MCP operational events and verify trace and log correlation against pinned native services.

Provide mTLS client adapters for site-operated Kubernetes gateways, profile queue indicators, immutable image inventory and optional offline packaging with pinned external prerequisites.

Signed-off-by: Anand Topu <anand.goud.2020@gmail.com>
Stage scoped pipeline event intents with their source changes and replay them through a leased, idempotent Mongo relay. Add shared delivery health, authorized repair, retention fencing and incomplete-export protection.

Add independently signed archive custody and opt-in identity retention. Preserve SCIM authority, respect identity holds and record bounded maintenance receipts.

Signed-off-by: Anand Topu <anand.goud.2020@gmail.com>
Measure supported core API responses and retained SQL work without mixing installation scopes or concurrent API process snapshots. Offer an opt-in rule profile with explicit objective adoption and bounded query cadence.

Keep project and workflow evidence in their durable sources and enforce finite stage, task and case telemetry dimensions. Measure the pinned reference stack, queue saturation and trace sampling in disposable local processes.

Signed-off-by: Anand Topu <anand.goud.2020@gmail.com>
Validate complete mounted monitoring rules and render reference infrastructure through the existing required backend job. Record a pinned source policy report tied to the candidate commit and reuse hosted CodeQL default setup.

Pin the development rollout to the same verified application image manifest and verify the running role inventory. Add bounded authenticated release controls and an opt-in monitored candidate harness with exact worker, durable completion and correlated signal evidence.

Signed-off-by: Anand Topu <anand.goud.2020@gmail.com>
Stage backend upload identity in PostgreSQL before object storage and broker publication. Bound upload and broker admission, retain uncertainty, support authorized recovery and clean terminal payloads with guarded retention. Preserve existing receipts across CLI and browser retries.

Bind worker readiness to the current Linux parent and clear old metrics before Celery imports. Verify broker recovery, prefork replacement, migrated receipt persistence and concurrent health under controlled faults.

Signed-off-by: Anand Topu <anand.goud.2020@gmail.com>
Initialize opt-in worker and Beat tracing at process boundaries and preserve
publication, retry, and consumer parentage through bounded shutdown.

Preserve backend correlation IDs in CLI and MCP diagnostics and project safe
MCP tool outcomes through the private Collector and Prometheus scrape.
Refresh the authorization and wire checks and record iteration evidence.

Signed-off-by: Anand Topu <anand.goud.2020@gmail.com>
Gate logical queue depth on each queue's broker observation. Measure bounded
worker start delay independent of tracing, and use scoped worker health and
attempt progress to detect a stalled child backlog. Ship the shared alerts,
Grafana panels and operator runbook.

Exercise empty-broker durable SQL failures and idempotent recovery in the
existing integration job. Record the stopped-consumer validation and rollout
criteria in the observability delivery ledger.

Signed-off-by: Anand Topu <anand.goud.2020@gmail.com>
Add opt-in mutually authenticated host and PostgreSQL exporter scrapes,
independent target records, scoped alerts and an overview dashboard row.
Render both reference Compose profiles and use the existing Operator
additional-scrape configuration for site adoption.

Carry the watchdog evaluation time through Alertmanager and verify both
monitoring outages with an independent receiver. Initialize the full
Celery task registry before freezing bounded metric labels.

Signed-off-by: Anand Topu <anand.goud.2020@gmail.com>
Comment thread e2e-runner/monitored_ephemeral.py Fixed
Use a protected-branch release verifier and keep release probe keys out of
files and arguments. Parse release HTML inertly and require TLS 1.2 in the
native routing fixture.

Restore the worker typing and generated reference checks, fix executable
alias handling in the scan fixture, and keep the initial frontend within
its existing bundle budget. Run the monitored runner regression in CI.

Signed-off-by: Anand Topu <anand.goud.2020@gmail.com>
Align regression fixtures with durable pipeline, upload, digest, and retention behavior. Resolve Celery fixture isolation, classify deployment-only export state, and exercise inherited deployment and release contracts.

Signed-off-by: Anand Topu <anand.goud.2020@gmail.com>
@anandtopu
anandtopu merged commit 051936f into main Nov 27, 2026
46 checks passed
@anandtopu
anandtopu deleted the feat/production-observability branch November 27, 2026 18:26
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.

2 participants