Covenant — the governed connection layer (runtime + premium console) - #1
Conversation
…sole) Implements the full Covenant Protocol: a single governed call that discovers, authorizes, executes, proves, and learns. Runtime (src/lib/covenant): - Real Ed25519 signing/verification + SHA-256 hash-chained evidence ledger - 9-phase pipeline (identity, policy, safety, cost, approval, execution, evidence, audit, response) with full per-phase decision trace - Safety layer: behavioral baselines, statistical anomaly detection, quarantine, M-of-N approval quorum - Intelligence layer: cost attribution/budgets + fused risk scoring - Governance layer: three-tier policy composition, conflict resolution, effective-permission calculation, delegation Frontend: dark, motion-driven instrument panel — live console with real-time 9-phase trace, capability registry, agents trust/risk, hash-chained evidence ledger with replay, governance composition, safety quorum. Fully typed, no `any`. Lint, typecheck, and production build pass. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Free Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Covenant — the governed connection layer
MCP asks what an agent can do. APIs do it. Neither makes the call itself accountable. Covenant fuses both into one governed call that discovers, authorizes, executes, proves, and learns — and seals a cryptographic proof every time.
This PR is the full implementation: a real, fully-typed TypeScript runtime + a premium, motion-driven console. No mocks, no
any.Runtime (
src/lib/covenant)crypto.tsruntime.tssafety.tsintelligence.tsgovernance.tsPipeline short-circuits (verified end-to-end)
Frontend
A dark instrument panel, not a CRUD admin. Live Console (build → sign → watch all 9 phases decide in real time, expandable reasoning, override toggles), Registry (live discovery), Agents (trust + risk), Ledger (hash chain + replay), Governance (composition + live effective-permissions probe), Safety (anomaly feed + quarantine quorum).
Naming
mcpapi→ Covenant. A covenant is a binding, verifiable agreement — exactly what each call becomes. Centralized insrc/lib/covenant/brand.ts; renaming is a one-line change.Checks
npm run lint,npx tsc --noEmit, andnpm run buildall pass.Screenshots / screen recording of the live pipeline added in a follow-up comment.