Files
gbrain/skills/_brain-filing-rules.md
Garry Tan 1e6d7e3737 feat: battle-tested skill patterns from production deployment
Backport production-learned brain-operations patterns:
- Iron Law of Back-Linking (mandatory bidirectional linking)
- Brain filing rules (file by primary subject, not format)
- Enrichment protocol (7-step pipeline, 3-tier system, person/company templates)
- Media ingest workflows (articles, videos, podcasts, PDFs, screenshots)
- Citation requirements (mandatory [Source: ...] on every fact)
- Test Before Bulk operating principle
- Voice recipe: unicode crash fix, PII scrub, identity-first prompt, DIY STT+LLM+TTS
- X-to-Brain recipe: image OCR, Filtered Stream, tweet rating rubric, cron stagger
2026-04-11 17:07:19 -10:00

3.5 KiB

Brain Filing Rules -- MANDATORY for all skills that write to the brain

The Rule

The PRIMARY SUBJECT of the content determines where it goes. Not the format, not the source, not the skill that's running.

Decision Protocol

  1. Identify the primary subject (a person? company? concept? policy issue?)
  2. File in the directory that matches the subject
  3. Cross-link from related directories
  4. When in doubt: what would you search for to find this page again?

Common Misfiling Patterns -- DO NOT DO THESE

Wrong Right Why
Analysis of a topic -> sources/ -> appropriate subject directory sources/ is for raw data only
Article about a person -> sources/ -> people/ Primary subject is a person
Meeting-derived company info -> meetings/ only -> ALSO update companies/ Entity propagation is mandatory
Research about a company -> sources/ -> companies/ Primary subject is a company
Reusable framework/thesis -> sources/ -> concepts/ It's a mental model
Tweet thread about policy -> media/ -> civic/ or concepts/ media/ is for content ops

What sources/ Is Actually For

sources/ is ONLY for:

  • Bulk data imports (API dumps, CSV exports, snapshots)
  • Raw data that feeds multiple brain pages (e.g., a guest export, contact sync)
  • Periodic captures (quarterly snapshots, sync exports)

If the content has a clear primary subject (a person, company, concept, policy issue), it does NOT go in sources/. Period.

Notability Gate

Not everything deserves a brain page. Before creating a new entity page:

  • People: Will you interact with them again? Are they relevant to your work?
  • Companies: Are they relevant to your work or interests?
  • Concepts: Is this a reusable mental model worth referencing later?
  • When in doubt, DON'T create. A missing page can be created later. A junk page wastes attention and degrades search quality.

Iron Law: Back-Linking (MANDATORY)

Every mention of a person or company with a brain page MUST create a back-link FROM that entity's page TO the page mentioning them. This is bidirectional: the new page links to the entity, AND the entity's page links back.

Format for back-links (append to Timeline or See Also):

- **YYYY-MM-DD** | Referenced in [page title](path/to/page.md) -- brief context

An unlinked mention is a broken brain. The graph is the intelligence.

Citation Requirements (MANDATORY)

Every fact written to a brain page must carry an inline [Source: ...] citation.

Three formats:

  • Direct attribution: [Source: User, {context}, YYYY-MM-DD]
  • API/external: [Source: {provider}, YYYY-MM-DD] or [Source: {publication}, {URL}]
  • Synthesis: [Source: compiled from {list of sources}]

Source precedence (highest to lowest):

  1. User's direct statements (highest authority)
  2. Compiled truth (pre-existing brain synthesis)
  3. Timeline entries (raw evidence)
  4. External sources (API enrichment, web search -- lowest)

When sources conflict, note the contradiction with both citations. Don't silently pick one.

Raw Source Preservation

Every ingested item should have its raw source preserved for provenance:

  • < 100 MB (text, PDFs, transcripts): store in the brain repo (git-tracked) in a .raw/ sidecar directory alongside the brain page
  • >= 100 MB (video, audio, large datasets): upload to cloud storage and store a .redirect.yaml pointer in the brain repo

This ensures any derived brain page can be traced back to its original source.