Skip to content

Rerun keeps near-clean shots, one-sided asset retry, CSS-only skill fixes - #134

Merged
tmashara merged 4 commits into
mainfrom
claude/issue-129
Nov 3, 2026
Merged

tmashara merged 4 commits into
mainfrom
claude/issue-129

Conversation

@tmashara

@tmashara tmashara commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Refs #129. Covers items 1–4. renderdiff reach, a --baseline flag and --clock are deferred. The rule-coverage example belongs to #121.

Behaviour changes

  • --rerun-failed keeps near-clean shots. A shot with no differing pixels and at most 100 unstable ones (anti-aliased corners, which recur on every load) is now reused instead of rerun.
    • A shot with failed assets, varies, an error or any differing pixel is still rerun.
    • A reused shot still prints unstable and stays off clean:. evidence.html still says Not verified.
    • reusable() and the clean/evidence rules are unchanged; only the rerun's reuse check is new.
  • A one-sided asset failure is retried once. When a stylesheet or font face failed on one side only, that side is loaded again once, right away, and the failure is reported only if it recurs.
    • A failure that recurred is remembered for the run. A one-sided regression on every page then costs at most one extra load per worker, not a doubled run.
    • A failure on both sides is never retried.
    • The check runs before the --cache-right replay-gap entry is added, so a replay gap never triggers a retry.
  • Skill:
    • Loop steps 3 and 5 now run "the routes in scope" (for CSS-only, the routes the changed rules reach), matching the mode table.
    • A build diff whose changed rules only reorder declarations (no shorthand/longhand swap) or re-notate values proves parity with no shots.
    • CSS inlined into every page (Astro, Svelte, Vue) doesn't make a change non-CSS-only.
    • With the change already made, base vs base runs after the change run, only on the routes that still differ, with the right origin on both sides. reference.md has a jq + --only recipe for this.

Tests

  • accepted.test.ts: /ticker with an 8×8 tick at 375 has 64 unstable px. --rerun-failed reuses that shot and reruns the 148,480 px one at 1440.
  • guardrails.test.ts, using hook configs that link a 404 stylesheet:
    • a left side that fails only on its first load is loaded twice and compares clean;
    • a left side that always fails is reported, with at most one retry per worker over 4 widths;
    • a failure on both sides is not retried.
  • All three fail on main. typecheck, lint, format:check, npm test (397) and npm run test:visual (400) pass locally.

🤖 Generated with Claude Code

tmashara and others added 4 commits November 3, 2026 18:54
A rerun now keeps a shot with no differing pixels and at most 100 unstable ones
(anti-aliased corners recur on every load), unless it has failed assets or
varies. reusable() and the clean/evidence rules are unchanged.

A shot whose stylesheet or font face failed on one side only reloads that side
once and reports the failure only if it recurs. A recurring failure is
remembered for the run, so a one-sided regression on every page isn't shot twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… run

Loop steps 3 and 5 now run the routes in scope (for CSS-only, the ones the changed
rules reach), matching the mode table. A build diff whose changed rules only
reorder or re-notate declarations proves parity without shots, and CSS inlined
into every page by Astro and similar doesn't make a change non-CSS-only. With the
change already made, base vs base runs after the change run, only on the routes
that still differ, the right origin on both sides. reference.md also picks up the
rerun and failed-asset wording from the previous commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A retry that throws (a timeout after shoot's own retry) kept its error and
turned a compared row into an ERROR; a timeout also left the side's page blank
for locate and --computed. The retry now runs in a spare page that replaces the
side's page only when it returns, and the first shot stands otherwise.
lasting is keyed by side. The 100 px rule is stated once per doc, and the
baseline recipe covers command-line routes, --sitemap and moved pairs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A failure opening or preparing the spare page now keeps the first shot too,
and a right-side retry that throws during a replay no longer leaves its own
missed-request count behind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tmashara
tmashara merged commit b03f7bb into main Nov 3, 2026
3 checks passed
@tmashara
tmashara deleted the claude/issue-129 branch November 3, 2026 18:31
@tmashara tmashara mentioned this pull request Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant