-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Steps to Reproduce:
- Create a
roadmap.jsonwith a step that includesfiles_to_modify, e.g. step01-01listing specific adapter/use-case files - Run
/nw:execute @nw-software-crafter "app_name" "01-01" - Observe the agent's behavior — it does not create or modify the files listed in
files_to_modify - The agent creates whatever files TDD demands, with no awareness of the planned file list
Expected Behavior: The software crafter should receive the files_to_modify list and use it as both implementation guidance (which files to create/modify) and a boundary constraint (don't touch files outside this list).
Root Cause Analysis:
The disconnect is in /nw:execute command (commands/execute.md):
-
TASK_CONTEXT template (line 67) extracts these fields from the roadmap step:
name|description|acceptance_criteria|test_file|scenario_name|quality_gates| implementation_notes|dependencies|estimated_hours|deliverablesfiles_to_modifyis NOT in this list — it's never extracted or passed to the agent. -
BOUNDARY_RULES (line 142) says:
- Only modify files listed in step's files_to_modifyThis rule references
files_to_modify, but the agent never receives this data in its prompt context. -
Result: The agent gets a boundary rule it cannot enforce because the data it references was never provided. The agent proceeds with pure TDD, creating files organically based on test demands.
Suggested Fix:
Add files_to_modify to the TASK_CONTEXT extraction list in commands/execute.md, line 67: