[TS Calls] Evaluate fallback policies and models with concrete replay - #390
Merged
CaelmBleidd merged 13 commits intoSep 20, 2026
Merged
Conversation
CaelmBleidd
force-pushed
the
caelmbleidd/issue-385-four-profile-source-replay
branch
from
September 20, 2026 10:09
d7dd5c3 to
3bd8a8a
Compare
CaelmBleidd
force-pushed
the
caelmbleidd/issue-385-four-profile-source-replay
branch
from
September 20, 2026 12:23
1511572 to
8866522
Compare
CaelmBleidd
deleted the
caelmbleidd/issue-385-four-profile-source-replay
branch
September 20, 2026 13:37
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 four unknown-call configurations need comparable target measurements and concrete replay against the original TypeScript. This PR adds a dedicated
usvm-ts-callsexperiment module, preserves symbolic and replay outcomes separately, and stores lossless scalar witnesses so individual results can be reproduced.The reusable property layer is split by responsibility:
usvm-ts-pbtowns backend-neutral property/domain models, validation, registries, run and coverage contracts, Istanbul decoding, and property-to-EtsIR mapping;usvm-ts-fast-checkownsFastCheckBackend, the Node adapter, supervised process transport, c8 collection, CLI, and packaged runtime;usvm-ts-callsdepends on both and delegates concrete source replay toFastCheckBackend.Calls source replay instruments a temporary source overlay and executes one constant-input property through that shared backend. Calls therefore carries no second Node adapter, transport, supervisor, npm package, or dependency lock.
The experiment supports the empty/frozen model sets crossed with
STOP_PATH/FRESH_SYMBOLIC_RETURN, rotates profiles, aggregates raw results, and replays one stored witness. Reproducibility uses pinned tool, project, and native-frontend Git revisions plus selected model IDs. The manifest and results contain no catalog fingerprints or source/runtime digest metadata.Symbolic exploration uses
CLOSEST_TO_UNCOVERED_RANDOM, withstopOnCoverage = 0, so the bounded census is guided toward varied uncovered call sites without stopping after reaching a coverage threshold. Manifest validation rejectsBFSto prevent silently returning to its short, early-path bias.The symbolic engine aligns target observation with original-source replay. For statements such as
throw new Error(...), EtsIR evaluates nested instructions before the exact-spanEtsThrowStmt; the engine observes a uniquely proven CFG entry into the complete source-statement lowering region. Ambiguous or insufficient origin metadata is reported as unsupported.TsMachineexposes whether analysis exhausted its paths or stopped early. The Calls experiment maps the latter to timeout because timeout is its only enabled stop condition; no sharedusvm-corestop-strategy API is changed.Validation:
usvm-ts-pbt,usvm-ts-fast-check, andusvm-ts-calls, main and test: zero findings;:usvm-ts-calls:check;usvm-ts-fast-checkandusvm-ts-calls;validateProjectList: passed;CLOSEST_TO_UNCOVERED_RANDOM: all four profiles reachedfibonacciIterative#negative-inputand replayed as confirmed;FROZEN_STOPwitness replay: confirmed target hit with the expected thrownError.Closes #385.