Repository navigation
[TS PBT] Capture compiler-owned numeric DSL results - #580
Open
CaelmBleidd wants to merge 1 commit into
Open
CaelmBleidd wants to merge 1 commit into
CaelmBleidd wants to merge 1 commit into
Conversation
This was referenced Oct 16, 2026
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 Kotlin DSL can now opt in to capture the numeric result of one shared direct function call and its original input operand. The existing FastCheck observation artifact and scalar inference consume those values; the ordinary generated boolean predicate remains plain TypeScript.
The first supported form is a numeric shared local initialized by a direct call, used as one direct operand of an original named
===or<=check; its other operand is an original numeric input. The compiler retains the program/node/local, predicate and companion exports, both generated assignment positions, selected source hash, and occurrence. Other requested forms are explicitly rejected.The opt-in observation point declares a typed callback ABI. Only the generated diagnostic companion receives that callback, directly after its original
constassignment. The normal public observation hook cannot write compiler-owned points. The original property/manifest function API is unchanged; no Symbol support, new recorder, second compiler or statement language is added. Shared calls keep their order and execute once across multiple checks; a declaration after a check remains rejected.This is a capture prerequisite for #398. The descriptor is not proof of an arbitrary executable body: observation build status remains
UNVERIFIED, and selected source hashes do not establish transitive import/build identity. Exact symbolic point binding and full native hypothesis refutation follow separately; this PR does not activate guidance from arbitrary callback names or source coordinates and does not close #398.Review scope
13 files, +804/-18: +332/-18 production/package wiring and +472 tests. The PR targets the existing immutable dependency branch
caelmbleidd/pbt-entry-refutation-baseat29bfd78fe53da23e7f4ed9fe3881b53a43606b38. It does not depend on the #576 entry-refutation feature; the shared base contains main and the already published #544/#566/#560 prerequisites. No campaign or selector changes are included.Validation
usvm-ts-pbttests and 51 relevant DSL/backend/inference Kotlin tests passed.These are local regression checks. No comparative experiment or benchmark campaign was run.