Tracking list of real (but non-critical) bugs and gaps found while writing hand-authored AI-reference docs (public/packages/<pkg>/ai-reference.txt) for each package. Compiled 2026-09-11 from the first 10 packages' gotcha lists.
Process (established after responsive-media + vue-state-machine)
When analyzing a package's real source to write its AI reference:
Real critical bugs (broken published build, wrong/empty shipped types, a documented-as-supported usage path that hard-crashes or silently does the opposite of what the types promise) → stop, flag to the user, and — if approved — fix immediately in the package's own repo (branch + PR, per that repo's branch-protection rules), before finishing the reference. Already-fixed bugs get a note in the reference's prose itself, not here.
Minor/low-risk bugs (safe, small, non-breaking fixes; real inconsistencies; dev-mode-only warnings worth adding) → note in the reference's own gotcha list (documenting current behavior for AI agents) and add an entry here, so they don't get lost.
Intentional design trade-offs / behavior that's merely non-obvious-but-correct → gotcha list only, not tracked here.
Each entry below cites its package's ai-reference.txt gotcha-list item number for full context/rationale — read that first before fixing.
Note: the two critical bugs found in this package (empty published .d.ts; dev-diagnostics dead-code-eliminated in production) were already fixed live, via PR #14 + PR #15, shipped in 0.2.5 — not tracked here, see the reference's own section 10 for details.
Note: the critical bug found in this package (main entry unconditionally importing @vue/runtime-core, breaking non-Vue consumers despite vue being an optional peer) was already fixed live via PR #20 (new /vue subpath), shipped in 2.0.0 — not tracked here.
(6 live bugs found in this package were serious enough to fix immediately, not deferred here — see PR https://github.com/macrulezru/color-value-tools/pull/17: fabricated colors for currentcolor/inherit/initial/unset, toNearestNamedColor() collapsing onto "transparent", colorShades/monochromatic producing "#NaNNaNNaN" at steps===1, getColorType() missing 8-digit hex, rgbaStringToRgba() not clamping, and color(srgb-linear ...) missing gamma correction — see the AI reference's own section 11 for details. One more, found afterward while writing the reference, is below.)
(6 live bugs + a README example found in this package were serious enough to fix immediately, not deferred here — see PR https://github.com/macrulezru/css-magic-gradient/pull/22:getContext() Web Worker ReferenceError crash, gradientToDataURL()OffscreenCanvasTypeError crash, angle: 0 silently ignored in 4 linear-gradient functions, createConicGradient({steps:1}) NaN-absorption bug, 5 harmony generators bypassing resolveBaseColor() and silently defaulting to black instead of this package's own fallback-color convention, and a dead weightByArea option removed from bestGradientTextColor() — see the AI reference's own section 13 for details. One more, found afterward while writing the reference, is below.)