Repository navigation
fix(validation): compare decoded TOML command descriptions - #697
Closed
rudycelekli wants to merge 1 commit into
Closed
rudycelekli wants to merge 1 commit into
rudycelekli wants to merge 1 commit into
Conversation
Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.