| 1 | Company-Provisioned Service Identities | src/registry.ts (AgentRegistry, isValidServiceAccount) | Rejects personal emails (@), root, personal-*, user-*, shared-admin, and superadmin; binds each agent to svc-agent-* and an explicit allowedTools allowlist. |
| 2 | Read / Propose / Write Separation | src/policy-engine.ts (PolicyEngine) | Enforces minimum AgencyLevel (L1–L5) and validates monetary ceilings, currencies, IBAN country prefixes, and vendor email domains in deterministic code. |
| 3 | Named Individual Approver Sign-Off | src/approval-gate.ts, src/slack-bot.ts (ApprovalGate, isIndividualHumanId) | Write tools require an idempotencyKey and pause on a ticket bound to (agentId, toolName, inputSha256, idempotencyKey), rejecting shared group aliases (team-*, finance-*, @here, @channel). |
| 4 | Central Registry, Budget Caps & Kill Switch | src/registry.ts, src/gateway.ts (reserveBudget, activateKillSwitch) | Reserves estimatedCostUsd pre-flight against budgetUsdCap (expiring uncompleted reservations after 10 minutes) and suspends active agent leases immediately on kill-switch trigger. |
| 5 | Fail-Closed “No Log, No Action” Ledger | src/audit-ledger.ts, db/migrations/001_audit_ledger.sql | Writes a SHA-256 hash-chained pre_execution record before calling executor(request). If persistence throws (AuditLedgerUnavailableError), downstream execution never runs. |