Every block of code an assistant produces raises a question no compiler will ask: whose work does this resemble, and on what terms may you use it? The tool learned from public code written under many licenses, by many authors, with many conditions attached. Its output arrives clean and unmarked, with no label saying where a pattern came from. Absence of a label is not absence of an origin.

Most output is generic. There are only so many ways to write a loop that sums a column, and no one owns the obvious. But sometimes — when you ask for something distinctive, or when the natural implementation of a known problem has a famous shape — the output can track an existing work closely: a long passage, an unusual algorithm, a distinctive structure with its original choices intact. Ship that unknowingly, and you may ship someone else's conditions with it: attribution duties, obligations that reach into your own code, or work you had no right to copy.

Keep the scale honest, in both directions

Both exaggeration and dismissal are failures here. The everyday risk is low: short, idiomatic, functional output — the bulk of what the tool produces — is not meaningfully anyone's property, and treating every suggestion as suspect would make the tool unusable and the team ridiculous.

The risk concentrates in identifiable places. Length and distinctiveness come first: the longer and more particular a passage, the more it can resemble a specific source. Famous implementations come next: ask for a well-known algorithm, parser, or utility by name and you invite the canonical version, which has an author and a license. Then there are stripped signals: output carrying another project's naming quirks, an unexplained constant, or a structure that plainly evolved for constraints you do not have. That is evidence of provenance — a find, not a curiosity.

Asking for it directly changes the category entirely. A request to write something the way a named project does it, or pasting a passage and asking for more like this, moves you from resemblance toward reproduction by choice. A professional does not use the tool to launder a source they could not copy by hand. Over all of this sits your organization's policy: many employers and clients set rules for assistant use, for which licenses may enter their codebase, and for attribution. Those rules bind you whether or not the law would, and they function as stop conditions, not suggestions.

The procedure is short, and deliberately unglamorous

When a passage raises the provenance question, the sequence is fixed. Stop the merge: provenance questions are answered before code lands, because removal afterward, from a shipped and branched codebase, is the expensive version of the same conversation. Then look: search your own codebase and, as your organization permits, the public record, for the passage's distinctive fingerprints — an unusual name, a comment fragment, a peculiar constant.

Then decide at the right level. A short passage confirmed generic proceeds, with the finding recorded. A passage matching a specific source is handled under that source's license if policy allows it, attribution included, exactly as required — or rewritten from the specification in genuinely independent form — or escalated to whoever owns legal questions in your organization. A genuine rewrite works from the behavior the passage implements, stated in your own words. Paraphrasing the found text line by line is not a rewrite; it is copying with the serial numbers filed off. Behavior may be re-implemented. Expression may not be transcribed.

The door closes in both directions

Provenance discipline has a mirror side: your own code's provenance runs the other way. Material you paste into a chat leaves your control in ways your organization's settings define, so never paste a third party's proprietary code, a client's code outside the engagement's terms, or your employer's most sensitive material into a service whose terms you have not read.

The firm Quillmark met this in ordinary work. A developer asked for a utility to parse a clinic's legacy appointment export — an odd, dated format — and received a long, beautifully structured parser whose internal names referred to concepts, "encounters" and "providers," that Quillmark does not use. The distinctiveness check fired. A search found the structure closely matching a published open-source parser for a neighboring industry's format, under a license whose conditions Quillmark's client contracts do not permit in this product.

The outcome was undramatic, which is the point. The passage was stopped, the behavior was written into a specification drawn from the export files themselves, and a fresh implementation was built from it. The episode went into the team notes in one paragraph, where it now teaches the idea to new hires. Provenance work is hygiene: routine, specific, and done before the merge, when it is cheap.

Know where your competence ends

This is also where a common misconception needs correcting: the belief that if the tool generated it, it must be safe to use, because the vendor would not ship something that creates license problems. The vendor ships a pattern engine, and patterns have sources. The tool does not know your product's obligations, your client contracts, or your organization's policy, and its output carries no warranty you can point to when a match is found in your shipped code. Responsibility for what enters the repository sits with the people who run the repository.

So be plain about the boundary of the role. You are learning to recognize and route license risk, not to adjudicate it. When a passage matters, a license is unclear, or a product's obligations are significant, the correct deliverable is a well-prepared escalation: the passage, the suspected source, the license as you found it, and the decision needed, handed to the person whose job the decision is. That is not the concept failing. That is the concept working.

Experience it, don’t just read about it

AI-generated code can carry a source, a license, and conditions its output never labels, so provenance must be checked before the merge is Concept 13 of GitHub Copilot & AI-Assisted Coding: Build, Test and Refactor Faster (Course No. 307), from Cognosco Learning, a learning company powered by AI. The course builds AI-assisted development beyond this distinction — Security Review of AI Output, Refactoring With AI, and The Developer's Standard — each worked through with an Agentic Socratic AI coach, one learner at a time. Try a Free Preview at cognoscolearning.com.

Try a Free PreviewAll Signature CoursesThe Corporate License

Navigate your own course.

← All Insights

© 2026 Cognosco Learning. All rights reserved.