0. All code is written by AI
This is the rule the others rest on. Every line of code in an Off Rails app is written by an AI agent: Rust, SQL, HTML, CSS, TypeScript, Svelte, YAML, Dockerfiles and scripts. Humans write intent (specs in product/, answers in the interview, feedback in conversation) and never code.
It isn't a style preference. It's what makes the rest of this doctrine work:
- boilerplate is free, so explicit beats magic;
- conventions are enforced by the reader that matters, the agent;
- specs stay the source of truth, because code is always regenerated from intent, never hand-patched around it.
When a human edits code anyway, the agent doesn't fight it. It keeps the change working, records the intent behind it in the spec, and from then on the agent owns that code again (workflow).