Stop finished leaves from re-inferring after a report reply - #688
Merged
TheGreatAxios merged 2 commits intoAug 25, 2026
Merged
Conversation
Empty idle-compact and stall continuations were falling through to DefaultDirector.infer after SubAgentDirector already replied with a valid report envelope, which revived the brief about every stall timeout on persist sessions (CL-7068). Fence those empty events once reportReplied is set; only a non-empty parent message re-opens work.
Salvage, idle-compact meter, and a second empty continuation after a terminal report reply must wait without re-inferring. Prior cases only exercised a single empty ping with no continuation channel.
TheGreatAxios
added a commit
that referenced
this pull request
Aug 27, 2026
* Stop finished leaves from re-inferring after a report reply Empty idle-compact and stall continuations were falling through to DefaultDirector.infer after SubAgentDirector already replied with a valid report envelope, which revived the brief about every stall timeout on persist sessions (CL-7068). Fence those empty events once reportReplied is set; only a non-empty parent message re-opens work. * Cover post-report wait paths the fence left untested Salvage, idle-compact meter, and a second empty continuation after a terminal report reply must wait without re-inferring. Prior cases only exercised a single empty ping with no continuation channel.
TheGreatAxios
added a commit
that referenced
this pull request
Aug 27, 2026
* Stop finished leaves from re-inferring after a report reply Empty idle-compact and stall continuations were falling through to DefaultDirector.infer after SubAgentDirector already replied with a valid report envelope, which revived the brief about every stall timeout on persist sessions (CL-7068). Fence those empty events once reportReplied is set; only a non-empty parent message re-opens work. * Cover post-report wait paths the fence left untested Salvage, idle-compact meter, and a second empty continuation after a terminal report reply must wait without re-inferring. Prior cases only exercised a single empty ping with no continuation channel.
TheGreatAxios
deleted the
cl-7068-finished-leaf-re-infers-after-valid-report-envelope
branch
August 28, 2026 00:09
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
SubAgentDirectorafter a terminal report reply (complete/ salvage) so empty idle-compact and stall continuations returnwaitinstead of falling through toDefaultDirector.infer.followup_task/send_input) clears the fence and re-opens the brief.Fixes the subagent-54 loop: valid report → tool-less "Done." nudge → same report every ~
subAgentStallTimeoutMs.Closes CL-7068
https://linear.app/abklabs/issue/CL-7068/finished-leaf-re-infers-after-valid-report-envelope-incomplete-report
Test plan
bun test ./src/subagent/nudge-director.test.ts(16 pass, including three CL-7068 cases)bun test ./src/subagent/(303 pass)bun run typecheck/bun run build/ lint (0 errors)