Founder Notes
A Pin Is Not an Identity
A check failed in our pipeline and passed on the machine beside it, and for about ten minutes I believed the pipeline was misconfigured.
It was not. The two runs disagreed because they were not running the same program.
What a pin actually promises
We pin our tooling. A file says which version of each tool this project expects, and the pipeline installs from it. That is the whole point of pinning: everyone gets the same behaviour, and when behaviour changes between versions it changes for everyone at once, deliberately.
What I had not thought carefully about is that a pin is a statement about what should be installed. It says nothing at all about what happens when I type a tool's name into a shell.
Typing a name is a lookup. The shell walks a list of directories and runs the first matching file it finds. That lookup can succeed — instantly, with no error and no warning — and hand back something the project never asked for. Mine did. The program answering to that name on my machine was a different distribution entirely, carrying a version number several majors beyond anything this project has ever pinned, and holding different opinions about the exact question at issue. It accepted a construction the pinned version rewrites.
So "it passes locally" was a true statement about a program with no relationship to our pipeline. The word "it" was doing enormous unearned work.
The signal I had already ignored
Here is the part I am least pleased about. That local tool had been telling me it was wrong for a while, and I had read the message as noise.
Run across the whole repository, it wanted to change files that had been committed, reviewed and passing for months. Hundreds of them. I filed that under ordinary friction — some setting out of step, something to sort out later — and moved on, because the files I cared about came back clean.
But a checker that disagrees with the accumulated history of a codebase is making a very strong claim: that the project has been wrong continuously and nobody noticed. That is occasionally true. It is much more often a sign that the thing making the claim is not the thing you believe it is. The corpus was the better witness, and it had been available the entire time.
The fix is not to run it again
What resolved it took a minute. Invoke the tool through the project's own environment rather than by bare name, so the lookup can only resolve one way, and make it state its version before trusting its verdict. It then agreed with the repository, with the pipeline, and with the pin.
The general form
Any time you invoke something by name, you are trusting a lookup you have not audited. A binary on a path. A package resolved by import name rather than by the distribution that provides it. A hostname. A container tag that someone can move. A model alias quietly pointing at a new version.
In every one of those cases there are two separate facts: what you declared you wanted, and what the name resolves to right now. Declaring is cheap and reassuring. Resolution is what actually runs. Nothing reconciles the two on your behalf.
Which means that running a tool is not how you verify a tool. Running it only tells you what some program does. You verify it by making it identify itself, and by invoking it along a path that cannot resolve to anything else.