Repository navigation
fix(background): retain review evidence through promotion - #573
Merged
agenteinstinct1-max merged 5 commits intoOct 24, 2026
Merged
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (1 file)
Previous Review Summaries (2 snapshots, latest commit 8b641a0)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 8b641a0)Status: No Issues Found | Recommendation: Merge Files Reviewed (3 files)
Previous review (commit be01ae7)Status: No Issues Found | Recommendation: Merge Files Reviewed (3 files)
Reviewed by free · Input: 22.4K · Output: 895 · Cached: 137.9K |
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.
Issue for this PR
Refs #343
Type of change
What does this PR do?
Keep the producer-owned metadata object when a foreground BackgroundJob is promoted.
startalready retains that object, and TaskTool writes late review evidence into it. Replacing the object during promotion hid that evidence from the parked-parent resume path.The ownership contract is now explicit: metadata stays live for the producer across promotion; returned observations shallow-copy its top level, not nested values. TaskTool is the only production start caller found. This preserves the existing contract rather than adding a metadata patch API.
The nested TaskTool regression uses the real TaskTool, registry and Session services. For the resumed incoming report it now calls production SessionPrompt.Service.prompt with noReply:true, exercising actual input-part resolution and persistence instead of manually saving those parts. It asserts the persisted reviewLoop evidence and next outer UNREVIEWED notification. Model responses remain synthetic; this is not full LLM/TUI end-to-end acceptance. The original settled-before-park test remains unchanged. #343 stays open pending review and scope reconciliation.
How did you verify your code works?
git diff --checkpasses. Exact-head Linux/Windows/typecheck and standards/compliance CI are green; actual Kilo comment is clean. Independent review resolved the SessionPrompt-path finding at this head.Screenshots / recordings
Not a UI change.
Checklist