Scenario generation: design doc and manual BB prototype - #60
Open
mwhicks1 wants to merge 2 commits into
Open
Conversation
Introduces the HiFi-style systematic testing pipeline for Specimen: - Design doc outlining the 4-phase architecture (feature extraction, scenario enumeration, goal-directed planning, campaign execution) - Manual prototype for BoundedBuffer demonstrating deterministic 100% behavioral coverage in 9 test executions vs. ~1000 random traces
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.
Summary
Scenario-Generation-DESIGN.md) outlining a HiFi-style systematic testing pipeline for Specimen, based on HiFi: High Fidelity Models for Large Scale Stateful Services (Jaber et al., OSDI '26)BoundedBufferScenarios.lean) demonstrating the full pipeline for the BoundedBuffer spec: feature extraction → scenario enumeration → goal-directed planning → differential testing campaignsMotivation
The existing forward/backward Specimen generators for
SafeBBTraceexplore stochastically — they cluster around easy-to-satisfy paths (mostlySizeOp) and may miss important scenarios (Put on full, Get on empty). The HiFi paper shows that systematic scenario enumeration with goal-directed planning is dramatically more efficient and provides measurable coverage guarantees.The long-term goal is to derive this entire pipeline automatically from the inductive relation spec via new
derive_planner/derive_campaigncommands.Design (4-phase architecture)
Test plan
BoundedBufferScenarios.leanbuilds cleanly withlake env lean#guard_msgsassertions pass (correct impl passes, buggy impl detected)([], 3)