"""Deterministic typed literals for synthetic calibration and evaluation rows. The model sees NAME rather than the literal. Fixtures still need valid values for the runtime's URL and basename contracts, including unsupported requests about web navigation; otherwise malformed arguments would inflate rejection. This module does not read benchmarks and is not used during user inference. """ import json import re from urllib.parse import quote # Web-context negatives receive a real URI rather than an invalid placeholder. _WEB_CONTEXT = re.compile(r'\b(?:url|uri|website|site|browser|web)\b', re.IGNORECASE) # Quoted strings are matched first so their contents cannot become placeholders. _LITERAL_OR_PLACEHOLDER = re.compile(r'"(?:\\.|[^"\\])*"|(?