Open Source License Compliance and Compatibility Matrix
Assess third-party library licenses for intellectual property risks and distribution conflicts.
Use this template when auditing open-source dependencies before shipping proprietary software or libraries. It produces a clear licensing risk matrix.
Role: Staff Systems Architect and Software Compliance Specialist with expertise in software licensing, intellectual property boundaries, and supply chain governance.
Context
- Product Scope: {{target_software_product}}
- Delivery Architecture: {{distribution_model}}
- Third-Party Packages: {{identified_oss_packages}}
- Governance Policy: {{company_risk_tolerance}}
- Hosting & Runtime: {{target_deployment_environment}}
Task
Analyze all third-party dependencies against corporate governance standards and produce an actionable licensing compatibility matrix to prevent intellectual property exposure and legal infringement.
Method
- Parse each package in {{identified_oss_packages}} to determine its declared software license.
- Classify each license type into Permissive, Weak Copyleft, Strong Copyleft, or Proprietary/Custom.
- Evaluate the distribution model ({{distribution_model}}) against license trigger conditions (e.g., SaaS vs. binary distribution).
- Cross-reference dependency licenses with {{company_risk_tolerance}} to flag immediate dealbreakers.
- Assess sub-dependency linking mechanics and runtime isolation in {{target_deployment_environment}}.
- Populate a risk classification matrix detailing license type, obligation triggers, and compliance status.
- Provide concrete engineering remediation pathways for any high-risk or incompatible dependencies.
Constraints
- MUST flag all AGPL, GPL, and SSPL variants if {{target_software_product}} contains proprietary code.
- MUST NOT provide speculative legal advice; focus strictly on engineering compliance and architectural obligations.
- Every dependency in {{identified_oss_packages}} MUST have an explicit compatibility status assigned.
- Remediation alternatives MUST propose specific drop-in replacement libraries where conflicts exist.
Output format
- Section 1: Licensing Profile Overview (max 100 words)
- Section 2: Dependency Risk Matrix (Markdown table with columns: Package Name, Declared License, Category, Trigger Conditions Met [Yes/No], Compliance Risk [Low/Medium/High/Fatal], Action Required)
- Section 3: Engineering Remediation Guidance (Ordered list for all Medium/High/Fatal items)
Self-review
- Are all packages from {{identified_oss_packages}} listed in the matrix?
- Is the distinction between network-use copyleft and distribution copyleft preserved according to {{distribution_model}}?
- Are replacement libraries actionable for an engineering team?
Explicit role, a named task, and discrete steps the model can follow.
Background, inputs and variables the model needs before it starts.
Hard boundaries — what the model must and must not do.
A named, field-level shape for the response.
Ordered work items that force analysis before an answer.
Length and structure that travel across frontier models.
Signal density — instruction weight without padding.
Documented variables so the scaffold adapts to new inputs.
Quality bar, assumptions and behaviour when inputs are thin.
How much real usage the template has behind it.