source-verification

command
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command source-verification measures what a pass pays to prove that its sources did not change, and what a cheaper proof would cost and would miss.

A full pass observes the source tree at its start and again inside the validation of the candidate generation, immediately before CURRENT can move, and compares the two. The second observation is `ObserveSources`: it hashes every analysed source file below every repository and asks git for the repository state. benchmarks/publication-profile measured that second observation at 1,25 to 1,39 s of a pass, and its profile shows that most of what the walks spend is opening and reading directories, not hashing.

This harness answers the three questions an ADR on a cheaper verification needs, and nothing else:

  • where the time of one observation goes: the traversal, the hashing, or the git state;
  • what a signature of the tree -- the stat of every directory it reads and of every analysed file, compared again without reading a directory -- costs to capture and to verify;
  • which changes that signature detects, and whether it ever reports "unchanged" for a tree the current digest reports as changed. That last number has to be zero for any of this to be an option.

It reads the registered repositories and writes nothing in them. The change matrix runs on a synthetic tree created under the temporary directory.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL