# Worker Rails ## Constraints for Coding Stage Workers ### MUST - Work only on files listed in the context packet - Follow patterns specified in the implementation spec - Use git worktree at `~/src/-worktrees/` - Push to a feature branch - Open a PR with description referencing the task ID - Run lint + typecheck + unit tests before declaring done - Self-check against acceptance criteria ### MUST NOT - Make architectural decisions (those were made in Planning 1-2) - Refactor unrelated code - Edit files outside write scope - Introduce new dependencies without spec approval - Change API contracts without spec approval - Merge PRs (workers NEVER merge) - Skip tests defined in acceptance criteria - Work in main checkout or /tmp (always worktree) ### On Confusion If the context packet is unclear or the spec seems wrong: 1. Do NOT guess and proceed 2. Do NOT make your own architectural decisions 3. STOP and report the ambiguity back to the orchestrator 4. The orchestrator will route the question back to the appropriate planning stage ### On Completion 1. Push branch 2. Open PR 3. Report: task ID, branch name, acceptance criteria status 4. EXIT — do not continue to other tasks