Repository navigation
test(interaction-harness): each trackMarkers color may have a region - #10808
Conversation
A busy proof that tracked its marker and its control decoded each cast frame twice. trackControl searches only the control's strip, and trackMarkers took one region for every color. A color may now carry its own region, and controlColor gives the control's color with its strip, so one decode serves both. trackControl reads the same tracks.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
|
/approve-spec ccc5e81 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. The pull request is a draft and its branch is in a fork, so CI starts once it is marked ready for review and a maintainer adds the ci:run label.
Per-color regions keep one decode per frame, trackControl returns the same tracks as before, and the decoy test pins the new region behavior.
One optional fix:
- The
startBusyControldoc comment (busy.ts:110-114) now points every control atcontrolColor(), which searches only the top strip, but a control mountedwithina moving dialog leaves that strip, so scope the sentence to a top-layer control as the README does.
[Automated review]
| * `busyWindowProof` as `control`. `trackMarkers` with the marker's colour and | ||
| * `controlColor()` finds both in one decode of each frame; `trackControl` | ||
| * reads the control alone. |
There was a problem hiding this comment.
Non-blocking: this now sends every caller to controlColor(), which searches only the top strip. A control started with within moves with its dialog, and the README tracks that one over the whole frame. Someone who follows this text for a moving sheet loses the control once the sheet carries it out of the strip. Suggested wording:
* `busyWindowProof` as `control`. For a top-layer control, `trackMarkers` with
* the marker's colour and `controlColor()` finds both in one decode of each
* frame; track a `within` control over the whole frame (`CONTROL_RGB`).|
/approve-spec 175b3d1 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. The pull request is a draft, so CI starts once it is marked ready for review; it already carries the ci:run label.
Per-color regions keep one decode per frame, trackControl returns the same tracks as before, and the decoy test pins the new region behavior.
One optional fix, still open from the last review:
- The
startBusyControldoc comment (busy.ts:113-117) points every control at strip-only searches (controlColor()andtrackControl), but a control mountedwithina moving dialog leaves that strip, so scope the sentence to a top-layer control as the README does.
[Automated review]
|
/approve-spec eec7cc0 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. The pull request is a draft, so CI starts once it is marked ready for review; it already carries the ci:run label.
This head only merges main, and the change itself is unchanged. Per-color regions keep one decode per frame, trackControl returns the same tracks as before, and the decoy test pins the new region behavior.
One optional fix, still open from the last review:
- The
startBusyControldoc comment (busy.ts:113-117) points every control at strip-only searches (controlColor()andtrackControl), but a control mountedwithina moving dialog leaves that strip, so scope the sentence to a top-layer control as the README does.
[Automated review]
Maintainer impact
A busy proof that tracks its marker with
trackMarkerand its control withtrackControldecodes every cast frame twice.trackControlsearches only the control's strip, andtrackMarkerstook one region for every color, so the two could not share a decode.Nine proofs decode one cast more than once through
trackControltoday, three of them three times.This change adds the means; those proofs move to it in follow-ups.
On a loaded runner each decode pass over a cast takes seconds.
Intended invariant
A proof can track every color it needs from one decode of each frame, each color in its own search area.
Each color's track is the one a call for that color alone returns.
Change
trackMarkerstakes a color as aMarkerColor,{rgb, region}, and searches that color only in its own region. Colors with the same area share one read of its pixels.controlColor({ahead})gives the control's color with the strip it crosses.trackControlreads throughtrackMarkerswithcontrolColor, and returns the same tracks.Most of the diff in
frames.tsre-indents the scan loop.git diff -wshows the change.Evidence
trackMarkerandtrackControlfind. A drawn decoy outside the control's strip is found by the bare color and skipped bycontrolColor().Scope
Testing
Main's merge, 175b3d1, touches three of this PR's files:
busy.ts,frames.tsand the harness README.It leaves this PR's own lines unchanged.
At the merge, at the CI profile:
frames.trackMarkers.interaction.browser.spec.ts, one worker, three repeats: 9 of 9 runs in Chromium and 9 of 9 in WebKit.A second merge, eec7cc0, brings main's lockfile and touch changes.
It touches none of this PR's files.
Its runs follow a fresh frozen install, at the CI profile.
frames.trackMarkers.interaction.browser.spec.ts, one worker, three repeats: 9 of 9 runs in Chromium and 9 of 9 in WebKit.The figures below are from the head before the merges, ccc5e81, at the CI profile with one worker.
frames.trackMarkers.interaction.browser.spec.ts, five repeats: 15 of 15 runs in Chromium and 15 of 15 in WebKit. Each call there decodes its own copy of the frames.trackMarkersignores a color's own region. The decoy test fails in both engines; the other two pass.trackMarkers, copied verbatim, reads one recorded cast per engine.Its marker and control tracks equal this head's
trackMarker,trackControland one-decodetrackMarkers, frame for frame: 3 of 3 runs in each engine.Prettier, ESLint, the harness and core type checks and
review:preare clean at both merges.