Conversation
Mirrors the parent-task state.put at lines 88-90 for the recovery branch. Placement is before the recovery success check, matching the existing 'even on failure — recovery tasks need it' rule for parents — so the fix is symmetric across all three executeTask sites in runWorkflow. Closes review thread on runner.ts onFailure path: an agentTask used as recovery (e.g. dev-session's fix-quality) declares writes: AgentResult, but the runner never persisted it, dropping the payload silently. Includes regression test: flaky-parent + recovery-with-writes + downstream reader. Pre-fix, downstream throws on resolve(Counter) because the recovery's value never entered state.
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.
Mirrors the parent-task state.put at lines 88-90 for the recovery branch. Placement is before the recovery success check, matching the existing 'even on failure — recovery tasks need it' rule for parents — so the fix is symmetric across all three executeTask sites in runWorkflow.
Closes review thread on runner.ts onFailure path: an agentTask used as recovery (e.g. dev-session's fix-quality) declares writes: AgentResult, but the runner never persisted it, dropping the payload silently.
Includes regression test: flaky-parent + recovery-with-writes + downstream reader. Pre-fix, downstream throws on resolve(Counter) because the recovery's value never entered state.