Repository navigation
test(studio): measure each heavy-thread action on its own page, and correct the scroll row - #9062
danielhanchen wants to merge 55 commits into
Conversation
…ontent Users report Studio and Desktop going sluggish after long generations with code cells and text. That is a statement about content volume, so the new harness varies characters of thread content rather than message count, and the fixture carries the mix the report names: prose, large code fences, tool calls with collapsible output, code-execution result panes, HTML and canvas artifacts, and inline images. The primary metrics are DOM-observable and wall-clock, because Unsloth Desktop is a Tauri webview and not Chromium. PerformanceObserver accepts type longtask on WebKit 26.5 and Firefox 153 without throwing and then never fires, so support is read from supportedEntryTypes; CDP counters are recorded alongside and labelled Chromium-only.
…ne chatter Re-opening the thread throws away every highlighted fence, so repetitions 2 and 3 were measuring a thread that was still building itself: on Chromium at 300K the scroll gesture read 667ms on the first repetition and 1100ms on the two after it, and the difference was the re-highlighting. Firefox 153 emits exactly two scroll-anchoring notices per run at every size. A warning count that grows with the thread still fails; a constant one does not, or the harness could never report a Gecko number.
…ng floored metrics Measured from the end of the gesture, time to settle reads ~50ms at every size on every engine, because the answer is then three frames, which is the minimum the loop can return. From the start of the action it is what a user waits. A count that goes 0 to 4 has answered the question and counts as discriminating. A floored timing that is zero or negative at the smallest size has not: it says the action resolves inside one frame there, which is a metric with no room to move.
A WebKit page that ran out of memory at 300K on a loaded machine took eight good measurements down with it. The cell is now recorded as crashed, the run continues, and the verdict still fails on it.
…cess can On a macos-14 runner Chromium finished all three sizes in 90 seconds and then Playwright's WebKit wedged at the smallest size and never came back, which cost the whole matrix. page.evaluate and browser.new_page have no timeout, and SIGALRM does not help: the sync API blocks the main thread inside a greenlet, so the exception lands in the driver and the caller never resumes. The process boundary is the only bound that works, so the docstring says to drive one engine per invocation under an external timeout.
…orrect the scroll row The harness drove six actions in one fixed order on ONE page and then repeated that whole sequence on the same page, so only the first action of the first repetition ever ran on a page that had done nothing else. Every other cell carried the residue of everything before it and the table did not say so. For the scroll column at 300K that residue was the entire number. A 20-step scroll on a page that has only ever scrolled costs 666 ms, which is 33.3 ms a step, which is exactly the two-vsync floor this same file measures and prints as `paint floor ms`. The gesture is free at every size. The 950 ms that was published is what the same gesture costs once the cursor is resting on a message, and the median is what buried it: the 300K repetitions were 666.9 / 1049.7 / 949.9 / 916.7 / 950.1, so reporting the median reported 949.9 and discarded the one uncontaminated repetition as the outlier. So there are now two tables. ISOLATED is the headline: one fresh context, page and seed per ACTION, then N repetitions of that action alone, so a row's contract is "N repetitions of action X on a page that has only ever done X". CARRY-OVER is the old fixed sequence, unchanged, labelled as what it is. A user really does open a menu and then scroll, so that is worth measuring; it is simply not what the word "scroll" means on its own. Also prints repetition 1 against the median of the rest, per action per table, and reports divergence past 1.25x as a carry-over finding rather than as noise. That one line would have caught this months earlier. The module docstring withdraws three things in the open: the published per-pixel attribution for scroll, which was wrong; #9047's null result, which needs no other explanation once paint and raster are 164 ms of a 1435 ms gesture; and the comment above JUMP_JS, which said a wheel gesture is nearly free at any size and was right all along while the table contradicted it. tests/studio/scroll_predecessor_probe.py is the probe the correction rests on, so a reader can rerun it rather than take the numbers on trust. The CI job timeout goes to 25 minutes because the gate now seeds seven threads per size rather than one. A gate that is slower and honest beats a fast one that is not.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 567f1b3b32
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| wait_for_highlighting_settled(page, ACTION_TIMEOUT_MS) | ||
| expanded = page.evaluate("() => window.__heavyThread.expandTools()") |
There was a problem hiding this comment.
Expand tool cards before checking highlighting stability
After a reopen, Radix remounts every tool card collapsed, so this stability check runs while the result panes—and their code—are absent. The function then expands those panes but waits only for their DOM count, even though expansion starts asynchronous Shiki work. Consequently, repetition 2 onward can begin while highlighting is still running, contaminating the sequenced keystroke and subsequent actions as well as later isolated reopen repetitions. Expand the cards before the highlighting gate, or repeat the stability gate after expansion.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
The ordering point is real but the consequence is not, so I am leaving this as is. Expanding a tool card mounts no highlighted code, so it starts no Shiki work and there is nothing for the gate to have missed.
The Shiki-highlighted ToolCodeCell renders outside ToolFallbackContent on purpose so it survives a reopen, tool-ui-python.tsx:184-203, from #7165. What sits inside the collapsible is a plain pre with no code element, tool-fallback.tsx:257/315/332, tool-result-output.tsx:36, tool-ui-code-execution.tsx:121, and highlightedTokenCount counts pre code span.
Measured on the real fixture, Chromium, 300K characters, three consecutive reopens: after each reopen all 22 tool cards are genuinely collapsed, expandTools clicks all 22, the count of [data-slot=tool-fallback-content] pre code is 0 in every state, and highlighted tokens are 35086 before the expand, 35086 at the gate and 35086 three seconds later. Same at 100K.
One adjacent thing that is real and is not what you described: ToolFallbackContent carries a 200ms animate-collapsible-down, so a reopen leaves 22 expand animations in flight when the next action starts. Small, but I would rather note it than let it hide behind this.
| const settleMsTaken = await window.__hv.quiet(settleMs); | ||
| const metrics = window.__hv.end(); |
There was a problem hiding this comment.
Wait for Shiki before ending the reopen measurement
On large mixed threads, quiet() can return after only three calm animation frames even though asynchronous Shiki batches are still pending; the harness's own wait_for_highlighting_settled() documents that similarly short checks released between batches. Ending the recorder here therefore omits later highlighting stalls from the reopen row's wall, frame, stall, and settle metrics, despite reopen being defined as rebuilding every highlighted fence. Keep the timed window open until highlighting is demonstrably stable.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Did not reproduce. I instrumented REOPEN_JS to read the highlighted-token count at the exact line where quiet() returns and compared it with the count after wait_for_highlighting_settled: 35086 against 35086, on three consecutive reopens at 300K on Chromium, with settleMs at 2691, 2530 and 2646ms, so the window is not closing early. A reopen re-renders the same source strings, which code-plugin.ts caches, and the highlighting finishes inside the window.
There is also a cost to the change: holding the timed window open on wait_for_highlighting_settled adds its own floor to the number, since that gate polls at 250ms and needs 5 stable reads, so it cannot cost less than about 1.25s on every engine whether or not anything was still running.
Stated as a gap rather than a claim: this is Chromium only, at 100K and 300K. WebKit and Firefox are unmeasured, and since cross-engine is the whole point of this harness I would rather confirm there before changing the window.
Sequenced reopen runs straight after delete, which has taken the last assistant message out of the runtime, and reopen preserves the runtime. Since the fixture is whole cycles of one message per kind, the message that goes missing is always the same one. Measured at the instant reopen began: 19 of 20 messages and 2520 of 3216 highlighted tokens at 25K, 219 of 220 and 34675 of 35086 at 300K. Left as it is on purpose. This table's contract is that nothing resets between actions, so re-seeding would redefine the carry-over row. The isolated table is the one to quote for reopen, and its per-action seed is already gated on the full per-cycle kind census.
summarise() keeps only the last repetition's copy of the four non-numeric fields, while the median beside them is taken over every repetition. So a repetition whose interaction did not happen still contributed its timing to the reported number, and a verdict reading the last repetition alone passes it. Demonstrated on recorded data rather than argued: replaying a real run's repetitions with repetition 1's runtimeText broken, or its bodyPointerEventsAfterClose set to none, the current verdict reports zero failures and exits 0. Not live today: across 82 repetitions there were no proof failures and no disagreement between repetitions on any of the four fields. Same shape as dropped_repetitions, which stops a headline timeout being reported as a median of three.
The probe opened a CDP session and never enabled the Performance domain, so getMetrics returned no metrics at all and the task, layout and style columns printed 0.0 for every arm. Enabling the domain fills them in. main() ended in an unconditional return 0, so a run where every arm threw was recorded as failed and still exited as a completed experiment. It now returns 1 when an arm failed or no arm ran, and 2 for a PROBE_ARMS name that does not exist, which used to trim the sweep to nothing and print an empty table. before_jump, before_delete and before_menu_keystroke were defined and never registered, so the docstring listed predecessors the sweep could not run and the re-settle branch was keyed on a delete arm that did not exist. The gutter park predicate demanded a hit outside the scroller, which cannot happen when the scroller fills the viewport, so it rejected every candidate and both control arms published timings with the pointer on an unverified corner. The viewport element is the stable target these arms are named for. The recorder cleared a running flag but left the queued frame and timer callbacks scheduled, so a prior run's loops rejoined the next begin() and wrote into the arrays it had just emptied. Five back-to-back 300ms runs gave stall ticks 151, 226, 300, 374, 448 against a flat 78 with a generation token. Those are growth axes that feed the verdict. Also name an encoding on the results write, which Repo tests flagged.
median() dropped None before the verdict ran, so three repetitions with one timeout aggregated to a clean number and action_failures returned an empty list. Its openMs is None and ms is None checks were already correct and simply unreachable. median() now returns None if any repetition did. A timing that was null in every repetition never entered numeric_keys at all, so the key vanished from the merged row and the verdict raised KeyError instead of reporting the menu that never opened. None is a key now. Once the null reaches the verdict, a scroll, jump or reopen that never settled arrives as settleMs None with no check on it, so it read as an axis that was not recorded while another axis carried the discrimination and the run exited 0. That is now a failure with its own message. The comment here pointed at a dropped_repetitions safeguard as the reason the aggregation was safe. No such thing exists in this file; it points at median() now, which is what actually does that. Registered the new test in the frontend workflow. Same shape as the fix on the heavy-thread branch, so the two do not diverge on merge.
Radix unmounts collapsed content, so the two tool-result fences per content cycle do not exist until expandTools() has run. Settling first gated on the fences that were already mounted and then mounted a fresh unhighlighted batch, whose Shiki work and the cards' own open animation landed in the next thing timed. Here that is the measured successor, so the predecessor's rebuild was charged to the arm under test, which is the one effect this probe exists to attribute. The harness states the rule in settle_and_expand's own comment. The probe's seed path already followed it and its three restore paths did not; all four now go through one helper so they cannot drift apart again.
main added test_workflow_guards_run_unfiltered.py, which requires every test that reads .github/workflows to be run by workflow-trigger-lint, the only job with no paths filter. Two of the guards this branch adds read a workflow and were not listed, so a PR editing only workflow files -- exactly the change each of them exists to reject -- would never have collected them. Both stub playwright rather than skipping when it is absent, so they run in that job's minimal environment: 68 passed standalone. Removing either entry again fails the meta-guard on its own.
|
Note on the red checks here, since this branch touches only the heavy-thread harness and its CI wiring and none of them are the cause.
It is an extensionless import in Everything else on this head is green locally: |
|
@codex review |
|
Closing this. It has conflicted with main since 19 August, and its subject is now covered by studiobench, which measures each action on its own page with a readiness gate, liveness assertions and a scored floor. Nothing here is wrong. It is just superseded by a harness that went further. |
The defect
tests/studio/playwright_heavy_thread.pydrove six actions in one fixed order on one page, then repeated that whole sequence on the same page:Only the first action of the first repetition ever ran on a page that had done nothing else. Every other cell in the published table carried the residue of everything before it, and the table did not say so.
For the scroll column at 300K that residue was the entire number. Chromium, fresh page per arm, medians of 3:
666 ms is 33.3 ms a step, which is exactly the two-vsync floor this same file measures and prints as
paint floor ms. The gesture is free at every size.The median is what buried it. The old 300K scroll repetitions were 666.9 / 1049.7 / 949.9 / 916.7 / 950.1, so reporting the median reported 949.9 and discarded the one uncontaminated repetition as though it were the outlier.
What the cost actually is
Not the menu: the action bar is hover-revealed, so every menu arm hovered first and "menu" was always "hover plus menu". Hover alone reproduces the whole effect and reads slightly more expensive than hover-plus-menu.
Not the hover either. It is the element under the pointer changing while the gesture runs, counted directly with a capture-phase listener:
Twenty steps, twenty
pointeroverevents, twenty distinct targets, about 63 ms of React work apiece on a 43,422-node thread. Every arm with zero boundary events sits on the floor. A prior hover leaves nothing behind, so no cleanup after a hover or a menu can help; the work is live.This is not a reason to discount it. Wheel-scrolling with the cursor resting over the conversation is how a person reads a long chat; the cheap arms are the artificial ones.
What changed
SMOKE_CARRYOVER_RATIO(default 1.25) reported as a carry-over finding rather than as noise. It does not change the exit code.JUMP_JScomment, which said a wheel gesture is nearly free at any size and was right all along while the table contradicted it.tests/studio/scroll_predecessor_probe.py, the probe the correction rests on, so it can be rerun rather than taken on trust.Confirming run, chromium, 25K and 300K, repeats 3, exit 0:
Growth still discriminates (menu 10.47x, reopen 8.90x, delete 6.70x), so scroll going flat does not blind the verdict.
JSON shape change, called out
by_engine[E].by_size[S].actionsis now the isolated summary rather than the mixed sequence, with a newheadline_tablefield recording which. That is the one thing a consumer can be surprised by.raw_repetitionsand everything else keep their names and shapes.Caveat that must not be lost
The repetition-1-vs-rest line is a floor on carry-over and never a ceiling. Measured, not assumed:
deletealways followsmenu, reads 1.15x "steady" at 300K on the repetition line, and still differs between the two tables by 172 ms (740.4 isolated against 568.5 sequenced) in the unexplained direction. "Steady" must not be read as "no carry-over".Untested, stated rather than guessed
scrollis quantified.deleteandreopenremain untested.menucolumn is probably the least affected, since it is expensive on its own terms.menuanddeletetake the hover as a genuine precondition, so isolation does not make those two rows hover-free and was never going to. The clean contrast isscrollisolated againstscrollsequenced.Review round: the harness measuring what its labels say
Everything below is the same class of defect the PR itself is about: a number published under a label that describes something else. Each was found in review, fixed, and pinned by assertions that were made to fail on a broken tree before being kept.
Setting an action up is no longer charged to the action.
scrollandjumpboth anchor to the bottom before they start, because neither travels the distance it reports otherwise, and both did that anchoring in the first lines of their own evaluate.__hv.begin()came after it, so the portable recorder excluded it correctly, butrun_actionarms the long-task observer and takes its opening CDP snapshot BEFORE the evaluate runs, so the anchoring landed in the row's task, layout, style and long-task numbers. It does not cancel out down a column: repetition 1 already sits at the bottom and pays nothing, while repetitions 2 and 3 start wherever the last one left the viewport and pay a full-height scroll, so the same gesture reads as steadily more expensive the further down you look. Anchoring runs fromACTION_SETUPSbefore any snapshot now.Travel is observed, not requested.
SCROLL_JSaccumulatedMath.abs(next - target), both of which are requests. Studio replaces assistant-ui's autoscroll with an intent-aware one that can snap a programmatic scroll straight back, and the browser clamps at either end, so a gesture that moved nothing still reported the full 8000px and every completion check downstream passed on it. It readsviewport.scrollTopback after each paint now.JUMP_JShad the same bug in starker form, reportingtravelledPx: bottomregardless of where it started or landed.Every arm and every repetition is validated. The predecessor probe appended
run_action's row with no validation at all:SCROLL_JSreturns null when the viewport is not in the DOM,quiet()returns null when the page never settles, and a viewport that refuses to move still returns a row with every timing field present.med()drops absent fields and only a raised exception marks an arm failed, so each of those produced a plausible median and exit 0. Rows are now checked against the full requested distance, not merely against zero, using a threshold that lives in the harness so the probe and the harness cannot disagree about what a completed gesture is.The sequenced table restores between repetitions.
deleteremoves a message from the runtime's repository and re-opening the thread does not undo it, so repetition 2 started one message short and repetition 3 two short. The fixture is whole cycles of one message per kind, so each pass took a DIFFERENT kind off the end, and the medians conflated carry-over, which is the only thing that table measures, with a progressively smaller thread. Restored between repetitions, never between actions: the delete beforereopeninside a sequence is the measurement and clearing it would redefine the table.Observers see the page the action will see. Making the anchor untimed also made it invisible to anything that read the page before
run_actionwas called. The pointer proof was taken beforehand, sopointer_on_messagecould read True while the measured wheel actually ran over the gutter, which silently turns the on-content arm into a second copy of the cheap control under the expensive arm's label. The probe's pointer-boundary counter was armed beforehand too, so an untimed reposition contributed boundary events by an amount that varied BY ARM. Both now run from anafter_setuphook: after the anchor, before anything starts counting.Proven red on a broken tree
111 assertions across four contract modules, all CPU-only and all running in CI. Every assertion was made to fail on a targeted broken tree before being kept:
scrollandjumpSCROLL_JSACTION_SETUPSemptiedafter_setuphook moved either side of its windowFour of these cover WIRING rather than logic, because a validator nobody calls passes its own unit tests forever while the harness goes on publishing unvalidated rows.
Corrections made during review, stated
Three of my own assertions were vacuous when first written and are worth recording, because each is a check that could not fail:
cdp_countersandlong_task_summarywithout recording them, so it could not see the closing reads and stayed green with the reset moved in front of them.action_failureszipped two per-repetition lists, andziptruncates to the shorter one, so a short list left the remaining repetitions unexamined with no failure and no notice. The lists are padded now.Second review round: the reopen arms were not measuring what they claim
A live defect in the predecessor probe, and it is the same class as the ones above: it produced a plausible number rather than an error.
REOPEN_JSdestructures[timeoutMs, settleMs, graceMs, probeEveryMs]and handsgraceMstoquietUntilIdle, which returns oncenow - lastActivity >= graceMs. Both call sites inscroll_predecessor_probe.pypassed only the two timeouts, sograceMswasundefined, that comparison ran againstNaNand was never true, and the call could not return early. Consequences:reopenarm sat out the full 120s settle timeout, roughly 16 minutes added to a four-repetition sweepBoth call sites now pass the same four values
ACTION_SCRIPTS["reopen"]uses. Nothing raised and the probe still reported a median, so the only thing that catches this is counting the arguments:test_the_probe_passes_reopen_every_argument_it_destructuresreads the arity out ofREOPEN_JSrather than hard-coding 4, so it survives the signature growing and fails if any call site is short. Proved red by restoring the two-argument call, which reports "the probe passes 2 arguments to REOPEN_JS but it destructures 4".Registration had one level left to fix too.
test_scroll_predecessor_validation.pywas in both the pytest run list andpull_request.paths, butscroll_predecessor_probe.py, which it imports and validates, was in neither, so a pull request touching only the probe skipped this workflow entirely. It is inpull_request.pathsnow, held bytest_the_predecessor_probe_itself_triggers_the_workflow, proved red by removing the entry again.Merged with main
Merged rather than rebased, so no commit is rewritten.
studio-frontend-ci.ymlwas the only conflict: main had grown its own copy of the browser smoke steps this branch was adding, so main's copy is kept rather than duplicating them, and the three test modules main does not know about are re-added to both the run list andpull_request.paths.One assertion changed rather than merged, called out because it is a deletion of a check. The recorder retirement test required
if (this.running) nativeRaf(frame);to be absent, on the reasoning that it re-schedules from a callback that has already written its sample. Main's recorder keeps that at the reschedule and guards the top of the callback with the generation check, which is strictly stronger than either alone, so the old assertion failed against correct code. It now asserts the property directly: in both the frame and stall loops the generation guard must appear before the sample push. Proved red two ways, by moving the frame guard below its push and by deleting the stall guard.A generated database that should never have been committed
.studio-test-root/studio.dbis written at test time bytests/studio/install/test_selection_logic.py, which pointsstorage_roots.studio_rootat that path. It is a mutable SQLite runtime database, not a fixture: nothing reads it, any test run or Studio start rewrites it and dirties the checkout, a later accidental commit could capture real local chat or settings data, and it puts 221 KB into every clone while exercising nothing. Main does not track it.It was not deliberate. It arrived in the merge commit here because that commit was staged with
git add -Aafter running the suite, and no gitignore rule covered the path. It is untracked and ignored now, with the file left on disk since creating it is normal and only tracking it is the defect.test_no_generated_runtime_database_is_trackedholds it, asserting against the git index rather than the filesystem for that reason, and proved red by re-adding the file withgit add -f.Third review round: the destructive arms were not comparable, and the job had no room
Two more, both real, and the first is the confound this file exists to rule out.
The census was read before the predecessor ran.
deleteanddelete_reopen_keystrokeremove a message as their predecessor, so those arms scrolled an N-1 thread while the publishedfixture_messagesrecorded N.fixture_driftonly compares repetitions WITHIN one arm, so it could not see this, stayed green, and the JSON claimed those arms scrolled the same fixture as thenothingcontrol when their DOM and highlighted content differed.The count is now read a second time, after the predecessor and immediately before the gesture, and published as
scrolled_messages.measured_fixture_mismatch()compares it across arms against the control and names any arm that did not scroll the control's thread. The destructive arms are expected to appear there, because deleting a message is the predecessor and they differ by construction; what changed is that this is stated in the output instead of hidden behind a pre-predecessor count that made every arm look identical. Within-arm drift stays fatal, since that means the restore failed. Across-arm difference is reported rather than raised, because raising would just delete the two arms.The build job's timeout did not move when the smoke's work grew. Giving each action its own page makes six isolated pages plus the sequenced one, and CI does not pin
SMOKE_HEAVY_TABLES, so at the two sizes it runs that is 14 seeds where it was 2. Seeding is the most expensive thing the harness does and six further browser smokes run after it, so an overrun took those with it. Raised to 40 minutes.40 is headroom, not a measurement, and that is written in the workflow as well as here. I tried to take the real cost off this runner first and could not: the org queue is cancelling queued runs by concurrency before they execute, so the new step has not been observed end to end. It should be tightened from observed runs, the way the startup budget was.
Four guards, each proved red on the defect it describes: moving the census back before the predecessor; making the across-arm comparison return nothing, with an acceptance control so it cannot pass by flagging every arm; computing the mismatch after the JSON is written; and putting the timeout back to 20, which reports the seed arithmetic. The comparison guard is driven against the real function rather than its source, so a function that computes the right answer and returns it to nobody still fails. The timeout guard derives the seed count from
ACTION_SCRIPTSand the workflow's sizes rather than restating it, and fails if CI starts pinning the table set.Fourth review round: a gate that could not fail, and a floor that belonged to another page
expand()in the predecessor probe was not a wait. It gated oncollapsibleOutputs >= n. Radix keeps the collapsible content element mounted while the card is closed so it can animate the collapse, so that predicate is already true of closed cards and returns immediately. This harness had already measured that and written it down next toEXPANDED_PANES_GATE_JS: at 300K characters, straight after seeding and before anyexpandTools()call,collapsibleOutputswas 22 of the 22 expected whilecodeExecutionPaneswas 0. The probe was gating on the counter its own harness documents as unable to fail, which let the next predecessor or the measured scroll start before the panes had mounted. It now uses the harness's shared gate, so the two cannot drift apart on what counts as expanded.growth()subtracted the merged median paint floor from every action. In the isolated table each action runs on its own page with its own measured floor, so the median belongs to none of them; subtracting it from an action whose page floor was higher or lower moved the corrected endpoints and the discrimination ratio with them.paint_floor_spread_msexposed that the pages disagreed and did nothing about it.merge_seedsnow keeps each page's floor aspaint_floor_ms_by_action, and the subtraction goes throughaction_floor(), which prefers the floor of the page that produced the timing. The median remains the fallback on purpose: the non-action axes need it, and so does the sequenced table, where every action really did run on one page.Six guards, each proved red on the defect it describes, including a driven test with numbers (a 40ms page floor against a 10ms median must give
(60, 160), not(90, 190)) and an acceptance control on the shared gate constant.One of the six is worth calling out, because it was found by running the breaks rather than by reading. Making
merge_seedsstop recording the per-action floors left five of the six guards green:action_floor's fallback to the median is correct behaviour, so deleting the recording made the entire fix inert without failing anything. A driven test onmerge_seedsnow fails on exactly that.One assertion was changed rather than added, and it is a change to an existing check so it is stated plainly: the paint-floor contract pinned the exact old subtraction line. It was kept and strengthened, not dropped, and now also requires
action_floorto consult the per-action floors and to keep the median fallback.Fifth review round: a counter that contradicted its own comment
stubbed_api_requestswas snapshotted inseed()and never read again. Its own comment says two whole-endpoint GETs per reopen is a real cost that stays visible, and the reopen repetitions run after seeding, so the published row was the seed's own fetches and nothing else. A reopen-only fan-out regression could not move the number that exists to catch it.seed()now recordsseed_stubbed_api_requests, its own share.finish()reads the total after the actions and publishes both that andaction_stubbed_api_requests, the difference, which is the number a fan-out regression moves and the one that attributes it to an action rather than to the fixture. Both are summed across pages in the merge, and the actions' share has its own reported axis.Two guards, both proved red. The first drives the real
finish()with a stand-in page whose stub log grows from 2 to 8 between seeding and the end -- the situation that was invisible -- and requires 8 and 6. The second is an acceptance control requiringseed()to keep recording its own share, since the rule is otherwise satisfied by overwriting the seed number with the total, leaving no delta to attribute anything with.Limits
reopen. In the carry-over tablereopendeliberately measures a thread one message shorter than the fixture, and always short of the same kind, becausedeleteprecedes it by design.scroll_predecessor_probe.py, which is in the tree so it can be rerun rather than taken on trust.