DebuggingOverview

Debugging

When an intent does something unexpected — no rules matched, a branch took the wrong path, state did not update, or an event never appeared — you need more than logs. Causet records a forensics trail for every intent so you can inspect, fork, replay, and repair.

Practical path after a retrofit failure:

  1. Inspect the timeline
  2. Walk a failed workflow
  3. Fork → replay → repair projection / notify again

In this section

PageWhat it covers
TimelineInspect event history and rule steps
Ledger EventsWhat committed — patches, emits, intent status
Entity InspectorBrowse entities, replay scrubber, diff, rebuild
ReplaySimulate failure, fork, replay, repair
Forensics CLIcauset forensics — drift check and per-decision repair

Three views of the same execution

ViewQuestion it answers
TimelineHow did rules evaluate?
Ledger eventsWhat changed at commit time?
Intent statusDid it succeed? Committed, rejected, or failed

All three share intent ID. For a given entity, committed routes and ledger entries also share cursor.


Typical workflow

  1. Find the intent or entity — Entities list, Decision Timeline, or intent ID.
  2. Check outcome — committed, rejected, or failed?
  3. Read the decision route — which rule blocks ran?
  4. Verify the ledger commit — patch and emits as expected?
  5. Inspect state — live snapshot or replay at cursor.

Control plane tools

ToolNav locationPurpose
Decision TimelineOperate → Decision LogsIntent/rule timeline, forensics, replay & branch
Entity InspectorOperate → EntitiesSnapshots, scrubber, diff, rebuild
RunsOperate → RunsCross-intent execution monitoring (links to both above)

Filter by stream, entity, fork, intent type, and cursor or time range.


Decision routes vs AI Decisions

TermMeaning
Decision routesRuntime forensics for all rule steps
AI DecisionsProduct DSL LLM calls (op: decision)

AI calls appear as one step in the decision route. Authoring: AI. Reading the trace: Timeline.


See also