Skip to main content

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 plus POST /api/v1/evaluate.

Container pattern

Add Sector8 to the approved Codex CLI base image once:
Do not bake secrets into the image. Inject them at runtime.

Required environment variables

Wrapper pattern

Replace direct tool dispatch with the Sector8 adapter:
Then route every tool call through adapter.execute(...) before local dispatch.

Response schema

The evaluation endpoint returns:
On deny, reason_code is populated and has_forensic_payload is true.

Example - blocked call

Example - allowed call

What developers see

Allowed calls execute locally after an ALLOW 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
That is what makes the control auditable rather than advisory.

Honest scope

This path governs tool calls that route through the adapter. It does not govern inline completions or chat content that never becomes a governed tool call.