Skip to content

Color pipeline P3: generator and ingest/freshness tooling #4037

Closed

Description

@zackees

Phase P3 of the color pipeline implementation (see parent issue). Independently mergeable.

Scope

The tooling that connects P1's artifacts to P2's types — and the guardrails that keep it manual.

  • Generator: consumes P1's JSON artifacts, emits checked-in constexpr EmitterProfile C++ (P2's type), the profile enum, floating aliases, and versioned pin symbols (C8.3), each embedding its canonical string ID. Provenance header per generated file: artifact ID, artifact content hash, datasheets-repo commit, generation date (C9.2).
  • Sync tool, two modes (C9.1): check (read-only) and ingest (regenerates, lands as an ordinary reviewable PR). Ingest never runs automatically.
  • Freshness checker (C9.4): standalone, outside bash lint (network-dependent, informational). Always exit 0; human report + --json; reports newer upstream report IDs, new parts without generated profiles, deprecated artifacts, schema-version drift; degrades to "could not check" offline.
  • Scheduled workflow (C9.5): periodic check run updating one standing tracking issue. Never a commit gate.
  • Agent docs entry (C9.6): new row in the CLAUDE.md task table pointing at an agents doc that states: check is read-only and safe to invoke anytime; findings are status, not errors — explicitly exempt from the "fix all encountered errors immediately" policy; ingest only on explicit maintainer request, always as a PR.

Decisions implemented

C8.1, C8.3, C8.6 (emitter registry owned by datasheets generator), C9.1–C9.6. Historic compiles are safe by construction via append-only identity (C8.2) — the checker enforces nothing.

Acceptance criteria owned

None from the #4032 list directly; this phase gates P10's "measured profiles are consumable" path and the C9 mechanism itself (tested: generator round-trip, freshness detection against a fixture index, exit-0 invariant).

Dependencies

P1 (artifact schema), P2 (target type).

Deliverables

Generator + sync/freshness tooling under ci/ (Python, per repo standards), scheduled workflow, generated built-in profile set replacing P2's placeholders, agents doc entry.

Activity

  1. zackees commented on Sep 10, 2026

    @zackees
    MemberAuthor

    First triage of this phase — it is done as far as P1 allows

    This is the only one of the ten phases with no comments on it, so I checked each deliverable against the tree rather than assuming its silence meant "untouched". It is largely the opposite.

    deliverable state
    Generator: constexpr EmitterProfile embedding its canonical string ID ✅ ci/color_profile_generator.py
    Generator: provenance header (artifact ID, content hash, datasheets commit, generation date) — C9.2 ✅ all four present in the emitted header
    Generator: profile enum ❌ not emitted
    Generator: floating aliases ❌ a comment names the candidate; no alias is emitted
    Generator: versioned pin symbols — C8.3 ❌ nothing
    Sync tool, two modes — C9.1 ✅ ci/generate_profile_header.py --mode check|write; ingest is documented as a maintainer PR, not a mode
    Freshness checker — C9.4 ✅ --json, degrades to "could not check", exits 0
    …its four report kinds ✅ newer_report, new_part, schema_drift, and withdrawn — the last is this issue's "deprecated artifacts" under a name that fits an append-only registry better
    Scheduled workflow — C9.5 ✅ weekly cron + workflow_dispatch only, issues: write, one standing issue, explicitly not on push/PR
    Agent docs entry — C9.6 ✅ agents/docs/color-profile-artifacts.md, CLAUDE.md row, "status, not errors" exemption stated

    The three missing generator outputs are P1-blocked, not effort-blocked

    There is exactly one generated profile, and it is a synthetic fixture. Everything else in the mirror is "catalogued, and deliberately not generated" because its published optical data cannot support an EmitterProfile.

    An enum of one, a floating alias for a fixture, and versioned pin symbols for a part nobody can build a profile for are scaffolding around absent data. They become meaningful when P1 (#4035) lands real artifacts, and not before.

    What I checked rather than took on trust

    • --mode check actually detects drift. Editing one coefficient in the generated header, and separately deleting the provenance commit line, each make it report stale.
    • And it exits non-zero when it does — rc=1 stale, rc=0 clean. I misread this the first time by taking $? from the end of a pipeline; the correction matters, because a drift check that printed "stale" and exited 0 would be useless to any caller.
    • A test already runs it — ci/tests/test_profile_generator.py asserts main(["--mode", "check"]) returns 0 clean and 1 stale, so the guard is not one nobody invokes.
    • All four freshness finding kinds have cases in ci/tests/test_color_profile_freshness.py.
    • The workflow is not a gate: no push or pull_request trigger, and nothing in bash lint runs the freshness checker.

    No defect found, so no PR from this. Recording the survey because the phase had none, and because "P3 is waiting on P1" is a materially different status from "P3 is unstarted".

  2. moved this from Triage to Done in FastLED Trackeron Sep 19, 2026
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