Repository navigation
studiobench: residual stabilizer padding settles the windowed pin check - #17571
Merged
Merged
Conversation
Member
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This was referenced Nov 12, 2026
danielhanchen
added a commit
that referenced
this pull request
Nov 12, 2026
…hread (#17577) ## Summary `Parity verdict, scored against the null` (`studiobench-ui-parity.yml`) fails on PRs that touch the Studio frontend, depending on the run (seen on #17571, and earlier on #17504's own run): ``` outputs/parity-result: TOO LITTLE COMPARED: 12 of 32 pair(s) carry a verdict, below the floor of 16. ``` Every pair it could not score says the same thing: ``` cell r100K.base.rep0 FAILED its completeness gate: the head of the thread mounted, but coverage of the middle was NOT ESTABLISHED: 1 of 18 ordinals never mounted, but consecutive stops of the gesture did not overlap, so rows between two stops were never in view. ``` Since #17504, the thread mounts only the messages near the reader. Before an arm's actions are scored, `probe_thread_completeness` scrolls to the top to confirm every message can still be reached. It moves in steps of 2,000px, but a windowed list mounts little more than the viewport, which is about 700px in CI. A short user message sitting between two tall replies can fall between two stops, so its ordinal is never seen. The harness then correctly refuses to call that data loss and marks coverage as unmeasured, and every pair in that cell is dropped from the verdict. When enough cells hit this, the run falls below the comparison floor. The app is fine here: whether the probe sees that row depends on where the 2,000px stops land, not on what the arm mounts. #17504 is right, and the parity gate is right to refuse a verdict it cannot back. The probe's step is what is too coarse. ## Change - `tests/studio/studiobench/runtime/readiness.py`, `TRAVERSE_JS`: on the way up, a step is at most 3/4 of the viewport's height, so each stop shares at least one row with the one before it and the sweep is continuous. The distance budget (`steps * step_px`, 800,000px by default) stays the same, so the tallest rung still reaches the top, and the walk still stops as soon as it gets there. The way back down keeps the old step, since nothing is recorded from it. - The probe now reports the step it actually used as `traverse_step_px`. - No app code changes. ## Guard `test_a_virtualised_thread_passes_the_completeness_probe` used to pin the coarse default ("the default 2,000px step jumps straight past this 2,160px thread, so coverage is unmeasured"). It now asserts that the default step is capped to 300px on the fixture's 400px viewport, that the sweep is continuous, and that coverage is complete. With the cap removed, it fails. The tests that check a lost middle is still caught (`test_a_thread_that_lost_the_middle_...`) and that an unreached top is still unmeasured are unchanged and pass. ## Testing - `tests/studio/studiobench/runtime/selftest/` (including the live browser cases), `test_studiobench_thread_reopen_gate.py`, `test_studiobench_windowed_parity.py`: 411 passed, 1 skipped. - This PR's own `studiobench-ui-parity` and `studiobench CI` runs are the end-to-end check.
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
studiobench CI(Real-path session, every action ran) has failed on main since #17504, and so haveMerge base vs headandMerge base vs itself, the nullon PRs that touch the thread (e.g. #17565):#17504 switched these jobs to the windowed readiness gate (
--windowed-arm), which is the only mode that checkspin_settled. That condition read "the autoscroll is still pinning" as "--aui-scroll-stabilizeris set on the viewport". Butuse-intent-aware-autoscroll.tsxleaves the stabilizer's last value in place as residual padding once the follow window ends, and drops it only when the user scrolls up ("Drop residual stabilizer padding once the user scrolls up so the bottom stays flush"). So a thread that has finished pinning can keep the property for as long as the reader stays at the bottom, and the gate times out on a page that is otherwise ready (in the log above, every other condition held for the whole wait).This is not caused by the windowing itself. The null control on #17504 ran the merge base (fully mounted, before #17504) on both sides and failed the same way:
The app behaves as designed, and #17504 is right to run the windowed gate. The gate's reading of the stabilizer is what is wrong.
Change
tests/studio/studiobench/runtime/readiness.py: the probe also returns the stabilizer's value.pin_settledholds when the property is absent, or when it carries the same value as on the previous probe and the page has settled (same mounted count, element count and scroll height). A value that is still changing, or a page whose height is still moving, still counts as mid-pin, and the gate still needs its consecutive settled samples before it passes.INTERFACES.md: thepin_settledrow says the same.Guard
New
test_residual_stabilizer_padding_settles_the_pinintest_studiobench_readiness_live.py:With the old
pin_settledline, the test fails.Testing
test_studiobench_readiness_live.py(including its live browser cases),test_studiobench_thread_reopen_gate.py,test_studiobench_windowed_parity.py,test_studiobench_completeness_gate_rows.py: 142 passed.studiobench CIrun is the end-to-end check.