Corrected Kani backend admission review

Independent source review of ac8a580ed85e26ee93f3d42600db76132a0a0995, followed by repair f9982bf3847c44198e0caf79e05981f68dc8dbec in the isolated kani-backend worktree. SDK source is unchanged. File/line references below refer to those frozen revisions, not this review worktree's earlier tool files. No verifier, compiler, installation, test suite or provided executable was run for this review. Source/tests and read-only upstream launcher source were inspected.

Verdict: the repair closes both initial admission blockers. No remaining source-level blocker was found within the stated owner-controlled, read-only installation boundary. This does not enable or qualify a backend: zero size/hash pins deliberately remain non-admitting until the final reviewed build is pinned.

Initial findings and separate repairs

  1. Proxy interrupted-setup state was outside admission. At ac8a580e, kani_install.py:142–162 checked the selected release, while ordinary calls still used the bootstrap proxies (kani.py:324,339,376). The cached upstream kani-verifier-0.68.0/src/lib.rs:30–47 and src/setup.rs:51–72,179–183 show that a parent KANI_HOME entry ending .tar.gz triggers repair setup even when the release already exists, including an explicit Rustup install command. Existing-toolchain checks and RUSTUP_AUTO_INSTALL=0 alone did not prevent that programmatic setup path. Post-run rejection would not preserve the promised no-install execution boundary.

    At f9982bf3, kani_install.py:145–150 checks the actual lookup home has exactly the selected version entry before resolving the release. The archive stays outside that home. :194–196 also records its canonical identity; verify reruns the checks and compares that identity (:200–204). Tests at test_kani_install.py:147–182 cover file/directory/symlink/dangling markers, harmless extras, lookup-home versus resolved-parent distinction, and alias retargeting even to the same release. This closes the finding.

  2. An executable-bit class was insufficient for selected execution. At ac8a580e, kani_install.py:66 retained only bool(mode & 0o111). Group/ other-only execute bits could therefore match the archive tuple while the calling owner could not execute the selected file. The pinned driver's CBMC invocation uses a bare command name, and the launch path retains an ambient PATH suffix; an inaccessible selected candidate could permit fallback.

    At f9982bf3, inventory requires owner-execute and os.access(..., effective_ids=True) for every inventoried executable (kani_install.py:67–70). This covers release, native-toolchain and launcher files while preserving existing canonical digests for valid installations. Tests at test_kani_install.py:184–200 cover mode 011 and effective-user denial across those groups. This closes the finding without a wrapper, solver switch or modified verification checks.

Neither finding was an observed installation, backend execution or accepted false proof. Both were reported before activation; the existing zero pin blocks ordinary execution already. The author reports 33 focused tests passing at the repair source; that is their execution report, not an independent rerun here.

Other checked boundaries

  • The fixed home name has no legacy-home or arbitrary backend-path selector. kani.py:181–198 overrides KANI_HOME, Rustup/compiler/Cargo selections, disables implicit Rustup installation and removes the existing flag/loader overrides. The setup command and setup implementation were removed. Normal solver flags, checks and harness budgets were not changed by this admission patch.
  • kani_install.py:156–169 authenticates the entire official archive before decoding it and changes exactly one expected inventory member, bin/cbmc. Exact file type, executable status, size, SHA and whole-tree equality reject old-backend restoration, another replacement, missing/extra files or interior symlinks. The replacement must differ from the archived executable.
  • Backend fields are exactly the four typed source-commit, patch-hash, binary-hash and positive-size fields (:130–138). The tracked regular patch is hashed and included in INPUTS. Native/compiler/target and launcher trees retain their complete selected inventories and authored pins (:172–178).
  • Schema-two identities include original/installed release hashes, old/new backend identities, source/patch labels and canonical locations (:179–204). Ordinary producers additionally hash the helper, pins and patch and seal source, staged files, metadata and checkout identities (kani.py:379–420). This caller source binding remains necessary: the helper's imported pin dictionaries are not independently reloaded from disk by every capture call.

Activation and trust boundary

The source commit/patch labels plus exact binary hash bind an owner-reviewed artifact; they do not prove that the executable was built from those sources or that the C++ correction is sound. The final tracked patch and nonzero binary pins must match the root's conservative C+X removal build, followed by its normal artifact checks and fresh positive/negative qualification. The old guarded patch at the initial revision is not a certificate for that final build.

External loader/system libraries, Python/Rustup/OS behavior, compiler/verifier correctness and installation-owner control remain trusted. Concurrent replacement and restoration during execution remains outside the documented boundary; tools must stay immutable between checks. No whole-host, backend-model, SDK runtime or new proof result is established by this source review. N9 source/qualification is preserved unchanged; this follow-up adds only this review document.