Skip to content

fix(ios): keep the zh-Hans alert vocabulary check honest about OS versions - #5177

Merged
thymikee merged 1 commit into
mainfrom
fix/zh-hans-alert-vocabulary-os-pairs
Nov 28, 2026
Merged

thymikee merged 1 commit into
mainfrom
fix/zh-hans-alert-vocabulary-os-pairs

Conversation

@thymikee

@thymikee thymikee commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Summary

testDeviceVocabularyRowsArePairsTheOSShipsForZhHans required every built-in device row to be a pair the lane's own simulator runtime ships. zh_CN words the App Tracking Transparency decline two ways and one build ships one of them, so it failed 要求App不追踪 on the pinned iOS 26.2 nightly runtime — four consecutive main runs. Its exemption list was checked only against the table itself, so the check could not say which builds were known. Closes #5117. Four files; no vocabulary row changes.

Before / after

base, nightly run 46108117499, iPhone 17 Pro on iOS 26.2 23C54:
  RunnerTests+AlertLabelVocabularyTests.swift:130: error: XCTAssertTrue failed -
  Ask App Not to Track → 要求App不追踪 is not a pair the OS ships in zh-Hans
head, nightly run 46143098360, same runtime, conclusion success:
  testDeviceVocabularyRowsArePairsTheOSShipsForZhHans passed
  testChineseDeviceVocabularyResolvesTheSystemPermissionPrompts passed
  Executed 778 tests, 0 failures

Validation

head dc0e8bfff86182dde521a5845c7b246086a4e3c6  base e52cd292f50fcbef8df48b782d4da9030b6e785b
pnpm check:affected --run --head dc0e8bfff8              passed, exactCommit=true
xcodebuild test-without-building (iPhone sim iOS 27.0)   7 passed, 0 failed
  same two tests at the base SHA                         passed
pnpm check:xctest-selection                             788 methods, 0 reachable by no lane
detection, disposable worktree, same command:
  baseline                                               4 passed
  drop either observed row / drift 好→好的 / plant 要求App不追中   1 failed, 3 passed

dc0e8bfff8 differs from the SHA that run above ran at by comment and doc text only: same vocabulary source blob, same test logic.

Per wording: 要求App不跟踪 is the iOS 18.1 iPhone 12 Pro Max alert get label, preserved; 要求App不追踪 is TCC REQUEST_ACCESS_DENY_kTCCServiceUserTracking in the iOS 27.0 24A5423a and 27.1 24A94401 images. The 26.2 lane's own output proves it ships no 追踪 pair, so no 26.2 string is claimed; the 2026-11-24 note's "iOS 26.5–27.x" range is corrected. Recognition of both wordings moves to the Chinese prompt test, which the nightly lane runs.

Obligations and risks: swift-runner-ios, swift-runner-macos and replay-macos are GitHub-authoritative, skipped locally. No iOS 26.2 image existed locally, so that lane is read by the nightly, dispatched at this head as run 46145732295. A full nightly on main is post-merge acceptance, not claimed. No device was allocated. Independence gap: the delegated self-review was cancelled, so the diff was reviewed once, by the author, cold.

🤖 Assisted by Claude (Anthropic) — Apex, in OpenCode/T3 Code.

@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 6.68 MB 6.68 MB -18 B
Package (unpacked) 6.68 MB 6.68 MB -18 B
Package (download) 2.04 MB 2.04 MB +38 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 21.2 ms 20.4 ms -0.8 ms
CLI --help 46.5 ms 44.3 ms -2.2 ms

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 4 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

@apex-sentinel-staging

This comment has been minimized.

…sions

`testDeviceVocabularyRowsArePairsTheOSShipsForZhHans` required every built-in row to be a
pair the lane's own simulator runtime ships. zh_CN words the App Tracking Transparency
decline two ways and one build ships one of them, so the check failed 要求App不追踪 on the
pinned iOS 26.2 nightly runtime across four main runs. The exemption carried the other
wording in a list the check only tested for presence in the table it reads, so the check
could not say which builds were known at all.

The lane's own strings still decide every other row, on a read asserted non-empty. Both
observed wordings are now listed as observed, and recognition of each is pinned where it
belongs: `testChineseDeviceVocabularyResolvesTheSystemPermissionPrompts` resolves the
tracking prompt through the device vocabulary for both wordings, and its guard compiles it
on the host and every simulator lane, so a dropped row fails there rather than hiding behind
the exemption.

Recorded the source of each wording: 要求App不跟踪 is the iOS 18.1 device run's alert label,
and 要求App不追踪 is TCC's `REQUEST_ACCESS_DENY_kTCCServiceUserTracking` in the iOS 27.0 and
27.1 runtime images. Nothing here has read iOS 26.2's strings, so the evidence names only
that that build ships no 追踪 pair, and corrects the wider "iOS 26.5-27.x" range the earlier
device note claimed.

Refs #5117

Co-Authored-By: Claude <noreply@anthropic.com>
@thymikee
thymikee force-pushed the fix/zh-hans-alert-vocabulary-os-pairs branch from 06b550a to dc0e8bf Compare November 28, 2026 12:39
@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of dc0e8bf

Since the review of 06b550a: 1 new · 0 still open · 0 no longer raised

1 finding(s): 1 minor.

🟡 Minor (1)

Where Finding
apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/UnitTests/RunnerTests+AlertLabelVocabularyTests.swift:134 🆕 zh-Hans check no longer proves each exempted wording is a row the table carries

Reviewed with this repository's own Sentinel configuration (411b2a746e60).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apex Sentinel: 1 new finding on dc0e8bf. The verdict and the full list are in the summary comment.

@thymikee

Copy link
Copy Markdown
Member Author

This PR is ready at dc0e8bf, with no code changes required.

Not blocking: these notes can be taken or left: say that the macOS host lane proves both wordings on each ready PR that changes the runner, while the nightly also runs them on iOS once a day (it does not run on every runner change); state that only the 27.0 and 27.1 image reads are recorded for the “26.5–27.x” range and no 26.5 read is attested, and keep the 26.2 result as a separate fact; as a follow-up, require the runtime to have rows with English “Ask App Not to Track” and each of their localized values to be in observedWordings (with the value in the failure message), because the skipped rows currently let a third wording pass on any build, including the unread pinned iOS 26.2 one; trim the doc comment to the constraint (two shipped wordings, both exempt and held by the prompt test) and the evidence doc path, without the run narrative or the “each OS build ships one” generalization from three observed builds; and label nightly run 46143098360 in “Before / after” with 06b550a, which it executed, or cite head run 46145732295 once it finishes.

None of the earlier threads still applies, so they can be resolved: selector and draft gating is now stated in the doc (the new nightly sentence there is covered above); the SpringBoard row is now named among the seven checked rows; exempt row deletion is harmless, because the prompt test still fails on it in both the host lane and the nightly, and a stale exemption matches only that exact pair.

CI is green. The only non-passing check is a cancelled Body rules run (46145721481); later runs of that check succeeded, and this diff does not touch that gate.

Not verified here: no Swift test or gate was run, row deletion and planted-row behavior were assessed from the code only, and the author's local runs and mutations were not repeated. Not verified here: the iPhone job of the manually dispatched head nightly 46145732295 was still in progress (its iPad job passed), and the zh-Hans test was seen passing on iOS 26.2 only at 06b550a, whose test code equals this head.

Nothing else is needed from review before merge. Merging closes #5117, but its “a full XCTest Nightly passes on main” item can only be seen afterwards, so please check the first scheduled main nightly.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 28, 2026
@thymikee
thymikee merged commit e96b9df into main Nov 28, 2026
26 of 27 checks passed
@thymikee
thymikee deleted the fix/zh-hans-alert-vocabulary-os-pairs branch November 28, 2026 13:19
thymikee added a commit that referenced this pull request Nov 28, 2026
* origin/main:
  fix(cli): judge install-from-source lease admission by its daemon command (#5169)
  ci: report sizes for affected plugins (#5176)
  fix(ios): keep the zh-Hans alert vocabulary check honest about OS versions (#5177)
  Consolidate Apple tap and replacement result construction (#5161)
  fix(daemon): retry provider lease record retirement (#5174)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XCTest Nightly: zh-Hans tracking prompt vocabulary assertion fails on the iPhone runner

1 participant