Repository navigation
Description
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
EmitterProfileC++ (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) andingest(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
checkrun 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:
checkis read-only and safe to invoke anytime; findings are status, not errors — explicitly exempt from the "fix all encountered errors immediately" policy;ingestonly 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.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(color): artifact -> EmitterProfile generator and its admission g…
feat(color): freshness checker, its workflow, and the agent policy (#…
zackees commentedon Sep 10, 2026
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.
EmitterProfileembedding its canonical string IDci/color_profile_generator.pyci/generate_profile_header.py --mode check|write; ingest is documented as a maintainer PR, not a mode--json, degrades to "could not check", exits 0newer_report,new_part,schema_drift, andwithdrawn— the last is this issue's "deprecated artifacts" under a name that fits an append-only registry betterworkflow_dispatchonly,issues: write, one standing issue, explicitly not on push/PRagents/docs/color-profile-artifacts.md, CLAUDE.md row, "status, not errors" exemption statedThe 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 checkactually detects drift. Editing one coefficient in the generated header, and separately deleting the provenance commit line, each make it report stale.$?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.ci/tests/test_profile_generator.pyassertsmain(["--mode", "check"])returns 0 clean and 1 stale, so the guard is not one nobody invokes.ci/tests/test_color_profile_freshness.py.pushorpull_requesttrigger, and nothing inbash lintruns 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".
feat(color): generate floating aliases and the profile enum (P3, #4037)…