You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add open-source compliance files and copyright headers #58
Issue type:chore Complexity: Medium — high file count but mechanical changes; the header script is the only non-trivial code Confidence: High — clear path, well-established patterns from DataDesigner
Summary
Add Apache 2.0 licensing, SPDX copyright headers on all ~186 source files, DCO enforcement, and a third-party notices file. A Python script (scripts/update_license_headers.py) is the centerpiece: it adds/checks headers across all file types and integrates into pre-commit and CI. Follows patterns from NVIDIA NeMo DataDesigner.
Scope
LICENSE (new): Full Apache 2.0 license text
DCO (new): Developer Certificate of Origin 1.1 full text
Cargo.toml: Change license to Apache-2.0, update repository URL to GitHub
pyproject.toml: Add license = "Apache-2.0" field
scripts/update_license_headers.py (new, ~250 lines): Header management script with --check mode, supports // and # comment styles, preserves shebangs and # syntax= directives
scripts/generate_third_party_notices.py (new): Generates THIRD-PARTY-NOTICES from cargo metadata and Python deps
Full open-source compliance: Apache 2.0 license, SPDX headers on all 176 source files, DCO enforcement, third-party notices, and CI enforcement following DataDesigner patterns.
Artifacts added
LICENSE (Apache 2.0), DCO (DCO 1.1)
scripts/update_license_headers.py — header management with --check mode
Activity
zredlined commentedon Mar 3, 2026
Implementation Plan
Issue type:
choreComplexity: Medium — high file count but mechanical changes; the header script is the only non-trivial code
Confidence: High — clear path, well-established patterns from DataDesigner
Summary
Add Apache 2.0 licensing, SPDX copyright headers on all ~186 source files, DCO enforcement, and a third-party notices file. A Python script (
scripts/update_license_headers.py) is the centerpiece: it adds/checks headers across all file types and integrates into pre-commit and CI. Follows patterns from NVIDIA NeMo DataDesigner.Scope
LICENSE(new): Full Apache 2.0 license textDCO(new): Developer Certificate of Origin 1.1 full textCargo.toml: ChangelicensetoApache-2.0, updaterepositoryURL to GitHubpyproject.toml: Addlicense = "Apache-2.0"fieldscripts/update_license_headers.py(new, ~250 lines): Header management script with--checkmode, supports//and#comment styles, preserves shebangs and# syntax=directivesscripts/generate_third_party_notices.py(new): Generates THIRD-PARTY-NOTICES from cargo metadata and Python depsTHIRD-PARTY-NOTICES(new): Generated dependency listingbuild/license.toml(new):license:checkandlicense:updatemise tasksbuild/ci.toml: Wirelicense:checkinto pre-commit and lint task dependencies.github/workflows/checks.yml: Addlicense-headersCI job.github/workflows/dco.yml(new): DCO sign-off enforcement on PRsCONTRIBUTING.md: Add DCO section with sign-off requirementImplementation Steps
Apache-2.0, repository URL tohttps://github.com/NVIDIA/NemoClawlicense = "Apache-2.0"scripts/update_license_headers.py— centerpiece script handling all file types with--checkmode for CI--checkbuild/license.tomlwithlicense:checkandlicense:update, wire into pre-commit and lintlicense-headersjob inchecks.yml(lightweight, no Rust build).github/workflows/dco.ymlusinggsactions/dco-checkTest Plan
//!doc comments stay below headermise run pre-commitcatches missing headers; CIlicense-headersjob passesmise run buildandmise run test:pythonstill pass with headersSigned-off-byfails DCO checkRisks & Open Questions
.github/workflows/*.ymlget headers? (Plan says no — low value).gitlab-ci.ymlbe removed in a separate issue?Documentation Impact
CONTRIBUTING.mdupdated with DCO sectionRevision 1 — initial plan
chore: add open-source compliance files and SPDX headers
zredlined commentedon Mar 3, 2026
Implementation Complete
PR: #71
What was built
Full open-source compliance: Apache 2.0 license, SPDX headers on all 176 source files, DCO enforcement, third-party notices, and CI enforcement following DataDesigner patterns.
Artifacts added
LICENSE(Apache 2.0),DCO(DCO 1.1)scripts/update_license_headers.py— header management with--checkmodescripts/generate_third_party_notices.py— dependency license aggregationTHIRD-PARTY-NOTICES— 563 Rust + 3 Python dependencies listedbuild/license.toml—license:checkandlicense:updatemise tasks.github/workflows/dco.yml— DCO sign-off enforcementlicense-headersjob inchecks.ymlDocs updated
CONTRIBUTING.md— DCO sign-off requirement and license header instructionsThe issue will auto-close when the PR is merged.
chore: add open-source compliance files and SPDX headers (#71)
chore: add open-source compliance files and SPDX headers (#71)