Repository navigation
docs(spec): Kani proofs of the storage encodings (#627) - #689
Merged
Merged
Conversation
Prototyped and measured on the bench machine: 12 encoder harnesses prove in 33 s; decoders, strings, packed pages and WAL framing do not finish under CBMC and are left to the fuzz and property tests. Finds that encode_value sorts NaN among negative floats (latent; filed separately). Refs #627 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PtCdzbJMSS1V8qEPaJ4jXz
Codex review: pending EAVT/AEVT scans order by value_bytes within an (entity, attribute) run; runs are decided whole, so only row order within a run changes. Injectivity holds on each harness's domain, not across NaN payloads. Reference #688. Refs #627 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PtCdzbJMSS1V8qEPaJ4jXz
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Spec for #627:
docs/superpowers/specs/2026-10-22-kani-storage-encoding-design.md.Prototyped and measured with Kani 0.68.0 on the bench machine before writing it.
v3:put_int,put_uint,put_tx_desc,put_valid_toandfloat_bitsinkeys.rs. On both branches:encode_value. All 12 prove in 33 s wall time with-j 8, 1.1 GB peak.Readerdecoders, strings, packed pages and WAL framing. CBMC does not finish on them even at tiny bounds: 13–27 GB, with timeouts from 10 to 60 minutes. Building ananyhow::Erroralone doesn't finish, and none of the stubs tried help. A 3-byte string order check builds a 105 M-clause formula. §5 has the measurements.kani.ymlruns on PRs that touch the encoders and nightly per branch, using thegrammar-verifier.ymlpattern.encode_valuesorts NaN among the negative floats. This is latent, because every use is an exact match or an equality check. It is filed separately as low severity, not data-integrity (§6).v3PR, then amainbackport with theencode_valueharnesses (§7).Refs #627
🤖 Generated with Claude Code
https://claude.ai/code/session_01PtCdzbJMSS1V8qEPaJ4jXz