What this page covers
This guide explains how to add Sector8 to a containerized coding-agent deployment that does not speak MCP natively. The supported path is the SDK adapter plusPOST /api/v1/evaluate.
Container pattern
Add Sector8 to the approved Codex CLI base image once:Required environment variables
Wrapper pattern
Replace direct tool dispatch with the Sector8 adapter:adapter.execute(...) before local dispatch.
Response schema
The evaluation endpoint returns:reason_code is populated and has_forensic_payload is true.
Example - blocked call
Example - allowed call
What developers see
Allowed calls execute locally after anALLOW decision. Denied calls do not execute. The
developer receives a denial with reason_code, evidence_hash, decision_trace_id, and
policy_version_id.
Observability
The same decision path powers Stage 2 observability. Each call can be tied to:- caller identity
- session identity
- decision outcome
- reason code
- evidence hash
- policy version
- decision trace ID
