Repository navigation
Closed
4 / 44 of 4 issues completedClosed
4 / 44 of 4 issues completed
Copy link
Labels
enhancementNew feature or request
Description
Why
Cortex's cpex integration is pinned to CPEX 0.2.3. CPEX 0.3 moved to the PPE policy engine and changed its API, hooks and policy schema, so the plugin and the hr-cpex demo no longer match upstream.
cpex is also only available in the authbridge-cpex image. Developers running cortex locally to inspect coding-agent traffic must build from source to use cpex.
Sandboxes and domain allowlists can restrict which hosts an agent reaches while still allowing it to send secrets to an approved host. Cortex with cpex can inspect requests and apply policy to their contents. Add a demo that shows this.
Scope
Upgrade the cpex plugin to CPEX 0.3.1
- Move to the 0.3 API, hooks and policy schema.
- Verify the pinned FFI library (checksum and signature) and test the plugin against it in CI.
- Plugin additions: plain HTTP egress can be checked by policy, cortex can hold the principal so the agent never sees it, and tool calls and tool results are visible to policy.
- Forward credentials minted by
delegate(). This needed a CPEX change, which shipped in 0.3.1.
Refresh hr-cpex
- Port the policy to 0.3 and replace the removed PII and audit builtins.
- Add manager approval over CIBA, header assertions and workload delegation with SPIRE.
- Add a narrated walkthrough and a recorder.
Release a cpex build of cortex
- Build
cmd/cortexwith cpex (make cortex-cpex). - Publish
cortex-cpextarballs for darwin-arm64 and linux amd64/arm64. install.sh --cpexinstalls it; running the installer without the flag switches back.
Add a coding-agent demo (demos/coding-agent-cpex)
- A scripted agent runs in Claude Code's sandbox runtime, so its only network route is cortex.
- The demo policy blocks requests to unapproved hosts, reports containing secrets, reports targeting the wrong project, and subsequent requests from sessions that read
.env. It also blocks model responses that instruct the agent to leak the key. - Optional mode: cortex fetches the support credential from Vault only for requests policy allows, so the agent never holds it.
- Includes a guide for running it with real Claude Code, and a recorded walkthrough.
Value
- cpex users get the current CPEX release and engine.
- Laptop users can turn on policy enforcement with one installer flag.
- The demo makes a concrete case: a sandbox decides where an agent can connect, cortex with cpex decides what it can send.
Out of scope
- cpex in the default
cortexbinary or install. - darwin-amd64 (CPEX publishes no FFI for it).
- Inspecting traffic to hosts left as passthrough (GitHub, package registries).
- Enforcing tools that run outside the sandbox (Read, Edit, WebFetch, local MCP servers).
Sub-issues
Collapse Sub-issuesSub-issues
Loading 4 sub-issues
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Type
Projects
- StatusShow more project fieldsDone
Activity
araujof commentedon Oct 21, 2026
Completed.