I need to create a comprehensive open-source license compliance guide.
The user wants specific sections:
- License Families: Grouping common licenses.
- Obligations: What you have to do.
- Notice/Attribution: How to give credit.
- Copyleft Triggers: When the viral effect kicks in.
- Dependency Scanning: Tools and process.
- Remediation: Fixing issues.
- Policy Templates: A starting structure.
Structure of the Guide:
- Introduction: Briefly explain why this matters (legal risk, reputation).
- Part 1: The License Landscape (Families):
- Permissive: MIT, BSD, Apache 2.0. (Low friction).
- Weak Copyleft: LGPL, MPL. (Library-level).
- Strong Copyleft: GPL v2/v3, AGPL. (Viral, distribution triggers).
- Public Domain: CC0, Unlicense.
- Part 2: Core Obligations (The "Must Dos"):
- Preserve Copyrights.
- Provide License Text.
- State Changes (Apache 2.0 specific).
- Source Code Provision (Copyleft).
- Part 3: Notice & Attribution Best Practices:
- Where to put them (About page, separate file).
- What to include (Standard text, modifications).
- Part 4: The "Copyleft" Trigger Matrix:
- Conveying vs. Internal use.
- Static vs. Dynamic linking (crucial distinction for LGPL).
- SaaS/ASP loophole (AGPL vs GPL).
- Part 5: Operationalizing Compliance (Dependency Scanning):
- Tools: SBOM generation, SCA (Software Composition Analysis).
- Workflow: CI/CD integration.
- Part 6: Remediation Strategies:
- Compliant: Add attribution.
- Refactor: Rewrite code.
- Isolate: Move to separate process/service.
- Dual License: Pay for commercial license.
- Replace: Find a permissive alternative.
- Part 7: Policy Template:
- Simple outline: Scope, Approval Process, Forbidden Licenses, Usage Guidelines.
Drafting Content - Specific Details to Refine:
- Apache 2.0: Mention the patent grant.
- GPL: Distinguish between v2 and v3 (anti-tivoization).
- LGPL: Explain the linking static vs. dynamic nuance clearly.
- Scanning: Mention tools like FOSSA, Snyk, Black Duck, but also simple ones like
license-checker or pip-licenses for devs.
- Remediation: Focus on "isolating" strong copyleft code (e.g., calling a CLI tool vs. linking a library) as a common strategy.
Tone: Professional, legal-adjacent (but with disclaimer), actionable, and structured.
Disclaimer: Must start or end with "I am an AI, not a lawyer. This is for information, not legal advice."
Review against User Request:
- License families? Yes.
- Obligations? Yes.
- Notice/attribution? Yes.
- Copyleft triggers? Yes.
- Dependency scanning? Yes.
- Remediation? Yes.
- Policy templates? Yes.
Let's build the response.
This guide provides a comprehensive framework for Open Source Software (OSS) license compliance. It is structured to help engineering, legal, and product teams navigate the complexities of intellectual property.
⚠️ Disclaimer
I am an AI, not a lawyer. This guide provides general information regarding open source compliance best practices. It does not constitute legal advice. You should consult with legal counsel regarding your specific situation.
1. Understanding License Families
Open source licenses generally fall into four categories, ranging from "anything goes" to "strictly enforced sharing."
| Family | Examples | Philosophy | Risk Level | Commercial Use |
|---|
| Permissive | MIT, BSD (2/3-clause), Apache 2.0, ISC | Maximize freedom; do whatever you want with the code. | Low | ✅ Yes |
| Weak Copyleft | LGPL, MPL (Mozilla), EPL (Eclipse) | Share modifications to the library/file, but the surrounding application can remain proprietary. | Medium | ✅ Yes (with conditions) |
| Strong Copyleft | GPL v2/v3, AGPL, CDDL | Viral; if you use this code, your entire project must become open source. | High | ⚠️ Only if you Open Source your app |
| Proprietary / Custom | CC-BY-NC, Fair Source, Custom Licenses | "Source Available" but not "Open Source." May restrict commercial use. | Variable | ❌ Review Required |
Key License Clauses to Watch
- Apache 2.0: Includes a patent grant (users can't sue you for patent infringement over the code).
- BSD-3-Clause: Includes a "No Endorsement" clause (cannot use the author's name to promote derived products).
- AGPL: The "SaaS Loophole" closer. If users interact with the software over a network, you must provide source code.
2. Compliance Obligations Matrix
Every license has specific duties. These generally fall into three buckets:
| License | Provide Copyright Notice | Provide License Copy | State Changes | Provide Source Code | Patent Grant |
|---|
| MIT | ✅ | ✅ | ❌ | ❌ | ❌ |
| Apache 2.0 | ✅ | ✅ | ✅ (If modifying files) | ❌ | ✅ |
| GPL v3 | ✅ | ✅ | ✅ | ✅ | ✅ |
| LGPL | ✅ | ✅ | ✅ | ✅ (Library only) | ✅ |
| BSD 3-Clause | ✅ | ✅ | ❌ | ❌ | ❌ |
3. Copyleft Triggers: The "Viral" Boundary
The most common compliance failure is misunderstanding Boundary Issues (or "Scope of Copyleft").
Distribution vs. Internal Use
- GPL: Obligations trigger upon Distribution (conveying the software to others). Internal business use generally does not trigger source code requirements.
- AGPL: Obligations trigger upon Network Interaction. If users interact with the software over a network (SaaS), you must provide source code.
Linking Static vs. Dynamic
This determines if your proprietary code becomes infected by the copyleft license.
- Static Linking: Combining libraries into a single executable binary.
- Result: Proprietary code + GPL library = Proprietary code becomes GPL.
- Dynamic Linking: The executable links to the library at runtime.
- Result: Controversial. The FSF says this creates a combined work. Some legal opinions allow "arm's length" communication (e.g., via IPC or pipes) to avoid the trigger.
Safe Harbor (The LGPL Exception): You can dynamically link to an LGPL library without open-sourcing your main application, provided you allow the user to swap out that LGPL library (e.g., use shared objects .so or DLLs).
4. Notice & Attribution
This is the minimum requirement for 99% of compliance. You must generate a "Bill of Materials" (BOM) and display it.
Where to put notices
- Mobile Apps: Usually in "Settings > Legal" or "About."
- Web Apps: Footer link or a dedicated
/legal route.
- Desktop/CLI: A
LICENSE.txt or NOTICE.txt included in the installation directory.
The "NOTICE" file (Apache 2.0 Specific)
Apache 2.0 requires a specific handling of the NOTICE file. If a library includes a text file named NOTICE, you must retain the attribution statements in that file within your own product's notice file. You cannot bury it in the generic license text.
5. Dependency Scanning (Automation)
Manual tracking is impossible. You need a Software Composition Analysis (SCA) workflow.
Recommended Tools
- GitHub / GitLab: Built-in "Dependency Graph" and "License Compliance" features.
- FOSSA / Snyk / Black Duck: Enterprise-grade SCA tools (scan transitive dependencies).
- OSS Tools:
license-checker (Node.js)
pip-licenses (Python)
license-maven-plugin (Java)
go-licenses (Go)
Transitive Dependencies
Danger Zone: You might use an MIT library, but that library might depend on a GPL library.
- Example: Your Code -> MIT Wrapper -> GPL Library.
- Result: You are distributing the GPL library. Your code is now subject to GPL.
6. Remediation Strategies
If you find a non-compliant or risky license in your stack, use one of the following strategies:
- Replace: Swap the component for a permissively licensed alternative (e.g., replace a GPL library with an MIT equivalent).
- Refactor: Re-implement the functionality yourself (Clean Room Design) to remove the dependency.
- Isolate (The "Process Boundary" Approach): Run the copyleft component as a separate standalone service/daemon. Communicate with it via standard IO, sockets, or HTTP.
- Logic: This separates the memory space, arguably preventing the creation of a "Combined Work."
- Purchase a Commercial License: Many open source companies (e.g., Qt, MySQL, MongoDB) sell commercial licenses that override the copyleft requirements.
- Open Source Your Code: If you are willing, change your project's license to GPL to comply.
7. Policy Templates
Use this text as a starting point for your internal engineering handbook.
[Template] Internal OSS Usage Policy
1. Objective
To define how [Company Name] uses Open Source Software (OSS) to minimize legal risk and ensure IP hygiene.
2. Approved Licenses (Tier 1 - Low Risk)
- Use is permitted without Legal review:
- MIT, Apache 2.0, BSD (2 & 3 Clause), ISC, Artistic License 2.0.
3. Review Required Licenses (Tier 2 - Medium Risk)
- Requires Legal/Engineering lead sign-off:
- LGPL (requires specific linking architecture), MPL, EPL.
4. Restricted Licenses (Tier 3 - High Risk)
- Strictly Forbidden for distribution without CTO/Legal approval:
- GPL v2/v3 / AGPL: Strong copyleft. (Note: AGPL is strictly forbidden in backend services).
- SSPL / Commons Clause: "Source Available" but not Open Source. Commercial restrictions apply.
5. Procedure
- Step 1: Before adding a dependency, run
[SCANNER_TOOL] to check the license.
- Step 2: If the license is in Tier 3, create a ticket for Legal review before writing code.
- Step 3: Ensure the
package.json / pom.xml includes the license identifier.
6. Attribution
- All Tier 1 & 2 dependencies must be added to the
/docs/attribution.txt file.
[Template] Attribution File Content
Create a file named THIRD_PARTY_LICENSES or NOTICE in your project root.
This application includes software developed by third parties.
The following copyright notices and license terms apply to those software packages.
--------------------------------------------------------------------------------
1. Package Name: [Library Name]
Version: [1.2.3]
Source: [URL]
License: MIT
Copyright (c) [Year] [Author Name]
Permission is hereby granted, free of charge...
[Insert Full MIT Text]
--------------------------------------------------------------------------------
2. Package Name: [Library Name]
Version: [4.5.6]
Source: [URL]
License: Apache 2.0
Copyright (c) [Year] [Company Name]
[Insert Full Apache 2.0 Text]
NOTICE: [Insert content of original NOTICE file here if applicable]