Skip to content

Adr rule context builder define 2026 04 22

Decision

Define and implement the Rule Context Builder component to automate governance rule loading, conflict detection, and context injection.

Relationships

Context

  • Source: alignment-report-ideas-to-life-cas-2026-04-22-01.md
  • Finding: ALIGN-001 (critical severity)
  • Violated Rules: rule-decisions-must-be-persisted, rule-adr-single-source-of-truth

Problem

AEM roadmap item "Rule Context Builder implementation" was marked as NEXT without an associated ADR, violating governance rules that require all decisions to be persisted as structured decision records.

Rationale

The Rule Context Builder is required to: 1. Automate the manual rule context injection currently in place 2. Ensure deterministic governance application across all prompt executions 3. Close the gap between AID intent (automated governance flow) and implementation (manual process) 4. Enable CAS transition from prompt-driven to system-driven governance

Next Step

  • Implement Rule Context Builder as automated component
  • Integrate with prompt execution harness
  • Remove manual rule context injection workflow

Traceability

Artefact ID
Alignment Report alignment-report-ideas-to-life-cas-2026-04-22-01
Alignment Finding ALIGN-001
Architecture Work aw-alignment-001