← Blog

SLSA Levels: What They Prove About Agent-Written Builds

Marco Masut

SLSA (Supply-chain Levels for Software Artifacts, pronounced "salsa") is a framework that describes how much you can trust the way a software artifact was built. Its Build track defines levels that ask for more and more: a provenance record exists, the build ran on a hosted platform that signs it, and the build is hardened against tampering. SLSA answers one question well: was this artifact really produced from that source by that build process? It does not answer who decided what went into the source. When an agent wrote the change, that second question is the one a client or an auditor asks next. A team that uses SLSA for builds and nothing for changes has a strong chain from commit to artifact and a blank page before the commit. The sections below show what each level proves, what a provenance record leaves out, and how to add a record of the change itself.

What does SLSA attest, and at which level?

It attests the build, not the code. The SLSA specification defines a Build track with levels, and each level raises the cost of forging how an artifact was made. In summary, following the v1.0 specification and leaving exact wording to the current version:

| Level | What it asks for | What it lets you conclude | | --- | --- | --- | | Build L0 | Nothing | No claim about how it was built | | Build L1 | Provenance exists | The producer says how the artifact was built | | Build L2 | Hosted build platform that signs the provenance | The record comes from a platform, not from the developer's laptop | | Build L3 | Hardened build platform, isolated builds | Builds cannot easily influence each other or forge the record |

Provenance is a statement that links an artifact, by digest, to the source and the build steps that produced it. Used well, it lets a consumer reject an artifact that was built somewhere unexpected or from a different source. The specification versions evolve, so check the current text before you quote a level in a contract.

What does a provenance record leave out?

It leaves out everything that happened before the source reached the build. A SLSA provenance record can be perfect and still say nothing about the following:

  • who asked for the change, and what exactly was requested;
  • who or what wrote the code, and with which instructions;
  • whether anyone reviewed it, and what they looked at;
  • which dependencies were chosen, and by whom;
  • whether the change stayed inside the scope that was approved.

None of this is a defect of SLSA. The framework is scoped to the build, and says so. The risk is in reading a green level as a statement about the whole delivery. An L3 build of a change nobody understood is an excellent record of a bad decision.

Where does an agent-written change sit in the chain?

At the very start, upstream of the point SLSA begins to look. The chain runs from request to source, source to build, build to artifact, artifact to production. SLSA covers the middle. An agent works in the first link, where there is no standard attestation yet: a session writes files, picks packages, runs commands, and closes. What remains is a diff and, at best, a log.

This matters for supply chain integrity in a concrete way. A study presented at USENIX Security 2025 (Spracklen et al., "We Have a Package for You!") generated 576,000 code samples with 16 models and found that the average share of hallucinated packages was at least 5.2% for commercial models and 21.7% for open-source models. A build with strong provenance will faithfully record that it installed a package someone registered after the model invented its name. The provenance is true, and the dependency is the problem. The same angle is developed in software supply chain security when an agent picks the dependency.

How do you go from build provenance to change provenance?

By recording, for each change, the same kind of facts SLSA records for each build: what went in, what ran, who is accountable, and a digest that ties the record to the result. A workable minimum has five parts:

  1. The request, kept as written, with the identity of whoever approved the plan.
  2. The scope: which files and areas the change was allowed to touch, compared with what it touched.
  3. The dependency delta: every package added or changed, with name, version and reason. The SBOM for AI-generated code is the natural container.
  4. The checks that ran outside the process that wrote the code, with command and result stored.
  5. The signature of a named person on the plan and on the delivery, tied to the commit that was actually checked.

Together with SLSA, this gives a chain with no hole at the front: change provenance up to the commit, build provenance from the commit to the artifact. A longer treatment of the record itself is in software audit trail when an agent made the change.

What should you ask of a supplier?

Ask for both halves, in plain questions that have checkable answers:

  • Which SLSA Build level do your release builds reach, and can you show a provenance record for the last release?
  • For a change written by an agent, can you show the request, the scope, and who approved each?
  • Which dependencies were added in this release, and who accepted them?
  • Which checks ran separately from the agent that wrote the code, and where are the results kept?
  • Who signed the delivery, and what exactly did the signature cover?

A supplier who answers the first question and not the others has secured the last mile. One who answers all of them can show the whole route. Detent, the end-to-end delivery system (detent-ai.com), is built around the second half: the system prepares the evidence, a named person signs the plan and the delivery. For the wider context see AI software development, and for how tools compare on what they leave behind, the benchmark.