licence-compliance
Business layer (business/README.md), applied at step 6 of the dev pipeline. A dependency is a legal
commitment that arrives through a package manager, which is why it gets made by whoever is closest to
the keyboard and reviewed by nobody.
The cost profile is what makes this worth a block: checking before installing takes a minute, and
unwinding a licence problem after shipping means replacing working code under time pressure.
Not legal advice. It exists to catch the obvious cases and route the rest to someone qualified.
When
Before adding a dependency, before vendoring or copying third-party code into the repo, before shipping
anything that bundles someone else's code, and when a dependency changes its licence in a major
version.
Steps
1. Know what you're taking on
- Read the licence of the thing you're adding, not the README's summary of it, and note it.
- Sort it into the category that matters:
- Permissive (MIT, BSD, Apache-2.0): generally fine to use in a product, but almost all of them
still require attribution — keeping the copyright notice and licence text with what you ship.
Skipping that is the most common violation and the easiest to avoid.
- Weak copyleft (LGPL, MPL): usually workable, with conditions attached to how you link or
modify it. Modifying the library itself is where obligations appear.
- Strong copyleft (GPL, AGPL): obligations that can extend to your code. AGPL in
particular reaches software offered over a network, which is exactly what a web product is. This
is the one to escalate, not to reason about alone.
- No licence at all: no permission. "It's on GitHub" is not a licence, and a repo with no
licence file is the most restrictive case, not the least.
- Source-available / custom terms (BSL, SSPL, "free for companies under N employees"): read the
actual terms, and check whether our situation crosses their threshold.
- Check the transitive dependencies, not just the one you typed. The lock file is the real
inventory, and a permissive package can pull a copyleft one.
- For a scanner or a CI check (four verdicts including "unknown", a checked-in review file, what
fails the build, dev-only dependencies): read
references/05-dependency-verdicts.md.
2. Escalate rather than interpret
Take to legal, don't decide alone: anything strong-copyleft in a shipped product, any custom or
source-available licence, any dual-licensed package where the free tier's conditions are unclear, and
any licence change in a version you're upgrading to. Frame the question with what you found (the
package, the licence, how we'd use it), which is what makes the answer fast.
3. Meet the obligations you accepted
- Attribution, mechanically. Generate the notices from the lock file rather than maintaining a
list by hand, and ship them where the product can show them.
- Keep licence headers in any file you copied or vendored. Stripping them to tidy up converts a
compliant copy into an infringing one.
- Record the decision when a non-obvious licence was accepted, and why — an ADR is the right home
(
skills/documentation-adr). The next person will ask.
4. Copied code and generated code
- A snippet copied from a blog, an answer site or another repo carries that source's licence. It
doesn't become ours by being pasted. For anything beyond a trivial line, either write it or check.
- Code an assistant produced from a copyrighted body of work is a real question, and not one this
block can settle. Treat a suspiciously complete or recognisable chunk as needing the same check as
a copied one.
- Our own code leaving the company — a snippet in a public issue, an example in a talk, a block
shared outside — is the same question in reverse: what's ours to publish is a decision, not a
reflex. That's rule C's boundary in the dev framework, and it's the same instinct.
Output / checkpoint
No pipeline checkpoint (business layer). What it owes: the licence of what's being added, its
category, the obligations accepted, and either the notices generated or the question sent to legal.
Guardrails
- Never add a dependency whose licence you haven't looked at, however small the package.
- Never strip a licence header or a notice file.
- Never decide alone that a copyleft licence is acceptable for a shipped product.
- No licence file means no permission: don't use it while assuming someone will grant it later.
- An automated scan is a starting point, not an answer: tools mislabel licences, and they can't tell
how we're using the code.
Origin
Sourcing pass 2026-10-20 (status stays 🟡, nothing was run). Read for facts, rewritten in our own words:
the Apache-2.0 licence text (section 4), the MIT licence page on opensource.org, the MPL 2.0 FAQ, the SPDX page
on handling licence information, the choosealicense.com and GitHub pages on repositories without a licence, and
the Functional Source License site. They confirm the step 1 categories: permissive licences keep an attribution
condition, the MPL is file-level, a repository with no licence gives no permission. The AGPL text and the LGPL
text could not be read (rate limited), so the network-copyleft sentence rests on the FSF statement already
cited in references/05-dependency-verdicts.md point 5. No licence statement was read for the vendor and
foundation pages used for facts; no text is reproduced.
Assembled from public sources: the licence texts themselves and the widely published distinctions
between permissive, weak- and strong-copyleft terms. Written without internal legal expertise,
shaped as "recognise the category, then escalate" rather than as interpretations. The engineering
angles are ours: the lock file as the real inventory, generating notices instead of maintaining them,
copied snippets carrying their source's licence, and the symmetry with rule C for our own code leaving
the company.
references/05-dependency-verdicts.md (added 2026-10-16, 🟡 never dogfooded) takes the verdict states
and the review-file pattern from the licenseal documentation (Apache-2.0), and its compatibility
statements from the FSF licence list and the SPDX list, read 2026-10-16; it flags which sentences are
ours.
Independent verification 2026-10-21: 13 checked, 13 matched, 0 corrected, 0 unverified
1---2name: licence-compliance3description: Use when adding a dependency, vendoring code, or shipping a product that bundles third-party code, including code produced from copied snippets. Structured checklist, not legal advice.4metadata:5 source: https://skillmd.com/skills/techmefr/licence-compliance6---78# licence-compliance910Business layer (`business/README.md`), applied at step 6 of the dev pipeline. A dependency is a legal11commitment that arrives through a package manager, which is why it gets made by whoever is closest to12the keyboard and reviewed by nobody.1314The cost profile is what makes this worth a block: checking before installing takes a minute, and15unwinding a licence problem after shipping means replacing working code under time pressure.1617**Not legal advice.** It exists to catch the obvious cases and route the rest to someone qualified.1819## When20Before adding a dependency, before vendoring or copying third-party code into the repo, before shipping21anything that bundles someone else's code, and when a dependency changes its licence in a major22version.2324## Steps2526### 1. Know what you're taking on271. **Read the licence of the thing you're adding**, not the README's summary of it, and note it.282. **Sort it into the category that matters**:29 - **Permissive** (MIT, BSD, Apache-2.0): generally fine to use in a product, but almost all of them30 still require **attribution** — keeping the copyright notice and licence text with what you ship.31 Skipping that is the most common violation and the easiest to avoid.32 - **Weak copyleft** (LGPL, MPL): usually workable, with conditions attached to how you link or33 modify it. Modifying the library itself is where obligations appear.34 - **Strong copyleft** (GPL, AGPL): obligations that can extend to **your** code. **AGPL in35 particular reaches software offered over a network**, which is exactly what a web product is. This36 is the one to escalate, not to reason about alone.37 - **No licence at all**: no permission. "It's on GitHub" is not a licence, and a repo with no38 licence file is the most restrictive case, not the least.39 - **Source-available / custom terms** (BSL, SSPL, "free for companies under N employees"): read the40 actual terms, and check whether our situation crosses their threshold.413. **Check the transitive dependencies**, not just the one you typed. The lock file is the real42 inventory, and a permissive package can pull a copyleft one.434. **For a scanner or a CI check** (four verdicts including "unknown", a checked-in review file, what44 fails the build, dev-only dependencies): read45 [`references/05-dependency-verdicts.md`](./references/05-dependency-verdicts.md).4647### 2. Escalate rather than interpret48Take to legal, don't decide alone: anything strong-copyleft in a shipped product, any custom or49source-available licence, any dual-licensed package where the free tier's conditions are unclear, and50any licence change in a version you're upgrading to. Frame the question with what you found (the51package, the licence, how we'd use it), which is what makes the answer fast.5253### 3. Meet the obligations you accepted541. **Attribution, mechanically.** Generate the notices from the lock file rather than maintaining a55 list by hand, and ship them where the product can show them.562. **Keep licence headers** in any file you copied or vendored. Stripping them to tidy up converts a57 compliant copy into an infringing one.583. **Record the decision** when a non-obvious licence was accepted, and why — an ADR is the right home59 (`skills/documentation-adr`). The next person will ask.6061### 4. Copied code and generated code621. **A snippet copied from a blog, an answer site or another repo carries that source's licence.** It63 doesn't become ours by being pasted. For anything beyond a trivial line, either write it or check.642. **Code an assistant produced from a copyrighted body of work is a real question**, and not one this65 block can settle. Treat a suspiciously complete or recognisable chunk as needing the same check as66 a copied one.673. **Our own code leaving the company** — a snippet in a public issue, an example in a talk, a block68 shared outside — is the same question in reverse: what's ours to publish is a decision, not a69 reflex. That's rule C's boundary in the dev framework, and it's the same instinct.7071## Output / checkpoint72No pipeline checkpoint (business layer). What it owes: the licence of what's being added, its73category, the obligations accepted, and either the notices generated or the question sent to legal.7475## Guardrails76- **Never add a dependency whose licence you haven't looked at**, however small the package.77- **Never strip a licence header or a notice file.**78- **Never decide alone that a copyleft licence is acceptable for a shipped product.**79- No licence file means no permission: don't use it while assuming someone will grant it later.80- An automated scan is a starting point, not an answer: tools mislabel licences, and they can't tell81 how we're using the code.8283## Origin84**Sourcing pass 2026-10-20 (status stays 🟡, nothing was run).** Read for facts, rewritten in our own words:85the Apache-2.0 licence text (section 4), the MIT licence page on opensource.org, the MPL 2.0 FAQ, the SPDX page86on handling licence information, the choosealicense.com and GitHub pages on repositories without a licence, and87the Functional Source License site. They confirm the step 1 categories: permissive licences keep an attribution88condition, the MPL is file-level, a repository with no licence gives no permission. The AGPL text and the LGPL89text could not be read (rate limited), so the network-copyleft sentence rests on the FSF statement already90cited in `references/05-dependency-verdicts.md` point 5. No licence statement was read for the vendor and91foundation pages used for facts; no text is reproduced.9293Assembled from public sources: the licence texts themselves and the widely published distinctions94between permissive, weak- and strong-copyleft terms. Written **without internal legal expertise**,95shaped as "recognise the category, then escalate" rather than as interpretations. The engineering96angles are ours: the lock file as the real inventory, generating notices instead of maintaining them,97copied snippets carrying their source's licence, and the symmetry with rule C for our own code leaving98the company.99100`references/05-dependency-verdicts.md` (added 2026-10-16, 🟡 never dogfooded) takes the verdict states101and the review-file pattern from the `licenseal` documentation (Apache-2.0), and its compatibility102statements from the FSF licence list and the SPDX list, read 2026-10-16; it flags which sentences are103ours.104105Independent verification 2026-10-21: 13 checked, 13 matched, 0 corrected, 0 unverified