Skip to content

fix(validation): compare decoded TOML command descriptions - #697

Closed
rudycelekli wants to merge 1 commit into
addyosmani:mainfrom
rudycelekli:fix/toml-command-description-escapes-20261016
Closed

rudycelekli wants to merge 1 commit into
addyosmani:mainfrom
rudycelekli:fix/toml-command-description-escapes-20261016

Conversation

@rudycelekli

Copy link
Copy Markdown
Contributor

The command parity check reports drift when equivalent single-line descriptions use valid TOML escapes. For example, a Windows path encoded with a doubled backslash or a Unicode character encoded with \u/\U displays identically to the Claude description, but the validator compares the escaped source text.

Decode basic-string escapes in one pass before comparing descriptions. This preserves literal escape-like text without decoding it twice and leaves literal single-quoted descriptions intact. The change is limited to the existing single-line description reader.

Validation: exact-main baseline passes 15 command tests and fails the four new semantic-parity regressions; fixed command suite passes all 19. Python 3.13 tomllib independently confirms the four fixtures. All 218 validator/eval-runner tests pass; all five validation scripts pass; routing evals pass 143 checks with 100% rank-1 on 91 positive prompts. An independent source review and focused test replay pass. Full all-state 504-PR duplicate review found no matching command-TOML escape fix; #675 concerns YAML eval identities. Hosted plugin-install checks remain for CI.

Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
@addyosmani

Copy link
Copy Markdown
Owner

Thanks. Closing this one: the TOML files only ever use escaped quotes, which the validator already handles, and if anyone used another escape it would fail loudly rather than slip through. I'm keeping validator code to failures we've actually seen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants