[P2] O02: Complete service-wide observability, protected diagnostics and operator alerts #33

Open
opened 2026-10-21 20:29:32 +02:00 by amiryahaya · 0 comments
Owner

Backlog ID: O02 | Priority: P2 | Phase: M6 — Release evidence and approved deployment

Outcome and scope

Extend the initial telemetry to every service/adapter and deploy access-controlled dashboards, retention/rotation and actionable alerts distinct from the security audit trail.

Dependencies and gates

Engineering prerequisites: #12 (F07), #21 (I04), #25 (E02), #27 (H02), #30 (O01)

Synthetic-data development may proceed. Production use remains subject to the decision gates in the SRS.

Starting points

crates/api/; crates/ingestion/; crates/ai-engine/; deploy/observability/; docs/operations/runbooks/

These are current files or proposed responsibility boundaries; finalize a focused implementation plan before coding. Existing local scaffolding is uncommitted and is not evidence of completion.

Acceptance criteria

  • Metrics/traces cover request/error/latency, phase TTFT, queue/backlog/index lag, dependency availability, CPU/RAM/GPU, model/slot state and cleanup failures.
  • API/worker/Engine each expose appropriate liveness/readiness/startup/draining behavior and protected detailed diagnostics.
  • Alerts exercise outages, policy/identity failure, saturation, index mismatch, SLO breach and resource exhaustion without protected payloads.
  • Time synchronization, log rotation/retention/export, metric label cardinality and operator authorization are configured and documented.

Verification

Inject each alert condition, verify delivery/runbook and access controls, and scan captured logs/traces/alerts for sentinel content or sensitive IDs.

Behavior changes follow Red → Green → Refactor. Run affected Rust shared contract/unit tests and real PostgreSQL/Qdrant/runtime integration tests where applicable; frontend changes run typecheck/build and the relevant browser tests. Record exact commands/results in the implementation PR. Documentation/decision tasks use recorded review evidence.

Requirements and design

FR-OPS-001–005; FR-ADMIN-002; NFR-OPS-001, 003; architecture §13

Sources: SRS, system design. Local planning context: docs/implementation-plan.md and docs/development-backlog.md (not published by this task).

Security impact: Use synthetic fixtures until approved for operational data. Preserve current authorization, markings, provenance and default-deny behavior; exclude protected payloads/secrets from operational telemetry. No classified-deployment or PQC-compliance claim is implied by closing this issue.

Parent roadmap: #1

**Backlog ID:** O02 | **Priority:** P2 | **Phase:** M6 — Release evidence and approved deployment ## Outcome and scope Extend the initial telemetry to every service/adapter and deploy access-controlled dashboards, retention/rotation and actionable alerts distinct from the security audit trail. ## Dependencies and gates **Engineering prerequisites:** #12 (F07), #21 (I04), #25 (E02), #27 (H02), #30 (O01) Synthetic-data development may proceed. Production use remains subject to the decision gates in the SRS. ## Starting points crates/api/; crates/ingestion/; crates/ai-engine/; deploy/observability/; docs/operations/runbooks/ These are current files or proposed responsibility boundaries; finalize a focused implementation plan before coding. Existing local scaffolding is uncommitted and is not evidence of completion. ## Acceptance criteria - [ ] Metrics/traces cover request/error/latency, phase TTFT, queue/backlog/index lag, dependency availability, CPU/RAM/GPU, model/slot state and cleanup failures. - [ ] API/worker/Engine each expose appropriate liveness/readiness/startup/draining behavior and protected detailed diagnostics. - [ ] Alerts exercise outages, policy/identity failure, saturation, index mismatch, SLO breach and resource exhaustion without protected payloads. - [ ] Time synchronization, log rotation/retention/export, metric label cardinality and operator authorization are configured and documented. ## Verification Inject each alert condition, verify delivery/runbook and access controls, and scan captured logs/traces/alerts for sentinel content or sensitive IDs. Behavior changes follow Red → Green → Refactor. Run affected Rust shared contract/unit tests and real PostgreSQL/Qdrant/runtime integration tests where applicable; frontend changes run typecheck/build and the relevant browser tests. Record exact commands/results in the implementation PR. Documentation/decision tasks use recorded review evidence. ## Requirements and design FR-OPS-001–005; FR-ADMIN-002; NFR-OPS-001, 003; architecture §13 Sources: [SRS](https://forgejo.primatekun.tech/primatekuntech/rag-rust/src/branch/main/docs/SRS.md), [system design](https://forgejo.primatekun.tech/primatekuntech/rag-rust/src/branch/main/docs/architecture.md). Local planning context: `docs/implementation-plan.md` and `docs/development-backlog.md` (not published by this task). **Security impact:** Use synthetic fixtures until approved for operational data. Preserve current authorization, markings, provenance and default-deny behavior; exclude protected payloads/secrets from operational telemetry. No classified-deployment or PQC-compliance claim is implied by closing this issue. **Parent roadmap:** #1
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
primatekuntech/rag-rust#33
No description provided.