Repository navigation
fix(#488): prevent loop phase retry misclassification as cold-start - #489
Merged
Merged
Conversation
Loop phase failures (47-51s) were misclassified as cold-start failures, triggering 2 cold-start retries + 1 MCP fallback = 3 wasted spawns per loop invocation. For a 3-iteration quality loop, that's 9+ doomed spawns. Changes: - Skip cold-start retry loop for `loop` phase (single attempt only) - Skip MCP fallback for `loop` phase (MCP is never the cause) - Enrich loop prompt with QA findings (verdict, gaps, suggestions, output) so the /loop skill has context without reconstructing from GitHub - Pass SEQUANT_LAST_VERDICT and SEQUANT_FAILED_ACS env vars to skills - Add promptContext field to ExecutionConfig for phase-specific context Fixes #488
5 tasks
Add 6 unit tests for buildLoopContext covering verdict, gaps, suggestions, error, output truncation, and minimal result edge cases. Export function with @internal annotation for testability. Add CHANGELOG entry for the quality loop retry fix. Entire-Checkpoint: 00a98ce12944
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
loopphase — failures at 47-51s are genuine skill failures, not initialization issuesloopphase — MCP is never the cause of loop failures/loopskill has context directlySEQUANT_LAST_VERDICTandSEQUANT_FAILED_ACSenv vars for additional skill contextpromptContextfield toExecutionConfigfor phase-specific prompt enrichmentAC Coverage
/loopreceives QA findings directly (verdict + gaps)Test plan
tsc --noEmit)Fixes #488