The company brain
that knows why.
Deploy runbook
Before you deploy
Rollback
migrate status. If the schema moved forward, restore from the latest backup instead.
1 line added
+ If the schema moved forward, restore from the latest backup instead.
1 line added
+ Redeploy the previous build, then run migrate status.
After a rollback
What's our rollback policy if a migration has already run? I thought we just redeploy.
AKB · search“rollback migration”2 pagesAKB · page_readDeploy runbookreadAKB · historyDeploy runbook4 changesNot any more. The runbook now says: redeploy the previous build, then run migrate status. If the schema has moved forward, restore from the latest backup instead of rolling back.
Why it changed: Priya Shah added the restore step 2 minutes ago, working with Claude Code. Her reason was that Tuesday's rollback failed because the schema had already moved, per the Slack postmortem. Before that, the page only said to redeploy.
Tickets
| Ticket | Status | Priority | Last edit |
|---|---|---|---|
| Rollback fails when the schema has moved | In progress | P1 | |
| Block deploys when backups are stale | Done | P1 | |
| Add a restore drill to onboarding | Open | P2 | |
| Publish the incident review | Open | P3 | |
| Rotate the deploy keys | Blocked | P2 | |
| Move staging to the new cluster | Open | P3 |
Page history
- Priya Shah with Claude Code CLI · 2 minutes ago
Tuesday's rollback failed: the schema had already moved. Per Slack postmortem.
+ If the schema moved forward, restore from the latest backup instead.
- Marcus Okafor with Copilot · yesterday
Stale backups made Tuesday's restore slower than it should have been.
+ Backups are newer than 24 hours
- Leo Novak · 3 days agoEdited this page.
- Daniel Reyes with ChatGPT · 12 days ago
First draft, from last quarter's deploy notes.
+ Redeploy the previous build, then run migrate status.
Ask from any agent, and get the why
Agents outside the app reach your knowledge over MCP. They read the page and its history, so they can tell you what the policy is and why it changed.
Databases, for managing real work
Track tickets, incidents and decisions in tables with your own properties and views. Agents read and update them with the same access you have.
The whole story of a page
Every change is kept with who made it, the reason an agent gave, and what was added or removed.
Your docs. Their rules:
“…you may not create persistent copies, archives, indexes, or long-term data stores.”
Your server. Your data. Your rules:
Every edit says why
Agents act on your behalf.
Through the CLI, an agent skill, MCP or the API. It's one interface, with your permissions and your name on every change.
It's just files.
A folder of plain Markdown stays up to date on your machine. Any agent can read it with ordinary shell tools.
Leave anytime.
Export as Markdown. No gotchas. Good riddance... we won't miss you. I'm not lonely anyway.
$ akb --json search 'rollback OR rollbacks' # the Deploy runbook, with the matching excerpt $ akb --json page read PAGE_ID # structured blocks, each with an ID and a version $ akb --json --run RUN_ID \ --reason 'Add the restore path when the schema has moved' \ block replace PAGE_ID BLOCK_ID --text 'Redeploy the previous…' # accepted, and recorded against this run $ akb --json history list PAGE_ID --limit 25 # every change, with its author and its reason
$ ls knowledge/ README.md pages/ assets/ $ grep -ril "rollback" knowledge/pages/ knowledge/pages/deploy-runbook--<page-id>.md knowledge/pages/incident-log--<page-id>.md $ head -6 knowledge/pages/deploy-runbook--*.md # front matter with the page's ID and properties, # then the page itself as Markdown
# readable Markdown $ akb markdown export --page-ids PAGE_ID \ --output ./export # the full archive: content, history, attachments $ akb archive export --page-ids PAGE_ID \ --output knowledge.akb.zip # arriving from Notion $ akb notion inspect ./notion-export.zip \ --source-namespace SOURCE_UUID
Yours to run.
On your laptop, just for you. Or on your own hardware, for the whole company. Either way it's one Docker Compose project, with no vendor account.
- Start with one account
- An email and a password is all it takes. Two-factor and single sign-on are there if your company needs them.
- Encrypted backups
- Scheduled copies sealed to your own keys, with restore tooling included.
- Nothing phones home
- No telemetry is built in. Logs and traces go only where you send them.
$ ./scripts/self-host-init http://localhost:3000 $ docker compose build app $ docker compose up --detach --wait postgres $ docker compose run --rm -T migrate $ docker compose up --detach --wait app electric
For now the app builds from source. Release images and packaged installers will follow.