-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Priority: P0 — Blocker; must be confirmed before any code changes
File: src/utils/input_sanitizer.py
Type: Investigation + unit test
The Pydantic model validator on OrchestrationRequest.message runs sanitize_message() at HTTP request parse time — before any handler code runs. If the sanitizer alters the #service, /POST/... string (e.g. collapses whitespace after the comma, or strips the #), the prefix detection logic in Task-03 will never match.
Work:
- Read strip_html_tags() implementation and confirm #, ,, / are not affected.
- Add a unit test: assert InputSanitizer.sanitize_message("#service, /POST/services/active/foo") == "#service, /POST/services/active/foo".
- If the sanitizer does alter it, add a passthrough rule for the #service prefix before stripping HTML.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
PR Raised