Implementation Boundary Guard
Purpose
Ensures that implementation stays strictly within the defined task scope. Prevents scope creep, unauthorized changes, and deviation from the spec.
When to Use
- •At the start of any implementation task
- •Continuously during coding
- •Before committing changes
Guarding Steps
- •Load Task Boundaries: Confirm what is IN and OUT of scope.
- •Validate Each Change: Check every modified file and logical block against the scope.
- •Flag Boundary Violations: Stop implementation if unrelated code is touched.
- •Request Scope Expansion: If a boundary must be crossed, request explicit approval.
Decision Tree
mermaid
flowchart TD
A[Analyze Change] --> B{In Task Scope?}
B -->|No| C[Flag Violation - Stop]
B -->|Yes| D{Matches Spec?}
D -->|No| E[Flag Spec Deviation - Stop]
D -->|Yes| F{Minimal Change?}
F -->|No| G[Suggest Simplification]
F -->|Yes| H[Proceed with Implementation]
Review Checklist
- •Scope: Do all changed files belong to the assigned task?
- •Alignment: Does every logic change have a corresponding Spec requirement ID?
- •Focus: Are there any "while I'm here" improvements or refactors?
- •Purity: Are new dependencies strictly necessary and approved?
How to provide feedback
- •Be specific: "The changes to
db_config.pyare out of scope for the 'User Auth' task." - •Explain why: "Touching shared config files without a task mandate risks breaking other modules."
- •Suggest alternatives: "Revert
db_config.pyand implement the change in a separate dedicated task."
Stay in your lane.