-
Notifications
You must be signed in to change notification settings - Fork 0
Gate merges on Kani, unblock kani-full, and fix reconciliation write-back ordering (#202) #227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
leynos
wants to merge
19
commits into
main
Choose a base branch
from
issue-202-no-kani-harness-gates-a-merge-make-kani-runs-in-no-workflow-and-make-kani-full-is-blocked
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
7e9f15e
Gate the practical Kani suite in pull requests
leynos 818dab4
Remove symbolic hashing from healing and test the MST Kani model (#202)
leynos d49b1d6
Write neighbour lists back before removed-edge reconciliation (#202)
leynos 413df17
Retire deterministic Kani harnesses past the CBMC cliff (#202)
leynos 82a7fc3
Prove HNSW invariants on the reverse-edge surface and complete kani-f…
leynos decb24b
Align the kani-pr setup-rust pin with the Dependabot bump (#202)
leynos 6873caf
Remove a doubled blank line introduced by the rebase merge (#202)
leynos eff7435
Assert weight minimality in the MST harness and refresh the design do…
leynos 59f6bd6
Deduplicate commit-path deferred scrub regression tests (#202)
leynos 5b7f8a1
Address review findings on the Kani gate and shared constructors (#202)
leynos 74c78d6
Apply review quick wins to the oracle, diagram, and contract tests (#…
leynos 1e8d3ca
Address pre-merge check findings on Kani hygiene and observability (#…
leynos 4fc429e
Bound the scope of the shared Kani proof setup helper (#202)
leynos 918383d
Compile only configuration-valid code under cfg(kani) (#202)
leynos 1bff2e6
Pin the Kani verifier from a single source of truth (#202)
leynos 90a22c1
Scope CodeScene rules to the Kani proof surfaces (#202)
leynos 71945a3
Close the coverage gaps in the MST model equivalence suite (#202)
leynos 326fd18
Action the pre-merge findings on coverage, docs, and metrics (#202)
leynos 9975f43
Scan the Makefile kani target with an anchored regex (#202)
leynos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,52 @@ | ||
| { | ||
| "usage": "Kani rule sets are scoped to bounded-proof code only. They deliberately exclude chutoro-core/src/mst/tests/kani_model_equivalence.rs and chutoro-test-support/**/kani_nightly_gate*.rs, which merely carry `kani` in the name and are ordinary Rust under no solver constraint.", | ||
| "rule_sets": [ | ||
| { | ||
| "matching_content_path": "chutoro-providers/dense/src/simd/kernels.rs", | ||
| "matching_content_path_doc": "Kernel functions operate directly on `&[f32]` slices and `usize` offsets because SIMD intrinsics require contiguous, unboxed memory and raw index arithmetic", | ||
| "rules": [ | ||
| { "name": "Primitive Obsession", "weight": 0.0 } | ||
| ] | ||
| }, | ||
| { | ||
| "matching_content_path": "**/kani_proofs/**", | ||
| "matching_content_path_doc": "Kani proof modules. Harness setup is deliberately repeated per proof entry point: sharing an abstraction over a symbolic node id or level multiplies solver aliasing past the tractable CBMC state space. See the `Kani CI policy` section of docs/developers-guide.md.", | ||
| "rules": [ | ||
| { "name": "Code Duplication", "weight": 0.0 }, | ||
| { "name": "Primitive Obsession", "weight": 0.0 }, | ||
| { "name": "Excess Number of Function Arguments", "weight": 0.0 }, | ||
| { "name": "Complex Method", "weight": 0.3 } | ||
| ] | ||
| }, | ||
| { | ||
| "matching_content_path": "**/kani_proofs.rs", | ||
| "matching_content_path_doc": "Single-file Kani proof module; same solver constraint as `**/kani_proofs/**`.", | ||
| "rules": [ | ||
| { "name": "Code Duplication", "weight": 0.0 }, | ||
| { "name": "Primitive Obsession", "weight": 0.0 }, | ||
| { "name": "Excess Number of Function Arguments", "weight": 0.0 }, | ||
| { "name": "Complex Method", "weight": 0.3 } | ||
| ] | ||
| }, | ||
| { | ||
| "matching_content_path": "**/kani_harness.rs", | ||
| "matching_content_path_doc": "Kani harnesses. Bundling harness edge arguments into a struct was measured to help break verification: together with the sort and `kruskal_model` refactors below it took `make kani-full` from 17/17 harnesses verified to `kissat: maximum variable index exceeded`, 0 verified. See docs/kani-full-hnsw-hypothesis-testing.md.", | ||
| "rules": [ | ||
| { "name": "Code Duplication", "weight": 0.0 }, | ||
| { "name": "Primitive Obsession", "weight": 0.0 }, | ||
| { "name": "Excess Number of Function Arguments", "weight": 0.0 }, | ||
| { "name": "Complex Method", "weight": 0.3 } | ||
| ] | ||
| }, | ||
| { | ||
| "matching_content_path": "**/kani_model.rs", | ||
| "matching_content_path_doc": "Bounded sequential model verified in place of the Rayon production path. Unifying its two bounded insertion sorts and decomposing `kruskal_model` inflated the CBMC formula past the SAT solver's variable-index limit, so the model stays concrete and monomorphic. Its behaviour is pinned instead by exhaustive equivalence tests against production in chutoro-core/src/mst/tests/kani_model_equivalence.rs. `Complex Method` is down-weighted rather than disabled so genuine complexity growth still surfaces in review.", | ||
| "rules": [ | ||
| { "name": "Code Duplication", "weight": 0.0 }, | ||
| { "name": "Primitive Obsession", "weight": 0.0 }, | ||
| { "name": "Excess Number of Function Arguments", "weight": 0.0 }, | ||
| { "name": "Complex Method", "weight": 0.3 } | ||
| ] | ||
| } | ||
| ] | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| name: Kani PR | ||
|
|
||
| "on": | ||
| pull_request: | ||
| branches: [main] | ||
| types: [opened, synchronize, reopened] | ||
| paths: | ||
| - ".github/workflows/kani-pr.yml" | ||
| - "**/kani_*.rs" | ||
| - "chutoro-core/src/hnsw/kani_proofs/**" | ||
| - "chutoro-core/src/mst/kani_harness.rs" | ||
| - "chutoro-providers/dense/src/simd/kani_proofs.rs" | ||
| - "chutoro-core/src/hnsw/**" | ||
| - "chutoro-core/src/mst/**" | ||
| - "chutoro-providers/dense/src/simd/**" | ||
| - "Makefile" | ||
| - "Cargo.toml" | ||
| - "Cargo.lock" | ||
| - "chutoro-core/Cargo.toml" | ||
| - "chutoro-providers/dense/Cargo.toml" | ||
| - "tools/kani/VERSION" | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: kani-pr-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
| kani: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| with: | ||
| persist-credentials: false | ||
| - name: Setup Rust | ||
| uses: leynos/shared-actions/.github/actions/setup-rust@f4764bea8d813b1a8f7ebc37a44907d3c3b1e0e4 | ||
| - name: Install Kani | ||
| run: | | ||
| # tools/kani/VERSION is the single source of truth for the pin; | ||
| # the Makefile and the workflow contract test read the same file. | ||
| kani_version="$(tr -d '[:space:]' < tools/kani/VERSION)" | ||
| cargo install --locked kani-verifier --version "$kani_version" | ||
| cargo kani setup | ||
| - name: Run Kani practical suite | ||
| run: make kani | ||
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.