You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keep quoted string contents intact in CI condition expressions #998
The plan evaluator rewrites operators and function spellings before parsing quoted strings. Equality against the identical values a!b, a&&b, a||b, and always() returns false. Context-looking text inside a string needs the same protection.
Audited canonical Wave 540728c2eb6cc12f5c69c3fb3fdb96e07ba059a4 (0.0.1-alpha-dev), whose tree matches the local checkout. Validation: Executed Python evaluate() reproductions. Executed compiler probes use the matching checkout-built compiler and std on Linux amd64 (Rust 1.89.0 / LLVM 21.1.8). Source/header or mocked checks are not native execution on another OS.
fromtools.ci.commonimportevaluateprint(evaluate("inputs.value == 'a!b'", {"inputs.value": "a!b"}))
# False; the comparison should be True.
Scope
Make expression token handling respect quoted literals while preserving the existing small checked expression language; do not broaden it into unrestricted evaluation.
I'd like to work on this. I will add regression tests around quoted string literals (operators, always()/cancelled(), and context-looking text), preserve the existing restricted AST evaluator and boolean short-circuiting, and update expression token substitution without introducing unrestricted evaluation.
Activity
erenbati commentedon Oct 25, 2026
I'd like to work on this. I will add regression tests around quoted string literals (operators, always()/cancelled(), and context-looking text), preserve the existing restricted AST evaluator and boolean short-circuiting, and update expression token substitution without introducing unrestricted evaluation.