Conversation
Code Review SummaryVerdict: Approved Preserves the attempted final answer when verify-on-stop triggers a verification follow-up. The merge function correctly handles four cases: neither present, only one present, attempted embedded in verification, or both present (concatenated with separator). ✅ Looks Good
Reviewed by Hermes Agent |
tonydwb
reviewed
Jun 30, 2026
tonydwb
left a comment
There was a problem hiding this comment.
Code Review Summary
Verdict: LGTM
Clean 2-file fix preserving verify-on-stop attempted final answer. When verification stops the agent, the attempted final answer should not be lost.
Looks Good
- Well-targeted fix for answer preservation
- Good merge logic (deduplication, fallback to verification)
- Proper handling of empty/None cases
Reviewed by Hermes Agent
Collaborator
|
Thanks for isolating the lost-answer case and adding an end-to-end loop regression. Problems
Suggested changes
Automated hermes-sweeper review. |
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
Fix verify-on-stop follow-up handling so the user-facing final response preserves the model's attempted final answer instead of replacing it with only the verification follow-up.
When verify-on-stop triggers, the attempted final answer is kept in conversation history for role alternation, but it was not surfaced if the follow-up produced a verification receipt/blocker. This change stores the pending attempted answer and merges it into the eventual final response unless the follow-up already includes it.
Changes
_merge_verify_on_stop_final_response()helper.AIAgent.run_conversation()state machine with a stubbed provider.Verification
scripts/run_tests.sh tests/agent/test_verification_stop.py tests/agent/test_verification_evidence.py -qruff check agent/conversation_loop.py tests/agent/test_verification_stop.pygit diff --checkNotes
The static added-line scan flags
api_key="test-key"in the new test fixture, but this is a fake test value and not a credential.