Description
Color-pipeline review burndown
This is the live burndown for the adversarial review of the profiled color pipeline. The original September 5 analysis and detailed R1–R10/D1 arguments are preserved in the issue history and its comments. The merged cross-phase contracts are normative. #4034 remains the overall program tracker; P10 #4044 owns instrument measurement and final hardware sign-off.
Status on 2026-09-23: P1–P9 and the R1–R10/D1 software review burndown are closed. #4499 and #4515 completed in #4542 and #4533; the shared electrical bound is tested on final encoded frames. R8 remains an explicit equal-dwell scope decision, not a duration-aware implementation. P10 instrument measurement and final program sign-off remain open under #4044/#4034.
Software burndown
- R2 — physical response inversion: #4497, merged in #4511. Owned, immutable response tables are inverted after linear flux; emitted-light, lifetime, 8-/16-bit, and power tests pass. CI Blink remains free of response symbols and ratcheted down to 383,140 B.
- R3/R4 — shared power scalar and per-frame electrical bound: #4499, merged in #4542. Large-memory managed frames share a Q16 scalar across legacy RGB and managed RGB/RGBW/RGBWW; focused tests compare modeled demand with final encoded output across dither phases and field choices. Small tiers and
showColor()retain the documented legacy boundary. ESP32-S3 unbound Blink has no flash/RAM increase; host and capture-only ESP32-C6 throughput were measured. - R7 — target-white override: #4498, merged in #4532. Managed RGB now applies the selected rendering white at bind time, recomputes its neutral cap, rejects unattainable whites, and verifies emitted neutral wire output and rebinds. Managed RGBW/RGBWW coverage completed in Connect profiled RGBW/RGBWW emitters to managed output #4533 and feat(power): bound mixed managed frames with a shared Q16 prepass #4542.
- R8 — truthful temporal-dither scope: #4500 and timing prerequisite #4517 were closed by the maintainer's cost decision, not by a duration-aware implementation. fix(dither): a channel's dither phase advances on presentation, not attempt (#4347) #4452 handles accepted-frame phase and dropped submissions. #4538, merged in #4539, narrows the live guarantee to equal-dwell accepted presentations and tests unequal dwell as unsupported.
Prerequisites exposed by the review
- Managed RGBW/RGBWW emitter path: #4515, merged in #4533 with final-frame electrical accounting in #4542. Owned white-emitter profiles now solve and emit physical RGBW/RGBWW drives, with target-white, response, dither, rebind, and legacy fallback tests.
- Presentation-time observability decision: #4517 was closed without a merged timing API after #4534 was rejected as disproportionate. The narrower supported claim is documented and tested in docs(color): bound temporal-dither accuracy to equal dwell #4539. A future driver-specific duration-aware feature requires a named consumer and separate evidence.
Findings with landed resolution or phase ownership complete
| Finding | Status and evidence |
|---|---|
| R1 — FLED reader fallback | Done: #4160 rejects recognized-but-invalid FLED rather than exposing its header as RGB; #4320 narrows the deployed-reader compatibility claim. |
| R2 — brightness ordering | The linear-flux order and arithmetic constraint are established (#4319). Response inversion landed in #4511 and closed #4497. |
| R3 — source versus solved power | The source-drive error in #4344 was fixed by #4438; #4542 completes the shared Q16 final-frame bound and closes #4499. |
| R4 — idle and dither draw | Baseline accounting (#4268), dither reserve (#4450), and final encoded-frame accounting (#4542) are complete. |
| R5 — typed RGB16 media ingress | P4/P6 and .fled playback work landed, including #4463; generic and container formats stay distinct. |
| R6 — profile admission | P2/P9 admission path plus #4258 and #4260 reject unusable transforms and invalid chromaticity inputs. |
| R7 — OKLCh reference white | D65 mapping-space behavior measured in #4317; target-white override landed in #4532, and managed RGBW/RGBWW output plus accounting landed in #4533/#4542. |
| R8 — low-light floor and drops | Black-floor contract in #4296; presented-frame phase fix #4452. Unequal dwell is explicitly unsupported by the equal-dwell contract after #4539; #4500/#4517 were closed by scope decision. |
| R9 — ownership and TINY | Owned runtime profiles, multi-channel/rebind evidence (#4316), and P9 layout/link budgets landed; P9 is closed. |
| R10 — media policy drift | Strict playback and format-default policy reconciled in #4272 and P4; #4463 connected .fled source color to managed playback. |
| D1 — distinct pixel-format types | fl::fled::PixelFormat and generic fl::PixelFormat exist with checked mapping and preserved byte order/source semantics under P4. |
Program gate outside this findings burndown
- P10 instrument measurement and profile accuracy: #4044. Legacy byte-identity, tests, bench validation, and reassigned follow-ups have been reported complete. Spectral measurement of a representative WS2812B/SK6812-class strip and a high-bit-depth strip, checked-in reports/profiles in FastLED/datasheets, and measured-accuracy sign-off remain. P10 and Color pipeline: final implementation tracker #4034 stay open until that evidence is reviewed.
Closure rule
This review burndown is complete: #4499 and #4515 merged final evidence, and the R1–R10/D1 rows have no unassigned software contract gap. #4500/#4517 were closed by an explicit equal-dwell scope decision, not a RED→GREEN duration-aware implementation; #4539 supplies that revised contract and regression evidence. Keep #4034 open until P10 #4044 instrument measurement and program sign-off are complete. New findings require focused follow-up issues, not reopening frozen #4032/#4033.
Decisions
- Meta: color-pipeline review findings burndown (R1–R10, D1) #4156 owns review findings and software closure; Color pipeline: final implementation tracker #4034 owns program closure, and Color pipeline P10: hardware measurement gate and program closure #4044 owns instrument evidence. This avoids treating synthetic tests as measured calibration accuracy.
- Closed R4: the power model reads pre-dither pixels, and dither only ever adds — 50% under-report at low brightness #4342/R3: the power limiter charges source RGB, not solved drives — up to 4.45x under-estimate on a managed channel #4344/R8: dither state advances on frame attempt, not presentation, and dropped frames consume a phase #4347 are evidence and partial-fix history, not the open burndown items. New issues describe only the residual implementation work.
- The original review body was written before P5–P9 landed and is superseded as a status report by this table. Its technical counterexamples and comment trail remain the historical rationale.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Sep 10, 2026
Triage against current master — this review has moved on underneath it
Reviewed against
9de01d3547; master is well past that now (P5/P6/P7 landed). Nothing had been recorded here, so I checked each finding against the tree before anyone acts on a stale one. Verified findings only; the ones I did not check are marked as such rather than guessed at.R1 — RESOLVED
The proposal asked to "fix the independently actionable reader defect first". It is fixed.
src/fl/video/pixel_stream.cpp.hppnow says the thing R1 asked for and does it:R7 — substantially resolved
The concern was that OKLab assumes D65 and feeding profile-white XYZ into it does not put the target neutral axis at zero chroma. The pipeline now adapts to D65 before OKLab, and says so in the type:
/// Source primaries to XYZ, with adaptation to D65 already folded in. SourceMatrixQ16 source;So the mapping-space white is D65 and it is documented rather than implied. R7's RGBWW half — distinguishing physical full-drive output from maximum achievable neutral luminance — is live and quantified in #4245 (up to 22.5% of headroom above the neutral cap is discarded).
R2 — the ordering is implemented; the hazard is latent, not live
R2's resolution was "type the device-solve output as normalized linear emitter flux; apply brightness/power there". That is what the chain now does —
applyFluxScalarruns on solved drives, andFluxScalaris deliberately a single scalar so a per-channel rescale cannot be expressed through the type at all.The counterexample needs a nonlinear response, and
response_lutis not consumed by the pipeline — no reference inpipeline.cpp.hpp,gamut_map.cpp.hppordevice_solve.cpp.hpp. So the contradiction is not currently reachable; it becomes reachable the moment P8 wires response inversion in, and that stage has to land after the flux scalar.R9 — the
mGammaand ownership halves are resolvedBinding a profile clears it alongside the others:
and the profile is copied into
fl::make_shared<ColorProfileStorage>(profile), so "reject temporaries or copy/own them safely" is answered by owning. The TINY-tier half is P9's; its source-level precondition is #4257.R6 — split verdict, and one half is now fixed
Still open:
readXyinsrc/fl/fled/color.cpp.hppchecks array shape and numeric conversion only. No geometry, no conditioning — a zeroyor collinear primaries still resolve, exactly as written.Fixed in #4258: the cache-builder half.
build_rgb_colorimetric_cachefolded "no source space declared" and "declared but unusable" into one false, and false means #2705 legacy mode — the caller's RGB is the drive triple. A degenerate custom profile therefore switched interpretation silently rather than failing. The two states are now distinct.Still open, verified
FluxScalar::fromRawQ16accepts "a limiter fraction already in s16.16", but nothing defines how that fraction is determined before emission. The prepass question is untouched.Rgb16anywhere insrc/fl/channels/config.horsrc/fl/fx/video.h; the route is still CRGB/RGB8 only.fl::PixelFormatdoes not exist.Not checked
R4, R8, R10. I did not verify these and am not implying anything about them.
Suggestion
R1 is done and R7/R2/R9 are largely overtaken, so the remaining decision addendum is smaller than the original list: R3, R4, R5, R6 (the
readXyhalf), R8, R10 and D1. Worth editing the body or opening a successor rather than leaving ten HIGH/MEDIUM findings of which several no longer describe the code.fix(color): refuse a declared source space that cannot be built (#4156 …
zackees commentedon Sep 10, 2026
R6 is now closed on both halves
Following up my triage above. R6 had a split verdict; both parts are now done.
The cache-builder half — #4258, merged.
build_rgb_colorimetric_cachefolded "no source space declared" and "declared but unusable" into onefalse, andfalsemeans #2705 legacy mode: the caller's RGB is the drive triple. A degenerate custom profile therefore switched interpretation silently instead of failing.The
readXyhalf — #4260. Shape and numeric conversion were the only checks. Two properties are now required:as_float()returns an out-of-range value, and an infinite coordinate is not a chromaticity;y— xyY → XYZ divides by it, so at zero the primary is a zero column and the profile is refused later as a singular matrix. Correct, but reported far from the field that caused it.The simplex question is still yours to answer
R6 says:
I have not decided it, and I made sure the fix cannot decide it by accident: a test asserts that primaries outside the xy simplex still resolve, and adding a simplex rejection fails that test. So the question stays open, deliberately, rather than being foreclosed by a range check.
One aside worth recording
Confirming the finite check was live nearly went wrong.
FL_WARNprinted every over-range float as-21474836.48:That is its own float formatter overflowing an int32 (
-2147483648/100), not the parsed value. Read literally it says "the number is finite and small", which would have led me to delete the check as dead code. Thehugecolumn — a magnitude comparison rather than a printed digit — is what showed the value really is beyond 1e30.Not chasing that here, but
FL_WARN's float path mis-renders large magnitudes, and anyone debugging numerics through it should know.fix(fled): reject chromaticities that are not chromaticities (#4156 R…
zackees commentedon Sep 10, 2026
R4 checked — confirmed, quantified, and fixed in #4268
Your triage marked R4, R8 and R10 as not checked. This is R4.
Correct, and the margin is larger than the finding claimed.
calculate_max_brightness_for_power_mWbuilt one total —gMCU_mW, every LED'sdark_mW, and the emitter demand — and multiplied all of it by brightness. Two of those three are drawn at any brightness including zero. 300 WS2812s at full white on the default model, baseline 1500 mW:The last row is your other question — "define behavior when the requested budget is below baseline". 1000 mW is under the 1500 mW the strip draws with every emitter off, so no brightness meets it; the old code answered with a lit strip anyway. It now returns 0, which is a visible behaviour change and is stated as such on the PR.
Two things the fix turned up that were not in R4
scale32by8the platform compiled — theFASTLED_SCALE8_FIXEDform isi * (s + 1) >> 8, landing ~controllable/256over, 176 mW of a 5000 mW budget. Pre-existing and independent of R4; the answer is now checked and stepped down until it fits.getEstimatedPowerInMilliWattscarried the same fold. Two assertions intests/fl/power_estimation.cppsaid the estimate at brightness zero is zero — the defect written down as a test — and now say it is the dark-current baseline.R4's second half: confirmed, deliberately not fixed
Also correct.
BINARY_DITHERappliespixel = scale8(qadd8(pixel, d), brightness)inside the encoder, after demand is computed from the rawCRGBvalues, and the offset is shared across the frame. The excess is bounded at one native code per channel per pixel — about 0.8 mW per LED on the default model, ~247 mW on a 300-LED strip, 0.4% of full-white demand.R4 asks for that contract to be declared rather than changed, so it is now on the function: the budget holds the multi-frame mean, and a single latched frame can sit that much above it. Coordinating allocation to make it a per-frame bound is a separate change and belongs with P8's dithering rather than here.
R8 and R10 remain unchecked — I have not looked at either and am not implying anything about them.
zackees commentedon Sep 10, 2026
R8 checked — and the cadence is not the obstacle (#4269)
Following R4 above. R8 was the second of the three you marked unchecked.
Your arithmetic is right: an identity linear16 input of
1/65535is 0.0039 of an 8-bit code, its nearest 8-bit output is zero, and alternating codes 0 and 1 to match it needs one code-1 frame in 257 — about 4.28 s at 60 Hz.But the 4.28 s never comes into it.
PixelController::dither()isso a source code of zero is excluded from dithering by construction. Nothing below one source code is reachable at any brightness, any refresh rate, or any cycle length — the mechanism never runs on the value in question. A longer cycle could not fix it.
That answers the question R8 asks. The black floor is the quantization of the source; the unsupported low-light region is, for an identity mapping, every source value that quantizes to 8-bit zero. And it is a floor rather than a dead zone: one code up, the cycle emits light, and at 1/16 brightness a source code of 1 asking for 0.06 output codes gets code 1 on one frame of eight. Sub-output-code precision is real above the floor.
Two things not in R8
Summed over a full dither cycle, so these are time-averaged light rather than single-frame rounding:
scale8's truncation into round-to-nearest is a constant addition of about half a dither quantum; at the bottom of the range that is a large fraction of the value itself, and being constant it vanishes as a fraction almost immediately.premixed = 255the correction has nothing to correct.scale8(i, 255)is exact underFASTLED_SCALE8_FIXED—(i * 256) >> 8isi— so no fractional precision is lost there and every code the dither adds is gain.DISABLE_DITHERmakes that path exact. (premixedis brightness × colour correction, so this isUncorrectedColorat full brightness, not the common default.)This is exactly your "letting a quantized reference conceal optical error": against an 8-bit reference all three rows match, and against the light they are asking for they do not.
Not proposed
No change to the dither. R8 asks for the contract to be defined, and shifting the low-code rendering of every existing sketch is a decision rather than a cleanup.
R10 remains unchecked. I have not looked at it.
review(color): make the ideal sum a real number, not a truncated one
fix(power): stop scaling the part of the draw brightness cannot reach (…
study(color): the black floor is the source quantization, and it is h…
zackees commentedon Sep 10, 2026
R10 checked — all ten findings now have a verdict (#4272)
The last of the three you marked unchecked. Two of its three parts have been overtaken; one is real.
Overtaken — the fallback policy
R10 read the landed mirror as permitting fallback on unresolvable advisory RGB metadata.
FLED_FORMAT.mdnow says the opposite:That is #4034's contract verbatim, opt-in included.
Overtaken — dark output on rejection
Video::draw(now, leds)writesCRGB::Blackacross the whole span when an error is recorded, before returning false. Nothing stays latched.Real — and it is a contradiction inside one document
The format table gives
rgb16_lineara default tuple,defaultVideoColor()implements it, and a test pins it. Three screens further down, the forward-compatibility section called the format "meaningless without its declaration". Both cannot be true, and you already said which way to settle it — keep the tuple, rewrite the prose.The prose now separates the two states the old wording ran together:
declaredis false, so a consumer can tell inherited from claimed.rgb8may fall back with a diagnostic; the same name onrgb16_linearmay not. "Mandatory" is about fallback, not about absence.declared == falseis the whole distinction, so it is now asserted forrgb16_linearrather than only forrgb8.Not landed: R10's ask for identical contract fixtures in ledmapper is that repo's half.
Where this issue stands
With R4 (#4268), R8 (#4269) and R10 (#4272), every finding now has a verdict:
Rgb16route into the managed pathmGamma/ownership resolved; TINY-tier half is P9'sYour suggestion above — "Worth editing the body or opening a successor rather than leaving ten HIGH/MEDIUM findings of which several no longer describe the code" — now applies to a much shorter list: R3, R5, D1, and the two questions deliberately left with you (R6's simplex, R10's cross-repo fixtures).
docs(fled): separate "mandatory" from "absent" for rgb16_linear (#4156 …
zackees commentedon Sep 10, 2026
The
FL_WARNfloat aside is fixed (#4273)From the R6 comment, recorded and deliberately not chased:
Chased. Reproduced first, at precision 2:
21000000.00-21474836.48-21474836.48-21474836.48The boundary is
2^31 / 10^precision— about 21.5 million by default. That is not an exotic magnitude: a microsecond count, a byte total or a raw s16.16 value passes it routinely.static_cast<int>of an out-of-range float is undefined behaviour and lands onINT_MIN, and-2147483648 / 100with its remainder is exactly where those digits came from.Three parts, in the order they surfaced:
nan,inf,-inf. A NaN printed as a number is the worst of these, and it is the case that nearly cost you the check;999999979.52— multiplying by 100 in float loses the low digits, because 1e11 is not a float. Only the fractional residue is scaled now.Beyond any integer the value goes out as
d.ffe+NN.One thing worth passing on, since it is the same shape of mistake the aside was about: my first set of tests stopped at 1e9, which is below 2^31, so the mutation narrowing the accumulator back to
intpassed. The band between 2^31 and the scientific threshold is where anintis still undefined and ani64is still exact, and it now has cases — powers of two, so the expected string is not itself an approximation.fix(stl): stop printing every large float as -21474836.48 (#4273)
18 remaining items
test(channels): R9's evidence — two channels keep their profiles, and…
test(gfx): R7's neutral-axis question, measured — and the override th…
test(gfx): R2's ordering constraint as arithmetic, and the response L…
test(gfx): R7's neutral-axis question, measured — and the override th…
zackees commentedon Sep 10, 2026
R1 measured (#4320): the code half already landed; the claim that excused it had not
R1 was the one finding in this review that named a live defect in shipped code, and the issue asked for it first. It is fixed — but not by this review, and the fix is newer than any release, which turns out to be the part still worth writing down.
The defect was real, and the old code said so itself
PixelStream::begin()recognized FLED v1 +rgb8and, on any other format or version, rewound to byte zero and succeeded as a headerless.rgbstream. Its own comment before #4160:So R1's arithmetic holds exactly as stated: a seekable
rgb16_linearfile played as raw data and the firstreadPixel()returned the ASCII magicFLE, RGB(70, 76, 69).It is fixed, and the evidence R1 asked for is all present
#4160 separated absent magic from recognized-but-unsupported FLED. No magic still falls back to raw RGB; once
FLEDmatches, every invalidity closes the stream — unsupported format, future version, reserved bytes set, truncated header, malformed envelope, non-seekable input. All six of R1's required fixture classes exist intests/fl/fx/video.cpp, and — the part I checked rather than assumed — so do the positive controls:raw RGB remains playableandvalid RGB8 FLED skips the header. Without those two, a blanket "reject everything" would pass every rejection case in the file. R1's "verify unsupported containers never expose header bytes as LEDs" is a case title.So R1 needed no new test. What it needed was the claim retracted, and that was still standing.
What #4320 changes
FLED_FORMAT.mdjustified shippingrgb16_linearwithout a version bump on the grounds that "readers that predate one already reject unknown pixel formats". FastLED's own reader was the counterexample to its own format doc. The section now names that, and pins the boundary:True going forward; false for every release up to and including 3.10.5. Per R1, a format enum cannot repair binaries already in the field, so it is recorded as a producer deployment constraint: ship
rgb16_linearto an audience that may be running a released FastLED and the old players show grey noise rather than refusing the file. Gate on the player, not on the container.Coverage, complete
setTargetWhiteinert (#4317, merged)sizeof/bloat half outstandingEvery finding now has either coverage or a verdict. Three of the ten resolved as "validated, stored, and reaching nothing" — R7's
setTargetWhite, R2's response LUT, and R1's format gate that no old reader enforced. Each was a promise the code made and did not keep, and none would have been caught by testing the path that does work.What remains outstanding is maintainer decisions rather than measurement: R9's
sizeof/bloat half, and the two inert setters — whether they get implemented or get their return values told the truth.test(gfx): R2's ordering constraint as arithmetic, and the response L…
test(gfx): R2's ordering constraint as arithmetic, and the response L…
docs(fled): narrow the forward-compat claim FastLED's own reader broke (
fix(channels): warn when a profile clears the caller's gamma (#4331)
fix(channels): warn when a profile clears the caller's gamma (#4331) (#…
zackees commentedon Sep 12, 2026
The status table in this issue predates a large body of merged work and now reads as more open than it is. Correcting the parts I have verified, and marking the rest as indicative rather than claiming it.
Verified
R1 — fixed. The reader no longer rewinds after recognising FLED magic.
src/fl/video/pixel_stream.cpp.hpp:153:Every invalid path in that function does the same, and the fixtures this finding asked for exist in
tests/fl/fx/video.cpp:PixelStream rejects an unsupported FLED format instead of reading its header as RGBPixelStream FLED recognition only falls back when magic is absentPixelStream rejects FLED magic on a non-seekable inputPixelStream rejects partial FLED frames and reserved header bytesPixelStream defers fragmented stream classification without losing raw bytesVideo Frame draw fails dark after rejected FLED admissionThat covers valid RGB8, raw RGB, unsupported format, truncated envelope and streamed input — the evidence list as written.
R3 (#4344), R4 (#4342), R8 (#4347) — measured and pinned, fixes still open. Each was a one-off measurement that nothing guarded; each now has regression tests:
R8's contract sentence asked for "explicit tests for dropped submissions and irregular dwell" — both halves now exist, and they are separate defects: dwell moves the time-weighted mean without dropping anything, so a fix that advanced on presentation would close one and leave the other.
Worth recording that R4's headline did not reproduce. Under a like-for-like comparison including the estimator's idle term I measure +16%, not +50%; details on that issue.
Indicative, not verified
I counted coverage rather than reading each case, so these are pointers rather than claims:
tests/fl/fx/video.cppconcern typed RGB16 routes.tests/fl/channels/color_profile.cpp, including spectral-boundary primaries and infinity rejection.tests/fl/gfx/chromatic_adaptation.cpp.color_profile_tiny_layout.cppis a compile-onlystatic_assertprobe of the zero-state layout promise, and test(ci): check that a linked TINY binary carries no float or solver symbols (#4043) #4390 added the link-time half: an ATtiny85 image with no soft-float helpers and no solver symbols.The status table
"All ten phases remain OPEN" with "no linked implementation found" for P5–P8 is no longer accurate. P2 and P4 are closed, and P5 through P9 have merged implementation and test work — the golden corpus and its reproducibility fix, the streaming core, the gamut mapper and device solve, the wide 16-bit encoder path, and the TINY link-time proof. The phase issues themselves are the better source now.
[-]fix(color): adversarial design review of the profiled pipeline contracts (#4034)[/-][+]Meta: color-pipeline review findings burndown (R1–R10, D1)[/+]zackees commentedon Sep 23, 2026
Software review burndown complete. #4499 merged in #4542 with the shared Q16 final-frame electrical bound, exact unbound Blink footprint, and host/ESP32-C6 throughput evidence; #4515 wide-emitter path merged in #4533 with final accounting in #4542. The issue body now marks R1–R10/D1 and prerequisites complete, preserving R8 as an explicit equal-dwell scope decision. P10 #4044 and parent #4034 remain open for instrument-measured light/color accuracy and program sign-off; no datasheet estimate is being substituted for that measurement.