"""Adversarial tests for the residual Python CodeQL fixes (PR #6503 lane). Covers py/reflective-xss (search page), py/path-injection (context_info host path oracle) and py/stack-trace-exposure (readiness, stream errors, task drafting). """ import asyncio import json import re from types import SimpleNamespace import pytest # -- py/reflective-xss: GET /search/web?q= ---------------------------------- _XSS_QUERIES = [ '', "", "