ADR-031: GovernedSpeed™ Integration Strategy

Status: Proposed Version: 1.0 Date: 2025-12-27 Supersedes: ADR-005 (extends implementation details), ADR-028 (GovernedSpeed™ LLMOps) Related ADRs: ADR-030 (VibesPro™ Integration), ADR-012 (Delivery Pipeline) Related PRDs: PRD-010, PRD-004 Related SDSs: SDS-047 (Unified Governance Runtime), SDS-046, SDS-002 (GovernedSpeed™)


Context

SEA-Forge™ requires a “Continuous Governance” substrate to enforce policies at runtime and build time. We previously identified GovernedSpeed™ as the pillar for this (ADR-028), but we need to formally define how its specific architecture (Policy Gateway, Risk & Evidence Service, YAML policies) integrates with SEA™’s semantic core.

GovernedSpeed™ is an existing, functional “Operating System for Trustworthy AI” in the SEA™ root, featuring:

  1. Policy Gateway: Sidecar for runtime enforcement (FastAPI).
  2. Risk & Evidence Service: Tamper-proof logging (PostgreSQL/libSQL).
  3. Embedded Governance: YAML-based policy definitions (adr-006).

Decision

We formally adopt GovernedSpeed™ as the runtime governance implementation for SEA-Forge™, with the following architectural commitments:

1. Unified Policy Definition (SEA-DSL → GovernedSpeed™ YAML)

We will use SEA-DSL as the authoring language for governance policies, which will be compiled into GovernedSpeed™’s YAML format for execution.

2. Runtime Enforcement via Policy Gateway

The GovernedSpeed™ Policy Gateway (apps/policy-gateway) becomes the canonical implementation of the SEA™ Policy Gateway Service (SDS-047).

3. Evidence Ledger via Risk & Evidence Service

The GovernedSpeed™ Risk & Evidence Service (apps/risk-evidence-service) becomes the implementation of the SEA™ Risk & Evidence Service (SDS-047).

4. CI/CD Governance Gates

We adopt GovernedSpeed™’s CI scripts (pac_ci.py) as the enforcement mechanism for SEA™ CI Semantic Gates (SDS-020).

Rationale

  1. Separation of Concerns: SEA-DSL handles definition and semantics; GovernedSpeed™ handles enforcement and evidence.
  2. Proven Runtime: Policy Gateway is already an implemented FastAPI service with specific logic for LLM caching, filtering, and sidecar patterns.
  3. Audit Readiness: Risk & Evidence Service already implements tamper-evident hashing and immutable logs, a strict requirement for SEA™.
  4. Isomorphism: Using SEA-DSL as the source maintains the “Semantics as Source of Truth” principle, while compiling to YAML allows utilizing GovernedSpeed™’s existing, optimized runtime.

Constraints

MUST

SHOULD

Consequences

Positive

Negative

Implementation Plan

  1. Map SEA-DSL Policies to YAML: Create a compiler plugin in tools/sea-compiler.
  2. Integrate Gateway: Add apps/policy-gateway to SEA™’s just start-all.
  3. Connect Evidence: Configure SEA™ services to emit events to Risk & Evidence Service.