Commit 3a3cb747b0

3a3cb747b0e540924e8ccd98f8dd37a0e21158ed

parent: 6106896950

Unsigned

cmc <hello@cleberg.net> · 2026-10-26 14:59 UTC

Classify the Settings root's dynamicType findings as positional (!54)

`testSettingsScreen` is an enforced test and was failing on iOS 27.0 with three
`[FAIL][dynamicType]` findings on the Settings root rows "Local API", "iCloud
Sync" and "Monitoring Settings". It predates !53 — reproduced with that change
stashed, on `main` at `02a3463`. The floor tier passes and the pre-push hook
runs the floor tier only, so nothing had been looking at the current tier.

## What the audit is measuring

Not the row. Reordering the Services section moves the findings onto whichever
rows take the vacated slots:

| Slot | Before | | After | |
| --- | --- | --- | --- | --- |
| 1 | Monitoring Log | | Local API | |
| 2 | Integrations | | iCloud Sync | |
| 3 | Local API | FAIL | Monitoring Settings | FAIL |
| 4 | iCloud Sync | FAIL | Monitoring Log | FAIL |
| 5 | Monitoring Settings | FAIL | Integrations | FAIL |
| 6 | Scheduled Reports | contrast | Scheduled Reports | contrast |

Every one is an identical `NavigationLink("Title") { … }` and the app sets no
font on any of them. Measured frames at default size in a 912pt window:

| Row | y | Hittable |
| --- | --- | --- |
| Monitoring Log | 590–642 | yes |
| Integrations | 642–694 | yes |
| Local API | 694–746 | yes |
| iCloud Sync | 746–798 | yes |
| Monitoring Settings | 798–850 | yes |
| Scheduled Reports | 850–902 | **no** |

The translucent tab bar starts around y 829. The three reporting slots are the
156pt directly above it; the row fully behind it reports `contrast` instead. As
the audit sweeps content size categories the rows march down into the bar — at
`XXXL`, Monitoring Settings is at y 885 and no longer hittable, Scheduled
Reports is gone from the tree — so the measurement degrades part-way through
the sweep, which is what "partially unsupported" reports.

That is the same root cause already carved out for `.contrast`: rows under the
translucent tab bar. It surfaces in a second audit category.

## The change

`noiseReason` classifies dynamicType findings on the Settings root's row titles
(`settingsDestinationRows`), with the reorder table recorded inline as the
evidence. Scoped to that category and those titles, so a regression on anything
else on that screen still fails.

Nothing changed in the UI. List content scrolling under a translucent tab bar is
how iOS is meant to look; inset-ing the list to satisfy a measurement artifact
would be the wrong trade.

The same findings on the report-only Settings destinations are left reported —
those screens do not gate, and a suppression wide enough to cover arbitrary
`Form` rows would hide real regressions.

Verified: `./Scripts/audit-a11y.sh` passes on both tiers with no enforced
failures; the three are now logged with their reason. 377/377 unit tests.

Ref #21

Layout: unified · split

Docs/ACCESSIBILITY.txt +77 −45
@@ -124,7 +124,9 @@ Three deliberate carve-outs, each with its evidence:
124124 are rows scrolled under the translucent tab bar; their attribution flips
125125 between a row name and nil run-to-run, so no suppression is narrow enough to
126126 keep CI stable. The centralised palette in `Shared/Colors.xcassets` is the
127 actual guard against contrast regressions.
127 actual guard against contrast regressions. The same tab bar degrades
128 `dynamicType` on the rows immediately above it, which is a separate carve-out
129 — see "`dynamicType` findings land on a position, not on a row".
1281302. **The seeded tests run `reportOnly`.** Bisecting the row/badge accessibility
129131 modifiers showed the audit degrades on `children: .ignore` content — the
130132 *correct* VoiceOver treatment for dense rows — emitting unattributed
@@ -249,57 +251,87 @@ The same clipping is still reported on Display ("Compact", "Default",
249251"System") and iCloud Sync ("Merge"), which are the same construct on screens
250252outside this pass.
251253
252## The remaining `dynamicType` findings on Form rows are unexplained
254## `dynamicType` findings land on a position, not on a row
253255
254Every `Picker`, `Toggle` and `LabeledContent` label on these two screens
255reports `dynamicType` "font sizes are partially unsupported", and the picker
256fix above does not change that. Eight on Monitoring Settings, five named on
257History & Network, the same names on both runtimes.
256The remaining `dynamicType` findings — eight on Monitoring Settings, five named
257on History & Network, three on the Settings root — report "font sizes are
258partially unsupported" against rows the app sets no font on. They are
259reproducible: identical on both runtimes and across repeat runs. The picker fix
260above does not touch them.
258261
259They are reproducible — identical on the floor and current tiers, and
260identical across repeat runs — but nothing was found that distinguishes a row
261that reports from one that does not:
262**They follow the slot, not the row.** Reordering the Settings root's Services
263section moves the findings onto whichever rows take the vacated positions:
262264
263- **The same constructs report nothing.** `Text`, `Text` with the density
264 caption font, `Toggle` and `LabeledContent` inserted as probe rows into the
265 same `Form` all audit clean.
266- **Inserting rows moves the findings.** With five probe rows above them,
267 "Adaptive Monitoring" began reporting and "Enable Background Monitoring"
268 stopped, and "Background Refresh" and "Notification Access" switched from
269 `dynamicType` to `contrast`. An element's font scalability does not change
270 because rows were inserted above it, so whatever the check measures depends
271 on where the row sits, not on the row.
272- **The rows render correctly.** Captured at `XXL` and `AccessibilityXXXL`:
273 every named label scales, wraps and reads in full. Nothing is truncated and
274 nothing stops growing.
275
276So the finding does not point at a defect in the label it names, and no fix
277follows from it. They stay reported rather than suppressed: a `noiseReason`
278rule broad enough to cover them would also hide a real regression on any Form
279row. `dynamicType` is not enforced on these screens.
280
281## The Settings root fails the enforced audit on the current runtime
265| Slot | Before | | After | |
266| --- | --- | --- | --- | --- |
267| 1 | Monitoring Log | | Local API | |
268| 2 | Integrations | | iCloud Sync | |
269| 3 | Local API | FAIL | Monitoring Settings | FAIL |
270| 4 | iCloud Sync | FAIL | Monitoring Log | FAIL |
271| 5 | Monitoring Settings | FAIL | Integrations | FAIL |
272| 6 | Scheduled Reports | contrast | Scheduled Reports | contrast |
282273
283Found while measuring the above, and **not caused by it** — reproduced with the
284change stashed, on `main` at `02a3463`:
274Every one of those rows is an identical `NavigationLink("Title") { … }`. The
275only thing that changed is which title sits in slots 3–5.
285276
286```
287settings: 7 finding(s)
288 • [FAIL][dynamicType] ... — "Local API"
289 • [FAIL][dynamicType] ... — "Monitoring Settings"
290 • [FAIL][dynamicType] ... — "iCloud Sync"
291```
277**The slots are the band above the tab bar.** Measured frames at default size
278in a 912pt window:
292279
293`testSettingsScreen` is an enforced test, and this fails it on iOS 27.0. The
294floor tier passes. The pre-push hook runs the floor tier only and there is no
295CI, so nothing has been looking at the current tier since the hook was wired
296up.
280| Row | y | Hittable |
281| --- | --- | --- |
282| Monitoring Log | 590–642 | yes |
283| Integrations | 642–694 | yes |
284| Local API | 694–746 | yes |
285| iCloud Sync | 746–798 | yes |
286| Monitoring Settings | 798–850 | yes |
287| Scheduled Reports | 850–902 | **no** |
288
289The translucent tab bar starts around y 829. The three reporting slots are the
290156pt directly above it; the row that sits fully behind it reports `contrast`
291instead. As the audit sweeps content size categories the rows march downward —
292at `XXXL`, Monitoring Settings is at y 885 and no longer hittable and
293Scheduled Reports is gone from the tree entirely — so the rows in that band are
294the ones whose measurement degrades part-way through the sweep. Hence
295"partially".
296
297This is the same root cause already carved out for `.contrast`: rows under the
298translucent tab bar. It simply surfaces in a second audit category.
299
300Two earlier observations fit this and no other explanation:
297301
298The three are the same unexplained finding as above: all twelve rows in the
299Settings root are an identical `NavigationLink("Title") { … }`, the three named
300are consecutive middle rows, and the set is the same on repeat runs. It needs a
301decision — suppress, or widen the hook to both tiers and accept a red gate —
302rather than a quiet carve-out.
302- **The same constructs report nothing.** `Text`, `Text` with the density
303 caption font, `Toggle` and `LabeledContent` inserted as probe rows into the
304 Monitoring Settings `Form` all audit clean — they sat near the top.
305- **Inserting rows moved the findings.** With five probe rows above them,
306 "Adaptive Monitoring" began reporting and "Enable Background Monitoring"
307 stopped, and "Background Refresh" and "Notification Access" switched from
308 `dynamicType` to `contrast` — pushed from the band into the bar.
309- **The rows render correctly.** Captured at `XXL` and `AccessibilityXXXL`,
310 every named label scales, wraps and reads in full.
311
312### What was done about it
313
314The Settings root is the only *enforced* screen long enough to reach the band,
315so it was the only one failing — `testSettingsScreen`, on iOS 27.0, with three
316`[FAIL][dynamicType]` findings. Reproduced with the picker change stashed on
317`main` at `02a3463`, so it predated that work. The floor tier passes, the
318pre-push hook runs the floor tier only, and there is no CI, which is why
319nothing had been looking at it.
320
321`noiseReason` now classifies dynamicType findings on the Settings root's row
322titles (`settingsDestinationRows`), with the reorder table recorded inline as
323the evidence. It is scoped to that category and those titles, so a regression on
324anything else on that screen still fails.
325
326Not done, deliberately: nothing was changed in the UI. List content scrolling
327under a translucent tab bar is how iOS is supposed to look, and inset-ing the
328list to stop it would be changing correct layout to satisfy a measurement
329artifact.
330
331The equivalent findings on the report-only Settings destinations are the same
332artifact and stay reported — those screens do not gate, so there is nothing to
333unblock, and a suppression wide enough to cover arbitrary `Form` rows would
334hide real regressions.
303335
304336## Long navigation titles clip
305337
DomainDigUITests/AccessibilityAuditHarness.swift +41
@@ -236,9 +236,50 @@ enum AccessibilityAuditHarness {
236236 return "iOS-rendered Settings section header, app sets no font (27.0-only)"
237237 }
238238
239 // The Settings root's own rows, where the finding is a measurement
240 // artifact of the audit's size sweep rather than anything about the
241 // row. Proven by reordering the Services section: the findings stayed
242 // on the same three slots and followed their new occupants.
243 //
244 // slot | before | after
245 // -----+---------------------+--------------------
246 // 1 | Monitoring Log | Local API
247 // 2 | Integrations | iCloud Sync
248 // 3 | Local API * | Monitoring Settings *
249 // 4 | iCloud Sync * | Monitoring Log *
250 // 5 | Monitoring Settings*| Integrations *
251 // 6 | Scheduled Reports | Scheduled Reports (contrast)
252 //
253 // Those slots are y 694–850 in a 912pt window: the band directly above
254 // the translucent tab bar, which begins around y 829. The row that
255 // sits fully under the bar reports `contrast` instead — the same
256 // long-standing artifact already carved out for that category, in a
257 // second one. Every row is an identical `NavigationLink("Title")` and
258 // the app sets no font on any of them.
259 //
260 // Scoped to dynamicType on the exact row titles, so a real regression
261 // on anything else on that screen still fails. The equivalent findings
262 // on the report-only Settings destinations are the same artifact and
263 // are left reported; see Docs/ACCESSIBILITY.txt.
264 if issue.auditType.contains(.dynamicType),
265 let label = issue.element?.label,
266 settingsDestinationRows.contains(label) {
267 return "Settings root row in the band above the tab bar, position-dependent"
268 }
269
239270 return nil
240271 }
241272
273 /// The Settings root's `NavigationLink` titles. Used to scope the
274 /// position-dependent dynamicType carve-out above to that one screen.
275 private static let settingsDestinationRows: Set<String> = [
276 "Display", "History & Network",
277 "Monitoring Log", "Integrations", "Local API", "iCloud Sync",
278 "Monitoring Settings", "Scheduled Reports",
279 "Import & Export", "Data Management",
280 "App Info"
281 ]
282
242283 /// The Settings screen's `Section(_:)` header titles. UIKit renders these;
243284 /// the app passes only a string literal. Used to scope the section-header
244285 /// dynamicType carve-out narrowly (see `noiseReason`).