These rules are loaded by opencode before loop work.
- Start in L1 report-only mode.
- Read
STATE.mdbefore any triage. - Update
STATE.mdafter every loop run. - Do not edit source code until the human explicitly enables L2.
- Never push or merge without human approval.
- Never edit
.env,.env.*,auth/,payments/,secrets/, orcredentials/. - Use a git worktree for every code-changing attempt.
- Max 3 fix attempts per item; escalate after that.
- For L2+ changes, dispatch a verifier sub-agent after implementation.
- Run the project's documented tests before proposing a fix.
- Record test evidence in
STATE.md.