Skip to content

Catch tool names bordered by . : - in the A2A progress leak-guard - #67

Open
Dnyaneshvn wants to merge 1 commit into
inkbox-ai:mainfrom
Dnyaneshvn:fix/a2a-progress-leak-guard
Open

Catch tool names bordered by . : - in the A2A progress leak-guard#67
Dnyaneshvn wants to merge 1 commit into
inkbox-ai:mainfrom
Dnyaneshvn:fix/a2a-progress-leak-guard

Conversation

@Dnyaneshvn

Copy link
Copy Markdown
Contributor

Fixes #66.

_clean_update only treated _ as a word boundary when checking for echoed tool names, but the normaliser keeps ., : and -. So a tool name next to one of those ("bash-based", "edit.py") got past the guard and sent to the untrusted remote agent via a2a_reply.

  • match echoed tool names across any non-alphanumeric boundary, not just _

Tests: names bordered by -, . and : now hit the fallback; existing underscore/space cases unchanged.

Before: "Running bash-based checks now" leaked "bash". After: suppressed. Full suite green (550).

_clean_update only treated "_" as a word boundary when checking for echoed tool
names, but the normaliser keeps ".", ":" and "-". So a tool name next to one of
those ("bash-based", "edit.py") got past the guard and sent to the untrusted
remote agent via a2a_reply.

- match echoed tool names across any non-alphanumeric boundary, not just "_"
- add tests for names bordered by "-", "." and ":"

Fixes inkbox-ai#66
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.

A2A progress leak-guard misses tool names bordered by . : -

1 participant