›bobbyencoded_
/posts/newsletter/courses/about
/posts/newsletter/courses/about

The Decode

The week's AI & software news, decoded.

Subscribe →

// © 2026 BobbyEncoded Inc. — A Canadian corporation

← Back to Blog

Who Owns the Code Your Agent Writes?

November 24, 2026 · 8 min read

AI, Copyright, Open Source, Agentic Coding, GitHub Copilot, Law

Most of the code in my apps now starts as something an agent wrote. I review it, change it, test it, and ship it. But I've never been able to answer two plain questions about that code: could it get me in trouble, and is it even mine?

On September 16 the US Court of Appeals for the Ninth Circuit decided Doe v. GitHub, the first appeals-court ruling in the lawsuit over Copilot and Codex. I mentioned it in a quick hit in The Decode #011. The opinion is short (18 pages) and readable. Here's what it decided, and what it means for anyone shipping agent-written code.

I'm a software developer, not a lawyer, and this isn't legal advice. I live in Canada, and this is a US ruling about US law. If real money or a real dispute is involved, talk to an actual lawyer.

The case in one paragraph

A group of programmers who published open-source code on GitHub sued GitHub, Microsoft and OpenAI in 2022. Open-source licenses usually come with one main condition: keep the author's name, copyright notice and license text with any copy. The plaintiffs said Copilot sometimes emits their code, verbatim or close to it, without any of that. After two rounds of dismissals, three claims were left: one under the Digital Millennium Copyright Act (DMCA) and two for breach of contract. The district court threw out the DMCA claim and let the contract claims continue. The Ninth Circuit agreed to hear an appeal on the DMCA question alone.

The law in question: DMCA §1202(b)

Section 1202(b) protects copyright management information (CMI): the title, author's name, copyright notice and license terms attached to a work. It makes it illegal to intentionally remove or alter CMI, or to distribute copies knowing the CMI was removed.

In code terms, CMI is the header comment at the top of the file and the LICENSE file next to it.

The appeal was framed around one question: does a §1202(b) claim require the output to be identical to the original? The district court had said yes, and Copilot's output was only near-identical.

What the court decided

1. The plaintiffs had standing. GitHub, Microsoft and OpenAI argued that any risk to these plaintiffs' code was conjecture. The court disagreed. It pointed out that the complaint cited research showing models sometimes emit memorized training data, and that GitHub itself built a filter to block suggestions matching public code. As the court put it, that filter "is some evidence that Copilot can and does emit literally identical copies of code."

2. The "input" theory was forfeited, not decided. There were two ways to read the DMCA claim. The input theory says the companies stripped CMI from code before training. The output theory says Copilot strips CMI when it emits code. The court refused to consider the input theory because the plaintiffs never pressed it in the lower court. When the district judge asked whether copying code into training data broke the licenses, plaintiffs' counsel answered, "Perhaps it doesn't." The judge's response, quoted in the opinion: the "complaint is not about training. It just isn't."

3. The "output" theory fails. This is the heart of it. "Remove" and "alter," the court said, mean doing something to CMI that's attached to a work that already exists: cropping the photo credit off a printed image, deleting the copyright page from a book. Copilot doesn't do that. In the court's words, it "does not look up and reproduce stored work but rather creates new work." A new work that never had CMI attached hasn't had anything removed.

4. "Identicality" isn't really the test. The court said the district court's framing was "something of a misnomer." The DMCA doesn't require a literally identical copy. Identical-except-for-the-notice is good evidence that someone removed CMI, and changing one word wouldn't let a copier escape. But that's evidence, not a separate requirement, and here the plaintiffs never alleged that anyone removed CMI from a copy of their work.

The opinion also draws a line that's useful for engineers. If Copilot "functioned like a search engine," retrieving stored code and serving it up minus the license header, the plaintiffs "might have a stronger claim." What saved the defendants was the plaintiffs' own description of the model: inferring statistical patterns and generating a likely completion. Generation, not retrieval.

Finally, the court explained why it wasn't stretching the DMCA. The DMCA allows statutory damages of up to $25,000 per violation. If every unattributed, similar-looking output were a DMCA violation, the court wrote, the DMCA would "supplant traditional copyright protections." It declined "to transform run-of-the-mill copyright-infringement claims into DMCA claims."

