diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-13 03:14:53 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-13 03:14:53 +0000 |
| commit | b9aba3d242482fa9cd42f2a49b2767a73d4d2213 (patch) | |
| tree | 37bc9a8d598ace8eae2abd82ad9cf67fa7ef7dd1 /internal/executor/executor_test.go | |
| parent | 5303a68d67e435da863353cdce09fa2e3a8c2ccd (diff) | |
feat: post-elaboration sanity check for tools, acceptance criteria, and dev practices
Add sanitizeElaboratedTask() called after every elaboration response:
- Infers missing allowed_tools from instruction keywords (Write/Edit/Read/Bash/Grep/Glob)
- Auto-adds Read when Edit is present
- Appends Acceptance Criteria section if none present
- Appends TDD reminder for coding tasks without test mention
Also tighten buildElaboratePrompt to require acceptance criteria and
list concrete tool examples, reducing how often the model omits tools.
Fixes class of failures where agents couldn't create files because
the elaborator omitted Write from allowed_tools.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/executor/executor_test.go')
0 files changed, 0 insertions, 0 deletions
