Repository navigation
Conversation
Python and native weave reports hardcoded syntaxValid: true while only the JavaScript verifier parses source. Leave the optional field unset for formats without a parser so the report no longer claims a check that never ran.
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.
Summary
Python and native weave reports always said
syntaxValid: true. Only the JavaScript verifier actually parses the source; the Python and native paths extract functions with regexes and brace counting, so a file with broken syntax was reported as syntactically valid.An agent that introduced a broken edit during source surgery then got a green structural report. The optional field is part of
bla-weave-verify/v1, so the claim travelled to MCP clients too.What changed
verifyPythonWeaveFileandverifyNativeWeaveFileno longer setsyntaxValid. The field stays optional, so the report simply does not claim a check that never ran.falseon a broken.jssource.tests/weave-syntax-validity-honesty.test.tsasserts that broken Python and C fixtures do not reporttrue, and that a broken JS fixture still reportsfalse.Compatibility
JSON consumers that read
syntaxValidneed to treat absence as "not checked", which is already how the optional field is typed. JavaScript reports are unchanged. No check ids, scores or overall pass values change.Verification
npx vitest run tests/weave-syntax-validity-honesty.test.ts tests/agent-driven-hardening-v3.test.ts tests/weave-verify-scope.test.tspasses, 14 tests.npx tsc --noEmitis clean.