Run settings
For AI agents: this page is Markdown at https://squiggle.sh/docs/run/settings.md. Every docs page is listed at https://squiggle.sh/llms.txt, and all of them are one file at https://squiggle.sh/llms-full.txt.
Flags change how one run delivers steps and how long it waits. A flow that always needs a setting declares it in its own config block, so nobody has to remember the flag.
Flags
| Flag | What it does |
|---|---|
--direct-scroll | Makes mode: direct the default for scrollUntilVisible. Much faster; skips momentum, paging and snapping. |
--auto-scroll | Scrolls an off-screen control into view instead of failing the step. |
--no-fast-settle | Waits the full fixed time before each step, instead of moving on when the app stops moving. |
--no-in-process | Sends taps, text and swipes as real touches from outside the app. Slower; use it when the touch handling itself is what you test. |
--no-animations | Turns iOS animations off in the app, for runs that must be identical. |
--capture-net | Launches the app with network capture. A flow that stubs requests or waits for the network to go idle turns it on by itself, and an app that has capture keeps it every time Squiggle relaunches it. |
--strict-assert | Fails the run when a step couldn’t be performed at all, or was left pending for lack of data. |
--chaos <profile> | Runs the flow on a bad network. See below. |
--stubs <run> | Answers the network from an earlier run. See below. |
--stub-delays <match=ms,…> | With --stubs, answers the endpoints you name after the delay you give, and compares each screen’s time to ready with the prediction. See below. |
--matrix | Runs the flow once in each simulator setup and lists the layout problems each one adds. See below. |
--ax-only | Finds every control through the accessibility tree only, the way VoiceOver reaches it. See below. |
--settle-debug | Prints every wait under the step it belongs to. When a wait runs long, it names what was still animating: the component and its file:line. |
--headless | Runs without a simulator, inside the app’s JavaScript. Taps by position and gestures are reported as unsupported. |
--ignore-flow-config | Ignores the flow’s own config block. |
In Studio, the same settings are in the Flows screen’s Options menu: Direct scroll, Auto-scroll, Fast settle, In-process delivery, Disable animations and Capture network.
--headless is not how a React web app runs without a window: set SQUIGGLE_HEADLESS=1, as in SQUIGGLE_HEADLESS=1 squiggle flow login. See React web apps.
Settings a flow declares
Some settings decide whether a flow tests the right thing. A flow that tests infinite scroll needs real drags; one that checks a screen’s own animation timing needs the fixed waits. Declare them in the flow:
flow: product list pagingconfig: scrollMode: gesture # gesture or direct fastSettle: false # use the fixed waits autoScroll: true # scroll an off-screen control into view strictAssert: true # a step that couldn't run or decide fails the run stepDelayFloorMs: 150 # pause after each step, ms (0–2000, default 40) transitionSettleMs: 900 # longest wait before each step, ms (0–10000, default 600) chaos: slow # bad-network profile: slow, flaky, truncated, offline-midstep softKeyboard: true # keep the on-screen keyboard up while typing (iOS)steps: …A misspelt key, or a value out of range, stops the flow from loading and lists the valid ones.
softKeyboard needs Squiggle running inside an iOS app. By default the simulator types as if a hardware keyboard were attached, so no keyboard appears; with softKeyboard: true, a run that can’t keep the keyboard up stops before its first step.
When a flag and the flow disagree
For one flow, a flag you type wins: a one-off run is what flags are for. For a folder of flows, the flow wins, because one flag can’t suit every flow in a suite. Your agent’s run_flow counts its autoScroll as a flag you typed. Try both:
flow: offscreen refusalconfig: autoScroll: falsesteps: …squiggle flow offscreen-refusalAuto-scroll is off
Nobody said otherwise, and the flow and the default agree. Nothing to report.
Either way, the run prints which value it used before the first step:
squiggle flows .squiggle/flows --direct-scroll! flow config: scrollMode=gesture (was direct) — declared by the flow (a batch run never overrides it)A step’s own mode: beats both. Only flags you type count: a default never overrides the flow.
Run a flow on a bad network
--chaos degrades every request the app makes during the run, so you reach the loading, error and retry states without breaking your own connection:
| Profile | What the app gets |
|---|---|
slow | Every response, 2 seconds late. |
flaky | A 500 for the 1st, 6th, 11th… request. The same requests fail on every run. |
truncated | Every response body cut off halfway. |
offline-midstep | Everything works until the middle step (the earlier of the two, for an even number of steps), then every request fails as if the device went offline. |
squiggle flow orders --chaos offline-midstepA flow whose subject is an error state can declare its profile instead: config: { chaos: flaky }. Then --chaos none runs it on a working network.
The run turns on network capture, which happens when the app launches. If the app is already running without it, the run fails before its first step and says so; run it again with --fresh. Requests to Metro and to Squiggle itself are never degraded. On a React web app, the profiles apply to the app’s fetch and XHR requests, and the page’s own scripts and styles are left alone.
Run a flow without the network
--stubs answers every request the app makes from an earlier run of the flow, so it runs with no server and no test data to maintain. First run it once against the network with --capture-net, then pass that run’s id, the name of its log in .squiggle/runs, or latest for the most recent run:
squiggle flow orders --capture-netsquiggle flow orders --stubs latestsquiggle flow orders --stubs mve7k1uh-2-4zs6Each endpoint gets the status it returned most often, its median response time, and a body of the same shape: the same fields, types and list lengths, with placeholder values (title 1, title 2, ids counting up from 1). The run lists every stub before its first step.
A request that never got a response is not stubbed. An endpoint whose shape wasn’t recorded, because it isn’t JSON or the run had network capture off, is answered with its status and an empty body. Stubs combine with --chaos: a stubbed request is answered, and the profile degrades the rest.
Find the request to make faster
--stub-delays slows or speeds up chosen stubs, so you can see what a faster or slower endpoint would do to a screen before you change the server. Give each endpoint as part of its METHOD url and the delay in ms, separated by commas:
squiggle flow orders --stubs mve7k1uh-2-4zs6 --stub-delays todos=400squiggle flow catalog --stubs mvz47gp6-2-g2mx --stub-delays albums=50Each match names a request the earlier run made, so give each flow a run of its own. The stub list shows each changed delay beside the recorded one. After any run with --stubs, each screen that made requests in both runs gets a ready line: the time from the screen opening to its last response, beside the time the earlier run’s order of requests predicts at this run’s latencies, and the difference. A screen that shows data the app kept from an earlier visit makes no request and gets no line; add --fresh to start the app new. It warns when they differ by more than 5%, and names any request the earlier run never made. The same numbers are in the run’s file in .squiggle/runs/, on its flow.ready line.
Pass the earlier run’s id rather than latest when you run several settings in a row: latest moves to each new run. A match that no stub answers stops the run before it starts, and --stub-delays without --stubs is refused.
Check every screen in each setup
--matrix runs the flow three times, each from a fresh launch: once in the setup the simulator is in, once in the other appearance (light or dark), and once at the largest text size. On the first visit to each screen it checks for controls that overlap, get cut off or end up off-screen, and reports only what a setup adds to the first run, since a problem in every setup is about the screen, not the setup. The simulator’s settings are put back afterwards, even when a run fails or you stop it with Ctrl-C.
squiggle flow settings --matrixThe run lists each setup as as found (…), light or dark, and largest text, with each problem it adds and its source line. It exits 1 when a setup adds any. With --json it prints { cells: [{ cell, ran, screens, findings, added, unverified }] }, where each entry in added has a route, check, handle, detail and, when it is known, source, and unverified lists the controls that were not checked (see below).
--matrix needs an iOS simulator. On a Mac app it stops with E_MATRIX_PLATFORM and exit code 2.
Walk the calendar
What a screen says often depends on the date: a trial banner, a “renews tomorrow” line, a header that rolls over at midnight. --clock moves your app’s clock to the instants where those go wrong, opens the flow’s last screen at each, and lists every second where what it says changes:
squiggle flow billing --clock --clock-days 100It visits each side of every month and year end, 29 February, the next UTC midnight and each daylight-saving change, plus noon every 30 days, over the next 400 days (--clock-days sets another span, from 1 to 3650). Between two instants whose screens differ, it narrows the change down to the second, then reads the second before and the second after twice more. A change that doesn’t repeat fails the run.
- It needs a debug build of your app with the Squiggle SDK; anything else stops with
E_CLOCK_UNSUPPORTED. Only your app’sDatemoves; timers and animations keep real time. The clock goes back when the walk ends. - Times are in your Mac’s time zone, which is the simulator’s.
- The screen is opened at each instant by running the flow again, without relaunching, so the flow must be able to start from the screen it ends on: give it a prerequisite. A walk takes a while: one run of the flow per instant it visits, and about 25 more for each change it finds.
- Two instants that show the same screen can hide a change and its reversal between them.
See where each text size changes a screen
On an iOS simulator, --breakpoints runs the flow at each of the 12 text sizes, from a fresh launch each time, and lists between which two sizes the last screen’s controls with a testID appear, disappear or change row. A control pushed below the bottom edge counts as gone.
squiggle flow layout-lab --breakpointstext size what changes
accessibility-extra-extra-large → accessibility-extra-extra-extra-large layout-sign-out disappears; 5 rows become 4It first runs the smallest size three times, and stops with exit 1 if the screen reads differently in any of them, since a sweep over an unsteady screen would report noise. It also exits 1 if no control with a testID can be read on the screen, or if the flow fails. A full sweep takes 14 launches, puts the simulator’s text size back afterwards, and exits 0 whatever it finds. On a web page the same flag sweeps the page width instead; see Web.
In a debug build it also checks the prediction against what it saw: it captures the screen’s layout once, at the smallest size, predicts the screen at every other size, and says at how many the prediction matched, such as the layout program, captured at extra-small, predicted the screen at 12 of 12 text sizes. In a build that can’t capture its layout, the line says why instead. Each check counts toward the accuracy what_if reports with its layout answers.
Check every width of a native screen
Your app can be any width on an iPad: in Slide Over, either side of Split View, or a Stage Manager window you drag to any size. On an iOS simulator, add --breakpoints-prove to --breakpoints and the sweep moves your app’s width instead of the text size: it lays the app out at each width inside its screen, from 320 pt to the screen’s width (--breakpoints-range 360..400 sets others, up to the screen’s width), finds where the screen changes, and marks every width proven, falsified or inconclusive as it does for a web page. A control pushed below the bottom of the screen counts as off it.
squiggle flow layout-lab --breakpoints --breakpoints-provewidths verdict why
320–329 pt falsified onScreen layout-storage at 320 pt; onScreen layout-sign-out at 320 pt
330–381 pt falsified onScreen layout-storage at 330 pt; onScreen layout-sign-out at 330 pt
382–440 pt falsified onScreen layout-sign-out at 382 ptThat is an iPhone at the largest text size; on an iPad the same screen is proven from 320 to 1032 pt. Your app’s useWindowDimensions reports each width, so a layout that branches on the window width is checked too. It needs a debug build with Squiggle’s touch capture on (the default), puts the app back at its own width afterwards, and exits 1 when a width is falsified. A range wider than the screen stops the run before it starts (exit 2). To see iPad widths, run it on an iPad simulator; the app must support iPad ("ios": { "supportsTablet": true } in Expo’s app.json). On a Mac app, --breakpoints sweeps the width on its own: it widens the window to the screen first, so every width up to the screen’s is checked, and puts the window back afterwards. A Mac app with no Squiggle touch capture can’t be laid out narrower than its window, so the sweep resizes the window itself instead, from the narrowest it allows.
It lays the app out at a narrower width rather than resizing a real window, so the system’s size class does not change with it.
Swap the order two requests answer in
When two requests are in flight together, the network decides which answers first. Search as you type is the classic case: the answer to an older search arrives after a newer one and overwrites it. --reorder runs the flow once as it is, then once for each pair of its requests that were in flight together, holding back the one that answered first until the other has answered. Each request still gets the answer it got before, only later.
squiggle flow search-lab --reorderreorder · GET https://search.squiggle.test/ (#1) held 382 ms, after GET https://search.squiggle.test/ (#2)
✗ FAIL 6 of 7 steps 2.2s
2 requests · 1 pair in flight together, each swapped in a run of its own
ORDER-DEPENDENT RESULTS
▌ flow fails GET https://search.squiggle.test/ (#1) after GET https://search.squiggle.test/ (#2) — answered in the other order, the flow fails and the last screen shows “Results for a” instead of “Results for ab”A swap that fails the flow, or that leaves different text on its last screen, is a finding, and the run exits 1. Requests are named by their method and address without the query, and numbered in the order they started, so #1 is the first request to that address. --from-step 4 only swaps requests that start at step 4 or later. Every run starts from a fresh launch with network capture on, so it needs your app running Squiggle on an iOS simulator. It swaps up to six pairs.
Run a flow with the JS thread busy
A slow phone, a big render or a cold start can keep your app’s JS thread busy at the moment someone taps. --busy-js runs the flow as it is, then again with the JS thread held busy before every step, so each tap and swipe arrives while it is still busy. Any step that passed the first time and fails the second is a finding, and so is a tap the run had to deliver twice because the busy app did not react: an app that handles both queued taps does the action twice.
squiggle flow race-lab --busy-js 400 --from-step 1,3busy-js · the flow as it is
✔ PASS 7 of 7 steps 2.4s
busy-js · 400 ms before every step from step 1
✔ PASS 7 of 7 steps 4.5s
busy-js · 400 ms before every step from step 3
✔ PASS 7 of 7 steps 4.6s
a 400 ms block measured 401 ms on the device · within 10%
✔ busy-js: every step holds up with the JS thread busy for 400 ms--from-step starts the busy thread at a later step, counted from 0, so the steps before it run as they are. Give it several steps, separated by commas, and each is a run of its own. Each run starts from a fresh launch. The block can be 1 to 5000 ms, and the run measures it on the device: it exits 1 when a step breaks, or when the measured block is more than 10% off what you asked for. It needs a debug build of your app with the Squiggle SDK; a release build can’t hold its JS thread, and the run stops with exit 2.
Check what moves as a list scrolls
Collapsing headers, sticky tab bars and parallax images move with the scroll offset. --scroll-sweep checks them at every offset, not only the ones you scrolled to. After the flow reaches its screen, it moves the scroll view you name from its top to its end, with no animation, reads where each element with a testID is drawn, and fits its position to the offset in straight pieces. You see where each element starts or stops moving, to the point.
squiggle flow scroll-lab --scroll-sweep scroll-listscroll-header (src/app/scroll-lab.tsx:116): height in 2 pieces (bends at 120)
scroll-tabs (src/app/scroll-lab.tsx:107): y in 3 pieces (bends at 300, bends at 600)
55 offsets over 0–1264 pt · 5 of 5 moving elements within 0.5 pt in at most 8 pieces
SCROLL FINDINGS
▌ covered scroll-intro (src/app/scroll-lab.tsx:101) — scroll-intro is never wholly visible: at every offset where it is inside the scroll view, something is drawn over it, scroll-header most often
▌ sticky-leaves scroll-tabs (src/app/scroll-lab.tsx:107) — scroll-tabs sticks from offset 300, lets go at 600 and leaves the screen before 1264
▌ unclamped scroll-badge (src/app/scroll-lab.tsx:126) — scroll-badge's x still moves -0.30 per point of offset at the end of the range, so it keeps going when the list bounces past its end
▌ jump scroll-title (src/app/scroll-lab.tsx:117) — scroll-title jumps at offset 300: x +167.0, y +13.3, width -334.3, height -13.3The run exits 1 when it finds any of these:
- covered: something that scrolls with the list is never wholly visible. Wherever it is inside the scroll view, an element that stays put, such as a header, is drawn over part of it.
- sticky-leaves: an element sticks in place for part of the scroll, then lets go and leaves the screen.
- unclamped: at the end of the list, an element on screen still moves with the offset, so it keeps going when the list bounces past its end. An
interpolatewithoutExtrapolation.CLAMPreads this way. - jump: an element changes in less than a point of scrolling, such as a compact title swapping in.
An element whose motion is not made of straight pieces, such as one driven by a spring, is listed as not piecewise linear and left out of the findings. It needs an iOS simulator with your app running Squiggle (a debug build does by itself), and it scrolls the list back to the top when it is done. Each line names the place in your source that renders the element.
Check what moves as a sheet is dragged
--drag-sweep does the same for a drag. It puts a finger on the element you name, holds it at about a hundred points along --drag-by (300 pt up unless you set it), and fits where each element is drawn against how far the finger has moved. A sheet that follows the finger and stops when it is open reads as straight pieces, with a bend where it starts to follow and one where it stops.
squiggle flow drag-lab --drag-sweep drag-handle --drag-by 0,-320drag-sheet (src/app/drag-lab.tsx:63): y in 3 pieces (bends at 10, bends at 310)
drag-label (src/app/drag-lab.tsx:69): y in 3 pieces (bends at 10, bends at 310); height in 2 pieces (jumps between 160 and 167)
97 held positions over 0–320 pt · 4 of 4 moving elements within 0.5 pt in at most 8 pieces
DRAG FINDINGS
▌ jump drag-label (src/app/drag-lab.tsx:69) — drag-label jumps between 160 and 167 pt into the drag: height +10.7The run exits 1 when an element jumps. The finger goes back to where it started before it lifts, so a sheet without a snap point ends where it began. The element must be part of your app’s React views, and it needs an iOS simulator with your app running Squiggle.
Find where a swipe and a scroll meet
A swipeable row inside a list has two gestures under one finger: sideways swipes the row, vertical scrolls the list. A scroll that leans a little can swipe the row instead, and a flow that drags on the row can flake the same way. --gesture-map finds, for each control you name, the angle where one gesture gives way to the other, to the degree.
squiggle flow gesture-lab --gesture-map gesture-row-seeded,gesture-row-tunedgesture-row-seeded: swipes it below 83°, scrolls its list from it
11 probes to the degree · sideways moves it after 9 pt · vertical after 12 pt
gesture-row-tuned: swipes it below 27°, scrolls its list from it
11 probes to the degree · sideways moves it after 27 pt · vertical after 12 pt
GESTURE FINDINGS
▌ conflict gesture-row-seeded — a vertical drag that starts on gesture-row-seeded and leans 8° from vertical swipes gesture-row-seeded instead of scrolling its list
▌ step 3 gesture-row-seeded — step 3 drags up on gesture-row-seeded, 8° from a drag that swipes it: a finger that leans that far flakes into the other gesture; the middle of the intended region is 87° from sidewaysAfter the flow reaches its screen, it drags from the middle of each control at angles from sideways (0°) to vertical (90°), notes whether the control moved sideways, scrolled with its list, or stayed put, and narrows down each angle where that changes. Each drag goes back to where it started before the finger lifts, so the screen stays as it was. It also measures how far a sideways and a vertical drag must go before anything moves. Angles are measured rightwards and upwards; leftwards and downwards are taken to behave the same.
The run exits 1 when a gesture has less than 15° to spare (--gesture-margin 10 sets another lean): when a vertical drag that leans that little swipes the row, or a sideways one scrolls the list. A swipe or scroll step in the flow that drags on a mapped control within that margin fails it too. In the example above, the seeded row starts swiping after 2 pt sideways and never gives up on vertical movement. The tuned row waits for 20 pt sideways and gives up after 10 pt vertical (activeOffsetX([-20, 20]).failOffsetY([-10, 10])), which leaves a scroll 63° to lean. It needs an iOS simulator with your app running Squiggle.
Predict every text size from one run
--matrix --predict runs the flow once, then predicts what the matrix would find at all twelve text sizes from the screen the flow ends on, without relaunching. It needs a debug build of your app on an iOS simulator:
squiggle flow layout-lab --matrix --predictPredicted matrix layout-lab · 12 cells from one run · 3 checked for real ✔ extra-small · 440 pt: nothing predicted ✔ small · 440 pt: nothing predicted … ✔ accessibility-large · 440 pt: nothing predicted ✔ accessibility-extra-large · 440 pt: nothing predicted · screen/…/RCTText[0] changes 93.26 pt narrower ✔ accessibility-extra-extra-large · 440 pt: nothing predicted · screen/…/RCTText[0] changes 33.72 pt narrower ✗ accessibility-extra-extra-extra-large · 440 pt: layout-sign-out is cut off by the viewport edge, 33.7 pt past the bottom · screen/…/RCTText[0] changes 17.25 pt wider the real run agrees 1 real session(s) said their window and text size · none of them reaches a findingThe setups it flags, and about a quarter of the rest (the same ones on every run), are then run for real, and each says whether the real run agrees. The run exits 1 only when a real run disagrees with the prediction; a predicted problem the device confirms is reported, not failed. Each setup also names the nearest width where the layout jumps and how far away it is. --predict-widths 375,402 predicts other screen widths too, and --predict-check 1 runs every setup for real.
It also says how many of the app’s saved sessions each problem would reach, from the window size and text size each session recorded. Sessions your flows ran don’t count, including the setups this command runs for real, and a release build records the text size only with your user’s consent. --json lists every problem with its count and share, and with --predict-funnel each side’s conversion.
--predict-funnel "Sign in" also splits a saved funnel by each problem: how many of the sessions it reaches finished the funnel, against the rest, and whether the two differ by more than noise. That needs at least 30 sessions on each side; with fewer, the line says how many there are instead of a difference. A name that isn’t a saved funnel stops the run before it starts; squiggle product funnel lists them.
The options below each need --matrix --predict, and are refused without it:
--predict-provemarks every width from 320 to 480 pt as proven, falsified or inconclusive at each text size, runs the narrowest falsified width on the device, and keeps the proof on this machine. A later run that proves less fails, and squiggle card gets a layout row.--predict-stepschecks where each step’s target lands in every setup, and proposes ascrollUntilVisiblefor each one that ends up off the screen. A step that picks a match bynthis checked to pick the same control in every setup. It also names each screen whose controls a setup reads in another order, for example two columns stacked at a large text size. A screen reader follows that order, so check those screens with VoiceOver. It runs on its own.--predict-expansion 0.5makes every label up to 50% longer, the way a translation can, and says which label wraps or breaks the layout first.--predict-heightsand--predict-keyboardcheck the screen as its height falls, as a keyboard or a sheet takes room.
Flags for flow lists every option and what fails each one.
Repair what a setup breaks
When a screen’s spacing is declared with defineTunable, --repair searches it for values that work in every setup. Name the tunables it may move:
squiggle flow layout-lab --matrix --repair layout.gap,layout.padding,layout.minHeight ✗ largest text: 1 screen(s) audited · 1 finding(s) · 1 not in the first cell layout-lab · noClipping · 'layout-sign-out' is cut off by the viewport edge — 67% of it is on screen ✔ layout program: 11 style field(s) bound to 3 tunable(s); 1 node(s) held ✗ before · as found (dark, large): loss 16.7: layout-edit-profile hitTarget 3.3 pt; … ✗ before · light: loss 16.7: layout-edit-profile hitTarget 3.3 pt; … ✗ before · largest text: loss 33.2: layout-sign-out noClipping 33.2 pt ✔ search · program: layout.gap 4, layout.padding 4, layout.minHeight 44: no finding in any cell after 3 probe(s) ! landing: land together: after layout.gap alone, the large cell is not clean (predicted) ✔ after · as found (dark, large): loss 0 ✔ after · light: loss 0 ✔ after · largest text: loss 0 ✔ repaired: layout.gap 4, layout.padding 4, layout.minHeight 44: no finding in any of 3 cells, 6 probe(s) .squiggle/tune/mvz4uthm-repair-vt01.json · propose_fix { tuning: 'mvz4uthm-repair-vt01' } turns it into an editAfter the matrix, it runs the flow once to reach its last screen and measures that screen in each setup, relaunching the app for each one. Each problem is scored by how far it is from fixed, in points: how far a control reaches past the screen’s edge, how deep two controls overlap, and how far a control falls short of 44 pt. The score is 0 only when nothing is wrong, and a control that was on the screen at the start must still be on it. It sets the tunables in the running app and changes nothing else.
It accepts values only when the score is 0 in every setup, including the one the simulator was in, so a fix for the largest text can’t break the default. Then it moves each value onto the nearest of the tunable’s tokens that still works, and flags a value it couldn’t move. A control a scroll view can bring back doesn’t count as lost.
By default it learns how each tunable moves the screen’s layout from your app, computes the values that clear every setup, and measures only those, once per setup: the layout program and search · program lines above. When the app’s saved sessions recorded their text size, it picks, among the values that clear every setup, the ones that make the screen shortest at those text sizes, weighted by how many sessions used each (the sessions line; sessions your flows ran don’t count). If they don’t clear every setup on the device, it exits 1; run it again with --repair-search grid. If your app can’t capture its layout (it needs a debug build), it searches the grid instead and says so. --repair-search picks another search: soft and expected also work from the layout, and grid, random:<seed> and descent measure value after value, up to 40 measurements for each setup that had a problem. The landing line says whether the tunables can be changed one at a time, or must land together; --repair-landing-check measures every in-between state on the device too. --repair-control <seeds> counts what every search spends to reach a clean layout, on one set of measurements. In that check on the Layout Lab, the default needed 3 measurements, the softened search 3, expected value 17, the grid 13, random search 66 on average over five seeds, and descent never got there. The control takes thousands of measurements, so it keeps them in .squiggle/tune/ and a stopped run picks up where it left off. The result is saved under .squiggle/tune/, and an agent turns it into edits of each tunable’s default with propose_fix { tuning }.
Run a flow the way VoiceOver reaches it
--ax-only finds the control for every tap, type, swipe and scroll through the accessibility tree alone. A step that passes normally and fails here is a control a screen-reader user can’t reach.
squiggle flow checkout --ax-only- Only
testID,label,textandrolecan be matched, andtextmatches only the accessibility label, which is what VoiceOver reads. A step whose selector usescomponent,callSite,source,within,nth,pointorrouteis reported as unsupported, and fails the run only with--strict-assert. - Two elements that VoiceOver announces the same way fail the step instead of one being picked.
- There is no healing and no navigation fallback: a selector either reaches the control or the step fails.
- Assertions still read the app’s own UI tree, so only how controls are reached changes.
- It needs a simulator; with
--headlessevery action is unsupported.
A step that fails here fails with ax_unreachable. Give the control an accessibilityLabel or a testID that names it uniquely.
Name where a tap lands
A tap that opens another screen can name it with expectRoute. The step fails if that screen hasn’t appeared within 5 seconds after the tap lands, so a tap that pressed nothing, or the wrong control, can’t pass. Recorded flows fill it in for you. An agent’s tap tool takes expectRoute too, and replies ok: false when the screen doesn’t appear. An openLink takes expectRoute the same way, so a link your app ignores fails.
- tap: { text: Checkout, expectRoute: OrderConfirmation }Every key is in the Flow syntax reference.