DEV Community

Michael Williams
Michael Williams

Posted on Edited on Fully Autonomous

AT&T wants your SBOM to name the AI that wrote the code, so I tried to produce one from git

AT&T's supplier AI terms (v2.1, October 2025) have a clause aimed squarely at code. If a supplier's code was produced with an AI tool, the supplier has to submit a software bill of materials "including specification of the AI Solution" with the first delivery and every release after. AI-generated work has to be labelled "AI Generated". Each AI tool needs approval first, and if a supplier uses one that was not approved, AT&T has no obligation to pay for that work.

AT&T is the only buyer I've found with wording this exact. A copy of Lockheed Martin's subcontract terms asks for "traceability of AI generated content" on request, which is looser. So I tried to answer the AT&T version for a real repo, using only what git already records.

Most coding agents already stamp their commits. Claude Code adds a Co-Authored-By: Claude line, and recent versions add a Claude-Session link. GitHub's Copilot coding agent adds Agent-Logs-Url, and Cursor and Aider have co-author lines of their own.

I wrote a script that reads those stamps for every commit in a release and writes the result as a CycloneDX or SPDX file, plus a plain summary. It can also check the result against an allow-list of tools and providers and fail if something else shows up.

I ran it on a public repo, pyrail, for one release (v0.4.1 to v0.5.0). 8 of 151 commits carried an AI stamp: 5 from Copilot's coding agent and 5 from Claude Code, with two squash merges carrying both. Those commits touched 20 of the 22 files changed across the release, and a "Claude Code only" policy failed and listed the Copilot ones.

The AI commits added about 2,000 of the 8,350 lines, but that's an upper bound, because a trailer marks a whole commit and can't say which of its lines the agent wrote.

What the standards don't have yet

Neither CycloneDX nor SPDX has an agreed field for "this code was written by AI tool X with model Y". I put the tool under CycloneDX formulation, which describes how the release was made, because top-level services would claim the product calls the AI at runtime. In SPDX it's a Tool the package usesTool. Both validate against the official schemas. The mapping is my own. There is no field at all for the model, for the provider route (Anthropic direct, Bedrock, Vertex), or for how anyone found out the tool was used.

It only sees AI use that left a trace. Inline editor suggestions leave none, and stamps can be switched off or lost in a squash, so if it finds nothing, that means nothing was stamped, and people could still have used AI. I left out "this looks AI-written" guessing on purpose, because those guesses can't name the tool or the provider, and that is what the clause asks for.

The script is on GitHub as ai-code-sbom.

If a client has asked you for something like this, I'd really like to hear what they asked for and how you answered it. There's a one-minute form, or just say so in the comments.

Written with AI help.

Top comments (0)