What's still open

This ruling is narrower than "AI code is legally fine." Here's what it didn't decide:

  • Whether the output infringes copyright. The court said explicitly that it expresses "no view" on whether Copilot's similar output could support a copyright infringement claim. That's a different law with different tests ("substantial similarity in protectable expression").
  • The contract claims. The two breach-of-contract claims, based on the open-source licenses themselves, are still pending in the district court before Judge Jon Tigar.
  • Training. The input theory was forfeited in this case. Whether training on licensed code violates anything is a question for other cases. The US Copyright Office's report on generative AI training is still a pre-publication version.

The other half: is the code even yours?

Doe v. GitHub is about whether agent output can get you sued. It says nothing about whether you own it. That's a separate thread of US law, and it's more settled:

  • In Thaler v. Perlmutter (2025), the D.C. Circuit held that copyright requires a human author. The Supreme Court declined to hear the appeal in March 2026, so that ruling stands.
  • The Copyright Office's January 2025 report on copyrightability concluded that prompts alone generally aren't enough to make you the author of what a model produces. What is protected is the human contribution: code you wrote, and creative selection, arrangement or modification of the output.

For an app developer that suggests something slightly uncomfortable. The parts of a codebase you can most clearly claim are the parts a human shaped: the architecture, the specs, the edits, the review. Code an agent emitted and you accepted unchanged is the weakest claim. I don't think that matters much for a small app. It might matter a lot if you're ever sold, audited, or copied.

What I'm doing differently

None of this is legal advice; it's the hygiene list I'm taking from the ruling.

  1. Turn on public code matching wherever the tool offers it. GitHub's docs say Copilot compares a suggestion, plus about 150 characters of surrounding code, against an index of public GitHub code. Depending on your policy, matches are blocked or shown with the matching repositories and licenses. GitHub says matches happen in under 1% of suggestions. The court treated that very filter as evidence that verbatim output happens.
  2. Treat a large, verbatim-looking block as a copy until proven otherwise. If an agent produces a whole algorithm that looks lifted, search for it. If it came from a licensed project, include the notice, or don't use it.
  3. Never paste licensed code into a prompt and ship the result as mine. That's the "search engine" scenario the court said would look different: existing work in, same work out, notice gone.
  4. Keep the human trail. Specs, plans, commit history and review comments are a record of human authorship. I already keep them for spec-driven development. It turns out they're useful for this too.
  5. Run a license scanner on dependencies, as before. The biggest copyright risk in most apps is still the packages you pull in, not the agent.
  6. Read your coding tool's terms about output ownership and indemnity. They differ by vendor and plan, and they change.

The short version: the Ninth Circuit closed one door (the DMCA theory against output) and left the bigger ones (infringement, training, contract) open. For now, the safest code to ship is code you understand well enough that it's clearly yours.

Sources

The ruling

  • US Court of Appeals for the Ninth Circuit, Doe v. GitHub, Inc., No. 24-7700, opinion (Sep 16, 2026)
  • The Next Web, report on the ruling and the remaining contract claims (Sep 18, 2026)
  • Haynes Boone, client alert on the §1202(b) ruling

Authorship and ownership

  • US Court of Appeals for the D.C. Circuit, Thaler v. Perlmutter, No. 23-5233, opinion (Mar 18, 2025)
  • US Copyright Office, Copyright and Artificial Intelligence, Part 2: Copyrightability (Jan 29, 2025)
  • US Copyright Office, Copyright and AI report series (includes the pre-publication Part 3 on training)
  • Holland & Knight, alert on the Supreme Court declining to hear Thaler (Mar 3, 2026)

Tooling

  • GitHub Docs, code referencing in GitHub Copilot
← Previous

Claude Wrote the Rust Rewrite in a Week. Proving It Worked Took Five Months.

Next →

One Week, Seven Outages: What Each One Teaches

Thoughts on this?

Tell me on X: @bobbyencoded · Share this post on X

Want more like this? Subscribe to The Decode, a weekly email on the AI and developer news worth your time.