Repository navigation
fix(acp): scan 2026-10-01 minors — empty-prompt guard, malformed-reply fail-closed, FR-A1 doc - #156
Merged
Merged
Conversation
…y fail-closed, FR-A1 doc note The full cora scan on develop (1e4dc9b) found four minors; all four fixed: - session/prompt with a text-less prompt array (empty or image-only) no longer launches a full agent turn on empty input — rejected with the same missing-prompt error. - A permission reply carrying the matching id but neither result nor error now fails closed immediately (cancelled outcome) instead of hanging the waiting thread for the full 600s timeout. - docs/prd.md FR-A1 corrected: AllowlistApprover lives in tole-core; only InteractiveApprover is a host-side impl injected via the trait. Triage: #155.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This was referenced Oct 1, 2026
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.
What (description of the change)
Fixes all four minors from the 2026-10-01 full cora scan on develop (triage: #155):
session/promptempty-prompt guard (acp.rs): a text-less prompt array (empty, or only non-text blocks like images) joins to an empty string and previously launched a full agent turn on empty input; now rejected with the samemissing prompterror as a missing prompt.idbut neitherresultnorerrornow routes an immediate cancelled outcome instead of letting the waiting thread block for the full 600sPERMISSION_TIMEOUT.AllowlistApproverlives in tole-core; only theInteractiveApprover(y/N prompt) is a host-side impl injected via theApprovertrait (matches architecture.md and the actual module layout).Why (the problem you're solving)
Post-merge full-scan discipline (#155): triage every finding on the merits. All four were minor but real — two ACP protocol-robustness gaps and two doc statements contradicting the code layout (a review liability per the repo's own standard).
Testing (how you verified this works)
cargo test -p tole-cli --lib11/11;acp_handshakeintegration 4/4; clippy-D warningsclean; fmt clean.1e4dc9b(post-0.5-train), valid retry after a false-clean first attempt (all batches skipped on provider rate-limit — recorded in fix: cora full-scan 2026-10-01 triage — 4 minors (ACP empty-prompt turn, permission-reply hang, 2 doc notes) #155).