[AUTO-ARCH-16] docs(spec): update prompt injection mitigation to use XML-delimited tags #9566

Closed
HAL9000 wants to merge 1 commits from auto-arch-16/spec-xml-prompt-injection-mitigation into master

1 Commits

Author SHA1 Message Date
HAL9000 3780be48bb docs(spec): update prompt injection mitigation to use XML-delimited tags
CI / push-validation (pull_request) Successful in 24s
CI / helm (pull_request) Successful in 25s
CI / build (pull_request) Successful in 26s
CI / quality (pull_request) Successful in 34s
CI / lint (pull_request) Successful in 45s
CI / security (pull_request) Successful in 1m2s
CI / typecheck (pull_request) Successful in 1m14s
CI / e2e_tests (pull_request) Successful in 3m42s
CI / integration_tests (pull_request) Successful in 4m3s
CI / unit_tests (pull_request) Successful in 5m11s
CI / docker (pull_request) Successful in 58s
CI / coverage (pull_request) Successful in 13m5s
CI / status-check (pull_request) Successful in 2s
Replace [USER_CONTENT_START]/[USER_CONTENT_END] bracket markers with XML-delimited tags as the canonical approach for prompt injection mitigation in the Strategize phase.

Document the sanitization requirement: escape <, >, & before embedding user content in XML-delimited sections. Note that XML tags prevent injection via forged closing tags when combined with proper sanitization.

Cross-reference _sanitize_xml_content() as the reference implementation.

Closes #9522
2026-04-14 23:12:39 +00:00