Skip to content

fix(acp): scan 2026-10-01 minors — empty-prompt guard, malformed-reply fail-closed, FR-A1 doc - #156

Merged
ajianaz merged 1 commit into
developfrom
fix/scan-1001-triage
Oct 1, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/scan-1001-triage

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

What (description of the change)

Fixes all four minors from the 2026-10-01 full cora scan on develop (triage: #155):

  • session/prompt empty-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 same missing prompt error as a missing prompt.
  • Permission-reply fail-closed (acp.rs): a reply carrying the matching id but neither result nor error now routes an immediate cancelled outcome instead of letting the waiting thread block for the full 600s PERMISSION_TIMEOUT.
  • docs/prd.md FR-A1 corrected: the config-driven AllowlistApprover lives in tole-core; only the InteractiveApprover (y/N prompt) is a host-side impl injected via the Approver trait (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)

…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.
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit f549cad into develop Oct 1, 2026
16 checks passed
@ajianaz
ajianaz deleted the fix/scan-1001-triage branch October 1, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant