Skip to content

benchmarks(errors): named browser journeys and a wider page comparison - #213

Merged
JuroOravec merged 1 commit into
mainfrom
benchmarks/errors-journeys
Oct 20, 2026
Merged

JuroOravec merged 1 commit into
mainfrom
benchmarks/errors-journeys

Conversation

@JuroOravec

Copy link
Copy Markdown
Member

Part 2, step 1b of the error-prevention benchmark plan (#158). Stacked on #211; merge that first.

What changes

  • Named journeys. Each framework.toml now lists the browser check's steps under [runtime.journeys]. The current clicks become the required default journey, recorded at the same three points as before: after the load, after the steps, and after a reload. Later PRs add journeys that fill in forms and press keys. Every case runs every journey of its framework, so a new journey also covers the existing cases.
  • New steps: fill (selector, text) and press (key, optional selector). Each action accepts only its own keys, so a typo is rejected when the file is loaded.
  • Wider page comparison. The check now also compares border color, alt, id, aria-* values and whether an element is disabled. A mistake that changes only these now reads "silently wrong" instead of "never" in results.json; both still show as M and count as Missed.
  • Citry's generated id. Citry wraps each interactive page in an element whose id is random on every render. The runner blanks runs of 16 or more hex digits in id and aria-* values before comparing. Otherwise every Citry page, including the clean one, would read as changed.

Evidence

  • A full run at this commit (run 20261020T171028Z, all six frameworks, 144 cases) matches the published 2026-10-20 results in every cell code, outcome, and strict and lenient result. The only differences are in two lists of findings that pointed away from the edited line (accepted_indirect and unconfirmed_indirect) for FastHTML m22 and Nuxt m19, m20 and m22. They come from runner changes made after the published run, not from this PR. The run changes no published numbers, so it is not added under results/.
  • Runner tests: 115 passed, including the call order of the default journey's three snapshots and one test against a real Chromium page.

Not covered yet

  • The run cannot show whether one of the new values changes between two loads of the clean Next.js or Nuxt page: neither has a "never" result. If one does, it will appear as a changed cell in a later run.
  • Border color is read in whatever hover and focus state the last click leaves. FastHTML's stylesheet gives the button under the pointer a different border; that only matters if a case moves what sits under the pointer.

🤖 Generated with Claude Code

Base automatically changed from benchmarks/errors-case-edits to main October 20, 2026 18:05
…amed journeys

The browser check's clicks become named journeys in each framework's
framework.toml, under [runtime.journeys]. The existing clicks are the
default journey, recorded at the same three points as before (after the
load, after the steps, after a reload). Every other journey starts from a
fresh load in a new browser context and records the page once. New `fill`
and `press` steps let later PRs drive forms and keyboard flows, and each
step accepts only the keys its action uses.

The page record also keeps border color, alt, id, aria-* attributes and
the disabled state, so a mistake that changes only those reads as
"silently wrong" rather than "never" (both still count as missed). Runs
of 16 or more hex digits in ids and aria values are blanked before the
comparison, because Citry mounts an interactive page into an element
with a random id on every render.

No existing cell is expected to change: the only "never" cells (m09) edit
only the button type text. The published results change only after the
next full run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@JuroOravec
JuroOravec force-pushed the benchmarks/errors-journeys branch from 0e4c3c9 to f4cb5e7 Compare October 20, 2026 18:05
@JuroOravec
JuroOravec added this pull request to stack #219 October 20, 2026 21:10
@JuroOravec
JuroOravec merged commit a9c1051 into main Oct 20, 2026
1 check passed
@JuroOravec
JuroOravec deleted the benchmarks/errors-journeys branch October 20, 2026 21:10
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