research: audit merged PRs for unused or disproportionate feature abstractions
Author: zackeesCreated Sep 23, 2026Updated Sep 23, 2026
Context\n\nPR #4534 was closed without merge after review. It added a substantial optional presentation-timing API and fake-driver tests, but no built-in driver emitted measured visibility and no duration-aware dither consumer used the events. It therefore could not improve emitted light or meet the time-weighted XYZ criterion in #4517 and the color-pipeline design. Local correctness review passed; CodeRabbit later flagged the missing end-to-end criterion. PR #4536 added a prospective review rule. This issue is the retrospective counterpart: determine whether similar, already-merged abstractions remain in the tree.\n\n## Proposal\n\nAudit merged FastLED feature PRs for substantial API, state-machine, flag, or indirection cost whose stated user outcome may still lack a real production path. Search the last 12 months first, then extend to older PRs only where an identified subsystem or follow-up issue gives a concrete lead. Use PR descriptions, changed public headers/interfaces, tests, linked issues, and current call sites to find candidates. The signal is not line count alone; look for default-off infrastructure, fake-only tests, no named production producer or consumer, and acceptance criteria deferred to later work.\n\nFor each candidate, verify the actual current state before calling it a problem. A downstream sketch or external driver with a named, demonstrated integration counts as a real production user. Record the original claimed behavior, current producer/consumer, end-to-end evidence, relevant RAM/flash/runtime/maintenance cost, and whether the linked issue's acceptance criteria were actually met. Distinguish justified narrow foundations from unused or disproportionate designs.\n\nPublish a compact evidence table linking each PR and its conclusion: justified/keep, needs end-to-end completion, simplify/remove, or insufficient evidence. For confirmed gaps, file narrowly scoped follow-up issues with a concrete test or reproduction and a proposed keep/simplify/remove decision; do not mass-revert code from this audit issue.\n\n## Acceptance criteria\n\n- A reproducible search method and date range are documented, including queries/filters and how candidates were screened.\n- Every flagged PR has a linked evidence record comparing its claimed outcome with current production use; no PR is labeled defective merely because it is large, optional, or externally extensible.\n- At least the #4534/#4517 case is used as a calibration example, explicitly marked closed-unmerged rather than a shipped regression.\n- Confirmed shipped gaps receive separate actionable follow-up issues with focused RED-to-GREEN evidence requirements where a code fix is proposed; justified cases are recorded without new issue churn.\n- The audit summary links its inventory and all filed follow-ups, or explicitly records that no comparable merged gaps were found.\n\n## Decisions\n\n- Track this as a P2 research/audit issue in FastLED: review quality and maintenance cost matter, but no additional shipped defect has yet been established.\n- Start with the preceding 12 months to bound effort; expand only from evidence, not a repo-wide speculative rewrite.\n- Count demonstrated downstream integrations as production use. An abstraction is not wrong solely because it is a prerequisite or serves a niche audience.\n- Keep remediation in separate issues/PRs so each change can be justified and tested on its own.\n\n## Related issues and PRs\n\n- #4534: withdrawn calibration example.\n- #4517 and #4500: timing/dither outcome that #4534 did not yet deliver.\n- #4536: prospective CodeRabbit and local review gate; this issue looks backward.
Source: FastLED/FastLED