The Brain
Mendloop's long-term memory of past incidents, fixes and decisions, which owners can see, curate and ask questions of.
The Brain is what Mendloop has learned from past runs, decisions and merged pull requests, kept as typed facts an owner can see, edit and trust. Every investigation starts by recalling similar incidents from it. Open it from Brain in the app.
What it remembers#
| Kind | Example |
|---|---|
| Fix recipe | Keep the pending order in SavedStateHandle: merged in #644, #702 and #915, no incident on that path since. |
| Preference | Model screen state as a sealed UiState: set by an owner; a fix that adds another boolean flag gets changes requested. |
| Rejected | Only ?.let without an error state hides the bug: a review that asked for a different approach. |
| Pattern | Process death drops the pending order: 3 of 5 incidents on one file in 30 days share this cause. |
| Ownership | payments owns checkout and the gateway client: from CODEOWNERS. |
| Environment Planned | Beta needs Basic Auth and a TOTP code to log in. The kind exists but stays empty until environments ship. |
| Release | android 5.42.0 raised the checkout crash rate 3.1×. |
| Flaky test | test_refund_partial depends on the wall clock. |
Behind these, the Brain keeps one memory per incident, per file a root cause or fix touched, per fix plan and per approval decision, and the links between them.
What it never remembers#
Raw CRM data, credentials or tokens (an environment memory records that a login needs a code, never the code), or anything that skipped redaction: every piece of text that reaches a memory, or a model while answering, is scrubbed first.
A memory is also not proof. It is a claim with a confidence and a source, shown for an owner to accept or reject, never applied to a fix on its own.
Where memories come from#
- Runs: a finished root cause and fix plan.
- Decisions: every approval or rejection.
- Merged pull requests: a merged fix becomes a fix recipe ("this fix merged 3×"), and review comments that asked for a different approach become a rejected memory.
- CODEOWNERS: a sync reads the file into ownership memories.
Every memory keeps where it came from (a run, a pull request number, a person or a sync) and a confidence from 0 to 1.
Proposed and stale#
- Proposed is a suggestion nobody has acted on. It waits in the Proposed tab for approve or reject, and is never used to answer a question or applied to a fix.
- Stale means the code it was anchored to moved. After a push, affected memories are marked stale and a
limited number are re-checked against the new code with one
fast-tier call each: kept, updated with a new anchor, or archived. When nothing is sure, or no model is configured, the memory stays stale for a person to look at.
Curating#
From the memory list or a file's card: edit a memory's text, pin one so it outranks unpinned memories of the same kind, approve a proposed memory, reject one, and export the organization's memories as Markdown, grouped by kind. Your curation always wins: a memory you approved, rejected or pinned keeps its state when the same suggestion comes through again. Every curation action is audit logged and checked against your permissions.
Asking the Brain#
Asking is something you do, never automatic, and never on a page load. One question costs at most one embedding
call, one database query and one balanced-tier model call, capped at 800 tokens or $0.08, whichever your budget
makes stricter. The cost doesn't grow with how much the organization has stored.
Every sentence of an answer carries the memory numbers it rests on, and citations are checked the way a root cause's are: a claim whose source doesn't resolve is dropped, and an answer with no surviving citation is never shown. With no model configured, or a spent budget, you get the matching memories instead, best first, with a note saying why there's no prose.
You can rate an answer Helpful or Not right; the rating is kept in the audit log. The same questions are available from your editor through the MCP server.
On a fresh install the Brain is empty until something has run. The demo workspace fills it in test mode; see Demo workspace.