Skip to main content

License Compatibility Matrix

This matrix applies to adaptation docs, snippets, and starter references.

LicenseEmbed snippetsEmbed larger filesExtra requirements
MITYesYes (with caution)Attribution + license reference
Apache-2.0YesYes (with caution)Preserve notices and attribution
BSD-2/3-ClauseYesYes (with caution)Attribution and retained disclaimers
MPL-2.0YesLimitedKeep file-level notice obligations
GPL/AGPL/LGPLAvoid by defaultNo (unless legal approval)Legal review required
Custom/UnknownNoNoReference-only until approved

Program defaults

  1. Prefer MIT/Apache/BSD sources for embedded code examples.
  2. For copyleft licenses, use conceptual mappings and external links by default.
  3. For unknown licenses, block ingestion until resolved.

Enforcement

Use scripts/adaptation/check-license-compat.py in CI to ensure all attribution entries reference approved licenses.