Repository navigation
Add source-backed coverage planning, witness shrinking and replay - #58
Open
davidkpiano wants to merge 3 commits into
Open
davidkpiano wants to merge 3 commits into
davidkpiano wants to merge 3 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
This was referenced Oct 25, 2026
davidkpiano
marked this pull request as ready for review
October 26, 2026 20:33
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.
Adds a compiler/runtime-independent source coverage protocol to the standalone graph library. The denominator comes from an independently extracted manifest; zero-hit outcomes remain in reports. Search can combine explicit event cases, schema/PBT cases and async targeted or LLM suggestions, but only executed source observations count.
The API includes an async witness generator, suite reduction, sequence/payload shrinking through verified replay, machine-scoped reporting, explicit search bounds and execution errors. Each candidate starts from a fresh session and replays its prefix; stopped generators close active sessions. Source hash/runtime mismatches and unknown outcome IDs fail. Known child-machine observations are filtered from parent-scoped evidence; per-machine witnesses can be combined for full-file reporting.
Complete means extraction is complete and every required source outcome has a witness. Search exhaustion does not prove unreachability. This criterion does not claim all condition combinations, context values, sequences, schedules or SUT properties. JSON witnesses are evidence to replay, not self-authenticating proof.
Validation: 114 files / 4,292 tests passed, including a shared real-v6 source conformance fixture and tests for missing denominators, suggestions with setup prefixes, streaming cleanup, shrinking, stale/unknown identities, machine scope and budgets. Both typechecks, conventions, generated schema, build, publint and packed consumer smoke passed. Verify components requiring
tsxIPC used equivalentnode --import tsxcommands because that socket is blocked in this environment.Stacked on #57.
AST/instrumentation: https://github.com/statelyai/viz/pull/934.
Execution sessions: statelyai/xstate#5826.
Coverage stack: graph parity, graph planning/replay, AST + SDK, XState sessions, CLI + Viz graph.