Code RoomGPL code generation licensing
HardPrep Room Coding #4168

GPL code generation licensing

Vibe & agenticAlgorithms & data structuresSenior–Staff~22 min

An AI agent generated a tidy Go implementation of a rope data structure for your closed-source SaaS editor. It compiles, passes tests, and ships. Months later a license-scanning audit flags that the implementation is near-identical to a GPL-3.0 library on GitHub, down to variable names and comment phrasing. Walk through how you'd respond, and what you'd change in your AI-coding process so this doesn't recur.

Implement
provenance_match_percent(generated_lines: list[str], reference_lines: list[str]) → int
Examples
in[["func (r *Rope) Insert(idx int, s string) {"," if idx < 0 || idx > r.length {"," return"," }"," r.root = insertNode(r.root, idx, s)","}"],["func (r *Rope) Insert(idx int, s string) {"," if idx < 0 || idx > r.length {"," return"," }"," r.root = insertNode(r.root, idx, s)","}"]]out100
in[["package rope","","type Rope struct {"," root *node","}"],["package tree","","type Tree struct {"," root *node","}"]]out33
in[[],["anything"]]out0
What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it (tests, edge cases, reading critically), and how you’d re-prompt or decompose to get it right.

0:00 of about 22 min

Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.