|
| 1 | +--- |
| 2 | +inclusion: auto |
| 3 | +--- |
| 4 | + |
| 5 | +# Governance Gates |
| 6 | + |
| 7 | +Every initiative passes through seven gates. No gate passes on confidence — only on evidence. |
| 8 | + |
| 9 | +## The Gates |
| 10 | + |
| 11 | +| Gate | Question | Who Decides | |
| 12 | +|------|----------|-------------| |
| 13 | +| **G0** | Is this worth exploring? | Harper + Aegis | |
| 14 | +| **G1** | Are the requirements and evidence strong enough? | Aegis + B-Team | |
| 15 | +| **G2/G3** | Is the design/architecture ready? | Winston + Sentinel + Aegis | |
| 16 | +| **G4** | Build and verify. | Tessa + Sentinel + Aegis | |
| 17 | +| **G5** | Release readiness. | Full team | |
| 18 | +| **G6** | Post-release review. | Aegis + Sable + Quill | |
| 19 | + |
| 20 | +--- |
| 21 | + |
| 22 | +## G0 — Is This Worth Exploring? |
| 23 | + |
| 24 | +**Purpose:** Confirm the work is real, bounded, and worth doing. |
| 25 | + |
| 26 | +**Must include:** |
| 27 | +- Problem statement (what breaks or is missing without this?) |
| 28 | +- Adoption evidence (which agent sessions, audit findings, or user reports justify it?) |
| 29 | +- Risk classification (does it touch the interpreter, the store, the canonical form, or the public API?) |
| 30 | +- Scope boundaries (what's in, what's out) |
| 31 | +- Stakeholders identified |
| 32 | + |
| 33 | +**Passes when:** The problem is worth solving, the scope is honest, and the evidence is real. |
| 34 | + |
| 35 | +**Template:** Create `.kiro/specs/{ID}/G0_PROBLEM_STATEMENT.md` |
| 36 | + |
| 37 | +--- |
| 38 | + |
| 39 | +## G1 — Are the Requirements and Evidence Strong Enough? |
| 40 | + |
| 41 | +**Purpose:** Ensure we're building from evidence, not assumptions. |
| 42 | + |
| 43 | +**Must include:** |
| 44 | +- Evidence-backed requirements with acceptance criteria |
| 45 | +- NFRs (Non-Functional Requirements) with measurable targets |
| 46 | +- Open assumptions documented |
| 47 | +- B-Team adversarial review completed |
| 48 | +- Sable threat model (if the change touches the interpreter, store, or canonical form) |
| 49 | + |
| 50 | +**Passes when:** Requirements are testable, traceable, and survived adversarial review. |
| 51 | + |
| 52 | +**Template:** Create `.kiro/specs/{ID}/G1_REQUIREMENTS.md` |
| 53 | + |
| 54 | +--- |
| 55 | + |
| 56 | +## G2/G3 — Is the Design/Architecture Ready? |
| 57 | + |
| 58 | +**Purpose:** Prevent unsafe or unworkable design from reaching implementation. |
| 59 | + |
| 60 | +**Must include:** |
| 61 | +- Architecture overview with module boundaries |
| 62 | +- ADRs for significant decisions (with alternatives considered) |
| 63 | +- Threat model (if surface area changes) |
| 64 | +- Test strategy |
| 65 | +- Decomposed tasks with acceptance criteria |
| 66 | +- B-Team review of architecture |
| 67 | + |
| 68 | +**Passes when:** The design is implementable, secure, testable, and the team knows what to build. |
| 69 | + |
| 70 | +**Template:** Create `.kiro/specs/{ID}/design.md` |
| 71 | + |
| 72 | +--- |
| 73 | + |
| 74 | +## G4 — Build and Verify |
| 75 | + |
| 76 | +**Purpose:** Prove the implementation is correct before discussing release. |
| 77 | + |
| 78 | +**Must include:** |
| 79 | +- Code complete against task acceptance criteria |
| 80 | +- **100% test coverage on all new code** (no exceptions without Aegis-approved exception ticket) |
| 81 | +- All existing tests still pass (no regressions) |
| 82 | +- Security review passed (Sentinel sign-off) |
| 83 | +- Conformance verified (Python and Rust runtimes agree on all new behavior) |
| 84 | +- `dispatch-check` exits 0 |
| 85 | + |
| 86 | +**Passes when:** The code works, is proven to work, and the proof is documented. |
| 87 | + |
| 88 | +**Template:** Create `.kiro/specs/{ID}/G4_VERIFICATION.md` |
| 89 | + |
| 90 | +--- |
| 91 | + |
| 92 | +## G5 — Release Readiness |
| 93 | + |
| 94 | +**Purpose:** Prove the change can be shipped safely. |
| 95 | + |
| 96 | +**Must include:** |
| 97 | +- Release notes (Quill readout) |
| 98 | +- Rollback plan (what breaks if we revert, how to revert) |
| 99 | +- Capability manifest updated if the public surface changed |
| 100 | +- publicsite updated if agent-facing docs changed |
| 101 | +- Sable post-audit completed |
| 102 | +- Glyph dispatch filed |
| 103 | +- `dispatch-check` exits 0 |
| 104 | + |
| 105 | +**Passes when:** The change is safe to put in front of agents and users. |
| 106 | + |
| 107 | +**Template:** Create `.kiro/specs/{ID}/G5_RELEASE_READINESS.md` |
| 108 | + |
| 109 | +--- |
| 110 | + |
| 111 | +## G6 — Post-Release Review |
| 112 | + |
| 113 | +**Purpose:** Close the loop. Learn from reality. |
| 114 | + |
| 115 | +**Must include:** |
| 116 | +- Adoption observations (did agents use it? did it reduce friction?) |
| 117 | +- Any new failure modes discovered |
| 118 | +- Follow-up actions identified |
| 119 | +- Roadmap input (does this change the v2.0 or v3.0 priorities?) |
| 120 | + |
| 121 | +**Passes when:** We've learned from the release and captured it for the next one. |
| 122 | + |
| 123 | +**Template:** Create `.kiro/specs/{ID}/G6_RETROSPECTIVE.md` |
| 124 | + |
| 125 | +--- |
| 126 | + |
| 127 | +## Principles |
| 128 | + |
| 129 | +1. **Adoption evidence outranks intuition.** If no agent session produced evidence for it, it doesn't ship. |
| 130 | +2. **Evidence, not confidence.** "We think it's fine" is not a gate pass. |
| 131 | +3. **B-Team reviews every gate.** Different AI, different perspectives, different blind spots. |
| 132 | +4. **No single persona self-approves.** Separation of duties is non-negotiable. |
| 133 | +5. **Conformance is mandatory.** Python and Rust runtimes must agree. Divergence is a P0. |
| 134 | +6. **Dispatch discipline.** Every gate files a paired Quill + Glyph dispatch. No gaps. |
| 135 | +7. **Kill early, kill cheap.** The answer to a bad idea is G0 rejection, not G5 failure. |
| 136 | + |
| 137 | +--- |
| 138 | + |
| 139 | +## Fast-Track Rules |
| 140 | + |
| 141 | +Small changes (< 1 day effort, no new language surface, no interpreter changes) may be fast-tracked: |
| 142 | +- Combined G0/G1 document |
| 143 | +- Skip standalone G2/G3 if architecture is already established |
| 144 | +- Still requires G4 evidence (tests pass, no regressions) |
| 145 | +- Aegis must explicitly approve fast-track |
| 146 | + |
| 147 | +--- |
| 148 | + |
| 149 | +## Codifide-Specific Risk Classification |
| 150 | + |
| 151 | +| Change type | Risk | Required reviews | |
| 152 | +|-------------|------|-----------------| |
| 153 | +| Interpreter semantics | HIGH | Sable audit + B-Team + conformance tests | |
| 154 | +| Parser changes | HIGH | Sable audit + B-Team + fuzz regression | |
| 155 | +| Canonical form / CBOR | HIGH | Sable audit + byte-level conformance | |
| 156 | +| Symbol store | MEDIUM | Sable audit + GC regression | |
| 157 | +| CLI / surface commands | MEDIUM | B-Team | |
| 158 | +| Docs / capability manifest | LOW | Quill + Glyph dispatch | |
| 159 | +| Steering / governance files | LOW | Aegis sign-off | |
0 commit comments