Repository navigation
Closed
Labels
laptopThe local (laptop) tool: install, abctl, the numbers
Description
Parent: #1785. Part 4 of 5. Depends on #1797, #1798 and #1799. Run it with /sdd-fast <this issue>.
Goal
Document PPE policy in praxis mode, and deprecate the laptop CPEX build. Kubernetes is not affected. The Go plugin, the authbridge-cpex image and go-ci-cpex stay.
Facts (spikes, 2026-11-11)
- Policy files are plain PPE. The constructs in
core/plugins/cpex/testdata/hr-cpex/cpex-policy.yamland in the examples indocs/cpex-plugin.mdexist in PPE 0.6.0. In a load check against 0.6.0, thehr-cpexfile failed only withmissing field store. CHANGELOG 0.6.0 says "Breaking: CIBA config requiresstore". Withstore: { kind: memory }added, the file loads. Both doc examples load as written. - Other policy-file changes from 0.5 to 0.6:
ConversationContext.historyis nowVec<Message>, in CMF shape.&and|behave differently when an operand cannot be ordered. Newllm.input.*,llm.model.*andllm.output.*facts. The oldllm.model_idkeys stay as aliases. - The gateway builds only
policy-jwtandpolicy-cel(PPE 1/5: Build PPE into cortex-gateway and add praxis.policy.config_path #1797). Cedar, OPA, OAuth delegation, CIBA, Vault and Valkey are not built. Thehr-cpexpolicy needs Cedar, OAuth and CIBA. - Identity: an
identity/jwtplugin reads the header that itsheader:names. On a laptop,Authorizationcarries the agent's provider key, so a user JWT must use another header, for exampleX-Agent-Token. PPE does not remove that header, so the origin receives it. A loopback JWKS needsallow_private_idp: true, which PPE 1/5: Build PPE into cortex-gateway and add praxis.policy.config_path #1797 does not expose. The JWT plugin needscapabilities: [perform_http]for a JWKS URL. cel:steps needglobal: { pdp: [{ kind: cel }] }.- A conditional taint that does not block is possible with
when: "<attribute predicate>"anddo: ["taint(<label>, session)"]. It needs a resolved subject and anX-Session-Idheader.on_allowon a CEL step is not a replacement, because a false CEL step denies. - Known gaps:
- no A2A policy;
- a streamed (SSE) inference response skips the response-phase policy (
policy/filter.rs:1703-1714). A request-phase"custom.llm.stream == true: deny(...)"is the workaround; - taints are held in memory, and they are lost at each gateway restart and each policy reload;
- WebSocket upgrades do not go through the gateway (
cmd/cortex/praxis.go:21-36), so no policy runs on them; - the Cortex-only CPEX options are not available:
observe_codes,principal.token_file,workload,bypass_hosts,bypass_paths,strict_hosts,synthetic_egress,delegated_credential_hosts,session_source,fallback_identification,hooks,fail_open.
- The laptop CPEX build is installed with
install.sh --cpex(scripts/install.sh:181, 219-229, 415-433).agentop updateanddoctorkeep it (cmd/agentop/cmd_update.go:122,cmd_doctor_checks.go:88,setup_step_binaries.go:172). A cpex build printscortex (cpex) <ver>(cmd/cortex/variant_cpex.go).
Requirements
- A new page
docs/praxis-policy.md, linked fromdocs/README.md,docs/laptop-service.mdand the praxis section ofpraxis/README.md. It has these sections:- how to turn it on:
agentop setup --praxis, thenpraxis.policy.config_pathinconfig.yaml, then a restart; - the built PPE features, and the features that are not built;
- where
policyruns in the chain; - how to record decisions: the
cortex/recorderplugins:line from PPE 3/5: Record PPE policy decisions in the gateway's rows #1799; - examples that a test loads (requirement 4): a model allow list, an MCP tool deny, a JWT identity in
X-Agent-Token, awhen/dotaint, a stream deny; - the deny responses: 401, 403, MCP HTTP 200 with JSON-RPC -32001, 500 for missing MCP metadata, and
X-Policy-Violation; - the known gaps listed above;
- policy-file edits reload without a restart.
- how to turn it on:
- A migration section, from the Go
cpexplugin topraxis.policy:- move the CPEX policy YAML to a file;
- apply the 0.5 → 0.6 changes (CIBA
store, and the others above); - remove the
cpexplugin entry frompipeline.outbound; - a table of the CPEX plugin options with no equivalent.
- Deprecation:
docs/cpex-plugin.md: a banner at the top. The laptop use is deprecated, with a link to the new page. Kubernetes use is not deprecated.scripts/install.sh --cpex: print one deprecation line to stderr that names--praxisand the new page. Install as before.cmd/cortex: when thecpexplugin is inpipeline.outboundand the config is a local install, log one Warn line at start with the same text. Use the existing local-install check incore/config/session_archive.go(ArchiveRunsOnLocalInstall), or the check that it uses. Do not log the line in a sidecar.cmd/README.mdandREADME.md: mark the laptop cpex build as deprecated.
- Add a test that loads each YAML example in
docs/praxis-policy.mdinto the PPE 0.6.0 engine with the gateway's features, so that the docs cannot drift. Use the pattern ofcore/plugins/cpex/doc_examples_test.go, but in Rust underpraxis/.
Plan
Task 1: the docs page and the migration section (no dependency).
- Files:
docs/praxis-policy.md,docs/README.md,docs/laptop-service.md,praxis/README.md.
Task 2: the doc examples test (needs Task 1).
- Files: a new test in
praxis/filtersorpraxis/serverthat extracts the fencedyamlblocks marked as policy examples fromdocs/praxis-policy.mdand loads each one. Fail when there are no blocks.
Task 3: the deprecation lines (no dependency).
- Files:
docs/cpex-plugin.md,scripts/install.sh,cmd/cortex(the start-up path that builds the outbound plugins),cmd/README.md,README.md. - Tests:
- a Go test that the Warn line is logged for a local-install config with
cpex, and is not logged for a sidecar config; - a case in
scripts/install_test.shthat--cpexprints the line.
- a Go test that the Warn line is logged for a local-install config with
Order: Task 1 and Task 3 in parallel, then Task 2. One PR, stacked on #1799.
Done when
- The requirements hold and the tests above pass.
pre-commit run --all-filespasses.- The docs have no broken links.
Not in scope
- Removing anything (PPE 5/5: Remove the laptop CPEX build after the deprecation window #1801).
- Building Cedar, OPA, OAuth or CIBA into the gateway.
For a human after review
- Tell the CPEX contributor (Frederico Araujo,
araujof) about the deprecation. They wroteobserve_codes, the principaltoken_fileand synthetic egress in Breaking change: Upgrade the cpex plugin to CPEX 0.3.1 #1429. - Add a line to the release notes of the release that ships this PR.
Metadata
Metadata
Assignees
Labels
laptopThe local (laptop) tool: install, abctl, the numbers
Type
Projects
- StatusShow more project fieldsDone
Activity
docs: Add the plan for the praxis policy docs and the cpex deprecation (
docs: Fix the praxis docs plan's API names, gate and coverage (#1800)
docs: Add the praxis policy page and its migration section (#1800)
feat: Deprecate the laptop cpex build and name praxis policy instead (#…
test: Load every documented praxis policy example (#1800)
docs: Plan the removal of the laptop cpex build (rossoctl#1801)