Governance
Learn From Public Patterns, Write Our Own Code
Reusing what the world has already tested is sound engineering. Copying expression is a different act. We explain where the line sits and why the difference matters.
Reuse is the default, not the exception
Almost no modern software is written from nothing. The 2026 open source security and risk analysis audited 947 commercial codebases submitted between November 2024 and October 2025 and found open source in 98% of them. The average application carried 1,180 open source components, up about 30% from 911 the year before. A Harvard Business School study reported in March 2024 estimated that firms would pay about $8.8 trillion to rebuild the open source they use, and that some 96 percent of commercial programs include some code of this kind.
So the question is not whether to learn from what already exists. It is how. We think the answer has two parts. Reuse tested components under their licences, and write our own expression of everything else.
What the law protects and what it leaves free
Copyright protects expression, not ideas. Section 102(b) of the US Copyright Act says protection does not extend to any idea, procedure, process, system, method of operation, concept, principle or discovery, regardless of the form in which it is described or embodied. The Copyright Office's circular on computer programs applies the same logic: protection extends to all of the copyrightable expression in a program, but the law does not protect functional aspects such as algorithms, functions, logic or system design.
In practice, we read that as follows. How a problem has been solved in public is something anyone may study. The exact text of someone else's code is expression, and it carries conditions. Learning the pattern and then writing our own implementation keeps us on the free side of that line.
The courts have not drawn every boundary. In a 2021 decision, summarised by the Copyright Office, the US Supreme Court held that copying roughly 11,500 lines of declaring code, which it measured as 0.4 percent of the platform concerned, was fair use. The Court assumed, purely for argument's sake, that the code was copyrightable, and did not decide that question. A fair use ruling on particular facts is not a licence to copy code in general. General information, not legal advice.
Open source is permission with conditions
Open source is not the absence of rules. The Open Source Definition sets ten criteria, including free redistribution, availability of source code and permission for derived works, and requires that the rights attached to a program apply to everyone who receives it. Each licence still carries its own terms.
The same audit found licence conflicts in 68% of codebases, a mean of 104 per codebase, which the report called the highest rate in its history. It also reported a mean of 581 vulnerabilities per codebase, more than double the 280 of the prior year. We read these figures as a warning about records, not about reuse. Teams that cannot say which components they hold, under which terms, cannot answer either problem.
A worked example
We use a simple comparison of our own to keep the decision honest.
Total effort over N years = Initial effort + (Annual upkeep x N)
The numbers below are illustrative, not real data. Suppose a team needs a small module. Using an existing library takes 20 hours to integrate and 10 hours to review, so 30 hours up front, then 8 hours of upkeep a year. Writing it in house takes 120 hours up front and 24 hours of upkeep a year. Over three years the library costs 30 + (8 x 3) = 54 hours. The in-house version costs 120 + (24 x 3) = 192 hours. The library needs about 28% of the effort.
That arithmetic leaves out risk. The Secure Software Development Framework published by NIST says that reusing modules whose security posture has already been checked lowers cost, speeds development and decreases the likelihood of introducing new vulnerabilities, and calls this particularly important for software that implements security functionality, such as cryptographic modules. It also asks organisations to verify that third-party components comply with their own requirements throughout their life cycles, and to build components in house where third-party ones cannot better meet a need.
Common mistakes and what the evidence does not show
The usual mistakes are counting only the build cost, assuming that public means free of conditions, pasting a snippet without recording where it came from, and treating an idea and its expression as the same thing.
The evidence has limits. The $8.8 trillion figure is an estimate of what rebuilding would cost, not a measurement of any one firm's savings. The audit covers only the codebases that were submitted to it, so it need not represent all software. None of these sources tells a team whether its own choice is right. That depends on how central the code is to what the team offers, whether a suitable component exists, and whether its terms can be met.
Going deeper
The comparison above has a break-even horizon. Set the two totals equal and solve for N.
N = (Own initial effort - Library initial effort) / (Library annual upkeep - Own annual upkeep)
With the illustrative figures, N = (120 - 30) / (8 - 24) = 90 / -16, or about -5.6. A negative result means the two cost lines never cross at a positive horizon, so the library is cheaper throughout. If the library's upkeep were higher than the in-house upkeep, N would turn positive and tell you how many years until writing your own wins.
Growth rates are worth checking yourself. The component count rose from 911 to 1,180, so the change is (1,180 - 911) / 911, which is about 29.5%. The vulnerability mean rose from 280 to 581, a ratio of about 2.07.
To go further, read Section 102(b) in full, read the licence text of every component you ship, and read practice PW.4 and its tasks in the NIST framework. Keep a record of each component, its version and its licence. We publish our sources so that each figure can be checked, and we welcome corrections.
Sources
- 01
- 02Open Source Software: The $9 Trillion Resource Companies Take for Granted
Harvard Business School Working Knowledge · March 22, 2024
HIGH - 0317 U.S. Code section 102, Subject matter of copyright: In general
Legal Information Institute, Cornell Law School
HIGH - 04
- 05
- 06
- 07NIST SP 800-218, Secure Software Development Framework (SSDF) Version 1.1
National Institute of Standards and Technology · February 3, 2022
HIGH
Verification Record
- Verdict
- approved
- Verified
- November 10, 2026