Skip to content

chore(license): adopt reciprocal license and enforce headers across FastLED source #4047

Open

Description

@zackees

Context

This is the FastLED adoption/rollout follow-up to #4046. It must not switch FastLED until the public FastLED/license repository has a legally reviewed, immutable release containing the reciprocal license, AI-agent instructions, policy schema, and tested header tool.

The rollout target is every FastLED-owned release source file under src/** with the relevant C/C++ extensions, including at minimum *.h, *.hpp (therefore *.cpp.hpp), *.cpp, and any owned *.c/assembly source discovered by inventory. The Animartrix implementation is deliberately excluded from relicensing/header migration because it carries separate MIT/provenance treatment.

Proposal

  1. Pin the reviewed FastLED/license release by tag, commit, and SHA-256 manifest.
  2. Vendor the reviewed license documents, LICENSE-AI-AGENT-INSTRUCTIONS.md, policy, and uv run-able header tool into FastLED so source archives are self-contained.
  3. Build and review a complete ownership inventory for src/**:
    • FastLED-owned source is in scope.
    • src/fl/fx/2d/animartrix.hpp, src/fl/fx/2d/animartrix_detail.h, and the entire src/fl/fx/2d/animartrix_detail/** tree are explicitly excluded with their existing MIT/provenance treatment preserved.
    • Vendored/separately licensed source such as src/third_party/**, vendored Three.js, Teensy SdFat/PJRC-derived code, and any other mixed-origin files must receive explicit reasoned exclusions rather than new FastLED headers.
  4. Run the reviewed updater over all in-scope src/** files and review the generated migration diff.
  5. Hook the read-only compliance command into bash lint, required PR CI, and release/archive CI.
  6. Use the feat(license): publish reciprocal license and header-compliance toolchain #4046 zccache integration so unchanged successful checks skip ripgrep/header processing, while any source, policy, template, tool, or pinned-license change invalidates the check.
  7. Update root licensing/contributor/package metadata and document the exact transition commit, tag, and release.

Acceptance criteria

Preconditions and pinning

Complete source migration

  • A machine-generated inventory enumerates every tracked source file under src/**, classified as in-scope FastLED-owned, Animartrix, third-party/separately licensed, or generated.
  • Every FastLED-owned src/**/*.h, src/**/*.hpp (including every src/**/*.cpp.hpp), src/**/*.cpp, and other owned compiled source carries the exact current managed header.
  • No FastLED-owned source is omitted merely because it is platform-specific or deeply nested.
  • The complete Animartrix source boundary (src/fl/fx/2d/animartrix.hpp, src/fl/fx/2d/animartrix_detail.h, and src/fl/fx/2d/animartrix_detail/**) remains byte-for-byte unchanged by the migration and is covered by an explicit policy exclusion.
  • All other excluded files have a reviewed provenance/license reason; adding a new unclassified src/** source file fails CI.
  • A second updater run is byte-for-byte idempotent.

RED -> GREEN and CI enforcement

  • Before migration, the focused compliance check fails on representative missing/stale FastLED-owned headers.
  • The same check turns green after the migration, without changing Animartrix or third-party files.
  • bash lint invokes the read-only compliance check.
  • Required PR CI fails for a missing header, stale header version, unclassified source, changed pinned legal artifact, or provenance hash mismatch.
  • Release CI runs the same check against an exported source archive without .git and blocks a noncompliant release.
  • zccache tests prove an unchanged successful run does not invoke ripgrep; relevant changes rescan; failed checks are never cached as success.

Regression verification

  • bash lint passes.
  • bash test --cpp passes.
  • Representative FastLED example/release builds pass after the comment-only header migration.
  • git diff --exit-code after a second updater run proves the checked-in tree is canonical.

Decisions

  • Dependency: this rollout is blocked on the reviewed immutable output of feat(license): publish reciprocal license and header-compliance toolchain #4046; tooling/legal design stays in the parent issue and repository adoption stays here.
  • Scope: enforce the whole FastLED-owned src/** release surface, not only a hand-maintained subset of common headers.
  • Animartrix: preserve and explicitly exclude the complete Animartrix implementation from the reciprocal-header rewrite.
  • Third-party code: ownership, not location alone, controls scope; separately licensed source is preserved and reasoned in policy.
  • Enforcement: wire one canonical read-only command into local lint, PR CI, and release-archive CI so the three paths cannot drift.

Activity

  1. zackees commented on Aug 25, 2026

    @zackees
    MemberAuthor

    Dependency update from #4046: adoption must enforce zero-day publication on or before first sale. Either a public fork or a public bug report containing the exact base SHA and complete reproducible unified diff is an accepted publication path.

  2. zackees commented on Aug 25, 2026

    @zackees
    MemberAuthor

    The full adoption implementation is now in draft PR #4049: #4049

    It vendors the canonical release candidate from FastLED/license#1, migrates 2,083 FastLED-owned source files, hash-locks 253 explicit exclusions (including the complete Animartrix boundary), and enforces clean-checkout plus source-archive compliance on Linux, macOS, and Windows. Local lint, 368 C++ tests, representative UNO build, idempotence, and exclusion-integrity checks pass.

    Merge remains gated on documented licensing-attorney approval and the immutable canonical v1.0.0 release. The only currently completed red FastLED CI check is the unrelated master-wide Teensy failure tracked in #3992.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions