# Enterprise Guardrails Compliance Matrix — Template

> **Version:** 1.0 | **Last Updated:** 2026-02-18  
> **Purpose:** Map every user story from Mob Elaboration to the EGS guardrails it must satisfy. Generated by the AI collaborator during Enterprise Mob Elaboration (Phase 4).  
> **Usage:** Copy this template into `aidlc-docs/mob-elaboration/guardrails_compliance_matrix.md`. The AI populates it during the session. The team validates.

---

## Session Info

| Field | Value |
|-------|-------|
| **Intent** | [Intent description] |
| **Date** | [YYYY-MM-DD] |
| **EGS Reference** | aidlc-docs/egs_definition.md |
| **Validated by** | [Team members who reviewed] |

---

## Story-to-Guardrail Mapping

| Story ID | Story Summary | EGS Categories Triggered | Key Guardrails | Severity | Notes |
|----------|--------------|--------------------------|----------------|----------|-------|
| [US-001] | [Brief description] | [e.g., 1.1, 1.3, 2.1] | [Specific guardrail text] | [Mandatory/Required/Recommended] | [Any context or flags] |
| [US-002] | [Brief description] | [e.g., 3.1, 4.5] | [Specific guardrail text] | [Severity] | [Notes] |

---

## Guardrail Coverage Summary

| EGS Category | Total Guardrails Applicable | Stories Mapped | Uncovered Guardrails |
|-------------|---------------------------|----------------|---------------------|
| 1. Security Baseline | [N] | [Story IDs] | [Any guardrails not addressed by any story] |
| 2. Compliance Constraints | [N] | [Story IDs] | [Uncovered] |
| 3. Architectural Guardrails | [N] | [Story IDs] | [Uncovered] |
| 4. Coding Standards | [N] | [Story IDs] | [Uncovered] |
| 5. Operational Readiness | [N] | [Story IDs] | [Uncovered] |
| 6. Cost Guardrails | [N] | [Story IDs] | [Uncovered] |
| 7. AI/GenAI Guardrails | [N] | [Story IDs] | [Uncovered] |
| 8. Reliability Guardrails | [N] | [Story IDs] | [Uncovered] |
| 9. Performance Efficiency Guardrails | [N] | [Story IDs] | [Uncovered] |
| 10. Sustainability Guardrails | [N] | [Story IDs] | [Uncovered] |

---

## Auto-Generated NFRs from EGS

> These NFRs were added by the AI based on EGS requirements triggered by the stories above.

| NFR ID | Requirement | Source Guardrail | Severity | Linked Stories |
|--------|-------------|-----------------|----------|----------------|
| [NFR-EGS-001] | [Requirement text] | [EGS section reference] | [Severity] | [Story IDs] |
| [NFR-EGS-002] | [Requirement text] | [EGS section reference] | [Severity] | [Story IDs] |

---

## Conflicts Detected

> Guardrail conflicts flagged during story generation. Each conflict must be resolved before proceeding to Mob Construction.

| Story ID | Conflict Description | EGS Guardrail | Proposed Resolution | Status |
|----------|---------------------|---------------|--------------------|---------| 
| [US-XXX] | [What conflicts] | [EGS reference] | [AI-proposed compliant alternative] | [Resolved / Open / ADR required] |

---

## Validation Sign-Off

| Role | Name | Approved | Date |
|------|------|----------|------|
| Product Owner | [Name] | [ ] | |
| Tech Lead / Architect | [Name] | [ ] | |
| Security / Compliance | [Name] | [ ] | |
