DEV Community

Jason Waldrip
Jason Waldrip

Posted on Originally published at jasonwaldrip.com

The Skip Is a Claim

The security scan in your pipeline finished in four seconds. Last spring it took six minutes, and nobody filed a ticket about the improvement, because improvements are not the kind of thing anybody files. Somewhere in that history is the version where it finished in four seconds because it scanned nothing. Your pipeline has no way to tell you which one you're looking at.
A pass and a skip arrive at the same place wearing the same color. The run is green either way, the duration is a number nobody reads, and the one artifact that would settle it, a record of what the step actually looked at, was never written down.
I've argued before that green is not the same as working. This is the narrower and dumber version: green when nothing ran.

the list nobody owns

Any tool that skips work has to know what the work depends on, and the industry's answer for forty years has been to ask you.
Make wants prerequisites, by hand, one line per file you remembered. The modern runners are friendlier about defaults and no different in kind. Turborepo hashes a task's inputs into a fingerprint and, left alone, counts all source-controlled files in the package as inputs. Generous, correct, and it survives right up to the two moments every repo reaches. The first is when somebody narrows the input list to make the cache hit more often, which is the entire point of the feature. The second is when a real dependency crosses the package boundary: a shared config at the root, a generated file nobody checked in, a tool version pinned somewhere else. Then it counts only if a human remembers to say so.
What you've built at that point is a second source of truth about your own build. Written once, by the person holding the whole picture that afternoon, and from then on it decays the way every comment decays. Nothing type-checks that one either.
Bazel is the ecosystem that looked straight at this, and its own documentation is blunter than anything I'd write about my tools: "Bazel doesn't know if a tool uses undeclared input files," and when one of them changes, "Bazel still believes that the build is up-to-date." The fix there is enforcement. Run each action in a sandbox containing only what it declared, so an undeclared read fails loudly instead of quietly, and the processwrapper-sandbox strategy "prevents the action from accidentally using any input files that are not declared." I respect that answer. It also asks you to make your build hermetic first, which is a year of work most teams get quoted once and then decline.
So most pipelines sit where I keep finding them. Caching on, input lists half current, nobody's name against them.

the push rate is what changed

This used to be a slow leak. One team, a handful of merges a day, and an input list drifts about as fast as anyone notices.
Now I point a fleet at a monorepo and it opens work all day. The code is cheap, which was always the easy part to see. What took me longer to notice is that the metadata around the code is generated at the same rate and reviewed at a fraction of it. Agents add steps to workflows. They add config files that get read at startup. They move a constant into a shared package. Every one of those is a legitimate change, correctly made, and each one has a chance of putting a dependency somewhere the input list doesn't look.
Nobody is going to keep that list current by hand at that rate. I'm not going to, and I built the thing.
A false skip is a false green. A stale cache hands you an old answer. A missed input hands you no answer, in the shape of a pass.

who signed for it

What I'd been looking past is simpler than any of the tooling. Every cache hit is a claim. It says nothing relevant to this command changed since the last time it passed, and that claim is load-bearing: a pipeline is a stack of evidence, and a skip inserts an assertion where a proof used to be.
Then ask who signed it. Not the command. Whoever last edited a glob, months ago, about a repository that has since been rearranged by machines. That signature is the weakest link in the entire pipeline and it's the one piece nobody reviews, because it doesn't look like code and it doesn't look like a test. It looks like configuration.
The command is the only party in the room that knows what it reads. It demonstrates it every single run, and we throw that away and ask a person to recall it instead.

so I deleted the list

stoop is a CI step wrapper I've been building, and the whole premise is that last paragraph. It runs your command under a tracer, ptrace plus a seccomp filter so only filesystem calls stop, and watches what the process tree opens, executes, looks up, and lists, children included. If the command succeeds it writes a proof: every path with a hash of its bytes, the files it looked for and didn't find, the directory listings it read, the symlinks it followed, the environment it ran in. Next run, rehash those same paths. If everything matches, skip, in about the time it takes to hash them. There's no input list to write and none to keep current.
The tracing was the fun part. The rule that took the actual thinking is what happens when the evidence is thin. A missing proof, an expired one, a run that read .git, a run that went out to the network: all of those produce a command that runs, untraced, recording nothing. The tool's answer to doubt is work. Being wrong costs a rerun, never a missed failure.
That rule is also where the honest limits live, and they're worth saying out loud. A file trace can't see the clock or a random seed, so proofs expire after a week and there's a flag that re-proves everything from scratch on a schedule. Tracing is Linux-only. On a Mac it runs your command and records nothing at all, which is the right kind of useless. A skip today demands byte-equal inputs, so a reformatted file you know is equivalent still costs you the full run. Each of those is me declining to be clever in the direction where clever is expensive.

which way does it fail

The reusable part isn't about caching. Every optimization you put in a delivery path has a direction it fails in, and that direction is the only thing about it worth arguing over.
I've spent a lot of my career on the speed side of this. At CommercialTribe the most valuable thing I did was collapse a release cadence from weeks to hours, and I'd defend that work in any room. Weeks-to-hours is the difference between a team that learns and one that guesses. At GigSmart I put the development experience and the release path first, before features, on purpose, because the train only moves as fast as its tracks. Speed in a pipeline is not a luxury line item, it's how fast the organization can find out it was wrong.
Which is exactly why a false green is the one failure I won't trade for it. Shaving minutes off a run buys you a faster loop. Skipping a check that mattered buys you a lie, and you pay for it later at a price nobody quoted. Those two things show up on the same dashboard as the same green tick, and that's what makes this worth a whole essay instead of a config line.
So go look at the fastest step in your pipeline, the one that got quick enough that you stopped watching it. What did it last prove, and what is it reading now?
Jason Waldrip is a builder, entrepreneur, and technologist. He takes on fractional CTO and CAIO work through The Bushido Collective, for founders drowning in AI-generated code and teams scaling past the leadership that got them here. If your fleet is pushing faster than anyone is maintaining the config underneath it, that's the engagement. Work with me.
Written with AI assistance. The frame, the design calls in the tool, and the judgment about which way an optimization should fail are mine.

Top comments (0)