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.
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.
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.
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"| State | Meaning |
|---|---|
| active | Filed by an agent, unvalidated, applied as a lower-weight correction |
| promoted | Validated by a person, applied first |
| absorbed | Merged into the Domain Model by a rebuild |
| rejected | Noise, or retired; excluded from listings |