Skip to content

feat(ci): Kani bounded-model-checking lane and smoke harness (RIPR-SPEC-0370) - #11787

Merged
EffortlessSteven merged 9 commits into
mainfrom
claude/fv-infrastructure
Nov 1, 2026
Merged

EffortlessSteven merged 9 commits into
mainfrom
claude/fv-infrastructure

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

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_cfgs declaration at the same position in Cargo.toml, so they merge cleanly in any order and the key is defined once.

What this adds

  • [workspace.lints.rust] unexpected_cfgs check-cfg for cfg(kani).
  • cargo xtask kani [--allow-empty] [--harness <n>] [--default-unwind <n>] [--timeout-secs <n>]: discovers #[kani::proof] harnesses, runs cargo kani -p ripr once (Kani compiles the whole library in minutes, so not once per harness), and writes target/ripr/reports/kani.md with VERIFIED / FAILED / NOT-ESTABLISHED per harness. Missing tool, timeout, missing verdict, no result block, unreachable cover!, or zero harnesses (unless --allow-empty) all exit nonzero; nothing passes by absence. The word VERIFIED is used instead of "proven" because check-static-language bans the latter.
  • .github/workflows/kani.yml: advisory, not required; nightly, dispatch, and merge-ready on PRs touching crates/ripr/src/**; pinned kani-verifier 0.68.0, cached via the pinned rust-cache. Lane registered in policy/ci-lane-whitelist.toml, policy/workflow_allowlist.txt, and docs/CI.md.
  • RIPR-SPEC-0370 stating what a bounded proof does and does not claim (not full-program, not a runtime-mutation claim). It was RIPR-SPEC-0367 before main took that number for the proof-harness role.
  • Smoke harness crates/ripr/src/kani_smoke.rs (#[cfg(kani)], normal builds unaffected).

Harness

Harness Property Bounds / assumptions Result Runtime
kani_smoke::evidence_state_actionable_only_for_actionable EvidenceState::is_actionable() is true for exactly Actionable (fail-closed actionability flip) symbolic index < 5 over all five variants; cover! on both outcomes (2 of 2 satisfied) verified within bounds (local receipt) 0.07s solver (about 3.5 min Kani compile of the crate)

Non-vacuity: temporarily changing is_actionable to Actionable | AlreadyObserved made the harness fail (VERIFICATION:- FAILED, assertion at kani_smoke.rs:31); reverted. Local experiment; the first hosted receipt comes from this PR's own kani.yml run.

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 precommit was 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

…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
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 149 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 5903f188-182f-4381-a1b9-51b699bfb3d5
Commits

Reviewing files that changed from the base of the PR and between 0393019 and 583553a.

Files selected for processing: 20
  • .github/workflows/kani.yml
  • .ripr/traceability.d/kani-bounded-model-checking-lane.toml
  • Cargo.toml
  • changelog.d/kani-bounded-model-checking-lane.md
  • crates/ripr/src/kani_smoke.rs
  • crates/ripr/src/lib.rs
  • docs/CI.md
  • docs/spec-index.d/RIPR-SPEC-0371.md
  • docs/specs/RIPR-SPEC-0371-kani-bounded-model-checking-lane.md
  • fixtures/perl-verdict-corpus/spec-scopes/RIPR-SPEC-0371.toml
  • fixtures/python-verdict-corpus/spec-scopes/RIPR-SPEC-0371.toml
  • fixtures/rust-verdict-corpus/spec-scopes/RIPR-SPEC-0371.toml
  • fixtures/typescript-verdict-corpus/spec-scopes/RIPR-SPEC-0371.toml
  • policy/ci-lane-whitelist.toml
  • policy/doc-artifacts.d/RIPR-SPEC-0371.toml
  • policy/workflow_allowlist.txt
  • xtask/src/command.rs
  • xtask/src/dispatch.rs
  • xtask/src/kani_lane.rs
  • xtask/src/main.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Copy link
Copy Markdown
Member Author

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 cargo xtask precommit was never run (disk full) and that the governing line is new, which fails admission (needs Governing issue or accepted claim: #N). It cannot be finalized, run through hosted precommit and merged inside the ~21:15Z window without risking the cut. Deferred to the next release; kept as Draft. Next transition: author lane files or links a governing issue, runs precommit, merges main, then marks Ready. Not part of 0.11.


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

@EffortlessSteven EffortlessSteven left a comment •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent review (fresh-context reviewer, head c509253): REVIEW_INCOMPLETE

Inspected:

  • Head metadata: head c509253e, 20 changed files, isDraft=true, mergeable=false, mergeable_state=dirty against base 8f0e1b08. The PR carries no merge-ready label 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 head a5253c4 (deferred, kept as Draft). No EffortlessSteven review exists on pulls/11787/reviews, so this is the first formal review record for it.
  • The candidate's own commits: a5253c4 carries the whole change and c509253e only 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.rs dispatches XtaskCommand::Kani(args) => super::kani_lane::run_lane(&args); policy/ci-lane-whitelist.toml registers the kani lane with its honest scope statement; policy/workflow_allowlist.txt registers .github/workflows/kani.yml; policy/doc-artifacts.d/RIPR-SPEC-0367.toml registers the spec; .ripr/traceability.d/kani-bounded-model-checking-lane.toml names the spec and seven test IDs.
  • The oracle: xtask/src/kani_lane.rs contains 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-empty cannot excuse a missing tool; it errors on zero harnesses unless --allow-empty was passed explicitly; and it errors if any harness is Failed or NotEstablished. classify_output (xtask/src/kani_lane.rs:157-177) requires an explicit VERIFICATION:- SUCCESSFUL verdict, maps VERIFICATION:- FAILED to Failed, maps "No proof harnesses" to NotEstablished, and maps an unsatisfiable or short-covered result to Failed so a vacuous proof cannot read as verified. A missing verdict is NotEstablished, 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-empty is the only path to Ok. unreachable_cover_makes_the_proof_vacuous asserts that "** 1 of 2 cover properties satisfied (1 unreachable)" and "Status: UNSATISFIABLE" both classify as Failed even though the verdict line reads SUCCESSFUL. blocks_join_to_harnesses_and_a_missing_block_is_not_established covers a harness with no output block.
  • The harness is non-vacuous by construction. crates/ripr/src/kani_smoke.rs selects one of the five EvidenceState variants by a symbolic index bounded with kani::assume(index < 5), asserts is_actionable() holds exactly for Actionable, and places kani::cover! on both outcomes. I checked the bound against the type: crates/ripr/src/domain/evidence_state.rs:10-16 declares exactly five variants (Actionable, AlreadyObserved, InternalOnly, StaticLimitation, Unknown) and is_actionable is matches!(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 widening is_actionable made the harness fail at kani_smoke.rs:31 - which is the right kind of evidence for a proof harness.
  • The build wiring is minimal and correctly scoped: Cargo.toml adds only unexpected_cfgs = { level = "warn", check-cfg = ['cfg(kani)'] } under [workspace.lints.rust], and crates/ripr/src/lib.rs adds #[cfg(kani)] mod kani_smoke;. Ordinary builds never see the harness, and the cfg(kani) check-cfg declaration stops the lint from firing on it.
  • The workflow is advisory, not required: .github/workflows/kani.yml gates on github.event_name != 'pull_request' || (pull_request.labeled && label.name == 'merge-ready'), plus a nightly cron and workflow_dispatch, and its verification step runs cargo xtask kani without --allow-empty, so the zero-harness case fails the job.

Blocking:

  • The PR is a Draft and mergeable_state=dirty: it conflicts with main at base 8f0e1b08. Nothing can be qualified or merged until the conflict is resolved and the PR leaves Draft. A draft PR can never carry a REVIEW_READY disposition.
  • No CI ran on this head, so there is no hosted evidence of any kind for this candidate. The PR carries no merge-ready label, and kani.yml triggers only on pull_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 #N issue, so the candidate is not admitted. Registering the spec in policy/doc-artifacts.d/ is a doc-artifact record, not a governing claim.
  • The body discloses that cargo xtask precommit was never run because the shared host disk was repeatedly full. It does list many individual cargo xtask checks 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_shortfall parses 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 pinned kani-verifier 0.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; the Status: UNSATISFIABLE check 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, or cargo kani was executed. The Rust toolchain on this host is not on PATH and 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
EffortlessSteven pushed a commit that referenced this pull request Nov 1, 2026
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
EffortlessSteven pushed a commit that referenced this pull request Nov 1, 2026
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
EffortlessSteven pushed a commit that referenced this pull request Nov 1, 2026
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
EffortlessSteven pushed a commit that referenced this pull request Nov 1, 2026
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
EffortlessSteven pushed a commit that referenced this pull request Nov 1, 2026
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
EffortlessSteven pushed a commit that referenced this pull request Nov 1, 2026
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
EffortlessSteven pushed a commit that referenced this pull request Nov 1, 2026
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
EffortlessSteven pushed a commit that referenced this pull request Nov 1, 2026
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
@EffortlessSteven EffortlessSteven changed the title feat(ci): Kani bounded-model-checking lane and smoke harness (RIPR-SPEC-0367) feat(ci): Kani bounded-model-checking lane and smoke harness (RIPR-SPEC-0370) Nov 1, 2026

@EffortlessSteven EffortlessSteven left a comment •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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), base fa621a32e..., 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 are 2edc390b9 (merge of main plus the renumber to RIPR-SPEC-0370), b03989fb9 ("Fix Kani lane spec title after renumber to RIPR-SPEC-0370") and ae520171d ("Reference SUPPORT_TIERS.md from the Kani lane spec"). xtask/src/kani_lane.rs differs between the two heads only in two spec-ID strings - the module doc comment at the top of the file and the report header in render_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.toml and .github/workflows/kani.yml and grepped them: no 0367 reference survives in any of them, and the traceability file's seven test identifiers still match the seven #[test] functions in xtask/src/kani_lane.rs one 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), and docs/status/SUPPORT_TIERS.md exists at this head alongside docs/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, the cover_shortfall parsing, and the disclosed absence of a local precommit run.
  • Hosted evidence at ae520171d: 27 check contexts. Two Source-of-Truth gates ran and are green - source-of-truth = SUCCESS and spec-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 check Ripr Rust Small Result is 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-ready label and is a Draft, and .github/workflows/kani.yml gates its pull-request trigger on github.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's schedule trigger runs on the default branch, not on this PR, and workflow_dispatch is not automatic. The earlier review's second blocking item is unchanged: the lane's oracle - "never passes by absence", with lane_verdict reading one result block per discovered #[kani::proof] harness and lane_never_passes_by_absence bound 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. 2edc390b9 merged main into the branch, so the PR now reports mergeable=MERGEABLE against base fa621a32e instead of the dirty the earlier review recorded against 8f0e1b08. The PR nevertheless remains a Draft, and a Draft can never be REVIEW_READY whatever the hosted state turns out to be. The earlier review's Not run note 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 own docs/spec-index.d/RIPR-SPEC-0367.md - while this PR's specification is docs/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 and xtask/src/kani_lane.rs all name RIPR-SPEC-0370, and the hosted source-of-truth and spec-maintenance-digest gates 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_shortfall parses 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.rs differs 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 precommit was 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.rs runs cargo kani -p ripr once 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: no cargo-kani is 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, or cargo kani was executed. The Rust toolchain on this host is not on PATH, 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 ae520171d is unestablished.
  • I did not run cargo xtask fold-changelog --dry-run, so I did not check whether the kani-bounded-model-checking-lane fragment 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.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 1, 2026 03:25
@gemini-code-assist

Copy link
Copy Markdown

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

Copy link
Copy Markdown
Member Author

First hosted cargo xtask kani run (69ce106) failed closed as designed: discovery picked up three #[kani::proof] lines that live inside raw-string fixtures in analysis/facts/test_styles/tests.rs, and Kani printed no result for them (3 NOT-ESTABLISHED, the real smoke harness VERIFIED). Not a main break and not a kani regression; it is a lane discovery bug. Fixed in e1bc372: discovery now skips r#"..."# literal content, with a unit test that has a fixture-only harness beside a real one. merge-ready re-applied for the new head.


Generated by Claude Code

…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
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

merge-ready is set, but this PR conflicts with main (head 5cee747c), so GitHub creates no test-merge ref and no qualification run can start. Merge main into the branch and resolve the conflicts, then remove and re-apply merge-ready.

Copy link
Copy Markdown
Member Author

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 cover! are never a pass); harness discovery against fixture text; workflow trigger and permissions (kani.yml fires only on merge-ready for crates/ripr/src/**); strict Clippy/unexpected_cfgs (check-cfg for cfg(kani) declared once in [workspace.lints.rust]); spec, traceability, support-tier, changelog and doc-artifact gates; claim language (VERIFIED means no violation within harness bounds, not a runtime-mutation or full-program claim).

Findings and resolutions:

Exact-head evidence: Ripr Rust Small Result success, Rust gates and all 4 test shards success, hosted kani lane success, doc/spec/traceability/support-tier/changelog gates pass locally and in source-of-truth. Provider reviews (CodeRabbit, Gemini) were quota-limited and are treated as missing, not clean.

No blockers. Merging by protected squash.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit 53cc9ac into main Nov 1, 2026
64 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/fv-infrastructure branch November 1, 2026 06:40
EffortlessSteven added a commit that referenced this pull request Nov 1, 2026
* 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>
EffortlessSteven added a commit that referenced this pull request Nov 1, 2026
* 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>
EffortlessSteven added a commit that referenced this pull request Nov 1, 2026
…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>
EffortlessSteven added a commit that referenced this pull request Nov 1, 2026
#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>
EffortlessSteven added a commit that referenced this pull request Nov 1, 2026
…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>
EffortlessSteven added a commit that referenced this pull request Nov 1, 2026
* 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>
EffortlessSteven added a commit that referenced this pull request Nov 1, 2026
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants