Add spec-first policy semantic harness#145
Merged
Merged
Conversation
Introduces reference models and policy_semantics integration tests to catch eviction drift, wires TTL tests through LruOccupancyModel, and extends CI/docs for the new layer. Co-authored-by: Cursor <cursoragent@cursor.com>
Clarify dual-run vs invariant-only tiers, fix strategy tables, and DRY residency probes so documentation matches how policy_semantics tests run. Co-authored-by: Cursor <cursoragent@cursor.com>
Gate exact/bounded modules and op strategies by policy-* features, remove unwired helpers, and keep a documented allow(dead_code) on the shared harness root for multi-crate partial usage (policy_semantics vs ttl). Co-authored-by: Cursor <cursoragent@cursor.com>
…TLA+ pilots. Introduce operational policy specs, independent reference oracles for all exact-tier policies, shared driver helpers, and cross-model proptests so specs drift is caught before impl dual-run. Add FIFO and LRU TLA+ modules with manual TLC runbooks. Co-authored-by: Cursor <cursoragent@cursor.com>
Split the flat specs directory so operational docs, TLA+ artifacts, and shared fragments are easier to extend; update matrix links, TLC scripts, and harness doc paths. Co-authored-by: Cursor <cursoragent@cursor.com>
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
exact/andreference/oracles, andpolicy_semanticsdual-run / cross-model tests for exact-tier policies.policies/andformal/layout with shared_includes/fragments.Test plan
cargo test --test policy_semantics --all-features(57 tests)./scripts/run-fifo-tlc.shand./scripts/run-lru-tlc.shMade with Cursor