feat(FN-1429): enforce always-green test-suite instructions for executor agents

- Add explicit always-green test suite instructions to executor agent prompts
- Update executor to enforce test-suite validation before task completion
- Add tests for agent prompt generation and executor behavior
- Ensure test failures block merge-ready state rather than allowing broken builds
This commit is contained in:
gsxdsm
2026-04-09 19:33:44 -07:00
parent e1cd7e0876
commit 7bd98d888c
5 changed files with 61 additions and 4 deletions

View File

@@ -0,0 +1,13 @@
---
"@gsxdsm/fusion": patch
---
Enforce always-green test-suite instructions for executor agents
Strengthen executor-facing instructions so agents are explicitly required to keep the repository test suite green before completion, even when failures appear pre-existing or unrelated to the current task. This prevents "unrelated failure" deferrals from accumulating technical debt.
Changes:
- Added explicit language to EXECUTOR_SYSTEM_PROMPT requiring resolution of ALL test failures, including those that appear unrelated or pre-existing
- Added same language to buildExecutionPrompt completion block for runtime execution prompts
- Updated built-in executor and senior-engineer prompt templates in @fusion/core to mirror the engine runtime instructions
- Added regression tests to verify the policy language is present in execution prompts