Conversation
A wireframe template whose header comment names <main> made the scorer take the comment as the page: every text dimension compared 0/0 and the "fidelity" number came from bindings alone (100% and 50% on two pages). - strip HTML comments before parsing the wireframe - UNMEASURED (exit 3, not logged) when there is nothing to compare - STUB IN MODEL (logged 0%, exit 4) for a Stub: caption scored without --stub - follow snippetcalls into snippets found in the input; mark missing ones (partial) - print the score as text-match and always note it is not a LOOK - check-design-reaches-app.sh: read the docker build's compiled theme when newest Field run: two builds on one wireframe template (#188); fixture is a genericized reduction of that template, before/after in CAPTURE.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VJgWP5vEoAsNsJYqCDMGNw
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.
Direct lane
What changed and why (one paragraph):
A wireframe template whose opening HTML comment says "inside
<main>" madepage-fidelity.jstreat the comment as the page. Headings, actions, content and classes all compared 0 of 0, so the score came from bindings alone. Two builds read "fidelity 100%" and "50%" as "the page looks right" and never opened a screenshot (#188). Changes in this PR:UNMEASUREDwith the reason, exits 3 and logs nothing.Stub:caption, scored without--stub, printsSTUB IN MODEL, logs 0% and exits 4.snippetcalls are followed into snippet bodies found in the input. Snippets that are missing are named, the result is marked(partial), and the output gives thedescribe snippetcommand to fetch them.text-match. The file and TSV names stay the same. Every run ends with "text-match compares identifiers, not pixels — it is not a LOOK".check-design-reaches-app.shalso reads the Docker build's.docker/build/app/web/theme.compiled.csswhen it is the newest built theme.ui-loop.mdstep 4 anditerative-build-loop.md(stub marker) are updated to match.This is PR 1 of 3 for the look enforcement. PR 2 (pages owed a look, then seen, then gated) and PR 3 (grader subagent) follow.
Field evidence: I ran the scorer on the real wireframe of one of the two field builds:
headings 0/0 actions 0/0 content 0/0 classes 0/0 bindings 3/6, printed asfidelity 50%.The new fixture
commented-template.htmlis a genericized reduction of that template, captured not hand-written.CAPTURE.mdrecords master's output against the new output (masterfidelity 100% … bindings 2/2, newtext-match 85% … headings 2/2 … classes 6/22).bash tests/wave2/test-page-fidelity-mocks.sh project-bin/page-fidelity.jshas not been run locally yet and waits on the maintainer's ok. CI covers it at T3.$MODEL_DIRfromfind_model_dir, so both layouts are covered. No new platform-specific tools.CHANGELOG.mdline appended🤖 Generated with Claude Code
https://claude.ai/code/session_01VJgWP5vEoAsNsJYqCDMGNw
Generated by Claude Code