Repository navigation
fix(verifier): crash and mis-parse fixes in math verification engine - #2
Open
CodeWhitaker wants to merge 1 commit into
Open
CodeWhitaker wants to merge 1 commit into
CodeWhitaker wants to merge 1 commit into
Conversation
- Tuple-shaped parse results no longer crash verify_payload (HTTP 500) - SymPy AttributeError inside simplify().equals() caught (HTTP 500) - sinh x no longer mangled to sin(h)*x - Lazy regex no longer captures bare backslash for \to\infty bounds - Limits in variables other than x/y/z/t now use the right symbol - Linear-system matcher no longer false-verifies 'max = 5' via \bx= - Bare e parsed as Euler's number, not a free symbol
|
@CodeWhitaker is attempting to deploy a commit to the Saim Shafique's projects Team on Vercel. A member of the Team first needs to authorize it. |
This branch has not been deployed
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.
7 findings in
services/verifier/(Python/SymPy), each reproduced before fixing. The Next.js side (guards, quota reserve/refund, Lemon Squeezy HMAC) was reviewed and found solid.Fixes
final_answer="2, 3") crashedverify_payload-> HTTP 500.parse_math_expressionnow returnsNonefor non-Expr.AttributeErrorinsidesimplify().equals()on\int_0^\infty e^{-x} dx-> HTTP 500. try/except inexpressions_match; numeric fallback still applies.\sinh xwas mangled tosin(h)*x. Hyperbolic functions handled +(?!h\b)guard.\for\to\infty/\inftybounds. Braced-group-or-bare-token bound patterns +\infty->oomapping.x.Symbol(var_name)fallback."the max = 5, y = 1"(matchedx=inside "max"). Leading\badded.eparsed as a free symbol instead of Euler's number."e" -> EinLOCAL_SYMBOLS.Verification
Deploy note
Redeploy the verifier service after merging. No secrets or infra changes needed.