task/461-refresh-the-failure-mandate-in-loop-when
On a gate-repair retry the failure text was frozen for the whole tool loop. The agent edited the offending file, was told "written successfully", and kept editing against a diagnostic it may already have cleared — it only found out after stage_complete, when runPostStageGates re-ran from the top. refreshLspRetryMandate hangs off the existing wroteThisRound hook: when the pending retry mandate is an lsp_diagnostics failure and a write landed on a path that failure names, re-pull diagnostics, record LspDiagnosticsCompletedEvent, and rebuild the retryFeedback entry. buildRetryFeedbackEntry already renders per-file freshness from that event, so the ledger flips to "done, leave it" in-loop with no new message format and no context rebuild. Two calls worth stating. The pull covers the stage's whole written set, not just the named paths, because a path absent from the recorded event reads as clean to fileRepairOutcomes — a partial pull would mark unrelated files repaired. A skipped pull returns null rather than recording empty diagnostics, for the same reason: telling the model to leave a still-broken file alone is worse than leaving the stale text in place. Scoped to LSP. A tsc or npm run build re-run per write is too expensive. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
fix: workflow inference chain — surface llama-server errors, user-turn-last, bundle-relative prompts
Description
No description provided
Languages
Kotlin
89.1%
Go
10.6%
Python
0.2%
CSS
0.1%