Skip to content

Add spec-first policy semantic harness#145

Merged
TKorr merged 5 commits into
mainfrom
feat/policy-semantic-harness
Jun 6, 2026
Merged

Add spec-first policy semantic harness#145
TKorr merged 5 commits into
mainfrom
feat/policy-semantic-harness

Conversation

@TKorr
Copy link
Copy Markdown
Contributor

@TKorr TKorr commented Jun 6, 2026

Summary

  • Introduce spec-first harness with operational specs, exact/ and reference/ oracles, and policy_semantics dual-run / cross-model tests for exact-tier policies.
  • Add TLA+ pilots for FIFO and LRU with manual TLC runbooks and scripts.
  • Reorganize specs into tiered policies/ and formal/ layout with shared _includes/ fragments.

Test plan

  • cargo test --test policy_semantics --all-features (57 tests)
  • ./scripts/run-fifo-tlc.sh and ./scripts/run-lru-tlc.sh
  • Pre-commit hooks pass on branch

Made with Cursor

TKorr and others added 5 commits June 6, 2026 19:51
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>
@TKorr TKorr self-assigned this Jun 6, 2026
@TKorr TKorr merged commit 949e1c9 into main Jun 6, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant