Implementation Plan: Observability and Evidence

Make execution inspectable and governance-verifiable by unifying telemetry (logs/metrics/traces), evidence capture, and correlation IDs across protocols and domain events, while enforcing privacy and anti-leakage constraints.

Provenance & Traceability

Architectural Decisions (ADRs)

ADR ID Decision Title Impact on This Plan
ADR-029 Observability Stack Architecture Establishes OTLP + OTel Collector + OpenObserve + Vanta + Logfire.

Product Requirements (PRDs)

PRD ID Requirement Title Satisfied By (SDS) Acceptance Criteria
PRD-010 AI Governance Runtime SDS-047 REQ-GS-004 (governance metrics exposure)

Software Design Specifications (SDS)

SDS ID Service/Component Bounded Context SEA-DSL Spec File Implementation Status
SDS-030 Semantic Observability Envelope shared N/A Draft
SDS-047 GovernedSpeed™ Governance Runtime governance-runtime N/A Proposed

Note: SDS-043 (Risk & Evidence Service) has been superseded by SDS-047 per ADR-031.

Provenance Chain

graph TD
  ADR29[ADR-029: Observability Stack] --> PRD10[PRD-010: AI Governance Runtime]
  PRD10 --> SDS47[SDS-047: GovernedSpeed™ Runtime]
  ADR29 --> SDS30[SDS-030: Semantic Observability Envelope]
  SDS47 -.-> SDS43[SDS-043: SUPERSEDED]

  style SDS43 fill:#ffcccc

Architecture and Design

Design Principles Applied

Dependency Justification

Expected Filetree

1
2
3
4
/
├── docs/specs/shared/adr/029-observability-stack-architecture.md
├── docs/specs/shared/sds/030-semantic-observability.md
└── docs/specs/shared/sds/047-governedspeed-governance-runtime.sds.yaml

Proposed Cycles

Cycle Branch Wave Files Modified Files Created Specs Implemented
C1A cycle/p009-c1a-semantic-envelope 1 docs/specs/shared/sds/030-semantic-observability.md Envelope + privacy/anti-leakage rules
C1B cycle/p009-c1b-evidence-bundles 1 docs/specs/shared/sds/047-governedspeed-governance-runtime.sds.yaml schemas/events/governance/evidence/* (if needed) Evidence artifact model
C2A cycle/p009-c2a-correlation-ids 2 docs/specs/shared/sds/030-semantic-observability.md Correlation propagation rules

Task Breakdown

Wave 1 (Parallel)

Wave 2 (Depends on Wave 1)


Validation & Verification

Spec Validation

Implementation Validation


Open Questions

  1. What is the canonical location/config for the OTel Collector pipeline in this repo (file path + deployment target)? infra/otel/collector-config.yaml
  2. Which “semantic context attributes” are mandatory vs optional, and how are they derived (from identity tokens, manifests, or flows)? sea.domain, sea.command, sea.cqrs_kind
  3. What retention policy applies to full_fidelity payload mode (and how is it enforced)? 7d hot / 90d cold

Risks & Mitigation

Risk Likelihood Impact Mitigation Strategy
Telemetry leaks sensitive provenance Medium High SDS-030 sensitivity hashing, payload modes, and k-anonymity constraints.
Cardinality explosion increases costs Medium Medium Enforce SDS-030 cardinality guardrails and aggregation modes.

Rollback Strategy

  1. Fall back to aggregated payload mode + reduced attribute set while keeping correlation IDs intact.

Linked Specifications

Type ID/Doc Document
ADR ADR-029 docs/specs/shared/adr/029-observability-stack-architecture.md
PRD PRD-010 docs/specs/shared/prd/010-ai-governance-runtime.md
SDS SDS-030 docs/specs/shared/sds/030-semantic-observability.md
SDS SDS-047 docs/specs/shared/sds/047-governedspeed-governance-runtime.sds.yaml

Superseded: SDS-043 (Risk & Evidence Service) has been merged into SDS-047 per ADR-031.