Instrument your agent

This guide merged into the quickstart.

Through protocol v0.6, instrumenting your own agent meant mapping your framework's hooks to observation altitudes, constructing GuardEvents field by field, and wiring an SDK. Since v0.8 none of that exists: there is one endpoint and one recipe, and instrumenting your own agent is the minimal integration —

  1. mint a step_id per model call;
  2. POST /v1/evaluate the raw request body (step/request) before calling the model;
  3. POST /v1/evaluate the raw response body (step/response) after the model answers and before acting on it;
  4. enforce the verdict: block stops the step, modifications.spans are applied in place, no answer means your configured fail mode (default: open).

The quickstart has the complete runnable example — the identity four-tuple, fail-open, streaming with a held-back tail, and the heartbeat.