Repository navigation
Description
Context
Follow-up to #3422. The colorimetric strategy harness now has runnable rows for every currently discussed strategy, including RGBW rows, fixed-path prototype rows, and a 5-channel RGBWW scorer. The next piece of work is to turn the prototype table into a complete decision record: memory, CPU, and max-channel accuracy for every strategy, with enough production proof to choose the right implementation per target tier.
When this issue is complete, FastLED should have a full performance-vs-accuracy rundown across all relevant categories: small-memory RGBW, balanced RGBW, highest-accuracy RGBW, fixed-point-only MCU, FPU-enabled MCU, and RGBWW strict.
Important Measurement Rules
- Accuracy is max absolute LSB error in any output color channel. Aggregate dE is supporting data only.
- RGBW rows must name their reference. Current RGBW prototype rows compare against strict closed-form unless the row is explicitly a production policy row.
- RGBWW rows must name their reference. Current RGBWW prototype rows compare against the layered RGBWW reference.
- CPU rows must not use placeholder cycle counts. Host
ns/pxis allowed as a live benchmark, but FPU and fixed-point MCU costs must be measured or explicitly marked missing. - FPU-enabled and fixed-point-only costs must both be represented where a strategy can plausibly ship in both modes, including the relative fixed/FPU cost.
- Any row that is not production-ready must say whether it is
PROTOwith blockers orREJECTEDwith evidence.
Current Snapshot
Current harness output is based on verifier_known_bad with 381 rows. Values below are the most recent local prototype measurements; the final emitted tables are authoritative.
| Strategy | Stage | Topology | Reference | max-channel LSB p50/p95/p99/peak | target dE p50/p95/peak | Memory target/proto/runtime | Current state | Main missing work |
|---|---|---|---|---|---|---|---|---|
float_closed_form |
REF | RGBW | strict closed-form | 0 / 0 / 0 / 0 | 4.02 / 13.97 / 30.82 | 0B / 0B / ProfileCache | OK reference | Soft-float target not benchmarked |
wx_lp_legacy_float |
PROD | RGBW | production max-white policy | 0 / 151 / 239 / 255 | 4.21 / 13.97 / 30.82 | 0B / 0B / ProfileCache | Production policy row | Fixed LP solver not implemented; MCU cycles missing |
wx_overdrive_float |
PROD | RGBW | production boosted policy | 32 / 123 / 191 / 255 | 12.51 / 47.46 / 66.43 | 0B / 0B / ProfileCache | Intentional luminance/chroma tradeoff | Fixed boosted solver not implemented; MCU cycles missing |
bilinear_n16 |
PROD | RGBW | strict closed-form | 4 / 93 / 143 / 152 | 4.46 / 14.68 / 30.82 | 2048B / 2048B / state+table | Fails current p95 budget | MCU cycles missing; fixed pair measured separately |
hermite_n16 |
PROD | RGBW | strict closed-form | 2 / 87 / 143 / 166 | 4.31 / 16.70 / 30.82 | 6144B / 6144B / state+table | Fails current p95 budget | Fixed lookup not implemented; MCU cycles missing |
hermite_n32 |
PROD | RGBW | strict closed-form | 0 / 86 / 143 / 149 | 4.30 / 13.97 / 30.82 | 24576B / 24576B / state+table | Fails current p95 budget | Size tradeoff proof; fixed lookup not implemented; MCU cycles missing |
cell_encoding_q16_n16 |
PROTO | RGBW | strict closed-form | 3 / 87 / 142 / 166 | 4.38 / 15.50 / 30.82 | 6144B / 12288B / 12848B | Fails current p95 budget | Packed cell format, compression sweep, fixed evaluator, MCU validation |
hull_adaptive_n16 |
PROTO | RGBW | strict closed-form | 1 / 78 / 115 / 166 | 4.61 / 15.50 / 30.82 | 6176B / 12416B / 12848B | Fails current p95 budget | Packed-axis decoder, fixed evaluator, MCU validation |
tetrahedral_rgb8 |
PROTO | RGBW | strict closed-form | 1 / 18 / 22 / 24 | 3.91 / 15.89 / 30.82 | 4096B / 4096B / state+table | Best current RGBW accuracy tradeoff | Sparse/compressed storage, boosted-mode proof, MCU validation |
tetrahedral_rgb8_fixed |
PROTO | RGBW | strict closed-form | 1 / 18 / 22 / 24 | 3.92 / 15.89 / 30.82 | 4096B / 4096B / state+table | Fixed Q12 evaluator exists | MCU validation; production packing/integration |
poly_piecewise_d3 |
PROTO | RGBW | strict closed-form | 9 / 39 / 62 / 74 | 3.87 / 15.45 / 30.82 | 480B / 1920B / 2184B | Good small-memory accuracy candidate | Production offline coefficient generation, monotonicity proof, MCU validation |
poly_piecewise_d3_fixed |
PROTO | RGBW | strict closed-form | 9 / 39 / 62 / 72 | 4.04 / 15.50 / 30.82 | 480B / 1920B / 2184B | Fixed Q8 evaluator exists | Quantization review, monotonicity proof, MCU validation |
fixed_analytical_q16 |
PROTO | RGBW | strict closed-form | 3 / 81 / 128 / 152 | 5.15 / 38.16 / 65.90 | 224B / 224B / state | Fails current p50/p95 budgets | Hull projection, overflow proof, parity target |
hybrid_q16_refine_n8 |
PROTO | RGBW | strict closed-form | 3 / 81 / 128 / 152 | 5.15 / 38.16 / 65.90 | 304B / 304B / state+router | Seed router prototype exists; seeding is not yet proven useful | Hull projection, overflow proof, Q-format review, explain whether seed matters |
bilinear_n16_fixed_interp |
PROTO | RGBW | strict closed-form | 15 / 115 / 145 / 152 | 4.48 / 35.71 / 65.90 | 2048B / 2048B / state+table | Fixed baseline row exists but fails budgets | MCU validation; decide whether useful as baseline only |
rgbww_layered_reference |
REF | RGBWW | current layered RGBWW reference | 0 / 0 / 0 / 0 | 3.52 / 11.86 / 26.11 | 0B row-owned | OK reference | Fixed RGBWW solver not implemented; MCU cycles missing |
rgbww_strict_5ch_proto |
PROTO | RGBWW | layered RGBWW reference | 9 / 143 / 199 / 210 | 3.71 / 11.99 / 26.11 | 228B / 528B / 960B | 5-channel scorer/prototype exists | Physical policy validation, fixed evaluator, production integration, MCU validation |
Required Final Tables
Accuracy Table
For each strategy and topology:
| Required column | Meaning |
|---|---|
| Strategy | Stable row name used by the harness |
| Stage | REF, PROD, PROTO, or REJECTED |
| Topology | RGBW, RGBWW, or future channel family |
| Reference | Strict closed-form, production policy, layered RGBWW reference, measured fixture, etc. |
| max-channel LSB p50 | Median max absolute channel error |
| max-channel LSB p95 | 95th percentile max absolute channel error |
| max-channel LSB p99 | 99th percentile max absolute channel error |
| max-channel LSB peak | Worst max absolute channel error over the sample set |
| target dE p50/p95/peak | Supporting colorimetric target error distribution |
| Sample set | Fixture/gamut/boosted-mode coverage used for the row |
| Pass/fail reason | Which budget failed, if any |
Memory Table
For each strategy:
| Required column | Meaning |
|---|---|
| Target packed bytes | Intended deployable flash/PROGMEM footprint |
| Prototype bytes | Current harness/runtime representation footprint |
| RAM bytes | Runtime RAM/heap/state requirements |
| Per-profile bytes | Cost that scales with color profile |
| Per-strip/controller bytes | Cost that scales with runtime instances |
| Tiny-memory tier impact | Whether the strategy can be compiled out or kept below the tiny target budget |
| Compression knobs | Grid size, coefficient count, sparse encoding, packed cell format, etc. |
CPU Table
For each strategy:
| Required column | Meaning |
|---|---|
| Host ns/px | Current desktop benchmark value from the harness |
| FPU path | Runtime math used when FPU is available |
| Fixed path | Runtime math used on fixed-point/no-FPU targets, or explicit missing reason |
| FPU cycles/px | Measured or defensible representative MCU result, not a placeholder |
| Fixed cycles/px | Measured or defensible representative MCU result, not a placeholder |
| Fixed/FPU relative cost | Ratio shown directly in the table when both values exist |
| Setup/build cost | Offline/profile-time table or coefficient generation cost |
| Runtime operations | Lookup, interpolation, solve/refine, clamp/projection, RGBWW policy steps |
| Validation target | Host-only, simulator, or named MCU/board benchmark |
Decision Table
Final output should include a compact recommendation matrix:
| Category | Winner | Why | Memory | CPU FPU/fixed | max-channel LSB p95/peak | Blockers |
|---|---|---|---|---|---|---|
| Small flash/RAM | TBD | TBD | TBD | TBD | TBD | TBD |
| Balanced RGBW | TBD | TBD | TBD | TBD | TBD | TBD |
| Highest RGBW accuracy | TBD | TBD | TBD | TBD | TBD | TBD |
| Fixed-point-only MCU | TBD | TBD | TBD | TBD | TBD | TBD |
| FPU-enabled MCU | TBD | TBD | TBD | TBD | TBD | TBD |
| RGBWW strict | TBD | TBD | TBD | TBD | TBD | TBD |
Strategy Checklist
- Baseline/reference rows remain runnable:
float_closed_form,wx_lp_legacy_float,wx_overdrive_float,bilinear_n16,hermite_n16,hermite_n32. - Hypothesis support TLS3001 #1,
hull_adaptive_n16: production packed axis/cell encoding exists, memory is measured, fixed evaluator is implemented or rejected, MCU validation is recorded. - Hypothesis Interrupt short circuit #2,
tetrahedral_rgb8/tetrahedral_rgb8_fixed: sparse/compressed storage is designed, boosted-mode behavior is validated, RGBW/RGBWW applicability is documented. - Hypothesis Allow duplication of data to more LEDs #3,
poly_piecewise_d3/poly_piecewise_d3_fixed: offline/profile-time coefficient generation exists, fixed evaluator is reviewed, monotonicity/clamp behavior is proven. - Hypothesis Example: testleds needs updating (find included update) #4,
hybrid_q16_refine_n8: define the actual value of the seed router, add hull projection, prove overflow bounds, improve Q-format if needed, and document whether seeding matters. - Hypothesis added ATtiny84 / 44 / 24 support, using pin defs from mellis #5,
cell_encoding_q16_n16: packed cell format exists, compression/grid sweep is recorded, fixed evaluator is implemented or rejected, and target/prototype memory converge or the delta is explained. -
fixed_analytical_q16: hull projection exists, overflow proof exists, fixed-vs-float parity target is defined and measured. -
bilinear_n16_fixed_interp: decide whether this is a useful fixed baseline, production fallback, or rejected row. -
rgbww_layered_reference: reference behavior is locked down and fixed RGBWW feasibility is documented. -
rgbww_strict_5ch_proto: physical policy is validated, fixed evaluator is implemented or rejected, production integration path is documented, and 5-channel scorer/reference behavior is locked down.
Completion Conditions
-
bash test colorimetric_strategy_table --cpp --verboseemits the final memory, CPU, accuracy, and decision tables. - Every row has max-channel LSB p50/p95/p99/peak and target dE p50/p95/peak.
- Every row has target packed memory, prototype memory, RAM/runtime memory, and scaling notes.
- Every row has FPU and fixed-point/no-FPU CPU cost, or an explicit rejected/not-applicable reason.
- Every row with both FPU and fixed CPU data shows relative fixed/FPU cost.
- No placeholder cycle counts or unverifiable estimates remain in the tables.
- All prototype-only rows have either a production implementation plan or an explicit rejection reason.
- At least one selected production candidate lands outside the test harness before being called shippable.
- Final recommendation names winners per category: small memory, balanced RGBW, highest RGBW accuracy, fixed-only MCU, FPU MCU, RGBWW strict.
- Focused tests pass:
colorimetric_strategy_table,rgbw_colorimetric, and RGBWW coverage. - Lint passes for the touched harness and production files.
- Hardware or representative MCU validation is recorded for any strategy recommended as a default or tier winner.
Current Verification Commands
These are the minimum checks while iterating on the table:
bash test colorimetric_strategy_table --cpp --verbose
bash test rgbw_colorimetric --cpp --verbose
bash test rgbww --cpp --verbose
git diff --check
bash lint --cpp --no-fingerprint tests/misc/colorimetric_strategy_table.cpp tests/misc/colorimetric_strategy_harness.hppKnown Remaining Gaps
- Fixed LP solver not implemented.
- Fixed boosted solver not implemented.
- Fixed evaluator missing for
cell_encoding_q16_n16andhull_adaptive_n16. - Fixed RGBWW solver/evaluator not implemented.
- RGBWW strict physical policy not validated.
- Soft-float target not benchmarked.
- Representative MCU cycle data missing.
- Overflow proof missing for Q16 analytical/refine paths.
Non-Goals
- Do not switch the default production path solely from host benchmark output.
- Do not treat aggregate dE as a substitute for max-channel LSB accuracy.
- Do not hide failing rows by removing them from the table.
- Do not merge an RGBWW policy as complete until the physical behavior and reference policy are explicitly validated.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Jun 27, 2026
Latest local harness update:
wx_lp_q16_residual_rejectedas an explicitREJECTEDpolicy-LP row so the failed fixed residual/max-W approach is measured instead of left implicit.3 / 81 / 128 / 152, target dE5.15 / 38.16 / 65.90, host161.1 ns/px, target/prototype/runtime memory132B / 132B / 136B.wx_lp_legacy_floathull-projection/manifold solve.wx_lp_legacy_floatnow points at this rejected row as evidence that balanced fixed LP is still pending.Verification passed locally:
zackees commentedon Jun 27, 2026
Latest local harness update:
FPU cycles/pxandFixed cycles/pxcolumns for every registered strategy row.missing,paired row missing,missing soft-float,missing balanced LP,missing RGBWW, orrejectedinstead of inferring MCU cycle counts from hostns/px.Verification passed locally:
zackees commentedon Jun 27, 2026
Latest local harness update:
Sample setcolumn for every row.verifier_known_bad/native/RGBW,verifier_known_bad/native/RGBWW, andverifier_known_bad/native/boost-policyfor boosted-policy rows.boost-policyuses the same verifier fixture with the boosted policy enabled; it is not a separate boosted-mode sweep yet.Tiny tier,Compression/scaling knobs, andSourcecolumns, so packed layout/scaling evidence is easier to audit row by row.Verification passed locally:
Note: the test commands were started in parallel, so two runs printed build-lock wait stack dumps before acquiring the lock, but all listed checks completed successfully.
zackees commentedon Jun 27, 2026
Latest local harness update:
ReferencetoReference/roleso policy rows do not imply a different LSB baseline than the one actually measured.wx_lp_legacy_floatnow printsstrict CF delta; prod max-W.wx_overdrive_floatnow printsstrict CF delta; prod boost.wx_overdrive_q16now printsstrict CF delta; fixed boost.wx_lp_q16_residual_rejectednow printsstrict CF delta; rejected LP.This keeps the existing useful strict-closed-form LSB deltas but removes the ambiguity that production policy rows were being compared against themselves.
Verification passed locally:
zackees commentedon Jun 27, 2026
Latest local harness update:
paired LSB p50/p95/p99/peak.tetrahedral_rgb8_fixedvstetrahedral_rgb8: paired LSB0 / 1 / 1 / 1.poly_piecewise_d3_fixedvspoly_piecewise_d3: paired LSB1 / 2 / 2 / 3.rgbww_strict_5ch_fixed_evalvsrgbww_strict_5ch_proto: paired LSB5 / 104 / 162 / 190.wx_lp_legacy_float: paired LSB27 / 152 / 239 / 255, reinforcing that it is not a balanced fixed LP replacement.Verification passed locally:
zackees commentedon Jun 27, 2026
Latest local harness update:
wx_lp_q16_balanced_protoas a measuredPROTOfixed max-W/LP candidate instead of leavingwx_lp_legacy_floatpaired only to the rejected residual row.11 / 152 / 239 / 255, target dE4.35 / 35.71 / 65.90, mean LSB36.35.wx_lp_legacy_float: paired LSB0 / 65 / 114 / 152.957.6 ns/pxhost, target/prototype/runtime memory84B / 136B / 136B.PROTO; hull projection, overflow proof, and representative MCU cycles are still missing.Verification passed locally:
bash lint --cpp --no-fingerprint tests/misc/colorimetric_strategy_table.cpp tests/misc/colorimetric_strategy_harness.hpp bash test colorimetric_strategy_table --cpp --verbose --no-fingerprintThe full goal remains open because representative MCU cycles, boosted-mode sweep coverage, production integration, RGBWW physical-policy validation, Q16 overflow proof, and several productionization/rejection decisions are still unresolved.
zackees commentedon Jun 27, 2026
Latest local harness update:
paired row missingwhen a paired implementation actually exists; they now printmissing via FPU row,missing via fixed row,missing via float row, ormissing via wx_lpas appropriate.missing via ... rowmeans a paired implementation exists, but representative MCU cycle measurement for that pair is still absent.kStrategyBytesUnknown, a solve function, and full paired-LSB sample coverage wheneverpaired_accuracy_index_for()declares a pair.Verification passed locally:
bash test colorimetric_strategy_table --cpp --verbose --no-fingerprint bash lint --cpp --no-fingerprint tests/misc/colorimetric_strategy_table.cpp tests/misc/colorimetric_strategy_harness.hpp git diff --checkThis does not close the meta issue; MCU cycle data is still missing and remains explicitly marked missing rather than inferred from host timings.
zackees commentedon Jun 27, 2026
Latest local harness update:
tetrahedral_rgb8_boostedandtetrahedral_rgb8_boosted_fixedso boosted-mode tetrahedral behavior is measured directly instead of inferred from the strict tetrahedral rows.policy LSB p50/p95/p99/peakaccuracy column. This compares policy-approximation rows against their intended production policy target, e.g. boosted rows againstwx_overdrive_floatand LP rows againstwx_lp_legacy_float.wx_overdrive_float: policy LSB2 / 28 / 44 / 67; fixed-vs-float paired LSB0 / 1 / 1 / 1; strict-CF delta21 / 120 / 185 / 253.4096B / 4096B / 4376B.tetrahedral_rgb8_boosted273.5 ns/px,tetrahedral_rgb8_boosted_fixed288.2 ns/px(1.05xfixed/float host). MCU cycles remain explicitly missing.unknown.Verification passed locally:
Note: the RGBW/RGBWW tests were started in parallel, so the RGBWW run printed a build-lock wait stack dump before acquiring the lock; both tests passed.
This advances boosted-mode coverage, but the full meta issue remains open because representative MCU cycles, sparse/compressed storage, production integration, RGBWW physical-policy validation, and Q16 overflow/hull proof work are still unresolved.
zackees commentedon Jun 27, 2026
Packed
u8tetrahedral row and decision-matrix updateVerified the packed 8x8x8 tetrahedral RGB LUT rows and updated the harness decision matrix to reflect the measured memory/accuracy tradeoff.
New/verified rows from
bash test colorimetric_strategy_table --cpp --verbose --no-fingerprint:tetrahedral_rgb8_u8tetrahedral_rgb8_u8_fixedDecision-matrix changes:
Balanced RGBWnow points attetrahedral_rgb8_u8: same p95/peak as Q12 tetrahedral (18 / 24) at half the table bytes (2048Bvs4096B).Highest RGBW accuracystays ontetrahedral_rgb8: Q12 still has a slightly better p99 (22vs23) and the same peak (24).Fixed-point-only MCUstays ontetrahedral_rgb8_fixedfor now: it has the better p99/host result among fixed tetra rows, while theu8fixed row is now called out as the half-memory alternative.FPU-enabled MCUstays ontetrahedral_rgb8pending representative MCU cycles; theu8row is called out as the flash-constrained alternative.Added harness guardrails so the packed row cannot silently drift:
tetrahedral_rgb8_u8target bytes must be exactly half oftetrahedral_rgb8target bytes.tetrahedral_rgb8_u8_fixedtarget bytes must matchtetrahedral_rgb8_u8.Verified:
Remaining gaps are still intentionally visible: representative MCU FPU/fixed cycles, production integration, and physical-policy validation where applicable.
zackees commentedon Jun 27, 2026
Boosted packed
u8tetrahedral rows addedExtended the packed 8x8x8
u8tetrahedral LUT to the boosted production-policy path as separate policy rows. This keeps strict closed-form accuracy rows and boosted-policy approximation rows separate.New rows from
bash test colorimetric_strategy_table --cpp --verbose --no-fingerprint:wx_overdrive_floattetrahedral_rgb8_boosted_u8tetrahedral_rgb8_boosted_u8_fixedInterpretation:
u8rows match the Q12 boosted rows on policy LSB (2 / 28 / 44 / 67) while halving table bytes (2048Bvs4096B).PROTOrows: representative MCU cycles and production integration are not complete.Harness guardrails now cover both strict and boosted packed tetra rows:
u8tetra bytes must be exactly half of strict Q12 tetra bytes;u8tetra bytes must be exactly half of boosted Q12 tetra bytes;Verified after this change:
The harness now reports 31 strategy rows.
zackees commentedon Jun 27, 2026
RGBWW strict fixed evaluator parity fixed
Fixed an evaluator mismatch in
rgbww_strict_5ch_fixed_eval: the Q16 path was clamping combo coefficients to[0, 1]before choosing/normalizing a candidate. The float strict solver allows positive coefficients above 1.0 and normalizes the whole 5-channel candidate afterward. The fixed path now preserves positive over-1.0 Q16 values untilnormalize5_q, matching the float policy.Verified current table result from
bash test colorimetric_strategy_table --cpp --verbose --no-fingerprint:rgbww_strict_5ch_protorgbww_strict_5ch_fixed_evalImpact:
rgbww_strict_5ch_fixed_evalnow passes the current target dE budget instead of failing dE.Verified:
zackees commentedon Jun 27, 2026
Added independent
cube17RGB accuracy sweepAdded a second accuracy table to the harness:
Uniform RGB Cube LSB Sweep. It evaluates every registered strategy on a 17x17x17 RGB grid (4913samples per row), scored only as max-channel LSB against the same row reference used by the main table:verifier_known_badmeasured fixture.Guardrails added:
4913cube samples.float_closed_formmust have cube peak0.rgbww_layered_referencemust have cube peak0.Selected cube17 results from
bash test colorimetric_strategy_table --cpp --verbose --no-fingerprint:tetrahedral_rgb8tetrahedral_rgb8_fixedtetrahedral_rgb8_u8tetrahedral_rgb8_u8_fixedpoly_piecewise_d3_fixedrgbww_strict_5ch_protorgbww_strict_5ch_fixed_evalwx_lp_q16_balanced_protoThis changes the interpretation of the accuracy table: the verifier fixture is still the measured failure-driven set, but the cube17 sweep now catches broader-grid peaks. In particular, tetrahedral rows remain strongest among non-exact RGBW rows, but their broader cube peak is
32rather than the fixture peak24.Verified:
zackees commentedon Jun 27, 2026
Added cube17 policy LSB sweep
Added a separate
Uniform RGB Cube Policy LSB Sweepsection to the harness. The existing cube17 table still reports strict-reference deltas for every row; this new section scores only rows with an explicit production policy target, using the same 17x17x17 RGB grid (4913samples).Current policy-cube results from
bash test colorimetric_strategy_table --cpp --verbose --no-fingerprint:wx_overdrive_q16wx_overdrive_floattetrahedral_rgb8_boostedwx_overdrive_floattetrahedral_rgb8_boosted_fixedwx_overdrive_floattetrahedral_rgb8_boosted_u8wx_overdrive_floattetrahedral_rgb8_boosted_u8_fixedwx_overdrive_floatwx_lp_q16_residual_rejectedwx_lp_legacy_floatwx_lp_q16_balanced_protowx_lp_legacy_floatImpact:
u8boosted rows match the Q12 boosted rows on the cube policy sweep while staying at half table bytes.policy_accuracy_index_for()to produce exactly4913cube-policy samples.Verified:
The full goal remains open: representative MCU FPU/fixed cycles, production integration, RGBWW physical-policy validation, and Q16 overflow/projection proofs are still not complete.
22 remaining items
zackees commentedon Jun 27, 2026
RGBWW strict host physical-policy invariant audit added.
What changed:
RgbwwPhysicalPolicyStatsand=== RGBWW Strict Physical Policy Invariant Audit ===.Current measured audit row from the local run:
Verification:
bash test colorimetric_strategy_table --cpp --verbose --no-fingerprint bash lint --cpp --no-fingerprint tests/misc/colorimetric_strategy_table.cpp tests/misc/colorimetric_strategy_harness.hpp git diff --checkStill not complete: this is host policy validation only. LED-bin/hardware validation, representative MCU FPU/fixed cycles, and production integration/packing are still open.
zackees commentedon Jun 27, 2026
Strategy readiness gate audit added
Added a readiness gate table to the local
colorimetric_strategy_tableoutput so rows cannot look complete just because they have host accuracy and hostns/pxnumbers.Current readiness summary:
New gate behavior:
PROTOrows must saynot shippableuntil representative MCU cycle evidence and production integration exist.REJECTEDrows must explicitly say they are rejected.not shippable.Verified locally:
bash test colorimetric_strategy_table --cpp --verbose --no-fingerprint bash lint --cpp --no-fingerprint tests/misc/colorimetric_strategy_table.cpp tests/misc/colorimetric_strategy_harness.hpp git diff --checkThis does not close the issue. Remaining completion gates still include representative MCU fixed/FPU cycles, production packed encoders/integration, selected default/tier implementation outside the harness, Q16 projection/proof work, and LED-bin/hardware validation for RGBWW strict.
zackees commentedon Jun 27, 2026
Issue completion gate audit added
Added an explicit close/no-close audit section to the local
colorimetric_strategy_tableoutput. This mirrors the meta issue completion conditions and makes the remaining blockers visible in the generated table itself.New emitted section:
The harness now asserts that completion-gate statuses are known, non-placeholder text, and that at least one blocked gate remains while the evidence is incomplete. This keeps the issue from looking done just because host memory/accuracy tables are populated.
Verified locally:
bash test colorimetric_strategy_table --cpp --verbose --no-fingerprint bash lint --cpp --no-fingerprint tests/misc/colorimetric_strategy_table.cpp tests/misc/colorimetric_strategy_harness.hpp git diff --checkzackees commentedon Jun 27, 2026
Strategy hypothesis checklist audit added
Added a
Strategy Hypothesis Checklist Auditsection to the localcolorimetric_strategy_tableoutput. This maps the named theoretical/prototype strategy checklist directly onto current evidence and close blockers, so the issue-level tables no longer only show row-level readiness.Current emitted summary:
The issue completion audit now also includes:
This keeps the theoretical strategy list visible in the generated output and ties each item to its remaining close condition. It still does not close #3429: representative MCU cycles, production integration, formal Q16 proof/projection work, and RGBWW hardware/LED-bin validation remain missing.
Verified locally:
bash test colorimetric_strategy_table --cpp --verbose --no-fingerprint bash lint --cpp --no-fingerprint tests/misc/colorimetric_strategy_table.cpp tests/misc/colorimetric_strategy_harness.hpp git diff --checkzackees commentedon Jun 27, 2026
Structured strategy blocker matrix added
Added a
Structured Strategy Blocker Matrixsection to the localcolorimetric_strategy_tableoutput. This computes blocker categories separately from the freeform missing-work prose so unfinished rows cannot hide behind wording drift.Current emitted summary:
The issue completion audit now includes:
The matrix derives blockers from row state and evidence:
MCU cyclesblockerPROTOrows get aproduction integrationblockerpacked storageblockeraccuracy budgetblockerproof/projectionwhere applicableconstrained fithardware policyVerified locally:
bash test colorimetric_strategy_table --cpp --verbose --no-fingerprint bash lint --cpp --no-fingerprint tests/misc/colorimetric_strategy_table.cpp tests/misc/colorimetric_strategy_harness.hpp git diff --checkzackees commentedon Jun 27, 2026
Fixed/FPU paired memory relative cost added
Expanded the
Host Paired CPU/Accuracy Cost Auditso each fixed-vs-FPU pair now reports explicit packed-memory relative cost, not just separate memory cells.New paired columns:
These are derived from packed target bytes for the fixed row relative to the anchor/FPU row. The completion gate now verifies both paired output evidence and paired memory evidence:
This closes the implicit-memory-gap in the paired fixed/FPU table while keeping MCU cycle ratios marked incomplete. Host timing ratios and memory ratios are now present; representative target FPU/fixed cycle ratios are still missing and remain a blocker.
Verified locally:
bash test colorimetric_strategy_table --cpp --verbose --no-fingerprint bash lint --cpp --no-fingerprint tests/misc/colorimetric_strategy_table.cpp tests/misc/colorimetric_strategy_harness.hpp git diff --checkzackees commentedon Jun 28, 2026
Progress update: added an explicit reference-surface lock audit to the strategy table.
Current emitted state:
closed-form self-check: PASS, 381 verifier rows and 4913 cube17 rows both have 0 max-channel LSB against themselves.independent reference proof: BLOCKED, because the current rows are scored against the live closed form but the canonical float surface has not been independently proven/approved.FPU deviation policy: PARTIAL, because max-channel LSB is now the metric, but allowed FPU drift per target platform is not frozen.topology promotion freeze: BLOCKED, so the decision matrix candidates are explicitly provisional while the reference target can still move.The issue completion gate now includes:
reference surface lock: BLOCKEDCPU operation topology: PASS for 31/31 modeled rows, separate from missing representative MCU cycle measurementsThis addresses the concern that we should not optimize or promote solver topologies against a moving target surface. The table can still compare current evidence, but it cannot claim final winners until the reference surface and FPU max-channel LSB tolerance policy are locked.
Verified locally:
bash test colorimetric_strategy_table --cpp --verbose --no-fingerprintbash lint --cpp --no-fingerprint tests/misc/colorimetric_strategy_table.cpp tests/misc/colorimetric_strategy_harness.hppgit diff --checkzackees commentedon Jun 28, 2026
Progress update: added a frozen-fixture drift audit for the closed-form reference.
The harness now compares the live
float_closed_formoutput against the vendored verifiercf_*columns fromtests/misc/golden/verifier_known_bad.*using the same 8-bit max-channel LSB metric as the strategy table.Current emitted state:
This is important because the previous self-check only proved
float_closed_formwas exact against itself. The new row proves the current live table surface does not match the frozen verifier closed-form outputs at the table's 8-bit resolution, so the reference target is definitely not locked yet.What changed locally:
evaluate_closed_form_fixture_lock(...)to score live closed-form output against frozen fixturecf_*values.frozen verifier fixturetoReference Surface Lock Auditand keptreference surface lockblocked.Verified locally:
bash test colorimetric_strategy_table --cpp --verbose --no-fingerprintbash lint --cpp --no-fingerprint tests/misc/colorimetric_strategy_table.cpp tests/misc/colorimetric_strategy_harness.hppgit diff --checkzackees commentedon Jun 28, 2026
Follow-up: expanded the frozen-fixture drift audit into a subset breakdown so the reference mismatch is actionable.
New emitted section:
The key point is that drift is not isolated to the known-bad physical rows; even fixture rows marked
okdiffer from the live table surface at p95/peak92/166max-channel LSB. That keeps thereference surface lockgate blocked and gives the next investigation a concrete target: determine whether this is input/output quantization, stale verifiercf_*, profile/source mismatch, or a real closed-form behavior change.Verified locally:
bash test colorimetric_strategy_table --cpp --verbose --no-fingerprintbash lint --cpp --no-fingerprint tests/misc/colorimetric_strategy_table.cpp tests/misc/colorimetric_strategy_harness.hppgit diff --checkzackees commentedon Jun 28, 2026
Follow-up: clarified the frozen-fixture drift as a legacy-surface comparison and added top drift rows.
The table now labels this as live public u8 closed-form vs the legacy verifier
cf_*analytical snapshot, not as proof that the current public u8 API should equal those old values. Thereference surface lockgate remains blocked until we classify whether this is stale verifier data, an intentional current-surface change, input/output quantization mismatch, or a bug.New emitted section:
Also updated the final note to say the
cf_*drift row compares the current public u8 solver to a legacy 16-bit analytical snapshot and is a staleness/current-surface check, not independent physical proof.Verified locally:
bash test colorimetric_strategy_table --cpp --verbose --no-fingerprintbash lint --cpp --no-fingerprint tests/misc/colorimetric_strategy_table.cpp tests/misc/colorimetric_strategy_harness.hppgit diff --checkzackees commentedon Jun 28, 2026
Progress update: corrected the fixture provenance docs/tooling so
cf_*is no longer described as the current closed-form reference.Why: the harness now emits a measured drift audit showing the current public u8 solver differs from the vendored verifier
cf_*values. The old fixture README/extractor wording said thosecf_*values were produced by the current closed-form solver, which would make the reference-lock blocker misleading.Updated wording now states:
cf_*is a legacy 16-bitanalytical_strict_rgbw16snapshot from the archived verifier sheet.cf_*.Reference Fixture Drift Detail/ top-drift rows are a staleness/current-surface check, not independent physical proof.status=failis hardware evidence for the archived legacy output, not automatic proof that the current solver is wrong.Also updated
gen_colorimetric_fixture_header.pyso regenerated headers include the same warning, then regeneratedverifier_known_bad.hpp.Verified locally:
python -m py_compile ci/tools/extract_verifier_fixture.py ci/tools/gen_colorimetric_fixture_header.pybash test colorimetric_strategy_table --cpp --verbose --no-fingerprintbash lint --cpp --no-fingerprint tests/misc/colorimetric_strategy_table.cpp tests/misc/colorimetric_strategy_harness.hppgit diff --checkzackees commentedon Jun 28, 2026
Progress update: added a
Reference Fixture Drift Classificationsection to make the legacycf_*mismatch more actionable.The classifier measures whether the legacy verifier output max channel is much larger than the input max while the live public u8 solver preserves the input value. That is the same stale value-normalized surface signature described in the current closed-form solver comments.
Current emitted section:
The
Reference Surface Lock Auditnow includes:This does not lock the reference or prove physical correctness. It narrows the blocker: before choosing optimization winners, we need to decide whether the archived verifier
cf_*rows are stale data from the old value-normalized analytical surface, an intentional target change, or something else requiring a solver/reference update.Verified locally:
bash test colorimetric_strategy_table --cpp --verbose --no-fingerprintbash lint --cpp --no-fingerprint tests/misc/colorimetric_strategy_table.cpp tests/misc/colorimetric_strategy_harness.hppgit diff --checkzackees commentedon Jun 28, 2026
Closing at maintainer direction after pushing draft PR #3435. The current API/example and the preserved strategy harness are in the PR; any remaining research or hardware validation should come back as a fresh, narrower issue if needed. #3435