Guide · Decision records

Decision records and incident postmortems as agent context

For engineering and operations teams that write down why, and want agents to read it.

Updated

Decision records and incident postmortems explain why things are the way they are, which an agent cannot infer from code or schema. Record each as an Intelligence Trace with process_event, tagged with the entities it concerns and linked to its source, and agents can recall what was decided or what went wrong about any entity, thread or team.

  • A trace stores the interpretation of the document, with a pointer to the original, not a copy of it.
  • Link a follow-up decision to the earlier one with continuesTraceId; traces are never edited.
  • Keep the full text in your docs and sync it if you also want the document itself searchable.

Record the decision as a trace

Call process_event with the document text, an eventType of document or other, the participants, and a source pointer to where the original lives. Use a threadId for a series, such as every decision about one service. Set source.externalId so a retry does not duplicate the trace.

{
  "text": "ADR-014: Move billing reads to the replica. Context: ...",
  "eventType": "document",
  "participants": ["platform-team"],
  "source": { "type": "document", "uri": "docs/adr/014-billing-replica.md", "externalId": "adr-014" },
  "threadId": "adr-billing"
}

When a later record supersedes or extends an earlier one, pass continuesTraceId. The trace is never edited; the chain is the history. Strong learningCandidates in the result can be saved with create_learning.

Ask for it by entity, thread or time

recall_traces takes an entity, a thread id, a team and a time range, and returns each trace with a short excerpt. get_trace returns the full narrative.

Use brain-recall: what decisions have we made about the billing service, newest first?
Where a decision record can live
Trace (process_event)Wiki page (sync)
What is storedThe interpretation, tagged with entities, plus a pointer to the sourceThe document verbatim
Best forAsking what was decided or what happened about an entityReading or searching the full text
ChangesImmutable; a follow-up is a new traceA re-sync stores a new version

FAQ

Does BrainBox store the full postmortem?
A trace stores the interpretation and a pointer back to the source. To keep the document text searchable, sync the file too and it is stored verbatim as a wiki page.
How do I find all decisions about one service or customer?
recall_traces filters by entity, thread, team and time range.
How do I avoid duplicate traces on retries?
Set source.externalId on every call so a retry does not create a second trace.
Can I process text I already summarised?
Yes. Pass interpret: false to store it verbatim with no model call.

Give your agents a brain.

Sign in and ask your first question.

Book a Demo