Skip to content

Organize + librarian: the brain sorts itself (0.6.0) - #13

Merged
moderniselife merged 1 commit into
mainfrom
feat/librarian
Nov 23, 2026
Merged

moderniselife merged 1 commit into
mainfrom
feat/librarian

Conversation

@moderniselife

Copy link
Copy Markdown
Owner

Why

Lint reported rot (misfiled records, unsigned notes, broken links), but nothing fixed it, so brains only got messier.

What

  • organize: a daily upkeep routine, on by default, that fixes what has exactly one right answer and commits it.

    • Misfiled records move to their type's folder.
    • Unsigned shared notes are signed from evidence: the agent folder they're in, an import note, an Agent: trailer, or the commit that added them. Bulk commits and bots don't count.
    • Old [[person/x]] links become [[people/x]], and broken record links point at the only record with that id.
    • Ambiguous cases are listed, not touched. Tags, other frontmatter and code are never rewritten.
    • It won't commit over someone else's staged work.
    • Also available as brainium organize [--apply] and the brain_organize tool.
  • librarian: a daily AI prompt routine, off and in shadow mode until a person approves it. It:

    • links new notes to their records
    • moves notes where they belong, leaving a pointer
    • merges duplicates
    • signs notes whose author is clear
    • flags stale records

    It never deletes.

  • docs/CONTEXT-SYSTEM.md has a new "Organize and the librarian" section.

Tests

npm test: 59/59 pass. The new tests use a real git brain to cover moves, every signing source, the bulk-commit rule, link fixes (body, links:, aliases), leaving tags and code alone, idempotence and the commit trailer.

🤖 Generated with Claude Code

Lint only reported rot; nothing fixed it. Two routines now come with every
brain:

- organize (daily, upkeep, on): fixes what has exactly one right answer
  and commits it. Misfiled records move to their type's folder; unsigned
  shared notes are signed from evidence (agent folder, import note,
  Agent: trailer, or the commit that added them, skipping bulk commits
  and bots); [[person/x]] links become [[people/x]] in bodies and links:,
  and a broken record link is pointed at the one record with that id.
  Ambiguous cases are listed, not touched; tags, other frontmatter and
  code are never rewritten; it won't commit over someone else's staged
  work. Also `brainium organize [--apply]` and the brain_organize tool.
- librarian (daily, prompt, off and in shadow until approved): links new
  notes to their records (creating records two notes need), moves notes
  where they belong with a pointer, merges duplicates, signs notes whose
  author is clear and messages owners of stale records. Never deletes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@moderniselife
moderniselife merged commit 6cb7836 into main Nov 23, 2026
5 checks passed
@moderniselife
moderniselife deleted the feat/librarian branch November 23, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant