Concepts · Learnings and context gaps

Learnings and context gap reporting

For teams that want agents to feed corrections back, and people who review them.

Updated

A learning is a correction or new fact an agent files with create_learning; it moves from active to promoted to absorbed into the Brain. A context gap is different: it reports what the Brain failed to serve (missing, irrelevant, stale or conflicting) and goes to a human review queue.

  • Agents can retire only active learnings.
  • Gaps are never served to agents and never absorbed.
  • Filing a gap needs a write-scoped key.

Learnings

A learning is a correction or new fact about the business. An agent files one with create_learning, and list_learnings reads them back. A learning starts active and is applied at query time as a correction. A human can promote it, which applies it first. A later rebuild absorbs it into the Domain Model, after which it is no longer a patch. A wrong learning is retired with retire_learning, or replaced by a new one that supersedes it. Agents can only retire active learnings; promoted ones were curated by a person, so retiring them stays human.

Where learnings come from

Agents write them on purpose. process_event and wiki synthesis also write them automatically when an observation is high-confidence; re-observations merge instead of duplicating, and automatic ones are marked in list_learnings.

Context gap reporting

A learning is a claim about the business. A context gap is a claim about what the Brain served: an agent searched and found nothing (missing), got off-target results (irrelevant), an out-of-date answer (stale), or contradictory sources (conflicting). The agent calls report_context_gap, and the report goes to a review queue for people. Similar reports are deduplicated and counted. Gaps are never served to other agents and never absorbed into the Brain, so unreviewed noise does not reach anyone's context. A suggestedFix is text for the reviewer; nothing applies it. Filing a gap needs a write-scoped key.

report_context_gap: need "refund window for annual plans", kind "missing"
Learning states
StateMeaning
activeFiled by an agent, unvalidated, applied as a lower-weight correction
promotedValidated by a person, applied first
absorbedMerged into the Domain Model by a rebuild
rejectedNoise, or retired; excluded from listings

FAQ

What is the difference between a learning and a context gap?
A learning is a claim about the business. A context gap is a claim about what the Brain served.
Who approves a learning?
A person promotes it. A later rebuild absorbs it into the Domain Model.
Does a suggested fix apply itself?
No. suggestedFix is text for the reviewer.

Give your agents a brain.

Sign in and ask your first question.

Book a Demo