Skip to content

pipeline: fix LLM errors in Apache-2.0, MPL-2.0, CC0-1.0 conditions#50

Merged
oscarvalenzuelab merged 2 commits into
mainfrom
fix/known-overrides-round2
Jun 10, 2026
Merged

pipeline: fix LLM errors in Apache-2.0, MPL-2.0, CC0-1.0 conditions#50
oscarvalenzuelab merged 2 commits into
mainfrom
fix/known-overrides-round2

Conversation

@oscarvalenzuelab

Copy link
Copy Markdown
Contributor

Extends the _KNOWN_OVERRIDES table with three more LLM corrections found during v1.2.9 tarball validation:

License Field LLM value Correct
Apache-2.0 state_changes False True — license requires documenting changes
MPL-2.0 disclose_source False True — file-level copyleft, modified files need source disclosure
MPL-2.0 same_license False True — modifications must stay under MPL
CC0-1.0 include_copyright True False — public domain, no notice required
CC0-1.0 include_license True False — public domain, no notice required

LLM-generated obligations and key_requirements were identical for all
729 licenses ("Include license text", "Include copyright notice").

Replace with _derive_obligations() which builds both fields from the
boolean requirements/permissions/category fields that are already
correct post-correction. Each license now gets obligations that
accurately reflect its actual requirements:
- Retain copyright notices (universal)
- Include license text (universal)
- Document changes (if state_changes)
- Provide source code (if disclose_source)
- Same-license redistribution (if same_license)
- Network-use source disclosure (if network_use_disclosure)
- Restrictions on commercial use / modification / distribution

key_requirements is derived from license category rather than LLM prose.
Apache-2.0: state_changes=False → True (license requires documenting
changes made to original files)

MPL-2.0: disclose_source=False, same_license=False → both True
(file-level copyleft — modified MPL files must stay MPL and source
must be made available)

CC0-1.0: include_copyright=True, include_license=True → both False
(public domain waiver, no copyright or license notice required)
@cla-bot cla-bot Bot added the cla-signed label Jun 10, 2026
@github-actions

Copy link
Copy Markdown

License Check Report

ℹ️ No licenses detected in changed files.

@oscarvalenzuelab oscarvalenzuelab merged commit 92db996 into main Jun 10, 2026
9 checks passed
@oscarvalenzuelab oscarvalenzuelab deleted the fix/known-overrides-round2 branch June 10, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant