feat: require agents to post Result section with artifact locations in task responses

This commit is contained in:
James 2026-03-24 00:53:14 -04:00
parent 9f224434d9
commit 40ee077d2c
1 changed files with 18 additions and 1 deletions

View File

@ -113,7 +113,24 @@ function buildTaskPrompt(task: DispatchableTask, rejectionFeedback?: string | nu
lines.push('', '## Previous Review Feedback', rejectionFeedback, '', 'Please address this feedback in your response.')
}
lines.push('', 'Complete this task and provide your response. Be concise and actionable.')
lines.push(
'',
'Complete this task and provide your response. Be concise and actionable.',
'',
'## Required: Result Summary',
'At the end of your response, include a brief "## Result" section that tells the task owner exactly where to find the outcome:',
'- File paths changed (e.g. `/home/johan/dev/clavitor/src/vault.go`)',
'- Git commits made (repo + short SHA + message)',
'- Services restarted or deployed',
'- URLs, endpoints, or dashboards affected',
'- Any other concrete artifact that can be verified',
'',
'Example:',
'## Result',
'- Edited `/home/johan/dev/inou/src/api/labs.ts` — fixed LOINC matching logic',
'- Committed: `inou` a3f9c12 "fix: LOINC code normalization for non-standard separators"',
'- No services needed restart',
)
return lines.join('\n')
}