Skip to content

Report how far an unreserved widget moves, not only its drawn height - #4117

Merged
max-sixty merged 4 commits into
mainfrom
diagnose-duplicate-drawing-path
Oct 25, 2026
Merged

max-sixty merged 4 commits into
mainfrom
diagnose-duplicate-drawing-path

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The unreserved-height advice named only the drawn height: "draws 359px tall where its first paint reserves no height, so what follows it moves when it is drawn". Agents read that as a 359 px jump. In the #3174 triage, the inline lf-diff it named had first-painted its patch's <pre> close to the drawn height, and the move at desktop width was 10 px (up to 213 px at 420 px wide). Reading the full drawn height as the move inflated the benefit side when agents weighed a fix.

The probe already compares each box with its first paint, so the advice now carries that height (first) and states the move, for example: "first paints 40px tall, reserving 40px, and draws 120px tall, so what follows it moves 80px when it is drawn: state data-height="120"".

The render-gate browser test and the render-gate model tests assert the new values and message.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 4 commits October 25, 2026 13:11
The `unreserved-height` advice said a widget "draws 359px tall where its first
paint reserves no height, so what follows it moves when it is drawn". Agents read
that as a 359 px jump. In the #3174 triage the inline `lf-diff` it named first
painted its patch's `<pre>` close to the drawn height, and the largest shift
measured was 10 px; the misread size helped justify building a second drawing
path beside Pierre.

The probe already compares each box with its first paint, so the advice now
carries that height (`first`) and states the move, for example "first paints
40px tall, reserving 40px, and draws 120px tall, so what follows it moves 80px
when it is drawn".

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
At Max's request after the #3174 triage: agents proposed and nearly landed a
first-paint drawing of lf-diff's rows beside Pierre's (+850 / -445), reading
"writes a mechanism itself only when existing ones can't meet a concrete
requirement" as covering a dependency that draws too late.

"Fix the underlying issue", which Tend's review applies, now names reproducing
a dependency's or module's output ahead of it, even plainly or in part, as a
second implementation, and points to making that path earlier or faster or
reserving its room, as "Responsiveness" already does for the server's reading.
"Use dependencies" says arriving too late isn't a requirement that licenses one.

Scored in the personal second-implementations suite with this file in context:
recommending against landing the prototype went from 0/4 to 4/4 for Claude
(Codex 4/4 before and after); the triage decision from 0/4 to 3/4 for Claude
and stayed 0/4 for Codex, which still plans a first-paint row layout before
measuring main.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Max judged it too strong and too specific to #3174: the agents misweighed the
trade, and discounting speed doesn't fix the weighing.

This reverts commit 7f5f994.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit a43cc72 into main Oct 25, 2026
4 checks passed
@max-sixty
max-sixty deleted the diagnose-duplicate-drawing-path branch October 25, 2026 20:51
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.

2 participants