Implement prompt generation system that produces continuation prompts based on verification failures to force AI agents to complete work. Service: - generatePrompt: Complete prompt from failure context - generateTestFailurePrompt: Test-specific guidance - generateBuildErrorPrompt: Build error resolution - generateCoveragePrompt: Coverage improvement strategy - generateIncompleteWorkPrompt: Completion requirements Templates: - base.template: System/user prompt structure - test-failure.template: Test fix guidance - build-error.template: Compilation error guidance - coverage.template: Coverage improvement strategy - incomplete-work.template: Completion requirements Constraint escalation: - Attempt 1: Normal guidance - Attempt 2: Focus only on failures - Attempt 3: Minimal changes only - Final: Last attempt warning Priority levels: critical/high/normal based on failure severity Tests: 24 passing with 95.31% coverage Fixes #137 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
14 lines
346 B
TypeScript
14 lines
346 B
TypeScript
export const INCOMPLETE_WORK_TEMPLATE = `The task implementation is incomplete.
|
|
|
|
Issues detected:
|
|
{{issues}}
|
|
|
|
You MUST complete ALL aspects of the task. Do not leave TODO comments or deferred work.
|
|
|
|
Steps:
|
|
1. Review each incomplete item
|
|
2. Implement the missing functionality
|
|
3. Write tests for the new code
|
|
4. Verify all requirements are met
|
|
`;
|