1.2 KiB
1.2 KiB
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/<repo>-worktrees/<task-slug> - 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:
- Do NOT guess and proceed
- Do NOT make your own architectural decisions
- STOP and report the ambiguity back to the orchestrator
- The orchestrator will route the question back to the appropriate planning stage
On Completion
- Push branch
- Open PR
- Report: task ID, branch name, acceptance criteria status
- EXIT — do not continue to other tasks