Repository navigation
test(adr-001): property-based tests for the SubLinear pipeline - #50
Merged
Merged
Conversation
Unit tests cover specific cases; this fuzzes the contract surface
that the rest of the stack relies on. Four properties asserted
across randomly-generated strict-DD matrices + sparse deltas:
1. closure_indices(M, seeds, depth) is monotone in depth.
(BFS frontiers never shrink.)
2. Empty delta short-circuits to empty result on strict-DD input.
(The "no event, no work" wire-contract from PR #29.)
3. verify_sparse_solution passes on every auto-tuned orchestrator
output. (Trust-but-verify gate from PR #41 — if this ever
fails, the solver has a real bug, not just a tolerance miss.)
4. Manual orchestrator with generous depth + terms agrees with
auto-tuned at shared closure entries. (Cross-validates the
auto-tune from PR #38 against a known-good baseline.)
Generation strategy: diag=10 matrices with bounded off-diagonals,
guaranteeing strict-DD by construction. Side-steps the
SolverError::Incoherent path the auto-tuner takes on non-DD input.
Tests live in tests/property_sublinear.rs (integration test crate).
proptest was already a dev-dep in Cargo.toml; no new deps added.
4/4 cases pass on the default proptest budget (256 cases per
property by default).
Co-Authored-By: claude-flow <ruv@ruv.net>
1 of 2 tasks
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
Unit tests cover specific cases; this PR fuzzes the contract surface the rest of the stack relies on. Four properties asserted across randomly-generated strict-DD matrices + sparse deltas:
Generation strategy
`diag = 10` matrices with bounded off-diagonals → guaranteed strict-DD by construction. Side-steps the `SolverError::Incoherent` path the auto-tuner takes on non-DD input.
Test plan
🤖 Generated with claude-flow