Repository navigation
Closed
Description
Context\n\nThe shipped managed-channel temporal dither in P8 (#4042 / #4451 / #4452) advances its per-channel phase when a driver accepts a frame. This handles dropped submissions and phase-correlated drops, but it does not measure how long each accepted frame remains visible. The implementation report says irregular dwell does not move the phase (docs/color-ws2812-shaping-paths.md).\n\nThe live normative contract in docs/color-pipeline-contracts.md still says dither accuracy is based on time-weighted emitted XYZ over a declared cadence/window, with explicit irregular-dwell tests. The proposed duration-aware correction (#4500) and its timing API prerequisite (#4517) were closed without a merged implementation after the cost/complexity decision around #4534. Thus the contract currently claims more than the shipped code verifies; #4156 also still presents these as required open burndown work.\n\nThis is a documentation/verification mismatch, not a request to revive #4534 or build a timing API.\n\n## Proposal\n\nDecide and document the supported temporal-dither guarantee for the current engine: accuracy over accepted presentation count under an explicitly stated equal-dwell/nominal-cadence assumption; no guaranteed time-weighted accuracy when accepted frames have unequal visibility durations unless a future driver-specific solution supplies evidence. State the behavior when cadence is unknown or irregular, including the existing refresh-rate gate and the limitation of no visibility-duration signal.\n\nUpdate the live contract, the P8 strategy report, and #4156/#4034 tracker wording to reflect the decision. Leave frozen historical design/decision records intact, with an addendum/link if needed. Do not silently mark #4500/#4517 as implemented.\n\n## Acceptance criteria\n\n- RED: a focused test or reproducible calculation shows an accepted-frame sequence with unequal dwell whose emitted time-weighted XYZ differs from the unweighted eight-phase mean, while equal dwell meets the existing accuracy bound. Include phase-correlated dropped submissions as a distinct case that the current implementation handles.\n- GREEN: tests pin the supported equal-dwell/accepted-presentation guarantee and the deliberately unsupported unequal-dwell case, without asserting duration awareness the engine lacks.\n- The live contract and user-facing dither report give the same cadence, observation-window, flicker, and unsupported-dwell story; they distinguish accepted presentation from actual measured visibility.\n- #4156 and #4034 identify #4500/#4517 as closed by scope decision, not completed by code, and link this resolution. No driver timing abstraction is added solely for this issue.\n\n## Decisions\n\n- Preserve the cost decision: no generic frame-duration API or automatic duration-aware dither in this follow-up.\n- Treat the existing accepted-frame advancement as valuable and retain its dropped-submission coverage.\n- Scope is truthfulness and regression protection. A future measured-dwell product path needs a separate issue with a named driver/consumer and end-to-end evidence.\n\n## Related issues\n\n#4042, #4156, #4034, #4500, #4517, #4347. PR #4534 is the closed, unmerged example of the rejected generic timing approach.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone
Activity