Developers · Quickstart

Your first governed investigation, in four steps.

Policy first, trigger second, investigation third, provenance always. This walkthrough wires an alert on a telemetry service to an agent that investigates it, and shows where the record of everything it did lives.

01 · POLICY

Define what the agent may touch

Everything starts from a policy, because in Sentinel capability is granted, never assumed. Grant read-only access to your observability tools and nothing else; anything outside the grant fails closed and is recorded.

Tool policy reference
01-policy.ts
const policy = await sentinel.policies.create({
  name:  "observability-readonly",
  tools: ["grafana", "kubernetes", "kafka"],
  caps:  ["query", "list"],
  audit: "every_call"
})
02 · TRIGGER

Wire an event source

Point your alerting at Sentinel. Alert-shaped, incident-shaped, and operator-dispatched events all work; each maps to an agent and a policy so nothing is improvised when the pager goes off.

Event model reference
02-trigger.ts
await sentinel.triggers.create({
  match:  { source: "alerts", service: "telemetry-ingest" },
  agent:  "incident-triage",
  policy: policy.id
})
03 · RUN

Dispatch a sample incident

You don't need a real outage to see it work. Dispatch a seeded scenario, elevated 5xx on the ingestion service after a deploy, and watch the agent gather evidence and post a cited report.

What the investigation does
03-run.ts
const run = await sentinel.events.dispatch({
  sample: "ingest-5xx-after-deploy"
})

await run.done()
→ report posted · 3 findings · 3 citations
04 · PROVENANCE

Read the record

Every run leaves a complete trail: the trigger, each tool call and output, each model exchange, the evidence, the report, and any human review. This is the part that makes the rest trustworthy.

Governance & provenance
GET /v1/runs/:id/ledger
47 entries · append-only complete
18 tool calls · with outputs recorded
14 evidence artifacts bound

Ready to run it against your own stack?

Request access and we'll help you wire the first trigger to your alerting and observability tools.