Keep what you learned. Where the next agent reads it.
Lessons from each case, decisions with what replaced them, and a wiki whose claims are checked against the code. Agents read it through MCP and in their instruction files before they start.
A saved lesson is not proof of prevention. The store counts recurrences and guard catches, and a lesson earns its rank from them.
Six kinds of memory, all plain files you own.
Lessons
Each case proposes a lesson: what went wrong, the fix, and the defect it came from. A person approves it, and the review check warns when a diff repeats a known mistake. A guard blocks only after a person promotes it. Triage keeps memories too: a dismissal saved with its reason dismisses the next matching finding by rule, and the case names the memory.
Decisions
Why the team chose what it chose, with the date. A decision that a newer one replaces is labelled with the one that replaced it, so an agent never follows a retired rule.
A wiki that cites the code
A generated wiki whose claims cite their source files. A claim reads stale when its file changes after the page was checked, and red when the file is gone. Evidence is per file, not per line.
Written where agents read
The top-ranked lessons land in each repository's CLAUDE.md and AGENTS.md, ordered by recurrences prevented and held to a byte budget. The rest stay on the Lessons tab, and every agent can read the brain through MCP.
A team brain
Turn sharing on and members' lessons pool into one brain, each with the repository it came from. Sharing is off until each machine enables it, and a lesson that touches a watchlisted sensitive path stays local.
My Brain
A personal brain that connectors fill on a schedule from email, docs, the web and Slack. Everything a connector brings in is written as a proposal for review, so nothing external becomes memory unread.
Measured, gated, and yours.
100% synthetic benchmark recurrences prevented
On the synthetic accountability benchmark, RepoOps blocked all 12 recurrence attempts. The fixture and results file are committed, so the figure is auditable. It is not a customer rate.
0 external writes land silently
Everything a connector ingests is written as a proposal for review.
MCP read from any client
Your brain is plain files you own. Sync between machines is last push wins, so one machine can overwrite another.
Our own brain, audited in public.
RepoOps runs its own citation checker against its own wiki and publishes the whole result here, failing rows included. No model call and no judgment: a cited file resolves at HEAD or it does not.
8 wiki pages
Every page of RepoOps's own Brain Wiki, from the committed snapshot.
275 claims checked
Each one a backticked source file the page cites.
0 failing, 174 stale
Failing means the cited file is gone. Stale means it changed after the page was checked, so 174 of 275 claims wait for a re-read and are not verified today.
The failing count stays at zero because the same check runs strict in a required CI job: a change that breaks a citation fails the build before it merges. A stale claim is not a failure, and it is not a verification either. It marks the page for someone to re-read, and npm run wiki-reverify records the new file versions once they have.
The full checker output, failing rows first
Snapshot at commit 83964c1a63, written by lib/wiki-verify.mjs and regenerated with npm run gen-verified-audit. This is RepoOps's own wiki, not a customer's. The desktop Wiki tab shows the same verdicts for yours.
| Page | Cited file | Line | Status |
|---|---|---|---|
architecture/brain-and-mcp.md | .claude/brain/INDEX.md | L7 | stale |
architecture/brain-and-mcp.md | .claude/brain/decisions.md | L11 | stale |
architecture/brain-and-mcp.md | .claude/brain/errors.md | L12 | stale |
architecture/brain-and-mcp.md | .claude/brain/patterns.md | L13 | stale |
architecture/brain-and-mcp.md | .claude/brain/anti-patterns.md | L13 | stale |
architecture/brain-and-mcp.md | .claude/brain/lessons/lessons.jsonl | L14 | stale |
architecture/brain-and-mcp.md | .claude/brain/open-questions.md | L17 | stale |
architecture/brain-and-mcp.md | .claude/brain/glossary.md | L17 | stale |
architecture/brain-and-mcp.md | .claude/brain/architecture-map.json | L17 | stale |
architecture/brain-and-mcp.md | .claude/brain/taxonomy.json | L17 | stale |
architecture/brain-and-mcp.md | .claude/brain/proposed/accepted/decisions-ids.json | L19 | stale |
architecture/brain-and-mcp.md | lib/routes/mirror-files.mjs | L21 | stale |
architecture/brain-and-mcp.md | .claude/brain/architecture-map.html | L21 | stale |
architecture/brain-and-mcp.md | .claude/brain/design-lessons-html-over-markdown.html | L21 | stale |
architecture/brain-and-mcp.md | docs/features/auto-memory.md | L23 | stale |
architecture/brain-and-mcp.md | docs/features/brain-mcp.md | L27 | stale |
architecture/brain-and-mcp.md | docs/features/brain-search.md | L27 | stale |
architecture/brain-and-mcp.md | bin/mcp-brain.mjs | L29 | stale |
architecture/brain-and-mcp.md | bin/mcp-causal.mjs | L40 | stale |
architecture/brain-and-mcp.md | bin/mcp-causal.test.mjs | L40 | stale |
architecture/brain-and-mcp.md | docs/features/creator-controlled-packs.md | L50 | stale |
architecture/brain-and-mcp.md | .claude/brain/sessions/2026-05-23-main.md | L15 | verified |
architecture/brain-and-mcp.md | .claude/brain/taxonomy.schema.json | L17 | verified |
architecture/brain-and-mcp.md | scripts/prune-proposals.mjs | L19 | verified |
architecture/brain-and-mcp.md | bin/mcp-brain-codebase.mjs | L33 | verified |
architecture/brain-and-mcp.md | bin/mcp-brain-team.mjs | L34 | verified |
architecture/brain-and-mcp.md | bin/mcp-brain-prod.mjs | L35 | verified |
architecture/brain-and-mcp.md | bin/mcp-brain-business.mjs | L36 | verified |
architecture/brain-and-mcp.md | .claude/brain/causal-links/2026-06.jsonl | L40 | verified |
architecture/brain-and-mcp.md | .claude/brain/kernel-version.json | L50 | verified |
architecture/cli-and-daemon.md | bin/cli.mjs | L7 | stale |
architecture/cli-and-daemon.md | bin/commands/init.mjs | L9 | stale |
architecture/cli-and-daemon.md | bin/commands/doctor.mjs | L11 | stale |
architecture/cli-and-daemon.md | bin/commands/go-live.mjs | L12 | stale |
architecture/cli-and-daemon.md | bin/commands/add-repo.mjs | L13 | stale |
architecture/cli-and-daemon.md | bin/commands/verify.mjs | L15 | stale |
architecture/cli-and-daemon.md | bin/commands/conform.mjs | L15 | stale |
architecture/cli-and-daemon.md | bin/commands/bench.mjs | L16 | stale |
architecture/cli-and-daemon.md | bin/commands/blame.mjs | L17 | stale |
architecture/cli-and-daemon.md | bin/commands/connect.mjs | L18 | stale |
architecture/cli-and-daemon.md | bin/commands/enroll-secret.mjs | L18 | stale |
architecture/cli-and-daemon.md | bin/commands/sensor.mjs | L19 | stale |
architecture/cli-and-daemon.md | bin/commands/broker.mjs | L20 | stale |
architecture/cli-and-daemon.md | bin/commands/readiness.mjs | L22 | stale |
architecture/cli-and-daemon.md | bin/commands/egress-policy.mjs | L23 | stale |
architecture/cli-and-daemon.md | bin/commands/mcp-allow.mjs | L24 | stale |
architecture/cli-and-daemon.md | bin/commands/injection-eval.mjs | L27 | stale |
architecture/cli-and-daemon.md | bin/repoops-init.mjs | L31 | stale |
architecture/cli-and-daemon.md | bin/repoops-bootstrap.mjs | L31 | stale |
architecture/cli-and-daemon.md | packages/repoops/bin/repoops-bootstrap.mjs | L31 | stale |
architecture/cli-and-daemon.md | .claude/brain/features.d/daemon-runner-self-healing.md | L61 | stale |
architecture/cli-and-daemon.md | .claude/brain/features.d/daemon-self-update.md | L62 | stale |
architecture/cli-and-daemon.md | .claude/brain/features.d/daemon-control-log-rotation.md | L64 | stale |
architecture/cli-and-daemon.md | .claude/brain/features.d/daemon-raw-push-producer.md | L65 | stale |
architecture/cli-and-daemon.md | .claude/brain/decisions.md | L71 | stale |
architecture/cli-and-daemon.md | .claude/brain/features.d/daemon-service-installer.md | L75 | stale |
architecture/cli-and-daemon.md | .claude/brain/features.d/daemon-installer-surfaces.md | L75 | stale |
architecture/cli-and-daemon.md | bin/commands/run.mjs | L10 | verified |
architecture/cli-and-daemon.md | bin/commands/remove.mjs | L14 | verified |
architecture/cli-and-daemon.md | bin/commands/secrets.mjs | L21 | verified |
architecture/cli-and-daemon.md | bin/commands/nhi.mjs | L22 | verified |
architecture/cli-and-daemon.md | bin/commands/mcp-scan.mjs | L24 | verified |
architecture/cli-and-daemon.md | bin/commands/redteam-mcp.mjs | L24 | verified |
architecture/cli-and-daemon.md | bin/commands/memory.mjs | L25 | verified |
architecture/cli-and-daemon.md | bin/commands/skills.mjs | L26 | verified |
architecture/cli-and-daemon.md | bin/commands/import-git-ai.mjs | L28 | verified |
architecture/cli-and-daemon.md | bin/commands/fde.mjs | L29 | verified |
architecture/cli-and-daemon.md | bin/repoops-install.test.mjs | L31 | verified |
architecture/cli-and-daemon.md | lib/accountability-live.mjs | L51 | verified |
architecture/cli-and-daemon.md | .claude/brain/sessions/2026-06-29-daemon-concurrency-streaming.md | L59 | verified |
architecture/cli-and-daemon.md | .claude/brain/sessions/2026-06-29-daemon-push-resilience.md | L60 | verified |
architecture/cli-and-daemon.md | .claude/brain/sessions/2026-06-29-daemon-runner-self-healing.md | L61 | verified |
architecture/cli-and-daemon.md | .claude/brain/features.d/daemon-staleness-alerting.md | L63 | verified |
architecture/cli-and-daemon.md | .claude/brain/features.d/daemon-observability.md | L64 | verified |
architecture/cli-and-daemon.md | .claude/brain/sessions/2026-06-28-daemon-service-installer.md | L79 | verified |
architecture/cli-and-daemon.md | .claude/brain/sessions/2026-06-28-daemon-installer-surfaces.md | L79 | verified |
architecture/data-and-schema.md | .claude/brain/decisions.md | L3 | stale |
architecture/data-and-schema.md | bin/db/schema.mjs | L9 | stale |
architecture/data-and-schema.md | .claude/brain/schema.md | L10 | stale |
architecture/data-and-schema.md | bin/db/migrations/meta/_journal.json | L16 | stale |
architecture/data-and-schema.md | lib/graph/graph-store.mjs | L41 | stale |
architecture/data-and-schema.md | .claude/brain/errors.md | L49 | stale |
architecture/data-and-schema.md | .claude/brain/patterns.md | L55 | stale |
architecture/data-and-schema.md | .claude/brain/glossary.md | L55 | stale |
architecture/data-and-schema.md | .claude/brain/taxonomy.json | L56 | stale |
architecture/data-and-schema.md | .claude/brain/lessons/lessons.jsonl | L57 | stale |
architecture/data-and-schema.md | lib/routes/mirror-files.mjs | L60 | stale |
architecture/data-and-schema.md | docs/features/cloud-raw-fidelity-store.md | L64 | stale |
architecture/data-and-schema.md | bin/db/migrations/meta/0000_snapshot.json | L16 | verified |
architecture/data-and-schema.md | bin/db/migrations/0000_init.sql | L22 | verified |
architecture/data-and-schema.md | bin/db/migrations/0001_keval_trace_model.sql | L23 | verified |
architecture/data-and-schema.md | bin/db/migrations/0002_keval_eval_suites.sql | L24 | verified |
architecture/data-and-schema.md | bin/db/migrations/0003_keval_source_tool.sql | L25 | verified |
architecture/data-and-schema.md | bin/db/migrations/0004_perf_indexes.sql | L26 | verified |
architecture/data-and-schema.md | bin/db/migrations/0005_telemetry_daily_rollup.sql | L27 | verified |
architecture/data-and-schema.md | bin/db/migrations/0006_rate_limits.sql | L28 | verified |
architecture/data-and-schema.md | bin/db/migrations/0007_daily_rollup.sql | L29 | verified |
architecture/data-and-schema.md | bin/db/migrations/0008_provider_credentials.sql | L30 | verified |
architecture/data-and-schema.md | bin/db/migrations/0009_graph_store.sql | L31 | verified |
architecture/data-and-schema.md | bin/db/migrations/meta/0005_snapshot.json | L33 | verified |
architecture/data-and-schema.md | .claude/brain/taxonomy.schema.json | L56 | verified |
architecture/data-and-schema.md | .claude/brain/causal-links/2026-06.jsonl | L57 | verified |
architecture/overview.md | server.mjs | L7 | stale |
architecture/overview.md | .claude/brain/architecture-map.json | L9 | stale |
architecture/overview.md | CHANGELOG.md | L9 | stale |
architecture/overview.md | .claude/brain/runtime.md | L9 | stale |
architecture/overview.md | .claude/brain/errors.md | L13 | stale |
architecture/overview.md | docs/features/neon-retention-cron.md | L13 | stale |
architecture/overview.md | bin/db/schema.mjs | L15 | stale |
architecture/overview.md | bin/cli.mjs | L19 | stale |
architecture/overview.md | .claude/brain/features.d/daemon-self-update.md | L19 | stale |
architecture/overview.md | .claude/brain/features.d/daemon-raw-push-producer.md | L19 | stale |
architecture/overview.md | .claude/brain/features.d/daemon-service-installer.md | L19 | stale |
architecture/overview.md | docs/features/cloud-capture-daemon.md | L19 | stale |
architecture/overview.md | docs/features/hosted-company-repo-rollup.md | L23 | stale |
architecture/overview.md | docs/features/cloud-raw-fidelity-store.md | L23 | stale |
architecture/overview.md | docs/deploy/hosted-mcp.md | L23 | stale |
architecture/overview.md | .claude/brain/decisions.md | L23 | stale |
architecture/overview.md | bin/mcp-brain.mjs | L27 | stale |
architecture/overview.md | bin/mcp-causal.mjs | L27 | stale |
architecture/overview.md | docs/features/brain-mcp.md | L27 | stale |
architecture/overview.md | docs/features/hosted-mcp.md | L27 | stale |
architecture/overview.md | docs/audits/server-mjs-module-map.md | L7 | verified |
architecture/overview.md | docs/architecture.md | L7 | verified |
architecture/overview.md | .claude/brain/features.d/daemon-concurrency-streaming.md | L19 | verified |
architecture/overview.md | .claude/brain/features.d/daemon-push-resilience.md | L19 | verified |
architecture/overview.md | .claude/brain/features.d/daemon-staleness-alerting.md | L19 | verified |
architecture/overview.md | .claude/brain/features.d/daemon-observability.md | L19 | verified |
architecture/overview.md | docs/features/hosted-dashboard.md | L23 | verified |
architecture/overview.md | docs/features/hosted-full-parity.md | L23 | verified |
architecture/overview.md | docs/features/cloud-server-side-repo-content.md | L23 | verified |
architecture/overview.md | docs/deploy/hosted-loop-runner.md | L23 | verified |
architecture/overview.md | bin/mcp-brain-codebase.mjs | L27 | verified |
architecture/overview.md | bin/mcp-brain-team.mjs | L27 | verified |
architecture/overview.md | bin/mcp-brain-business.mjs | L27 | verified |
architecture/overview.md | bin/mcp-brain-prod.mjs | L27 | verified |
features/catalog.md | .claude/brain/features.md | L5 | stale |
features/catalog.md | docs/features/cna-agent-trust-score.md | L9 | stale |
features/catalog.md | docs/features/cost-per-outcome.md | L13 | stale |
features/catalog.md | docs/features/financial-model-feature.md | L17 | stale |
features/catalog.md | docs/features/hosted-company-repo-rollup.md | L21 | stale |
features/catalog.md | docs/features/company-rollup-alias-cost.md | L21 | stale |
features/catalog.md | docs/features/company-rollup-cost-risk-columns.md | L21 | stale |
features/catalog.md | .claude/brain/features.d/mybrain-ask-pwa.md | L25 | stale |
features/catalog.md | .claude/brain/features.d/mybrain-capture.md | L25 | stale |
features/catalog.md | .claude/brain/features.d/mybrain-connectors.md | L25 | stale |
features/catalog.md | .claude/brain/features.d/mybrain-consumer-identity.md | L25 | stale |
features/catalog.md | .claude/brain/features.d/mybrain-hosted-ask.md | L25 | stale |
features/catalog.md | docs/features/portable-personal-brain.md | L25 | stale |
features/catalog.md | .claude/brain/features.d/portable-personal-brain.md | L25 | stale |
features/catalog.md | docs/features/creator-controlled-packs.md | L29 | stale |
features/catalog.md | .claude/brain/features.d/mybrain-creator-brain-packs.md | L29 | stale |
features/catalog.md | CHANGELOG.md | L33 | stale |
features/catalog.md | .claude/brain/decisions.md | L43 | stale |
features/catalog.md | .claude/brain/errors.md | L43 | stale |
features/catalog.md | docs/features/cloud-native-accountability.md | L9 | verified |
features/catalog.md | docs/features/cna-agent-registry.md | L9 | verified |
features/catalog.md | docs/features/cna-public-verification.md | L9 | verified |
features/catalog.md | docs/features/cna-evidence-pack.md | L9 | verified |
features/catalog.md | docs/features/cna-14-fleet-killswitch.md | L9 | verified |
features/catalog.md | docs/features/cna-29-transparency-log.md | L9 | verified |
features/catalog.md | docs/features/loop-economics-scorecard.md | L13 | verified |
features/catalog.md | docs/features/cost-spec-gap.md | L13 | verified |
features/catalog.md | docs/features/cc-undelegated-reads.md | L13 | verified |
features/catalog.md | docs/features/financial-model-guard.md | L17 | verified |
features/catalog.md | docs/features/company-rollup-control-learn.md | L21 | verified |
features/catalog.md | docs/features/cross-repo-controls.md | L21 | verified |
operations/agents-and-workflows.md | AGENTS.md | L3 | stale |
operations/agents-and-workflows.md | .claude/brain/decisions.md | L5 | stale |
operations/agents-and-workflows.md | .claude/brain/errors.md | L5 | stale |
operations/agents-and-workflows.md | CLAUDE.md | L9 | stale |
operations/agents-and-workflows.md | .claude/agents/pr-shipper.md | L13 | stale |
operations/agents-and-workflows.md | .claude/agents/drift-auditor.md | L16 | stale |
operations/agents-and-workflows.md | .claude/agents/brand-cop.md | L17 | stale |
operations/agents-and-workflows.md | .claude/agents/cost-impact-auditor.md | L18 | stale |
operations/agents-and-workflows.md | .claude/agents/dedup-scout.md | L19 | stale |
operations/agents-and-workflows.md | .claude/agents/perf-profiler.md | L20 | stale |
operations/agents-and-workflows.md | .claude/agents/security-reviewer.md | L21 | stale |
operations/agents-and-workflows.md | .claude/agents/session-briefer.md | L22 | stale |
operations/agents-and-workflows.md | .claude/agents/twin-syncer.md | L23 | stale |
operations/agents-and-workflows.md | .claude/skills/ship-feature/SKILL.md | L29 | stale |
operations/agents-and-workflows.md | .claude/skills/autoresearch/SKILL.md | L32 | stale |
operations/agents-and-workflows.md | .claude/skills/design-system/SKILL.md | L32 | stale |
operations/agents-and-workflows.md | .claude/skills/documentation/SKILL.md | L32 | stale |
operations/agents-and-workflows.md | .claude/skills/karpathy-guidelines/SKILL.md | L32 | stale |
operations/agents-and-workflows.md | .claude/skills/loop-spec/SKILL.md | L32 | stale |
operations/agents-and-workflows.md | .claude/skills/preview-check/SKILL.md | L32 | stale |
operations/agents-and-workflows.md | .claude/skills/register-kind/SKILL.md | L32 | stale |
operations/agents-and-workflows.md | .claude/skills/remotion/SKILL.md | L32 | stale |
operations/agents-and-workflows.md | .claude/workflows/perf-audit.js | L43 | stale |
operations/agents-and-workflows.md | .claude/workflows/truth-audit.js | L44 | stale |
operations/agents-and-workflows.md | .claude/workflows/weekly-truth-audit.js | L45 | stale |
operations/agents-and-workflows.md | .claude/workflows/feature-completeness-audit.js | L47 | stale |
operations/agents-and-workflows.md | .claude/workflows/competitor-trend-scan.js | L49 | stale |
operations/agents-and-workflows.md | .claude/skills/stripe-best-practices/SKILL.md | L33 | verified |
operations/agents-and-workflows.md | .claude/skills/stripe-best-practices/references/billing.md | L33 | verified |
operations/agents-and-workflows.md | .claude/skills/stripe-projects/SKILL.md | L33 | verified |
operations/agents-and-workflows.md | .claude/skills/upgrade-stripe/SKILL.md | L33 | verified |
operations/agents-and-workflows.md | .claude/workflows/drift-sweep.js | L39 | verified |
operations/agents-and-workflows.md | .claude/workflows/brand-sweep.js | L42 | verified |
operations/agents-and-workflows.md | .claude/workflows/truth-audit-docs-tail.js | L46 | verified |
operations/agents-and-workflows.md | .claude/workflows/launch-audit.js | L48 | verified |
operations/agents-and-workflows.md | .claude/workflows/ship-program.js | L50 | verified |
operations/agents-and-workflows.md | .claude/workflows/tab-migrate.js | L51 | verified |
operations/agents-and-workflows.md | .claude/brain/sessions/2026-06-28-homepage-truth-audit.md | L53 | verified |
operations/agents-and-workflows.md | docs/features/anti-drift-registries.md | L53 | verified |
operations/ci-and-shipping.md | .claude/brain/decisions.md | L3 | stale |
operations/ci-and-shipping.md | .claude/brain/errors.md | L3 | stale |
operations/ci-and-shipping.md | .github/workflows/ci.yml | L5 | stale |
operations/ci-and-shipping.md | CHANGELOG.md | L7 | stale |
operations/ci-and-shipping.md | .github/workflows/eval-gate.yml | L11 | stale |
operations/ci-and-shipping.md | .github/workflows/loop-evals.yml | L11 | stale |
operations/ci-and-shipping.md | .github/workflows/cost-audit.yml | L12 | stale |
operations/ci-and-shipping.md | .github/workflows/brain-reflect.yml | L14 | stale |
operations/ci-and-shipping.md | .github/workflows/publish-npm.yml | L15 | stale |
operations/ci-and-shipping.md | .github/workflows/release.yml | L15 | stale |
operations/ci-and-shipping.md | .github/workflows/merge-queue.yml | L21 | stale |
operations/ci-and-shipping.md | .github/workflows/merge-gate.yml | L22 | stale |
operations/ci-and-shipping.md | .github/workflows/auto-queue-label.yml | L23 | stale |
operations/ci-and-shipping.md | bin/ship-check.mjs | L33 | stale |
operations/ci-and-shipping.md | .github/workflows/ship-check.yml | L35 | stale |
operations/ci-and-shipping.md | .claude/skills/ship-feature/SKILL.md | L37 | stale |
operations/ci-and-shipping.md | bin/review-check.mjs | L39 | stale |
operations/ci-and-shipping.md | .claude/brain/sessions/2026-06-25-ci-resilience-process-fixes.md | L7 | verified |
operations/ci-and-shipping.md | .github/workflows/tab-runtime.yml | L13 | verified |
operations/ci-and-shipping.md | scripts/check-tab-runtime.mjs | L13 | verified |
operations/ci-and-shipping.md | CHANGELOG.d/README.md | L29 | verified |
operations/ci-and-shipping.md | .claude/brain/sessions/2026-06-25-changelog-assembler-hardening.md | L31 | verified |
operations/ci-and-shipping.md | .claude/brain/sessions/2026-07-02-changelog-fragment-hygiene.md | L31 | verified |
operations/ci-and-shipping.md | .claude/brain/sessions/2026-05-30-phase-7-t5-ship-check.md | L35 | verified |
quickstart.md | bin/cli.mjs | L7 | stale |
quickstart.md | ONBOARDING.md | L7 | stale |
quickstart.md | README.md | L7 | stale |
quickstart.md | package.json | L7 | stale |
quickstart.md | CLAUDE.md | L7 | stale |
quickstart.md | bin/commands/init.mjs | L15 | stale |
quickstart.md | bin/commands/add-repo.mjs | L15 | stale |
quickstart.md | bin/commands/doctor.mjs | L15 | stale |
quickstart.md | bin/commands/verify.mjs | L15 | stale |
quickstart.md | bin/commands/conform.mjs | L15 | stale |
quickstart.md | bin/commands/go-live.mjs | L15 | stale |
quickstart.md | bin/repoops-init.mjs | L15 | stale |
quickstart.md | bin/db/schema.mjs | L16 | stale |
quickstart.md | docs/deploy/hosted-mcp.md | L18 | stale |
quickstart.md | .claude/brain/INDEX.md | L19 | stale |
quickstart.md | .claude/brain/decisions.md | L19 | stale |
quickstart.md | bin/mcp-brain.mjs | L19 | stale |
quickstart.md | .claude/brain/brain-search.md | L23 | stale |
quickstart.md | .claude/brain/brain-mcp.md | L23 | stale |
quickstart.md | .claude/brain/taxonomy.json | L23 | stale |
quickstart.md | .claude/brain/immune-ladder.json | L23 | stale |
quickstart.md | .claude/brain/errors.md | L25 | stale |
quickstart.md | .claude/agents/pr-shipper.md | L29 | stale |
quickstart.md | .claude/agents/security-reviewer.md | L29 | stale |
quickstart.md | .claude/agents/drift-auditor.md | L29 | stale |
quickstart.md | .claude/workflows/truth-audit.js | L29 | stale |
quickstart.md | .github/workflows/ci.yml | L29 | stale |
quickstart.md | .github/workflows/merge-queue.yml | L29 | stale |
quickstart.md | .github/workflows/ship-check.yml | L29 | stale |
quickstart.md | .github/workflows/publish-npm.yml | L29 | stale |
quickstart.md | .claude/brain/features.md | L43 | stale |
quickstart.md | bin/commands/run.mjs | L15 | verified |
quickstart.md | bin/commands/remove.mjs | L15 | verified |
quickstart.md | bin/db/migrations/0000_init.sql | L16 | verified |
quickstart.md | .claude/brain/features.d/daemon-concurrency-streaming.md | L17 | verified |
quickstart.md | .claude/brain/features.d/daemon-observability.md | L17 | verified |
quickstart.md | .claude/brain/features.d/daemon-push-resilience.md | L17 | verified |
quickstart.md | docs/features/hosted-dashboard.md | L18 | verified |
quickstart.md | docs/features/hosted-full-parity.md | L18 | verified |
quickstart.md | docs/deploy/hosted-loop-runner.md | L18 | verified |
quickstart.md | bin/mcp-brain-codebase.mjs | L19 | verified |
quickstart.md | bin/mcp-brain-team.mjs | L19 | verified |
quickstart.md | bin/mcp-brain-prod.mjs | L19 | verified |
quickstart.md | bin/mcp-brain-business.mjs | L19 | verified |
quickstart.md | .claude/workflows/ship-program.js | L29 | verified |
From the mistake to the signed pack.
A real RepoOps lesson, stage by stage. Each stage names the file you can open to check it.
01 The mistake
On 2026-05-29 a session merged six pull requests from isolated worktrees, and the shared checkout the IDE had open never pulled. The operator opened TODO.md and saw every box still unticked: a day's work looked like it never happened.
What the operator saw
## Accountability Loop - [ ] A0a ... - [ ] A0b ... <- all merged remotely, - [ ] A0c ... invisible locally
02 The mistake is written down
The failure went into .claude/brain/errors.md the same day: the symptom, the two-layer cause, the fix, and a rule with a test any session can run.
From .claude/brain/errors.md, condensed
Prevention rule: "Done" means the user can see it in their IDE without doing anything. Test: git -C <shared-checkout> rev-parse HEAD must equal rev-parse origin/main.
03 The lesson is minted
The record became a lesson row in .claude/brain/lessons/lessons.jsonl: a trigger, the fix, a pointer back to the errors.md entry, and outcome counters that record what happened after it was written.
The lesson row, condensed
{
"id": "lesson-36894f7c5ddc7f38",
"trigger": "End of build-phase ritual without
fast-forwarding the shared canonical checkout",
"source_defect": { "file": ".claude/brain/errors.md" },
"times_recurred": 0
}04 Placed where sessions read it
The fix became step 10b of the completion ritual in CLAUDE.md, which every session reads before it works. lib/agent-md-blocks.mjs pins the top lessons below it; this one's counters read zero, so it stays in the store.
The block format lib/agent-md-blocks.mjs writes
Active lessons from RepoOps. Do not hand-edit; managed by lib/agent-md-blocks.mjs. ### Lesson <id>: <trigger, first line> **What went wrong.** ... **Fix.** ...
05 The claim earns a receipt
The wiki page that documents the lessons store cites it, and the strict citation gate in CI resolves that citation on every commit. So the claim carries a receipt: the file, the line, its status and the commit it was checked at.
The receipt from the current audit
page: architecture/brain-and-mcp.md source: .claude/brain/lessons/lessons.jsonl line: L14 status: stale commit: 83964c1a63
06 The signed pack
A brain pack passes each lesson through the transfer redaction profile, hashes every item, and is signed with ed25519. The installer verifies the signature or writes nothing, and a verified install lands held for review.
What an install verifies
signature: VERIFIED ed25519 items: each carries kind + sha256 content_hash redaction: transfer profile landing: HELD for review
Start with one question: what happened in this change?
Follow a sample case from the instruction to the lesson it left, then install RepoOps and let the first run seed your brain from what your repos already say.