lic: update license rules for cdla permissive 2.0#21
Merged
Conversation
ianktc
approved these changes
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR updates the resource location to support license categorization in the Python published package.
This pull request introduces several improvements and new features to the license classification tooling, focusing on enhanced automation, better documentation, and improved package data handling. The most significant changes include the addition of a detailed script and documentation for LLM-based license classification, updates to the packaging configuration to ensure necessary data files are included, and enhancements to the classification schema for the CDLA-Permissive-2.0 license.
Key changes:
1. License Classifier Automation and Documentation
classify_license.shscript, which uses an LLM (default:gpt-4.1) to classify licenses and write standardizedpermissions,conditions,limitations,tags, andreasonsfields to license JSON files. The documentation covers usage, options, few-shot example injection, and environment variables.classify_license.shscript help text to clarify that the default system/user prompt files are now bundled package data, not indocs/. Added documentation for the new--max-examplesflag, which controls the number of few-shot examples injected into the LLM prompt. [1] [2]2. Packaging Improvements
pyproject.tomlto ensure that all necessary data files (JSON, Markdown, and example JSON files) are included in thelicensing.classifypackage, supporting out-of-tree script and package usage.3. License Classification Schema Enhancement
CDLA-Permissive-2.0.jsonlicense data to add detailedpermissions,conditions,limitations, andtagsarrays, as well as a comprehensivereasonsblock with verbatim and inferred evidence for each rule, improving the accuracy and transparency of license classification.4. Obsolete Documentation Removal
docs/classification/SYSTEM_PROMPT.mdfile, as the system prompt is now bundled with the package and referenced accordingly in scripts and documentation.