|
| 1 | +# Branch Strategy — authgate-kernel |
| 2 | + |
| 3 | +``` |
| 4 | +main |
| 5 | + ├── spec-core research — TLA+ formal spec, Lean4 proofs, threat model |
| 6 | + ├── tcb-core production — minimal Rust TCB, hardening, size gate |
| 7 | + ├── adversarial-lab research — attack harness, fuzzing, simulation engine |
| 8 | + └── integration production — Python adapters, MCP gate, LangGraph bindings |
| 9 | +``` |
| 10 | + |
| 11 | +## Rules |
| 12 | + |
| 13 | +| Branch | Merges into | Who reviews | |
| 14 | +|---|---|---| |
| 15 | +| `spec-core` | `main` (when TLC-verified or Lean-discharged) | formal verification track | |
| 16 | +| `tcb-core` | `main` (when CI passes + attack regression green) | production track | |
| 17 | +| `adversarial-lab` | `adversarial-lab` only; attacks inform `spec-core` and `tcb-core` | research track | |
| 18 | +| `integration` | `main` (when TCB contract is satisfied) | adapter track | |
| 19 | + |
| 20 | +## Invariant: spec-core drives tcb-core |
| 21 | + |
| 22 | +A change to `tcb-core` that violates a stated invariant in `spec-core/formal/authgate_v3.tla` |
| 23 | +or `spec-core/formal/THREAT_MODEL.md` must not merge to `main`. |
| 24 | + |
| 25 | +The Python mirror in `integration` is a **test oracle only** — not a TCB component. |
| 26 | + |
| 27 | +## Current status (2026-05-28) |
| 28 | + |
| 29 | +- `main`: v2 TCB complete, AT-5.1 + AT-3.1 closed (commit bf23248) |
| 30 | +- `spec-core`: authgate_v3.tla + THREAT_MODEL.md added (commit 965ac3f) |
| 31 | +- `tcb-core`: branched from main — LOC gate and TCB constraint file pending |
| 32 | +- `adversarial-lab`: branched from main — simulation engine skeleton pending |
| 33 | +- `integration`: branched from main — Python mirror separation pending |
| 34 | + |
| 35 | +## Open gaps (as of main @ bf23248) |
| 36 | + |
| 37 | +| Gap | Branch responsible | Priority | |
| 38 | +|---|---|---| |
| 39 | +| AT-7.5 shadow execution | tcb-core (call gate) + integration (adapter contract) | high | |
| 40 | +| TLC model-check instance | spec-core | medium | |
| 41 | +| TLAPS proofs for I1–I7 | spec-core | medium | |
| 42 | +| Adversarial simulation engine | adversarial-lab | medium | |
| 43 | +| LOC gate for TCB (≤ 800 LOC) | tcb-core | low | |
0 commit comments