eval_toolkit.preprocessing#

Structural-defense preprocessing — the 3 Spotlighting transforms from Hines et al. 2024 (arXiv 2403.14720) exposed as both a functional API (delimit / datamark / encode) and v0.47 dataclass wrappers (DelimitVariant, DatamarkVariant, EncodeVariant) that satisfy the TextTransform Protocol for eval_toolkit.sweep().

DatamarkVariant

TextTransform wrapper around datamark().

DelimitVariant

TextTransform wrapper around delimit().

EncodeVariant

TextTransform wrapper around encode().

datamark

Prepend marker before each non-leading whitespace run.

delimit

Wrap text in unusual delimiters so the LLM can spot the boundary.

encode

Encode text so the LLM treats the result as data, not instructions.