TCB_POLICY
HELM TCB Policy
Canonical architecture: see ARCHITECTURE.md §2 for the normative trust boundary model.
Trusted Computing Base Principles
-
Minimal Surface: Only code that directly handles tool execution authorization, cryptographic signing, and policy enforcement lives in the TCB.
-
Fail-Closed: All PEP (Policy Enforcement Point) boundaries default to deny. Unknown tools, unvalidated args, drifted outputs are all blocked.
-
Deterministic: All canonicalization uses RFC 8785 JCS. All hashes are SHA-256. All signing uses Ed25519. No randomness in the decision path.
-
Auditable: Every action produces a ProofGraph node with Lamport-clock ordering. Evidence packs can be exported and independently verified.
TCB Package Inventory
The TCB is bounded to the following 8 packages. CI enforces forbidden-import gates — no code outside the TCB may be imported into a TCB package.
| Package | Responsibility |
|---|---|
contracts |
Canonical data structures: Decision, Effect, Receipt, Intent, Verdict |
crypto |
Ed25519 signing, JCS canonicalization, HSM bridge, audit log |
guardian |
Policy Enforcement Point (PEP), temporal constraints, compliance pre-check |
executor |
SafeExecutor — gated execution, idempotency, output drift detection |
proofgraph |
Append-only DAG, AIGP anchors |
trust |
Event-sourced key registry, TUF, Rekor, SLSA verification |
runtime/sandbox |
WASI isolation: gas, time, memory caps, deterministic traps |
receipts |
Receipt policy enforcement (fail-closed) |
TCB Boundaries
┌──────────────────────┐
Untrusted │ TCB Boundary │ Trusted
│ │
LLM Output ────► │ PEP: Tool Args │
│ Validation + │──── Guardian PRG
Connector ◄─── │ Output Drift │
Response │ Detection │──── SafeExecutor
│ │
Human Input ────►│ Ceremony │──── Crypto Signer
│ Validation │
└──────────────────────┘
Adding Code to TCB
Any code addition to TCB packages requires:
- Deterministic behavior (no goroutines, no time-dependent logic in decision path)
- Test coverage > 80%
- No external network calls
- No dynamic loading (no plugins, no reflection-based dispatch)
- No reflection
- Reviewed via
helm verify packevidence export - Maintainer review with explicit TCB-expansion justification