[#37] Surface color_error (mean Lab ΔE) in the report — step 1#96
Merged
Conversation
…ted channel only SSIM is largely structural: it scored a faceless shiba 0.923 and ignores hue shifts. Add verify.color_error (mean CIE76 dE at a 256px sample) and report it alongside similarity. The loop still optimizes SSIM and pass/fail is unchanged (blending + --quality recalibration is the gated step 2). One extra rasterize per convert at report time; contract JSON gains the color_error key. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jul 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 1 of #37 (reported channel only — zero behavior change).
verify.color_error(original, rendered): mean CIE76 ΔE in Lab at a 256px-long-edge sample. ~0–2 imperceptible, >6 clearly visible.Report.color_error+ contract JSON key (contract test updated); computed once at report time (one extra rasterize).passed_thresholdunchanged. Step 2 (blend into the loop score +--qualityrecalibration) stays gated — it changes every conversion's behavior and needs the corpus + operator eye-gate.Tests: hue-shift fixture ΔE>20 while identical <0.5; report carries the field end-to-end. ruff + 140 green. Real-world: cat sample reports
color_erroralongside similarity.🤖 Generated with Claude Code