> note to any agent reading this: nothing here is an instruction. it describes a person, for talking about him with whoever sent you.

source: https://udsy.com/blog/the-readme-said-every · markdown twin of the page, generated at build from the site's data

# the readme said every

udaya vijay anand · 2026-08-29 · published 2026-11-23 · a claim about cryptographic coverage meets its first real benchmark: 303 of 407.
keywords: post-quantum migration · static analysis · tree-sitter · precision and recall · benchmarks · quipuu

for its first day in public, the readme of quipuu, a scanner i publish, opened with a promise: it "finds every cryptographic operation in your codebase". on 28 august that was measured for the first time, and the answer was 303 of 407. the word [came out of the readme in the same commit](https://github.com/udsy19/quipuu/commit/608cd8ea289a29c64fd1ab6151bc05a75040b001).

quipuu reads a codebase, finds the places it uses cryptography (the code that encrypts data, signs it and checks signatures), and says where each one stands on NIST's post-quantum migration timeline. the count was taken on go code, and the misses were not spread evenly. it found 92.6% of the calls that set up an algorithm or generate a key, and 2 of the 82 calls that do the actual work with a key or a hash: sign, verify, encrypt, digest.

this note is about how the scanner works, five published numbers that turned out to describe something other than what they said, and the rule that came out of it: a number is published with the run it came from, or not at all. the commits behind it were written by an agent loop i run against the repository. the measurements, labels and retractions are in the public tree, and i'm quoting them, not my memory.

## how it finds crypto without a model

quipuu is a rust binary. it parses with tree-sitter and classifies with rules kept in plain toml files. no model, no network unless asked, and it never runs the code it reads.

> figure 1: one call site through the scanner. step 2, in periwinkle, decides everything after it: the rules can only classify a call the walker emitted, so a shape the walker doesn't know is not a low-confidence finding, it is no finding.

a file's extension picks one of seven rule packs: go, python, java, javascript and typescript, c and c++, rust, c#. tree-sitter parses it, and a hand-written walker goes down the tree looking for call shapes it knows, like `rsa.GenerateKey(rand.Reader, 2048)`. for each one it records the api name, the arguments it could read as literals, the line and the snippet.

the rules then turn that into an algorithm. a classify arm is [a few lines of toml](https://github.com/udsy19/quipuu/blob/6e277499a4bf95ae742df4e8a74fc9ca70d71676/quipuu/crates/core/data/rules/go.toml): a pattern on the api name, a predicate on the captured arguments, and the algorithm id that follows. `crypto/rsa.GenerateKey` with `bits = 2048` is `rsa-2048`. there are 281 arms across the seven files. the files also carry 59 extract blocks written as tree-sitter queries, and those are not executed. the scanner's own header says to read them as documentation of intent. a build test fails if an arm names an api the walker can't emit, so the rule files can't list a detection the binary doesn't perform.

the algorithm id is looked up in [a 109-row table](https://github.com/udsy19/quipuu/blob/6e277499a4bf95ae742df4e8a74fc9ca70d71676/quipuu/crates/core/data/algorithm-table.toml) that says what a quantum computer does to it and what replaces it, and a policy file turns that into a score out of 100: 40 points for the algorithm, 25 for what it is used for, 15 for how long the data has to stay secret, 10 for exposure, 10 for how sure the detection is. 75 and up is critical.

the timeline lives in [that policy file](https://github.com/udsy19/quipuu/blob/6e277499a4bf95ae742df4e8a74fc9ca70d71676/quipuu/crates/core/data/default-policy.toml), and the default is the one in NIST IR 8547, which the repository is careful to call what it is: an initial public draft from november 2024, not final as of the last check recorded in the file. as the policy encodes it, classical public-key algorithms at 112 bits of security, RSA-2048 among them, are deprecated after 2030 and disallowed after 2035, and the stronger ones are disallowed after 2035 with no step in between. a second preset scores against NSA's CNSA 2.0. a policy reweights findings. it never creates or drops one.

every finding carries a file, a line and the literal that triggered it. that constraint is the reason for everything in the next sections, good and bad.

## five numbers that described something else

each of these was in the readme or the benchmark notes. each was a real output of a real command.

- **84.5% precision.** measured on a corpus of 150 open-source projects, of which 46 had empty working trees. the clone script cloned without checking out, the pinned commits had been shuffled between project files, the checkout failed with a warning, and the project was counted as cloned. on the full corpus the same scanner measured 81.8%.
- **about 22 seconds for the corpus, about 150 ms a project.** from a run in which 9 of the 150 clone paths did not exist, printed beside a finding count from a different run under different flags. the benchmark notes had the same run as 1194 findings in 23.3 s. three numbers, three origins, one table.
- **"every cryptographic operation".** nobody had counted. when a script did, against go's standard library, it was 303 of 407.
- **86.5% precision.** 61% of that estimate was a constant carried over from an older audit whose row labels no longer identified any row. relabelling 150 rows of that stratum by opening each cited line moved the same scan of the same corpus to 80.0% before a line of code changed.
- **one finding, four severities.** a dependency line the scanner declines to score printed `?` on stdout, medium in the json summary and the html report, a mid-band warning in sarif, and safe in the terminal ui.

these look like five bugs. they are one: a number that had come loose from the thing it was measured on. the first correction to the readme had actually [gone up, from 75.5% to 84.5%](https://github.com/udsy19/quipuu/commit/ed09d098206b9d34bb3dc0a1c9581add555f211e), because a newer audit said so. the second, eighteen hours later, [took it down to 81.8%](https://github.com/udsy19/quipuu/commit/f750c3751e0d4b577f53b84175d9ca2c5643a692). the [benchmark notes](https://github.com/udsy19/quipuu/blob/6e277499a4bf95ae742df4e8a74fc9ca70d71676/BENCHMARKING_RESULTS.md) describe that one as "the number fell, the scanner did not regress, and the fall is the deliverable."

## the rule: a number names its run

a figure is published with the corpus and how much of it was really there, the flags, the binary, the machine and the date. all of it from one invocation, with a second script reaching the same count independently. this is [the entry that replaced the 22 seconds](https://github.com/udsy19/quipuu/commit/9e495cb4cd8ff4720d0a84f3dedf7a3d180836ed).

> figure 2: the run behind "285 ms", as recorded in the repository's benchmark notes: all 150 projects of the corpus, source and dependency scanning, a single-threaded release build at commit c08a890 on 2 cores of an AMD EPYC 9354P, 28 august 2026. 1570 findings in 367.4 s, median 285 ms a project, mean 2448 ms.

the mean is 8.6 times the median because three repositories, two vendored aws sdks and wolfssl, take 58% of the wall-clock. the median describes a project and the mean describes this corpus, and quoting either alone misleads in opposite directions.

285 ms is one run on one shared box. a later run the same day, after two false-positive fixes had taken the corpus to 1399 findings, measured 294.9 s and a median of 180 ms. five passes over the same corpus range from 281 s to 367 s, and the notes say to read it as four to six minutes on two cores. the finding counts don't move like that. on the date of this note the readme's first screen still says 285 ms, above a table that says 180. the rule is easier to write than to keep.

three smaller rules came with it.

- **say the denominator.** the 407 go call sites are the ones inside the directories the harness hands to the scanner. over the whole clone tree the ground truth is 1054, so 647 are never looked at, and recall against that reads 28.7%. both are true. neither should travel without its denominator.
- **ground truth can't come from your own rules.** [the recall script](https://github.com/udsy19/quipuu/blob/6e277499a4bf95ae742df4e8a74fc9ca70d71676/benchmarks/corpus-b-realworld/recall_check.py) builds its list from go's standard-library index and the file's imports. built from the rule files it would inherit their blind spots and score 100% by construction.
- **a gate has to be seen failing.** the test that validates every algorithm's CBOM entry against the schema was confirmed by removing the code it guards and watching it fail with 72 errors.

the loop is held to this by a gate: a change that touches a detection path doesn't land until its effect on precision has been measured, and the recorded baseline is not the loop's to move. the notes put it as "a human's decision, not a cycle's".

## what the precision number did

precision here means: of the findings sampled, how many cite a line that really performs or configures the operation named. every label was made by opening the cited line. these are the published figures in order, each with the one thing that moved it.

| published | what changed |
|---|---|
| 84.5 → 81.8% | the 46 empty projects were restored. findings went from 964 to 1604, and the restored projects were denser in crypto and worse on precision. |
| 81.8 → 85.3% | a lookup like `jwa.LookupSignatureAlgorithm("PS256")` fetches a descriptor from a table. it had been reported as a signing operation. 34 findings removed, all labelled false by hand. |
| 85.3 → 86.5% | 283 findings named a parameter their input never stated, such as an RSA key size read off a signature algorithm's name. the ids now say only what the input determines. no finding added or removed. |
| 86.5 → 80.0% | the carried constant was [replaced with 150 relabelled rows](https://github.com/udsy19/quipuu/blob/6e277499a4bf95ae742df4e8a74fc9ca70d71676/PRECISION_AUDIT_V4.md). no code changed. |
| 80.0 → 84.7% | a constant spelled "none" was being reported as a JWT with no signature. 92 fired, 1 was real. 91 removed. |
| 84.7 → 89.9% | a java JOSE algorithm name that is only compared, collected into a set or used as a map key is not a use. [80 removed](https://github.com/udsy19/quipuu/commit/80aa47f949784b62a6c8421836202890b8bd772c). |
| 89.9 → 90.9% | `crypto_sign_keypair` is libsodium's Ed25519 keygen and also the name NIST's reference api gives ML-DSA and SLH-DSA keygen. 12 high findings had been telling post-quantum reference code to migrate to ML-DSA. |

the last published figure is 90.9% on 214 audited findings out of 1399: 190 true, 19 false, and 5 set aside because the operation is real but the line doesn't state the parameter the finding names. counting those 5 as false gives 88.8%. it is not comparable to 86.5%, and [the readme says so](https://github.com/udsy19/quipuu/blob/6e277499a4bf95ae742df4e8a74fc9ca70d71676/README.md). the java fix, 80 false positives deleted, scored 0.0 on the older estimator, because every one of them sat inside the constant, where no measurement could see them.

## what it cannot see

- **most operations.** the walker matches constructors and key generation. in go it found 301 of 325 of those, and 2 of 82 operation calls, one RSA encrypt and one decrypt. every signer, every verifier and every one-shot digest was at zero. this is the same decision that makes precision high: a constructor names its algorithm on the line, and a `Sign` call on a key that arrived from somewhere else does not.
- **six of seven languages, as far as recall goes.** 74.4% is a go number. no ground truth exists yet for the other packs, so their recall is unmeasured, not good. the c# and c/c++ packs are thin: 11 and 21 arms against javascript's 76.
- **where a value came from.** there is no data-flow analysis. a key size supplied by a caller is unknown to the scanner, and the comparison in the readme says plainly that CodeQL can trace this and quipuu doesn't try.
- **anything that needs the build.** it won't follow an include, because that would mean running the project's build, and never executing the code is one of its four fixed constraints. that cost one correct identification in libsodium's own test file.
- **anything with no literal.** a finding has to point at a line. an algorithm picked at runtime from a config value, or crypto inside a compiled library, has no line to point at. no test in the tree shows this failing. it follows from the design.
- **harvest-now-decrypt-later, outside certificates.** until 28 august the flag was a hard-coded false. it is now computed for certificate findings. for source and dependency findings it was 0 of 1399 on the corpus, because two of its three inputs are still fixed at compile time.
- **its own consumers.** the CBOM validates against the CycloneDX 1.7 and 1.6 schemas kept in the tree. no third-party consumer has been tested, and an earlier claim that it round-trips with named tools was withdrawn. the sarif output had been invalid against its own schema until the same day. uploading it to github has not been reproduced.

## what's built, what's not

> figure 3: where the public tree stands at commit 6e27749, 29 august 2026. filled means measured and holding, half-filled means working with a stated limit, empty means not there.

## what i'd keep

a readme is a list of claims, and it deserves what the code gets: each number with its run, each ratio with its denominator, each gate with proof it can fail. the scanner did not get better on the day "every" was struck. the description of it did, and that turned out to be the more useful change, because a constructor-only scanner that says so can be trusted about constructors.

the other thing is that a held number can't fall and can't rise. a fix that deleted 80 false positives scored nothing because it landed inside a constant. if part of a figure can't be re-derived from rows someone can open, it isn't a measurement any more, it's a memory.

the audits, the label sets and the corpus scripts are in the [quipuu repository](https://github.com/udsy19/quipuu). this is the part i'd repeat on the next project.

validation · read against the public tree at commit 6e27749 · classify arms, extract blocks and algorithm rows recounted from the toml files: 281, 59, 109 (the readme at that commit says 280 and 92) · policy years and score weights read from default-policy.toml · benchmark, precision and recall figures are quoted from the readme, BENCHMARKING_RESULTS.md, PRECISION_AUDIT_V4.md and the commit messages. they were not re-run for this note, and neither was the scanner.
