Strings in the database, logic in code
Every sentence the model reads in Anvil lives in a database row. Prompts, playbooks, tool descriptions, even the text of a tool's result or an error. None of it is a string in the Go code.
The rows start as seed files built into the program. They load on first run and whenever you run anvil seed. After that the database is the source. Which tools a pass is allowed to hold is not text, so that stays in code.
The database is yours to edit, and Anvil respects that. Opening a database adds seed entries that are missing and keeps the ones you changed. If rows differ from the seed in the build, startup tells you how many, and that anvil seed would replace your edits.
A run of tests is named for the idea: job results, memory, tasks, language server messages and MCP connection failures each have a test that checks the text comes from the database.
Strings in the database, logic in code. Say what a thing is in one place.
Brannoch
