Repository navigation
Verify 0.9.2 / Python 0.7.2 / Go v0.8.2: print a failure as CODE: message after close() in finally - #84
Merged
Conversation
…sage after close() in finally Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ctions still reach an app's handler; plugin 1.3.1 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…re-line Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
…re-line Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # .claude-plugin/plugin.json # plugin.json
… the 0.9.2 package Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.
Fixes how a failed run prints in the pattern every example and skill uses,
open()…try…finally { await session.close() }. The docs (agents.md,errors.md, therevyl-verifyskill) promise aCODE: messageline. What actually printed was Node's default uncaught-error dump: the throwing source line, a stack, the error's fields andNode.js v24…, with the code buried ascode: 'VALIDATION_FAILED'.Cause:
cleanup.tsremoved itsuncaughtException/unhandledRejectionlisteners inuntrackSession(), along with the last session. In the try/finally pattern,close()runs before the error escapes, so by then nothing printed it. A rejected top-level await reachesuncaughtException, so a listener that stays installed is enough.Fix (TypeScript only):
uncaughtExceptionlistener stays installed after the last session closes. As before, it's added only when nothing else listens. TheunhandledRejectionlistener still comes and goes with sessions, so after the last close Node promotes a stray rejection touncaughtException, and an app's own handler sees it first.beforeExitstill come and go with sessions.Python and Go don't have this gap. An uncaught Python
VerifyErroralready ends its traceback withVerifyError: CODE: message, open or closed, and a Go*verify.Errorprints asCODE: messagefromlog.Fatal(err).Checked with a script on the built
cleanup.js:VerifyErrorthrown intry,close()infinallyVALIDATION_FAILED: Validation failed: "…". <reason> See <link>, exit 1uncaughtExceptionhandler after closingErrorfrom the script's own checkuncaughtExceptionhandlerVerifyErrorrejection after close, no app handlerSTEP_FAILED: …, exit 1CODE: message, then[verify] Closing …Release prep: the version moves to 0.9.2 / Python 0.7.2 / Go v0.8.2 everywhere RELEASING.md lists: both npm packages, every example pin, the version maps and links in the READMEs, the skill and the docs,
go/client.go,pyproject.toml,__version__, theUser-Agent, both lockfiles, and the release test fixtures. CHANGELOG has 0.9.2, Go 0.8.2 and Python 0.7.2 sections. The plugin goes to 1.3.1, since the skill's links changed; verify#83 sets 1.3.0, so merge #83 first and this one takes the next number.Everything that merged to main after the v0.9.1 tag (verify#82 and verify#86–#92) was listed under the published 0.9.1 / Go 0.8.1 / Python 0.7.1 sections, but it isn't in those releases. Those bullets move to 0.9.2 / 0.8.2 / 0.7.2, and the 0.9.1-family sections now match the tag exactly. verify#87's 9-minute persistent minimum replaces #82's 390 s bullet.
Not tagged. The maintainer tags
v0.9.2,py/v0.7.2andgo/v0.8.2after merge. Therevyl-verifyskill, which ships in this package, now says a failure printsCODE: message. The plugin-onlyverifyskill gets the same change in draft #85 after publish.Checks
npm run build,typecheck,test(284 passed),check:package, andcheck:links: 41 links answer 200 and pin only 0.9.2 / 0.7.2 / v0.8.2.go vet,go test ./....Note
Low Risk
Risk is low: the behavioral change is limited to Node process cleanup and error printing, with explicit deferral when other
uncaughtExceptionhandlers exist; the rest is versioning and documentation.Overview
Bumps Verify 0.9.2, Python 0.7.2, Go v0.8.2, and the revyl-verify plugin to 1.3.1, with version pins and doc links updated across examples, READMEs, and the agent skill.
The notable runtime fix is in TypeScript
cleanup.ts: theuncaughtExceptionlistener is no longer torn down when the last session untracks, so failures in the usualtry/finally { await session.close() }pattern print a singleCODE: messageline (as documented) instead of Node’s fullVerifyErrordump. Verify still installs that handler only when nothing else listens, andonFatalsteps aside once the app adds its own handler.CHANGELOG adds 0.9.2-family sections and moves features that landed on
mainafter the 0.9.1 tag out of the 0.9.1 bullets (computer close/release, queued timeouts, file transfer limits, persistent start retry, etc.), so the changelog matches what this release actually ships.Reviewed by Cursor Bugbot for commit 762aede. Bugbot is set up for automated code reviews on this repo. Configure here.