For engineering leads weighing a custom context layer against a product.
Updated
Building a context layer yourself is mostly an ongoing operations commitment, not a one-time build: connectors, parsing, extraction, review, refresh, access control and evaluation each need an owner. Buying moves that work to a vendor and adds vendor risk. Decide by who will own ingestion, freshness, permissions, conflict resolution and evaluation in year two, then check each candidate against the same checklist.
Connectors and parsers for each source and format. An extraction step and a review step so people can correct it. A refresh pipeline that handles edits, renames and deletes. Retrieval over documents and structure. Access control, including isolation between customers. Evaluation, so you can tell whether it helps. Model and infrastructure cost for extraction and serving. And a person who owns all of it as sources and agents change.
Subscription or usage cost, the work of connecting your sources, and the work of curating what the product proposes. Vendor risk: roadmap, hosting region, what happens to your data if you leave. And fit: a product built for employee search will not model your schema, and one built for schemas will not search your SaaS.
Write down who will own the five checklist areas a year from now. If the answer is nobody, buying is safer. If your sources do not fit any vendor or the control requirements are strict, building may be right. Either way, run the same measurement against every candidate, including your build.
| Requirement | Question to ask | BrainBox today |
|---|---|---|
| Ingestion | Which sources, in which formats, and who writes the connectors? | SQL (Postgres, Trino, Athena), SQL files, docs (md, txt, html, pdf, docx), dbt, MCP servers, NoSQL; events through process_event. No live SaaS connectors |
| Freshness | How do changes and deletes reach the agent, and how is drift found? | brainbox sync with skip-unchanged, reviewed deletes, re-ingest that retracts, stale signals |
| Permissions | Who can read and write, and are tenants isolated? | OAuth 2.0 with PKCE, read and write scopes, tenants with overlay Brains. No SSO today |
| Conflict resolution | What happens when two sources disagree? | Conflicts between elements are resolved by source authority (schema, document, inferred, agent); people review drafts |
| Evaluation | How do you know answers improved? | Not shipped; evals are on our roadmap. See the measurement method below |
| Review | Can people see and correct what was extracted? | Drafts approved by people; curated values survive re-ingest |
| Exit | Can you leave? | Sources stay in your systems; the Brain is rebuilt by re-ingesting them |