feat(udg): the review artifact checks its own claims #159
No reviewers
Labels
No labels
build-dist
priority
P1
priority
P2
priority
P3
priority
P4
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Toilville/toilville-design!159
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/udg-artifact-geometry-check"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The self-check asserted that a mask survived. It could not assert that the artifact was telling the truth — and section 05 once labelled three identical grid columns 360/640/1024, claiming they demonstrated a band scaling with width. They demonstrated nothing. Every mask-and-size check passed. It shipped.
Scope
1 · The check had a blind spot in its most important assertion. It measured the panel, not the pull:
getBoundingClientRectcannot reach a pseudo-element, so::before/::afterwere measured via their panel's rect. That meantZERO HEIGHTandZERO WIDTH— the two checks that exist to catch a collapsed pull — were structurally unable to fire. Now measured on the pull via computed style, which is what my probes used all along.2 · A panel that states a number now declares it.
data-expect-wanddata-expect-bandhand the caption's claim to the check, which compares it against what rendered. A mismatch reads "the caption is lying".Testing
just checkgreen · 280 tests · self-check reports every stated claim matches what rendered.Verified by reintroducing the original bug rather than trusting a pass:
Both dimensions caught. The readout also shows the pull's real size (
360x10.7) rather than its panel's — the blind-spot fix, visible.New tests pin: the check measures the pull not the panel; it verifies stated claims; every width-bearing panel declares its width; and the band expectations are derived from the plate's own viewBox ratio, so a caption cannot drift from the drawing by someone hand-editing a number.
Impact Statement
Scoped to the review artifact. No token, generator, or product output changes behaviour.
dist/churn is the artifact and its stills; versions bumped.This closes the half
@propertycould not. Types stop a wrong value. They cannot stop a value that is right, renders fine, and means something other than what the page says about it. #158 narrowed the gap where a client mis-wires a var; this one narrows the gap where the artifact itself misrepresents what it drew — which is the failure that actually reached a reviewer.Still open, and honestly not solvable this way: a dropped mask. An unset
platetypes tonone, a valid value meaning "no mask", so the element paints raw pigment. The check reportsMASK DROPPEDwhen that happens, which is the right answer — but only for panels the artifact renders. A press used in a product surface and never added to the review page is unchecked by construction.Reversibility: high. The declarations are attributes; removing them returns the check to mask-and-size only.