Operational Disciplines
Goal
Five non-negotiable rules that separate a production brain from a demo — signal detection, brain-first lookup, sync after every write, daily heartbeat, and nightly dream cycle.What the User Gets
Without this: the agent misses signals in conversation, wastes money on external APIs when the brain already has the answer, leaves search results stale after writes, and lets the brain rot quietly. With this: every message is scanned for entities, the brain is always consulted first, search is always current, health is monitored daily, and the brain compounds overnight.Implementation
Tricky Spots
- The dream cycle is the most important discipline. Brains compound overnight. Entity sweeps fix broken graphs, citation audits catch sourceless facts, and memory consolidation keeps compiled truth current. Skip the dream cycle and the brain slowly rots.
- Skipping Discipline 3 (sync after write) means stale search results. You write a page, then immediately search for it — and get nothing back. The page exists but isn’t indexed. Always sync after writes.
- Signal detection must fire on EVERY message. Not just messages that look important. The user says “I talked to Pedro yesterday about the board seat” in passing — that’s a timeline entry on Pedro’s page, a potential update to his State section, and a signal about the board. If the agent doesn’t catch it, the system is broken.
- Brain-first saves money AND gives better answers. The brain has context that external APIs don’t: relationship history, meeting notes, the user’s own assessment. An API lookup for “Pedro Franceschi” returns a LinkedIn profile. The brain returns the full picture including private context.
modusbrain doctorcatches silent failures. Embedding pipelines can stall, sync can fail silently, database connections can drop. The daily heartbeat catches these before they compound into data loss.
How to Verify
- Send a message mentioning a person with a brain page. Confirm the agent detects the entity and adds a timeline entry to their page (
modusbrain get_timeline <slug>). - Ask the agent about someone in the brain. Confirm it runs
modusbrain searchormodusbrain getBEFORE reaching for external APIs (check the tool call order). - Write a new page with
modusbrain put, then immediately runmodusbrain searchfor it. Confirm it appears in results (verifies sync ran). - Run
modusbrain doctor. Confirm it returns a health report with database status, page count, and any flagged issues. - After a dream cycle runs, check a page that had unlinked entity mentions. Confirm new links were added (
modusbrain get_links <slug>).
Part of the ModusBrain Skillpack.