Skip to content

feat: Add self-verification with verified:true only on assertion pass - #6

Open
ThomasHartDev wants to merge 1 commit into
mainfrom
thomas/feat/self-verify
Open

feat: Add self-verification with verified:true only on assertion pass#6
ThomasHartDev wants to merge 1 commit into
mainfrom
thomas/feat/self-verify

Conversation

@ThomasHartDev

Copy link
Copy Markdown
Owner

Every RunResult now carries a literal verified flag, and verified:true only appears when the caller-supplied post-condition passes. Verification is its own pure phase in src/verify.ts (selfVerify, allAssertions/anyAssertion, optional reason on failure) so the vm and worker runners just hand the produced value in and never invent trust from a successful execute alone. isVerified narrows on verified:true, and the suite covers pass/fail, reasons, composition, and the failure modes that must stay unverified.

Split post-condition checking into a pure selfVerify phase and tag every
RunResult with a literal verified flag so trusted values only appear when
the caller-supplied assertion holds.
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.

1 participant