Repository navigation
fix(bench): read a button label from the carrier the text fold left it on - #261
Merged
Merged
Conversation
…t on `buttonTapToken` looked for a `raw-text` node whose text equalled the label. Issue #250 folds a compile-time-known text child onto its `<text>` host, so for a static label there is no such node: the content is an attribute write on the host. Every driven interaction in the deterministic lynx-table harness starts from a tap token found this way, so `run.mjs` could not find the create button and died after 200 settle turns with `timed out waiting for mount`. That is the harness carrying the per-operation command-count and commit-byte gates, and `bench.yml` runs it as `--quick`, so the Bench workflow fails on this head. The predicate now reads a `<text>` host's content the way `labelTextOf` already read a row's: children first, host as the fallback. That covers both carriers without asking which one the compiler chose, so it holds whether or not a given label is foldable. Both readers share the helper. The wait also reports what it saw. A predicate over the painted tree fails identically whether the app rendered nothing or rendered something the predicate no longer recognizes, and those need opposite fixes; this one took a two-minute run to produce one unhelpful line. On timeout it now names the `<text>` contents actually painted, which states the difference outright. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_019RsC3U39kUuLKajZANeTVy
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.
Summary
The deterministic
lynx-tableharness cannot mount onnew-lynxhead.node run.mjsfails withtimed out waiting for mount, which is whatbench.ymlruns as its--quickentry, so the Bench workflow fails on this head.buttonTapTokenlooked for araw-textnode whose text equalled the button label:#250 folds a compile-time-known text child onto its
<text>host, so for a static label no such node exists — the content is an attribute write on the host itself. Every driven interaction in this harness starts from a tap token found this way, so nothing after mount runs.labelTextOfalready read a row's label from either carrier (childrenfirst, host as fallback). That reader was correct across the fold; the button reader was not. Both now share one helper.Found while building the §7 ablation for #246, which needs this harness as the semantic control for a create A/B.
Why
This is the harness that carries the per-operation command-count and serialized-commit-byte gates — the deterministic half of the lynx-table evidence, against which the Chromium harness's wall clock is explicitly ungated. It has been dead since #250 merged.
benchmarks/is in novitest.config.jsproject, sopnpm testdoes not reach it.bench.ymldoes, vianode benchmarks/bench.mjs --quick --ratios→LYNX_TABLE_SCALES=1000 node run.mjs 1. That job has not produced a verdict during the CI outage reported on #257, which is why a merge could land on top of a broken gate.Changes
benchmarks/lynx-table/workload.tstextContentOf(node)— a<text>host's content from whichever carrier holds it: children joined, host text as fallback. Extracted fromlabelTextOf, which keeps its behaviour and now calls it.buttonTapTokenmatches a<text>host bytextContentOf, then walks up for the tap token. Holds whether or not a given label is foldable, so it does not encode which choice the compiler made.until()takes an optional describer and appends it to the timeout message. The mount wait passes one naming the<text>contents actually painted.The describer is the second half of the fix. A predicate over the painted tree fails identically whether the app rendered nothing or rendered something the predicate no longer recognizes, and those need opposite fixes. Before, that difference cost a two-minute run and produced one line with nothing in it. Now:
The label is right there in the list — which says outright that the app rendered and the predicate could not reach it.
Validation
pnpm format:checkpnpm typecheckpnpm testtargeted:
LYNX_TABLE_SCALES=1000 node run.mjs 1— exit 0, and the gates reportmutation test: restoring the old
raw-textpredicate reproduces the timeout, and produces the new diagnostic quoted above. Red without the fix, green with it.pnpm format:files benchmarks/lynx-table/workload.ts— unchanged.pnpm sync— clean.Not run:
pnpm typecheckdoes not reach this file.pnpm typecheck:files benchmarks/lynx-table/workload.tsanswersNo TypeScript project includes:—workload.tsis compiled by the Vite build insiderun.mjs, which strips types without checking them. A standalonetsc --noEmit --strictover the file reports nothing on the changed lines (its other diagnostics are the.tsrximport and two pre-existing wire-shape widenings, all present before this change). Bringing the benchmark sources under a TS project is a larger call than this fix and is left alone.Risk / follow-ups
bench.ymlis the only thing that runsrun.mjs, and it takes ~2 minutes to fail. While the Actions outage on perf(lynx): look up a declared host by binary search over ordered runs #257 persists, a change to text lowering or the fake PAPI can break this gate again without anything saying so.claude/octane-issue-66-phase-a-7wz97z, butcreate-a-prrequires afix/-prefixed topic branch so the label workflow can read the type from the branch. Flagging rather than resolving unilaterally.Provenance
agent-authored)Generated by Claude Code