Repository navigation
feat(ci): Kani bounded-model-checking lane and smoke harness (RIPR-SPEC-0370) - #11787
Conversation
…EC-0367) Adds cfg(kani) check-cfg, cargo xtask kani (VERIFIED/FAILED/NOT-ESTABLISHED per harness, never a pass by absence), a nightly and merge-ready kani.yml lane, RIPR-SPEC-0367, and a smoke harness for EvidenceState::is_actionable. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 55 minutes. View limit details
|
|
Release-window triage (head a5253c4). This adds a new advisory Kani lane (workflow, xtask command, spec, policy registrations; 20 files) rather than fixing user-facing behavior, and its body records that Generated by Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG
…R-SPEC-0370 Main already uses RIPR-SPEC-0367 for the proof-harness role; the Kani lane spec moves to the next free number. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG
There was a problem hiding this comment.
Independent review (fresh-context reviewer, head c509253): REVIEW_INCOMPLETE
Inspected:
- Head metadata: head
c509253e, 20 changed files,isDraft=true,mergeable=false,mergeable_state=dirtyagainst base8f0e1b08. The PR carries nomerge-readylabel and only three check contexts exist on this head, so no CI lane of any kind has run. Prior evidence: a maintainer release-window triage at heada5253c4(deferred, kept as Draft). NoEffortlessStevenreview exists onpulls/11787/reviews, so this is the first formal review record for it. - The candidate's own commits:
a5253c4carries the whole change andc509253eonly adds the PR number to the changelog fragment, so the substantive content is unchanged from the triaged head and this pass verifies it at the current head. - The end-to-end registration of the new lane, which is the load-bearing claim:
xtask/src/dispatch.rsdispatchesXtaskCommand::Kani(args) => super::kani_lane::run_lane(&args);policy/ci-lane-whitelist.tomlregisters thekanilane with its honest scope statement;policy/workflow_allowlist.txtregisters.github/workflows/kani.yml;policy/doc-artifacts.d/RIPR-SPEC-0367.tomlregisters the spec;.ripr/traceability.d/kani-bounded-model-checking-lane.tomlnames the spec and seven test IDs. - The oracle:
xtask/src/kani_lane.rscontains exactly seven#[test]functions, and they match the seven test IDs in the traceability file one for one (discovery_finds_named_harnesses_past_attributes_and_docs,classification_requires_an_explicit_success_verdict,unreachable_cover_makes_the_proof_vacuous,blocks_join_to_harnesses_and_a_missing_block_is_not_established,lane_never_passes_by_absence,arguments_parse_and_reject_unknown_flags,report_names_every_status_word). A traceability entry naming a test that does not exist would not have matched. - The "never passes by absence" contract, read in the implementation rather than taken from the changelog.
lane_verdict(xtask/src/kani_lane.rs:208-241) checks tool availability before the empty-results branch, so--allow-emptycannot excuse a missing tool; it errors on zero harnesses unless--allow-emptywas passed explicitly; and it errors if any harness isFailedorNotEstablished.classify_output(xtask/src/kani_lane.rs:157-177) requires an explicitVERIFICATION:- SUCCESSFULverdict, mapsVERIFICATION:- FAILEDtoFailed, maps "No proof harnesses" toNotEstablished, and maps an unsatisfiable or short-covered result toFailedso a vacuous proof cannot read as verified. A missing verdict isNotEstablished, never a pass. - The negative experiments are bound in the test suite rather than asserted in prose.
lane_never_passes_by_absence(xtask/src/kani_lane.rs:473-482) asserts all six discriminating cases, including that zero harnesses with--allow-emptyis the only path toOk.unreachable_cover_makes_the_proof_vacuousasserts that "** 1 of 2 cover properties satisfied (1 unreachable)" and "Status: UNSATISFIABLE" both classify asFailedeven though the verdict line reads SUCCESSFUL.blocks_join_to_harnesses_and_a_missing_block_is_not_establishedcovers a harness with no output block. - The harness is non-vacuous by construction.
crates/ripr/src/kani_smoke.rsselects one of the fiveEvidenceStatevariants by a symbolic index bounded withkani::assume(index < 5), assertsis_actionable()holds exactly forActionable, and placeskani::cover!on both outcomes. I checked the bound against the type:crates/ripr/src/domain/evidence_state.rs:10-16declares exactly five variants (Actionable,AlreadyObserved,InternalOnly,StaticLimitation,Unknown) andis_actionableismatches!(self, Self::Actionable), so the harness covers the whole domain and the property is not tautological in the "always false" direction. The body also discloses a manual non-vacuity experiment - temporarily wideningis_actionablemade the harness fail atkani_smoke.rs:31- which is the right kind of evidence for a proof harness. - The build wiring is minimal and correctly scoped:
Cargo.tomladds onlyunexpected_cfgs = { level = "warn", check-cfg = ['cfg(kani)'] }under[workspace.lints.rust], andcrates/ripr/src/lib.rsadds#[cfg(kani)] mod kani_smoke;. Ordinary builds never see the harness, and thecfg(kani)check-cfg declaration stops the lint from firing on it. - The workflow is advisory, not required:
.github/workflows/kani.ymlgates ongithub.event_name != 'pull_request' || (pull_request.labeled && label.name == 'merge-ready'), plus a nightly cron andworkflow_dispatch, and its verification step runscargo xtask kaniwithout--allow-empty, so the zero-harness case fails the job.
Blocking:
- The PR is a Draft and
mergeable_state=dirty: it conflicts withmainat base8f0e1b08. Nothing can be qualified or merged until the conflict is resolved and the PR leaves Draft. A draft PR can never carry aREVIEW_READYdisposition. - No CI ran on this head, so there is no hosted evidence of any kind for this candidate. The PR carries no
merge-readylabel, andkani.ymltriggers only onpull_request: types: [labeled]with that label, so neither the Kani lane nor any Rust lane could execute.
Non-blocking:
- The body's admission line reads
Governing issue or accepted claim: new (formal verification of own code). This corroborates the prior triage: it names no#Nissue, so the candidate is not admitted. Registering the spec inpolicy/doc-artifacts.d/is a doc-artifact record, not a governing claim. - The body discloses that
cargo xtask precommitwas never run because the shared host disk was repeatedly full. It does list many individualcargo xtaskchecks as passing locally, which is useful, but the authoritative shift-left command has not run on this tree, so that gap is real and still open. cover_shortfallparses Kani's human-readable summary line ("** N of M cover properties satisfied") rather than a machine-readable field, so vacuity detection is bound to the output format of the pinnedkani-verifier0.68.0. The pinned version in the workflow and the fixture in the test keep that consistent today, but a Kani upgrade could silently turn a short-covered proof into a pass; theStatus: UNSATISFIABLEcheck is an independent second guard.- The body discloses that one local Kani run was OOM-killed at about 5 GB and that whole-crate Kani compile is slow. That is an honest limit and it is why the lane is advisory and scoped to pure cores, but it also means no run of this lane has yet demonstrated that the compile fits the CI runner's memory budget.
Not run:
- No Rust build, test, lint,
cargo xtask, orcargo kaniwas executed. The Rust toolchain on this host is not onPATHand the shared tree must not be built while concurrent agents hold it. Every conclusion above is from reading the head SHA through the GitHub API. - The Kani lane was never executed here or in CI, so the "VERIFIED" result and the runtime and cover-count figures in the body's harness table are the author's own report and are unverified by me.
Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head c509253ea86bf93e57d35e9b250049cfb26c022b. Not an approval.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG
All Kani PRs now carry the byte-identical declaration at the same place in [workspace.lints.rust] as #11787, so whichever lands first the others merge cleanly and the key is never defined twice. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG
All Kani PRs now carry the byte-identical declaration at the same place in [workspace.lints.rust] as #11787, so whichever lands first the others merge cleanly and the key is never defined twice. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG
All Kani PRs now carry the byte-identical declaration at the same place in [workspace.lints.rust] as #11787, so whichever lands first the others merge cleanly and the key is never defined twice. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG
All Kani PRs now carry the byte-identical declaration at the same place in [workspace.lints.rust] as #11787, so whichever lands first the others merge cleanly and the key is never defined twice. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG
All Kani PRs now carry the byte-identical declaration at the same place in [workspace.lints.rust] as #11787, so whichever lands first the others merge cleanly and the key is never defined twice. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG
All Kani PRs now carry the byte-identical declaration at the same place in [workspace.lints.rust] as #11787, so whichever lands first the others merge cleanly and the key is never defined twice. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG
All Kani PRs now carry the byte-identical declaration at the same place in [workspace.lints.rust] as #11787, so whichever lands first the others merge cleanly and the key is never defined twice. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG
All Kani PRs now carry the byte-identical declaration at the same place in [workspace.lints.rust] as #11787, so whichever lands first the others merge cleanly and the key is never defined twice. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG
There was a problem hiding this comment.
Independent review (fresh-context reviewer, head ae52017): REVIEW_INCOMPLETE
Inspected:
- Subject: PR #11787, head
ae520171dec808d654f2b89a9780b16ba253f307("Reference SUPPORT_TIERS.md from the Kani lane spec", 2026-10-31T22:38:35Z), basefa621a32e...,isDraft=true, no labels,mergeStateStatus=BLOCKED,mergeable=MERGEABLE. 20 changed paths, +899/-0. - Re-bind scope against the previously reviewed head
c509253ea86bf93e57d35e9b250049cfb26c022b: all 20 changed paths differ in blob content, because the Kani spec was renamed and re-pointed. The head's three commits are2edc390b9(merge of main plus the renumber to RIPR-SPEC-0370),b03989fb9("Fix Kani lane spec title after renumber to RIPR-SPEC-0370") andae520171d("Reference SUPPORT_TIERS.md from the Kani lane spec").xtask/src/kani_lane.rsdiffers between the two heads only in two spec-ID strings - the module doc comment at the top of the file and the report header inrender_report- so the lane's logic, its seven#[test]functions and its oracle are unchanged by this delta. - The renumber is fully propagated in the candidate's own material. I fetched the head's changelog fragment,
docs/specs/RIPR-SPEC-0370-kani-bounded-model-checking-lane.md,.ripr/traceability.d/kani-bounded-model-checking-lane.toml,policy/doc-artifacts.d/RIPR-SPEC-0370.toml,docs/spec-index.d/RIPR-SPEC-0370.md,xtask/src/kani_lane.rs,policy/ci-lane-whitelist.tomland.github/workflows/kani.ymland grepped them: no0367reference survives in any of them, and the traceability file's seven test identifiers still match the seven#[test]functions inxtask/src/kani_lane.rsone for one. - The support-tier link the head adds resolves. The spec's support-tier impact section now points at
[support tiers](../status/SUPPORT_TIERS.md), anddocs/status/SUPPORT_TIERS.mdexists at this head alongsidedocs/status/RUST_ROUTE_QUALITY.md. - Earlier findings re-bound from the review at
c509253ea: the Draft-plus-conflict blocking item, the "no CI ran" blocking item, and the non-blocking items on the body's admission line, thecover_shortfallparsing, and the disclosed absence of a localprecommitrun. - Hosted evidence at
ae520171d: 27 check contexts. Two Source-of-Truth gates ran and are green -source-of-truth= SUCCESS andspec-maintenance-digest= SUCCESS - which is real hosted evidence that this candidate's spec registration and its renumber are consistent with the repository's documentation and spec gates. Every Rust lane is SKIPPED -ci-result,Rust-only feature lane,msrv,source-identity,rust-coverage,rust-tests-junit- and the required checkRipr Rust Small Resultis absent, which is expected for a Draft. Also green:ub-review,Graphite / AI Reviews,Devin Review,GitGuardian Security Checks, and the read-only Python wheel job.
Blocking:
- No Rust lane ran on this head, so there is still no hosted evidence of any kind for the candidate's own code. The PR carries no
merge-readylabel and is a Draft, and.github/workflows/kani.ymlgates its pull-request trigger ongithub.event_name != 'pull_request' || (pull_request.labeled && label.name == 'merge-ready'), so the Kani lane cannot fire for this PR as it stands. The workflow'sscheduletrigger runs on the default branch, not on this PR, andworkflow_dispatchis not automatic. The earlier review's second blocking item is unchanged: the lane's oracle - "never passes by absence", withlane_verdictreading one result block per discovered#[kani::proof]harness andlane_never_passes_by_absencebound in the test suite - has never been executed, so the VERIFIED/FAILED/NOT-ESTABLISHED contract is asserted in source but unobserved in execution. - The conflict half of the earlier Draft-and-dirty blocking item is REPAIRED but the Draft half is not, and it is the binding constraint on the disposition.
2edc390b9merged main into the branch, so the PR now reportsmergeable=MERGEABLEagainst basefa621a32einstead of thedirtythe earlier review recorded against8f0e1b08. The PR nevertheless remains a Draft, and a Draft can never beREVIEW_READYwhatever the hosted state turns out to be. The earlier review'sNot runnote that the Kani lane was never executed here or in CI still stands.
Non-blocking:
- NEW at this head, and it is a public-claim defect that must be corrected before this PR leaves Draft: the body names the wrong specification. Its acceptance delta reads "...
cfg(kani)check-cfg, RIPR-SPEC-0367)" and its "What this adds" bullet reads "- RIPR-SPEC-0367 stating what a bounded proof does and does not claim (not full-program, not a runtime-mutation claim)". At this head RIPR-SPEC-0367 is a different and unrelated specification -docs/specs/RIPR-SPEC-0367-proof-harness-is-not-a-test-or-production-seam.md, with its owndocs/spec-index.d/RIPR-SPEC-0367.md- while this PR's specification isdocs/specs/RIPR-SPEC-0370-kani-bounded-model-checking-lane.md. The renumber is what made 0367 available to another spec, and the body was not updated with it. The durable artifacts are correct: the changelog fragment, the spec file, the traceability record, the doc-artifact record, the spec index entry, the four verdict-corpus spec-scope files andxtask/src/kani_lane.rsall name RIPR-SPEC-0370, and the hostedsource-of-truthandspec-maintenance-digestgates are green against them. So this is a body-currency defect, not a defect in what would land - but the body is the PR's stated acceptance surface and it currently points a reader at a specification that says something else entirely. - Earlier non-blocking (the body's admission line reads
Governing issue or accepted claim: new (formal verification of own code)) STILL HOLDS. The body is unchanged on this point, so the candidate is still not admitted against a numbered issue, and the spec's own "Linked PRs: - None yet" section is correspondingly still empty even though the changelog fragment cites (#11787). The spec's own table is the weaker half of that gap and I am not treating it as a new finding. - Earlier non-blocking (
cover_shortfallparses Kani's human-readable summary line rather than a machine-readable field) STILL HOLDS, and this delta did not change it:xtask/src/kani_lane.rsdiffers from the previously reviewed head only in two spec-ID strings. A Kani version that rewords that summary line would make the cover count parse as absent rather than wrong, which is the failure mode the earlier review named. I am not re-raising it as new; it is carried forward unchanged and still unobserved, because the lane has never run. - Earlier non-blocking (the body discloses that
cargo xtask precommitwas never run because the shared host disk was repeatedly full, and that one local Kani run was OOM-killed at about 5 GB) STILL HOLDS. Those disclosures remain accurate and are the reason the hosted lane is the only available proof. I record them as honest limits, not defects. - Efficiency: the lane's cost shape is dominated by a single whole-library Kani compile, not by the number of harnesses.
xtask/src/kani_lane.rsrunscargo kani -p ripronce and reads one result block per discovered harness, and the module doc states the reason - "Kani compiles the whole library, so one invocation per harness would multiply a minutes-long build". That is the right trade, and the per-harness incremental cost is a result read rather than a build. The magnitude is not established: nocargo-kaniis available on this host and the lane has never run in CI, so I cannot say what one whole-library Kani compile costs on the hosted runner. The one real cost risk in the design is the one the earlier review already identified - the summary-line parse - and it is a correctness cost rather than a resource cost. There is no efficiency concern beyond that.
Not run:
- No Rust build, test, lint,
cargo xtask, orcargo kaniwas executed. The Rust toolchain on this host is not onPATH, so no local Rust receipt is claimed and every Rust-level statement above comes from reading source at this head over raw.githubusercontent, from GraphQL blob and check-run metadata, or from hosted job logs. - The Kani lane was never executed here or in CI, so the "VERIFIED" result and the runtime and cover-count figures in the body's harness table are not established. The body's harness table is a claim about a run I did not observe.
- I did not open the Rust test shard logs for this head, so the per-shard picture at
ae520171dis unestablished. - I did not run
cargo xtask fold-changelog --dry-run, so I did not check whether thekani-bounded-model-checking-lanefragment folds cleanly against other Unreleased text.
Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head ae520171dec808d654f2b89a9780b16ba253f307. Not an approval.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
…#11787) The first hosted run discovered three fixture-only harnesses in test_styles/tests.rs and failed closed as NOT-ESTABLISHED. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG
|
First hosted Generated by Claude Code |
…11787) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG
…ne spec to RIPR-SPEC-0371 (#11787) Main took RIPR-SPEC-0370 for the loop-range spec (#11971). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG
|
|
|
Review of record, head 583553a (merge-ready, mergeable_state clean). Angles: fail-closed semantics of the lane (zero harnesses, missing tool, timeout, missing verdict, unsatisfied Findings and resolutions:
Exact-head evidence: No blockers. Merging by protected squash. Generated by Claude Code |
* test: Kani proofs for bounded_input limit arithmetic and terminal escape policy Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * docs(changelog): name PR #11811 in the changelog fragment Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * Align the cfg(kani) check-cfg declaration with the infrastructure PR All Kani PRs now carry the byte-identical declaration at the same place in [workspace.lints.rust] as #11787, so whichever lands first the others merge cleanly and the key is never defined twice. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * docs(kani): avoid the reserved static-language term in the bounded-input harness header (#11811) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG --------- Co-authored-by: Claude <noreply@anthropic.com>
* test(kani): prove exit-code mapping and gate status fail-closed Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * Declare cfg(kani) and reference the PR in the changelog fragment Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * Align the cfg(kani) check-cfg declaration with the infrastructure PR All Kani PRs now carry the byte-identical declaration at the same place in [workspace.lints.rust] as #11787, so whichever lands first the others merge cleanly and the key is never defined twice. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG --------- Co-authored-by: Claude <noreply@anthropic.com>
…ching (#11843) * test(identity): Kani proofs for discriminator framing and surface matching Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * Declare cfg(kani) and fix changelog fragment reference Review blockers: unexpected_cfgs check-cfg for cfg(kani) so the strict Clippy lane stays clean, and an issue/PR reference plus accurate proof scope in the changelog fragment. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * Align the cfg(kani) check-cfg declaration with the infrastructure PR All Kani PRs now carry the byte-identical declaration at the same place in [workspace.lints.rust] as #11787, so whichever lands first the others merge cleanly and the key is never defined twice. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * docs(kani): state exactly what the identity injectivity harness covers (#11843) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * docs(kani): avoid the reserved static-language term in the identity harness comments (#11843) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG --------- Co-authored-by: Claude <noreply@anthropic.com>
#11911) * Add Kani harnesses for diff hunk range arithmetic Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * Declare cfg(kani) and fix changelog fragment reference Review blockers: unexpected_cfgs check-cfg for cfg(kani) so the strict Clippy lane stays clean, and an issue/PR reference plus accurate proof scope in the changelog fragment. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * Rename hunk-range harness to what it proves; drop tautological overflow assert At the 5-byte bound the usize overflow guard is unreachable, so the assertion could not fail. Keep the line-0 discriminator under an honest name. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * Align the cfg(kani) check-cfg declaration with the infrastructure PR All Kani PRs now carry the byte-identical declaration at the same place in [workspace.lints.rust] as #11787, so whichever lands first the others merge cleanly and the key is never defined twice. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG --------- Co-authored-by: Claude <noreply@anthropic.com>
…ations (#11877) * test(lsp): Kani proofs for diagnostic budget limits and refresh generations Factor the budget rule into BudgetCursor and the generation rules into bump_generation/generation_is_current (behavior unchanged) so they are formally checkable. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * Declare cfg(kani) and fix changelog fragment reference Review blockers: unexpected_cfgs check-cfg for cfg(kani) so the strict Clippy lane stays clean, and an issue/PR reference plus accurate proof scope in the changelog fragment. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * Replace unreachable! in the budget Kani harness with kani::assert The no-panic-family policy scans cfg(kani) modules too. kani::assert(false) keeps the same meaning: the proof fails if the arm is reachable. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * Align the cfg(kani) check-cfg declaration with the infrastructure PR All Kani PRs now carry the byte-identical declaration at the same place in [workspace.lints.rust] as #11787, so whichever lands first the others merge cleanly and the key is never defined twice. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * docs(kani): carry the stated bounds and saturation caveats in the budget/refresh changelog (#11877) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG --------- Co-authored-by: Claude <noreply@anthropic.com>
* Add Kani proofs for exposure classification and oracle strength Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * build: declare cfg(kani) so the proof modules do not warn as unexpected_cfgs Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqG9H9w2Z6bowSS2Cz * docs(changelog): name PR #11624 in the Kani exposure-classification fragment Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * Align the cfg(kani) check-cfg declaration with the infrastructure PR All Kani PRs now carry the byte-identical declaration at the same place in [workspace.lints.rust] as #11787, so whichever lands first the others merge cleanly and the key is never defined twice. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG --------- Co-authored-by: Claude <noreply@anthropic.com>
…l, probe (#11912) * test(domain): Kani harnesses for causal delta, feedback, executed control, probe Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * Declare cfg(kani) and fix changelog fragment reference Review blockers: unexpected_cfgs check-cfg for cfg(kani) so the strict Clippy lane stays clean, and an issue/PR reference plus accurate proof scope in the changelog fragment. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * Align the cfg(kani) check-cfg declaration with the infrastructure PR All Kani PRs now carry the byte-identical declaration at the same place in [workspace.lints.rust] as #11787, so whichever lands first the others merge cleanly and the key is never defined twice. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * test(kani): exact attribution table, safety-direction harnesses, source-derived domains (#11912) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG * docs(kani): drop unverified-claim wording from executed-control harness doc (#11912) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Steven · project thread
Governing issue or accepted claim: new (formal verification of own code)
Acceptance delta (one sentence): ripr gains an honest Kani bounded-model-checking lane (
cargo xtask kani,kani.yml,cfg(kani)check-cfg, RIPR-SPEC-0370) with one smoke harness, so the other formal-verification PRs can land harnesses on top of it and have them executed.This PR owns the Kani lane. The other Kani PRs (#11624, #11811, #11823, #11843, #11877, #11911, #11912, #11954) carry the byte-identical two-line
cfg(kani)unexpected_cfgsdeclaration at the same position inCargo.toml, so they merge cleanly in any order and the key is defined once.What this adds
[workspace.lints.rust] unexpected_cfgscheck-cfg forcfg(kani).cargo xtask kani [--allow-empty] [--harness <n>] [--default-unwind <n>] [--timeout-secs <n>]: discovers#[kani::proof]harnesses, runscargo kani -p ripronce (Kani compiles the whole library in minutes, so not once per harness), and writestarget/ripr/reports/kani.mdwith VERIFIED / FAILED / NOT-ESTABLISHED per harness. Missing tool, timeout, missing verdict, no result block, unreachablecover!, or zero harnesses (unless--allow-empty) all exit nonzero; nothing passes by absence. The word VERIFIED is used instead of "proven" becausecheck-static-languagebans the latter..github/workflows/kani.yml: advisory, not required; nightly, dispatch, andmerge-readyon PRs touchingcrates/ripr/src/**; pinnedkani-verifier0.68.0, cached via the pinned rust-cache. Lane registered inpolicy/ci-lane-whitelist.toml,policy/workflow_allowlist.txt, anddocs/CI.md.crates/ripr/src/kani_smoke.rs(#[cfg(kani)], normal builds unaffected).Harness
kani_smoke::evidence_state_actionable_only_for_actionableEvidenceState::is_actionable()is true for exactlyActionable(fail-closed actionability flip)< 5over all five variants;cover!on both outcomes (2 of 2 satisfied)Non-vacuity: temporarily changing
is_actionabletoActionable | AlreadyObservedmade the harness fail (VERIFICATION:- FAILED, assertion atkani_smoke.rs:31); reverted. Local experiment; the first hosted receipt comes from this PR's ownkani.ymlrun.Not tractable / limits
Whole-crate Kani compile is slow and memory-hungry (one local run was OOM-killed at about 5 GB); no harness over string/HashMap-heavy analysis code was attempted here.
Validation
cargo fmt --check,cargo test -p xtask kani_lane(7 tests), and check-command-catalog, check-workflows, check-static-language, check-traceability, check-file-policy, check-covered-by, check-process-policy, check-doc-index, check-spec-format, check-spec-numbering, check-doc-artifacts, check-support-tiers, check-ci-lane-whitelist, check-fixture-contracts, check-no-panic-family, check-allow-attributes, check-changelog-fragments pass locally.cargo xtask precommitwas not run (shared host disk was repeatedly full). Hosted Rust lanes have not run on this head: the PR is a Draft and main was red.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01SvmPmqCNvFAErf575FjLhG