appstore-precheck 1.18.0 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +256 -0
  2. package/README.md +108 -39
  3. package/bin/cli.js +8 -0
  4. package/package.json +2 -2
  5. package/skills/appstore-precheck/SKILL.md +99 -157
  6. package/skills/appstore-precheck/guidelines-baseline.json +285 -36
  7. package/skills/appstore-precheck/guidelines-fingerprints.json +319 -93
  8. package/skills/appstore-precheck/references/finding-commentary.md +93 -0
  9. package/skills/appstore-precheck/references/methodology.md +81 -26
  10. package/skills/appstore-precheck/references/optional-review.md +56 -0
  11. package/skills/appstore-precheck/references/pierre-deep-review.md +323 -44
  12. package/skills/appstore-precheck/references/review-catalog.json +740 -0
  13. package/skills/appstore-precheck/references/screenshot-vision-review.md +8 -8
  14. package/skills/appstore-precheck/references/simulator-dynamic-review.md +398 -54
  15. package/skills/appstore-precheck/references/typesafe-example.json +239 -0
  16. package/skills/appstore-precheck/references/typesafe.md +216 -0
  17. package/skills/appstore-precheck/scripts/app-discover.sh +138 -0
  18. package/skills/appstore-precheck/scripts/artifact-review.sh +10 -0
  19. package/skills/appstore-precheck/scripts/augment-json.py +29 -0
  20. package/skills/appstore-precheck/scripts/build-run.sh +5 -0
  21. package/skills/appstore-precheck/scripts/coverage-sections.sh +6 -0
  22. package/skills/appstore-precheck/scripts/dynamic-run.sh +400 -0
  23. package/skills/appstore-precheck/scripts/dynamic.sh +329 -0
  24. package/skills/appstore-precheck/scripts/evidence.sh +49 -15
  25. package/skills/appstore-precheck/scripts/findings.sh +76 -26
  26. package/skills/appstore-precheck/scripts/framework-detect.sh +101 -0
  27. package/skills/appstore-precheck/scripts/guideline-cite.sh +4 -1
  28. package/skills/appstore-precheck/scripts/lib/artifact-review.py +518 -0
  29. package/skills/appstore-precheck/scripts/lib/asc-client.py +293 -0
  30. package/skills/appstore-precheck/scripts/lib/build-evidence.py +50 -0
  31. package/skills/appstore-precheck/scripts/lib/build-exec.py +50 -0
  32. package/skills/appstore-precheck/scripts/lib/build-plan.py +106 -0
  33. package/skills/appstore-precheck/scripts/lib/build-plan.sh +15 -0
  34. package/skills/appstore-precheck/scripts/lib/build-run.py +177 -0
  35. package/skills/appstore-precheck/scripts/lib/coverage-run.sh +23 -0
  36. package/skills/appstore-precheck/scripts/lib/coverage-sections.py +244 -0
  37. package/skills/appstore-precheck/scripts/lib/dyn-bundle.sh +185 -0
  38. package/skills/appstore-precheck/scripts/lib/dyn-demo-login.py +111 -0
  39. package/skills/appstore-precheck/scripts/lib/dyn-device.sh +123 -0
  40. package/skills/appstore-precheck/scripts/lib/dyn-explore.py +312 -0
  41. package/skills/appstore-precheck/scripts/lib/dyn-geometry.sh +75 -0
  42. package/skills/appstore-precheck/scripts/lib/dyn-guideline-capture.py +301 -0
  43. package/skills/appstore-precheck/scripts/lib/dyn-guidelines.py +112 -0
  44. package/skills/appstore-precheck/scripts/lib/dyn-guidelines.sh +23 -0
  45. package/skills/appstore-precheck/scripts/lib/dyn-hosts.sh +134 -0
  46. package/skills/appstore-precheck/scripts/lib/dyn-process.py +75 -0
  47. package/skills/appstore-precheck/scripts/lib/dyn-quorum.sh +90 -0
  48. package/skills/appstore-precheck/scripts/lib/dyn-scrub.py +79 -0
  49. package/skills/appstore-precheck/scripts/lib/dyn-signals.sh +120 -0
  50. package/skills/appstore-precheck/scripts/lib/guideline-text.sh +23 -5
  51. package/skills/appstore-precheck/scripts/lib/metadata-review.py +369 -0
  52. package/skills/appstore-precheck/scripts/lib/optin-scan.sh +73 -0
  53. package/skills/appstore-precheck/scripts/lib/optional-records.py +60 -0
  54. package/skills/appstore-precheck/scripts/lib/png-uniform.py +115 -0
  55. package/skills/appstore-precheck/scripts/lib/runtime-blocking.py +26 -0
  56. package/skills/appstore-precheck/scripts/lib/safe_write.py +61 -0
  57. package/skills/appstore-precheck/scripts/lib/scan-guidelines.sh +199 -0
  58. package/skills/appstore-precheck/scripts/lib/static-guidelines.py +341 -0
  59. package/skills/appstore-precheck/scripts/lib/static-reader.py +39 -0
  60. package/skills/appstore-precheck/scripts/metadata-review.sh +4 -0
  61. package/skills/appstore-precheck/scripts/opt-in-review.py +160 -0
  62. package/skills/appstore-precheck/scripts/runtime-review.sh +5 -0
  63. package/skills/appstore-precheck/scripts/scan.sh +132 -21
  64. package/skills/appstore-precheck/scripts/semantic/__init__.py +1 -0
  65. package/skills/appstore-precheck/scripts/semantic/client.py +95 -0
  66. package/skills/appstore-precheck/scripts/semantic/collect.py +165 -0
  67. package/skills/appstore-precheck/scripts/semantic/engine.py +320 -0
  68. package/skills/appstore-precheck/scripts/semantic/questions.py +167 -0
  69. package/skills/appstore-precheck/scripts/semantic/review_v4.py +81 -0
  70. package/skills/appstore-precheck/scripts/semantic-review.py +61 -0
@@ -1,6 +1,6 @@
1
1
  # Screenshot vision review (agent-mode, non-blocking)
2
2
 
3
- Deepens Pierre deep-review check #8 (2.3.5) into a dedicated, structured screenshot review.
3
+ Deepens Pierre deep-review check #8 (2.3.3) into a dedicated, structured screenshot review.
4
4
  This is the **vision layer** of the Review Simulator: the host model reads the actual screenshot
5
5
  images and cross-checks their content against the metadata and the shipped app.
6
6
 
@@ -18,9 +18,9 @@ deep-review.
18
18
  - Evidence-based: cite the screenshot **filename** (and locale) for every finding. If you cannot
19
19
  read an image, say so — do not invent findings.
20
20
  - Read at least one screenshot per primary locale; when several are present, scan them all.
21
- - All five checks, every run: report each as `REVIEW-PASS:` or `REVIEW-FINDING: … WARN`.
21
+ - All five checks, every run: report a supported `REVIEW-PASS:` or `REVIEW-FINDING: … WARN`, or use the missing/unsupported/not-run evidence statuses from the Pierre reference.
22
22
  - If there are no in-repo screenshots, report each check as
23
- `REVIEW-PASS: <guideline> — not applicable (no in-repo screenshots; managed in App Store Connect)`.
23
+ `REVIEW-NEEDS-REVIEW: <guideline> — ASC screenshot evidence unavailable`.
24
24
  - Severity is always WARN (advisory). Cautious language ("may trigger review questions").
25
25
  - Write Pierre's 2–3 sentence explanations in the user's conversation language.
26
26
 
@@ -30,16 +30,16 @@ deep-review.
30
30
  |---|-----------|----------|
31
31
  | S1 | 2.3.3 / 2.3.7 | Placeholder / dev-debug / empty-state content: Lorem ipsum, debug overlays or logs, visible TODO/FIXME, empty lists or skeleton loaders shown as content, simulator status bar with placeholder carrier/time. |
32
32
  | S2 | 2.3.3 | Text overflow / truncation / clipping: clipped or overlapping labels, cut-off buttons, text running off-screen. |
33
- | S3 | 2.3.5 | Wrong device frame / aspect: an iPad screenshot in an iPhone slot (or vice-versa), letterboxing, obviously stretched/squished aspect. |
34
- | S4 | 2.3.3 / 2.3.10 | Misleading marketing: 2.3.3 "show the app in use" — the shot is a splash/title/logo/pure marketing art, not actual app UI; 2.3.10 — a feature is depicted that the app does not ship. |
35
- | S5 | 2.3.5 | Metadata ↔ screenshot claim mismatch: visible UI text/features contradict the description, keywords, or promo text. |
33
+ | S3 | 2.3.3 | Wrong device frame / aspect: an iPad screenshot in an iPhone slot (or vice-versa), letterboxing, obviously stretched/squished aspect. |
34
+ | S4 | 2.3.3 / 2.3.1(a) | Misleading marketing: 2.3.3 "show the app in use" — the shot is a splash/title/logo/pure marketing art, not actual app UI; 2.3.1(a) — a feature is depicted that the app does not ship. |
35
+ | S5 | 2.3 / 2.3.1(a) | Metadata ↔ screenshot claim mismatch: visible UI text/features contradict the description, keywords, or promo text. |
36
36
 
37
37
  ## Per-check procedure
38
38
 
39
39
  ### S1 — Placeholder / dev-debug / empty-state
40
40
  1. Open each screenshot; read visible text and UI state.
41
41
  2. Flag Lorem ipsum, debug HUDs, log text, "TODO"/"FIXME", empty/skeleton content presented as real, or a simulator status bar with placeholder carrier/time.
42
- 3. Cite the filename. Not applicable if no screenshots.
42
+ 3. Cite the filename. Missing screenshots are REVIEW-NEEDS-REVIEW unless an ASC inventory proves non-applicability.
43
43
 
44
44
  ### S2 — Text overflow / truncation
45
45
  1. Inspect labels, buttons, and headings for clipping, overlap, or off-screen text.
@@ -51,7 +51,7 @@ deep-review.
51
51
 
52
52
  ### S4 — Misleading marketing
53
53
  1. Determine whether each screenshot shows the app actually in use (real UI) vs pure title/splash/logo art.
54
- 2. Flag shots that are marketing art rather than the app in use (2.3.3), or that depict a feature absent from the build (2.3.10).
54
+ 2. Flag shots that are marketing art rather than the app in use (2.3.3), or that depict a feature absent from the build (2.3.1(a)).
55
55
 
56
56
  ### S5 — Metadata ↔ screenshot mismatch
57
57
  1. Read the visible UI text/features and compare to the description, keywords, and promo text.
@@ -3,9 +3,11 @@
3
3
  The fourth, opt-in tier: a **local dynamic** review that runs the app on a simulator and observes
4
4
  real behavior — the class of checks a static scan cannot make (does it launch without crashing, does
5
5
  the paywall actually render, does a permission prompt match its purpose string, does a demo login
6
- work, does the live UI match the marketing screenshots). It is the free/local alternative to a paid
7
- cloud device farm, built from `xcrun simctl` + Maestro MCP tools (`mcp__maestro__*`) already
8
- available on a Mac with Xcode.
6
+ work, does the live UI match the marketing screenshots, does the layout survive dark mode and the
7
+ largest Dynamic Type size, what did the *installed* bundle actually ship, which hosts did it talk
8
+ to). It is the free/local alternative to a paid cloud device farm, built from `xcrun simctl` +
9
+ Maestro (the MCP tools `mcp__maestro__*` for the agent-driven checks, the `maestro` CLI for the
10
+ runner's hierarchy reads) already available on a Mac with Xcode.
9
11
 
10
12
  **Identity:** runs ONLY in agent-skill mode, ONLY when the user explicitly asks for it and supplies a
11
13
  built app (or a booted simulator UDID + bundle id). It is NOT part of the offline CLI / npx /
@@ -13,86 +15,428 @@ GitHub-Action scan, and it never runs by default. Requires macOS + Xcode + a sim
13
15
  cannot run in this project's `ubuntu-latest` CI and is permanently local-only.
14
16
 
15
17
  **This tier never changes the verdict.** GREEN/YELLOW/RED comes only from the static scan counts
16
- (Phases 0–2). This tier emits advisory `DYNAMIC-PASS:` / `DYNAMIC-FINDING:` lines, like Pierre
17
- deep-review's `REVIEW-*` lines.
18
+ (Phases 0–2). This tier emits advisory `DYNAMIC-PASS:` / `DYNAMIC-FINDING:` / `DYNAMIC-SKIP:` lines,
19
+ like Pierre deep-review's `REVIEW-*` lines.
18
20
 
19
- **Read-only:** read-only w.r.t. the user's project — the tier installs/launches onto a **disposable
20
- simulator** only and never modifies the user's repo. Prefer a dedicated/disposable simulator device;
21
- do not disturb the user's everyday simulator state; leave teardown to the user unless the tier
22
- created the device itself.
21
+ **No-write, but it executes your application code.** The tier never modifies the user's repo,
22
+ and it **creates its own throwaway device** (`xcrun simctl create`, a unique name), erases it before
23
+ each repeat, deletes it after, and **never touches an existing device**: the user's everyday
24
+ simulators, their data and their installed apps are never booted, erased or written to by this tier.
25
+ But unlike Phases 0–5 it is not read-only: it *runs the app you built*, and running code has effects
26
+ the static scan never has. Say so before the first launch:
27
+ - **Network:** the app talks to whatever backends it is configured for. A Debug build may point
28
+ at staging; a Release build may hit production and leave real traffic, analytics events or
29
+ crash reports behind. The tier does not intercept or block network access (it *observes* hosts,
30
+ D11).
31
+ - **Credentials:** D5 types the review demo credentials the user declared into the running app.
32
+ Those go wherever the app sends them. Never type credentials the user did not supply for this
33
+ purpose, and never paste secrets from the repo or the environment.
34
+ - **Screenshots** are written to a temp directory outside the repo and named in the transcript.
35
+ They can contain user data the app renders (an account email, a demo profile); the agent
36
+ shows them to the user and never uploads them anywhere. Mask or skip a screenshot that shows
37
+ a secret the user did not intend to expose.
38
+
39
+ **It never builds.** No `xcodebuild`, `flutter build`, `gradle` — ever. The `.app` must already
40
+ exist. [`scripts/app-discover.sh`](../scripts/app-discover.sh) lists the simulator apps the user
41
+ already built (DerivedData, `build/ios/iphonesimulator`), with their **build time**, their
42
+ **configuration read from the directory name** (`Debug-iphonesimulator` → `debug`,
43
+ `Release-iphonesimulator` → `release`, anything else → `unknown`) and their bundle id, and
44
+ recommends the newest. **Obtain the user's explicit confirmation of one candidate before installing
45
+ or launching anything.** If nothing is found, the report carries the `runtime-not-audited` gap
46
+ record and the discovery output prints the build command **for the user to run** — this tool will
47
+ not run it.
48
+
49
+ **Machine-readable:** every observation line carries a **rule id** (`[dyn-…]`, table below) so
50
+ [`scripts/dynamic.sh`](../scripts/dynamic.sh) can turn the transcript into the same JSONL records
51
+ the static scan writes (`evidence: runtime`, plus `runtime_target` and `build_config`) and
52
+ reconcile them with the static findings. A runtime observation of a **Debug or unknown build never
53
+ clears `needs build verification`** (simulator ≠ archive). See "Feeding the transcript to
54
+ dynamic.sh" at the end.
23
55
 
24
56
  **Not a guarantee:** a pre-submit local smoke signal — NOT a replacement for TestFlight, a crash
25
57
  reporter, or real-device QA.
26
58
 
27
59
  ## Rules
28
60
 
29
- - Advisory only: every check reports `DYNAMIC-PASS:` or `DYNAMIC-FINDING:` — never `FAIL`, never a
30
- verdict contribution.
31
- - Evidence-based: cite a screenshot filename + what was observed. If a check cannot be driven (no
32
- paywall in this app, a UI selector can't be found, no permissions declared), report
33
- `DYNAMIC-PASS: … — not applicable` or `DYNAMIC-FINDING: … could not verify` — never invent a
34
- failure.
35
- - All 6 checks, every run: report each as PASS / FINDING / not-applicable.
36
- - Boot a disposable simulator, launch the supplied app, and tear down cleanly.
61
+ - Advisory only: every check reports `DYNAMIC-PASS:`, `DYNAMIC-FINDING:` or `DYNAMIC-SKIP:` — never
62
+ `FAIL`, never a verdict contribution.
63
+ - Evidence-based: cite a screenshot filename + what was observed.
64
+ - **A check that could not be driven is a `DYNAMIC-SKIP`, never a PASS and never an invented
65
+ FINDING.** No paywall in this app, a UI selector that cannot be found, no permissions declared, an
66
+ install or launch that failed, **a Maestro driver timeout**: all `DYNAMIC-SKIP: <guideline> — <why>`.
67
+ "Not applicable" is also a SKIP (`DYNAMIC-SKIP: … — not applicable: <why>`), so the summary never
68
+ counts an unobserved behaviour as observed.
69
+ - **Determinism before findings.** The launch checks run **N=3 times**, each on a freshly erased
70
+ device; a `DYNAMIC-FINDING` for a crash needs **3/3**. Mixed evidence is not unanimous and stays SKIP with its counts; fewer than three repeats
71
+ or any unreadable repeat also stays SKIP. Blocking is off by default; explicit `--dynamic-blocking`
72
+ uses only the documented fresh unanimous launch/login allowlist.
73
+ - **One flow per Maestro invocation.** The iOS 26 driver misbehaves in batch mode (Maestro issues
74
+ #3254 / #3318): every `mcp__maestro__run` call carries exactly one flow; the runner reads the
75
+ hierarchy with one `maestro hierarchy` call at a time.
76
+ - **Labels live in `accessibilityText`.** In the Maestro hierarchy JSON the label a control exposes
77
+ is the `accessibilityText` attribute, not `text` — every matcher (Restore button, demo login
78
+ fields, geometry heuristics) reads it.
79
+ - Every check, every run: report each as PASS / FINDING / SKIP, each with its rule id.
80
+ - D0 runs first; if it fails, every D-check is reported as `DYNAMIC-SKIP` with the D0 reason.
81
+ - Create a throwaway simulator, install and launch the supplied app, and tear down (delete the
82
+ device you created) even when a check fails.
37
83
  - Write Pierre's 2–3 sentence explanations in the user's conversation language.
38
84
 
39
- ## The 6 checks
85
+ ## The checks (D0 setup + observations)
86
+
87
+ Two kinds. **Observation-based** checks need no UI selector and are produced by
88
+ [`scripts/dynamic-run.sh`](../scripts/dynamic-run.sh) (D0, D1, D2, D7–D11). **Selector-based**
89
+ checks need Maestro to find and tap controls and stay with the agent (D3, D3b, D4, D5, D6).
90
+
91
+ | # | rule id | Guideline | Kind | Dynamic question |
92
+ |---|---------|-----------|------|------------------|
93
+ | D0 | `dyn-install` | — | setup | Create a throwaway device, install the `.app`, resolve the bundle id, record the build configuration from the directory name. |
94
+ | D1 | `dyn-launch` | **2.1** | observation | Does the app launch and stay up? Four signals per repeat, N=3 repeats, FINDING only on 3/3; 2 PASS + 1 SKIP → SKIP. |
95
+ | D2 | `dyn-first-screen` | **2.1** | observation | Does it reach a real first screen (not a flat splash, blank, or dead process)? |
96
+ | D3 | `dyn-paywall-visible` | **3.1.2** | selector | If a paywall exists **and prices are visible**, does it render price + trial/auto-renew/terms on-screen? |
97
+ | D3b | `dyn-restore-tap` | **3.1.2** | selector | Does tapping *Restore Purchases* produce a non-inert response within 3 s? |
98
+ | D4 | `dyn-permission-prompt[:KEY]` | **5.1.1(ii)/(iii)** | selector (trigger) | For each purpose string, does the OS prompt appear at the right moment with the declared text? One line per key. |
99
+ | D5 | `dyn-demo-login` | **2.1** | selector | For a login-gated app, is there a guest/demo path, or do the declared demo credentials log in? |
100
+ | D6 | `dyn-screenshot-parity` | **2.3.5** | observation (human) | Do live screenshots of key screens match the submitted marketing screenshots? |
101
+ | D7 | `dyn-dark-mode` | **4.0** | observation | Under `simctl ui appearance dark`: any clipped, zero-size or overlapping labelled frame? |
102
+ | D8 | `dyn-dynamic-type` | **4.0** | observation | At `content_size accessibility-extra-extra-extra-large`: the same heuristics. |
103
+ | D9 | `dyn-ipad-layout` | **2.4.1** | observation (opt-in `--ipad`) | On an iPad simulator this run creates: the same heuristics; iPhone-only apps are `not applicable`. |
104
+ | D10 | `dyn-shipped-bundle[:KEY]` / `dyn-shipped-sdk` / `dyn-shipped-links` | **5.1.1 / 5.1.2 / 2.1 / 2.5.1** | observation (nothing executed) | The **installed** bundle: `Info.plist` purpose strings (one line per key) and drift vs the repo plist; `DTXcode` / `DTSDKName` (the toolchain that built *this* bundle); `otool -L` private-framework links. |
105
+ | D11 | `dyn-hosts-contacted` | **5.1.2** | observation | Hosts seen in CFNetwork diagnostics (opt-in `--pktap` adds DNS for every process) vs `NSPrivacyTrackingDomains`. |
106
+ | D12 | `dyn-cpu-idle` | **2.4.2** | observation | On a verified app PID, wait 20 idle seconds and sample CPU three times; median above 40% is an advisory finding. |
107
+ | D13 | `dyn-capture-indicator` | **2.5.14** | selector + geometry | After an explicit recording action, capture a new labelled app frame and an OS status indicator with screenshots; absence remains SKIP. |
108
+ | D14 | `dyn-musickit-auth` | **4.5.2** | selector + OS alert | After a music action, observe a SpringBoard media-library authorization alert; missing authorization evidence remains SKIP. |
109
+ | D15 | `dyn-miniapp-index` | **4.7.4** | selector | Observe a mini-app directory with entries, or an explicit directory-unavailable screen; partial exploration never proves absence. |
110
+ | D16 | `dyn-miniapp-rating-label` | **4.7.5** | selector + geometry | Inspect accessible age labels on fully visible mini-app entry cells; clipped or unreadable entries remain SKIP. |
111
+ | D17 | `dyn-location-timing` | **5.1.5** | selector + OS alert | Observe a verified OS location alert before any action, without judging the app’s purpose, or after an explicit location action. |
40
112
 
41
- | # | Guideline | Dynamic question |
42
- |---|-----------|------------------|
43
- | D1 | **2.1** | Does the app launch on a fresh simulator and stay foregrounded briefly without crashing / a crash alert? |
44
- | D2 | **2.1** | Does it reach a real first screen (not stuck on a splash, a blank screen, or an error alert)? |
45
- | D3 | **3.1.2** | If a paywall/subscription exists, does it render with price + trial/auto-renew/terms visible on-screen (not just present as strings)? |
46
- | D4 | **5.1.1(ii)/(iii)** | For each permission with an `Info.plist` purpose string, does the OS prompt appear at the right moment and match the declared string? |
47
- | D5 | **2.1** | For a login-gated app, is there a reachable guest/demo path, or do the declared review demo credentials actually log in? |
48
- | D6 | **2.3.5** | Do live screenshots of key screens match the submitted marketing screenshots (features shown match the running build)? |
113
+ When the tier is **not run** (the user supplied no `.app` and no UDID), Phase 5's "Not audited"
114
+ section lists the gap under its stable id **`runtime-not-audited`** — `dynamic.sh --not-run`
115
+ emits that SKIP record with the number of unobserved checks derived from its catalogue, and a
116
+ team can acknowledge it by id in `.precheck-ignore` (signing for a gap never closes it).
117
+
118
+ ### Framework awareness
119
+
120
+ [`scripts/framework-detect.sh`](../scripts/framework-detect.sh) decides `rn` / `flutter` / `kmp` /
121
+ `native` from file presence alone (`package.json` with a `react-native` dependency; `pubspec.yaml`
122
+ + `ios/Runner.xcodeproj`; a Gradle build or `.kt` sources + `iosApp/`). The static scan uses it to
123
+ publish the `framework-not-audited` gap record (its code-level greps read Swift/ObjC only, so they
124
+ under-detect on those toolkits). This tier uses it for two things:
125
+
126
+ | Framework | Launch precondition | Selector-based checks | Observation-based checks |
127
+ |---|---|---|---|
128
+ | native | — | agent-driven | run |
129
+ | rn | A Debug `.app` without an embedded `main.jsbundle` needs **Metro on port 8081**. If Metro is not listening, D1/D2 are `DYNAMIC-SKIP: 2.1 [dyn-launch] — Metro bundler not running …` — otherwise every RN app "crashes on launch" for a reason that is not the app's. | agent-driven | run |
130
+ | flutter, kmp (Compose Multiplatform) | — | **SKIPped up front**: `dyn-restore-tap`, `dyn-demo-login` and the trigger half of `dyn-permission-prompt` are `DYNAMIC-SKIP … no accessibility semantics exposed to Maestro` (the tree is empty or single-node on a healthy screen). D3 and D6 can still be judged from screenshots. | pre-SKIP | run — but a degenerate tree is never a failure signal on its own, and D7–D9 are SKIP when the tree is degenerate (judge the screenshot by eye) |
49
131
 
50
132
  ## Per-check procedure
51
133
 
52
- The Maestro MCP tools are: `mcp__maestro__list_devices` (pick a booted simulator's `device_id`),
53
- `mcp__maestro__run` (execute a declarative YAML flow — `launchApp`, `tapOn`, `assertVisible`, …),
134
+ The Maestro MCP tools are: `mcp__maestro__list_devices` (pick the device D0 created), `mcp__maestro__run`
135
+ (execute ONE declarative YAML flow — `launchApp`, `tapOn`, `assertVisible`, …),
54
136
  `mcp__maestro__inspect_screen` (view hierarchy), `mcp__maestro__take_screenshot`, and
55
- `mcp__maestro__cheat_sheet` (YAML command reference). Every local tool needs a `device_id` from
56
- `list_devices` first. `xcrun simctl` is the fallback when Maestro is unavailable.
57
-
58
- ### D1 — Launch without crash
59
- 1. `mcp__maestro__list_devices` for a booted disposable simulator (boot one with
60
- `xcrun simctl boot` if needed); then `mcp__maestro__run` a flow that declares the `appId` and
61
- starts with `launchApp` (fallback: `xcrun simctl launch`).
62
- 2. Observe for a short window; if the app process disappears or a crash alert shows, `DYNAMIC-FINDING`.
63
- 3. `mcp__maestro__take_screenshot` at launch as evidence.
64
-
65
- ### D2 — Core screen reachable
66
- 1. After launch, inspect the first real screen (`mcp__maestro__inspect_screen` /
67
- `mcp__maestro__take_screenshot`).
68
- 2. Flag if stuck on a splash, blank, or an error/"something went wrong" state.
69
-
70
- ### D3 — Paywall renders
137
+ `mcp__maestro__cheat_sheet` (YAML command reference). `xcrun simctl` is the fallback when Maestro is
138
+ unavailable.
139
+
140
+ ### D0 — Device + install (setup)
141
+
142
+ The `.app`-path branch is only driveable once the app is on a device; nothing else in this tier
143
+ installs it. `dynamic-run.sh` does all of this; the steps are listed so the agent can do the same by
144
+ hand with `xcrun simctl` when it drives the selector-based checks.
145
+
146
+ 1. Create a throwaway device and boot it:
147
+ `xcrun simctl create "precheck-<timestamp>-<pid>" <device-type> <runtime>` → note the UDID;
148
+ `xcrun simctl boot <udid>` then `xcrun simctl bootstatus <udid> -b`. Never reuse a UDID the tier
149
+ did not create. If the user supplied a booted UDID + bundle id instead of an `.app`, they own that
150
+ device: use it only for launching — never erase it, never `privacy reset` it, never delete it —
151
+ and skip the install (the repeats are then less deterministic, and the line says so).
152
+ 2. Make the device deterministic: `xcrun simctl status_bar <udid> override --time 9:41
153
+ --batteryLevel 100 --batteryState charged --wifiBars 3 --cellularBars 4`, then
154
+ `xcrun simctl privacy <udid> reset all`. (`simctl privacy` cannot touch camera, notifications,
155
+ Bluetooth, HealthKit or ATT; for ATT the only reset is uninstall + reinstall, which the erase
156
+ between repeats provides.)
157
+ 3. Read the bundle id from the built app, never guess it:
158
+ `plutil -extract CFBundleIdentifier raw -o - <path>.app/Info.plist`. An `.app` without an
159
+ `Info.plist` or without `CFBundleIdentifier` is not installable → `DYNAMIC-SKIP` (all checks).
160
+ 4. Install: `xcrun simctl install <udid> <path>.app`. A non-zero exit (wrong architecture, a
161
+ device build instead of a simulator build, a corrupt bundle) → `DYNAMIC-SKIP` for every
162
+ D-check, quoting the simctl error; do not fall through to D1.
163
+ 5. Record whether the `.app` came from a `Debug-iphonesimulator` or `Release-iphonesimulator`
164
+ directory in the D0 line itself (`dynamic.sh` cross-checks `--build-config` against it). A Debug
165
+ build observed on a simulator does not establish what the shipping archive does.
166
+ 6. Observers: start `xcrun simctl spawn <udid> log stream --style compact --predicate 'process ==
167
+ "<Executable>" …' > log.txt &` BEFORE each launch, and launch with
168
+ `SIMCTL_CHILD_CFNETWORK_DIAGNOSTICS=3 xcrun simctl launch --terminate-running-process <udid>
169
+ <bundle-id>` so the same log carries the hosts for D11. (`xcrun simctl io <udid> recordVideo`
170
+ is optional and off by default.)
171
+ 7. Between repeats: `xcrun simctl shutdown <udid>`, `xcrun simctl erase <udid>`, boot, step 2,
172
+ install again — a fresh erase every time, only on the device this run created.
173
+ 8. Teardown, always, at the end of the run: `xcrun simctl shutdown <udid>` then
174
+ `xcrun simctl delete <udid>` — only for the device this tier created.
175
+
176
+ ### D1 — Launch without crash (`dyn-launch`)
177
+
178
+ Launch health is a **conjunction of four signals**, not one, read after an observation window
179
+ (default 10 s) on every repeat. A FINDING needs a positive failure signal, and a signal that could
180
+ not be read is written into the line as such — never assumed healthy, never assumed failed.
181
+
182
+ - **process alive:** `kill -0` on the PID `simctl launch` printed (simulator apps are host
183
+ processes);
184
+ - **screenshot not uniform:** `xcrun simctl io <udid> screenshot` decoded by
185
+ [`lib/png-uniform.py`](../scripts/lib/png-uniform.py): a single flat colour calls for first-screen inspection, and cannot alone establish a crash;
186
+ - **no crash in the log stream:** no `SIGABRT` / `EXC_BAD_ACCESS` / `Terminating app` / `Fatal
187
+ error` line for the app in the window, and no new `<Executable>-*.ips` in
188
+ `~/Library/Logs/DiagnosticReports`;
189
+ - **accessibility tree ≥ N nodes:** `maestro --device <udid> hierarchy` (one call). **Degenerate
190
+ tree caveat:** Flutter and Compose Multiplatform apps return an empty or single-node tree on a
191
+ perfectly healthy screen, so a small tree on its own is **never** a FINDING; it only counts when
192
+ another signal also fails.
193
+
194
+ Per repeat: process gone or an app crash in the log stream establishes failure. A flat
195
+ screenshot alone is SKIP for launch and remains separate first-screen evidence in D2.
196
+ An empty crash log alone establishes nothing. Across repeats, at least three unanimous
197
+ failures are needed for FINDING and three unanimous passes for PASS; mixed or incomplete
198
+ observations are SKIP with their counts. Signals that could not be read are named explicitly.
199
+
200
+ ### D2 — Core screen reachable (`dyn-first-screen`)
201
+ Derived from the same repeats: a non-uniform screenshot with the process alive at the end of the
202
+ window is a real first screen; a flat frame or a dead process is not. Same quorum. The
203
+ degenerate-tree caveat applies: judge Flutter/Compose screens by the screenshot, not the tree.
204
+
205
+ ### D3 — Paywall renders (`dyn-paywall-visible`)
206
+
207
+ **Precondition, verified 2026-09-01:** a StoreKit configuration file is a *scheme Run-action*
208
+ setting applied by Xcode. `xcrun simctl launch` (and a Maestro `launchApp`) does not apply it, so
209
+ `Product.products(for:)` returns an empty array and a paywall with **no prices is the expected
210
+ default** for an app launched by this tier. An empty or price-less paywall is therefore never
211
+ evidence of a 3.1.2 problem here.
212
+
71
213
  1. If a paywall exists (per the static scan / app structure), navigate to it with a
72
214
  `mcp__maestro__run` flow (`tapOn` steps; check `mcp__maestro__cheat_sheet` for selector syntax).
73
- 2. Confirm price + trial/auto-renew/cancel terms are visibly rendered; screenshot. Not applicable if no paywall.
215
+ No paywall → `DYNAMIC-SKIP: 3.1.2 — not applicable: no paywall in this app`.
216
+ 2. Look for a rendered price (a currency amount) on the paywall screen.
217
+ - **No price visible** → `DYNAMIC-SKIP: 3.1.2 — StoreKit products are not loaded under simctl
218
+ launch; paywall prices cannot be observed on a local simulator. Launch the app from Xcode with
219
+ a StoreKit configuration selected in the scheme to observe them.` Never a FINDING.
220
+ - **Price visible** (the user launched from Xcode with a StoreKit configuration, or the app
221
+ loads prices from its own backend) → run the check: confirm price + trial/auto-renew/cancel
222
+ terms are visibly rendered; screenshot; `DYNAMIC-PASS` or `DYNAMIC-FINDING`.
223
+
224
+ ### D3b — Restore Purchases responds (`dyn-restore-tap`)
74
225
 
75
- ### D4 — Permission prompt vs purpose string
226
+ Static §10 can only see that a "Restore Purchases" string exists. This checks that the control
227
+ does something.
228
+
229
+ 1. On the paywall (or settings) screen, find the Restore control by **`accessibilityText`** in
230
+ the `mcp__maestro__inspect_screen` hierarchy — that is the field Maestro exposes the label in,
231
+ not `text`. No such control → `DYNAMIC-SKIP: 3.1.2 [dyn-restore-tap] — no Restore Purchases
232
+ control found`. On Flutter / KMP this is pre-SKIPped (no semantics).
233
+ 2. `tapOn` it and wait up to 3 s for a **non-inert response**: an alert, a spinner / progress
234
+ indicator, or any change in the accessibility tree or screenshot.
235
+ 3. A response → `DYNAMIC-PASS`. No visible reaction at all within 3 s → `DYNAMIC-FINDING` (a
236
+ dead Restore button is a 3.1.2 rejection). StoreKit products are not loaded under `simctl
237
+ launch`, so "restore found nothing" *with* an alert is still a PASS: the control works.
238
+
239
+ This is a **partial** test of §10 (`subscription-links-restore`), which also wants terms and
240
+ privacy links on the paywall — so a PASS here can downgrade a static FAIL to WARN but never
241
+ resolve it (see the reconciliation table in `dynamic.sh`).
242
+
243
+ ### D4 — Permission prompt vs purpose string (`dyn-permission-prompt:<KEY>`)
76
244
  1. For each `NS*UsageDescription` in `Info.plist`, trigger the feature that requests it.
77
- 2. Confirm the OS prompt appears at the right moment and its text matches the declared purpose string; screenshot.
245
+ 2. Confirm the OS prompt appears at the right moment and its text matches the declared purpose
246
+ string; screenshot. **One line per key**, with the key in the rule id
247
+ (`[dyn-permission-prompt:NSCameraUsageDescription]`): that is what lets a PASS resolve the
248
+ matching static §2 finding for that key. A permission whose trigger cannot be found →
249
+ `DYNAMIC-SKIP` for that key. A keyless line (`[dyn-permission-prompt]`) is treated as partial.
250
+ On Flutter / KMP the trigger half is pre-SKIPped; the OS prompt itself is native and visible in
251
+ a screenshot if the agent reaches the feature by coordinates.
78
252
 
79
- ### D5 — Demo / login path
253
+ ### D5 — Demo / login path (`dyn-demo-login`)
80
254
  1. For a login-gated app, look for a guest/demo entry, or enter the declared review demo credentials.
81
- 2. Confirm a reachable path to core features; `DYNAMIC-FINDING` if the only path is a wall with no working demo.
255
+ 2. Confirm a reachable path to core features; `DYNAMIC-FINDING` if the only path is a wall with no
256
+ working demo. Not login-gated → `DYNAMIC-SKIP: 2.1 — not applicable`.
82
257
 
83
- ### D6 — Live UI vs marketing screenshots
258
+ ### D6 — Live UI vs marketing screenshots (`dyn-screenshot-parity`)
84
259
  1. Capture live screenshots of key screens.
85
- 2. Compare to the submitted marketing screenshots; flag features shown in marketing but absent in the running build.
260
+ 2. Compare to the submitted marketing screenshots; flag features shown in marketing but absent in
261
+ the running build. No marketing screenshots in the repo → `DYNAMIC-SKIP`.
262
+
263
+ ### D7 / D8 / D9 — Dark mode, Dynamic Type, iPad geometry (`dyn-dark-mode`, `dyn-dynamic-type`, `dyn-ipad-layout`)
264
+
265
+ After the last healthy repeat, `dynamic-run.sh` switches `xcrun simctl ui <udid> appearance dark`
266
+ (D7), then `content_size accessibility-extra-extra-extra-large` (D8), takes a screenshot and one
267
+ hierarchy read each, and applies three heuristics
268
+ ([`lib/dyn-geometry.sh`](../scripts/lib/dyn-geometry.sh)) over the labelled nodes:
269
+
270
+ - **clipped** — a labelled frame that leaves the screen rectangle;
271
+ - **zero-size** — a labelled frame with an empty rectangle (text that cannot be seen);
272
+ - **overlap** — two labelled *leaf* frames overlapping by more than half of the smaller one.
273
+
274
+ Any hit → `DYNAMIC-FINDING: 4.0 [dyn-dynamic-type] — … 2 clipped, 1 zero-size, 0 overlapping
275
+ labelled frame(s) …` (judgment-call: a clipped frame is a hint, not a rejection); none →
276
+ `DYNAMIC-PASS`; a degenerate tree → `DYNAMIC-SKIP … judge the screenshot by eye`. Appearance and
277
+ text size are reset afterwards. D9 (`--ipad`) repeats the launch on an iPad simulator this run
278
+ creates (and deletes); an app whose `UIDeviceFamily` has no iPad entry is `not applicable`.
279
+
280
+ ### D10 — The installed bundle (`dyn-shipped-bundle[:KEY]`, `dyn-shipped-sdk`, `dyn-shipped-links`)
281
+
282
+ `xcrun simctl get_app_container <udid> <bundle-id> app` gives the installed `.app`. Reading it
283
+ executes nothing and establishes what the repository could only promise
284
+ ([`lib/dyn-bundle.sh`](../scripts/lib/dyn-bundle.sh)):
285
+
286
+ - one `DYNAMIC-PASS: 5.1.1 [dyn-shipped-bundle:<KEY>]` per `NS*UsageDescription` the installed
287
+ `Info.plist` declares (a **complete** per-key test of the static purpose-string claim), a
288
+ FINDING for an empty one, a FINDING for a key the repo plist has and the bundle lacks, and a
289
+ keyless drift summary (which aims at no static rule);
290
+ - `dyn-shipped-sdk`: `DTXcode` / `DTSDKName` — the toolchain that built *this* bundle, which is
291
+ what ITMS-90725 reads (complete for `xcode-sdk-requirement`);
292
+ - `dyn-shipped-links`: `otool -L` on the executable — a `/System/Library/PrivateFrameworks` link is
293
+ decisive, its absence is only partial (private selectors are not linkage).
294
+
295
+ The **build configuration comes from the `.app`'s parent directory name, never from the plist**;
296
+ on a Debug/unknown build every one of these can only confirm or downgrade, never resolve.
297
+
298
+ ### D11 — Hosts contacted (`dyn-hosts-contacted`)
299
+
300
+ Hosts are read from the CFNetwork diagnostics in the log stream across all repeats
301
+ ([`lib/dyn-hosts.sh`](../scripts/lib/dyn-hosts.sh)) and compared with `NSPrivacyTrackingDomains` in
302
+ the installed `PrivacyInfo.xcprivacy`: a host that matches a known ad / attribution vendor and is
303
+ not declared → `DYNAMIC-FINDING: 5.1.2`; all declared → PASS; no vendor host → PASS listing the
304
+ hosts; nothing seen → SKIP. **Limit:** Flutter's Dart `HttpClient` (and some Go / Rust stacks)
305
+ bypass CFNetwork and are invisible here; the SKIP says so. Opt-in `--pktap` runs `sudo tcpdump -i
306
+ pktap,en0 -k P` for the duration and adds DNS-derived hosts for every process — off by default
307
+ because it needs sudo. The vendor→domain catalogue mirrors the §16 tracking-SDK list and is on the
308
+ quarterly review in MAINTENANCE.md.
86
309
 
87
310
  ## Output format
88
311
 
312
+ Every line carries the rule id in brackets, right after the guideline:
313
+
89
314
  ```
90
- DYNAMIC-PASS: <guideline> — <one-line why it looks OK, with screenshot filename>
315
+ DYNAMIC-PASS: <guideline> [dyn-<check>] — <one-line why it looks OK, with screenshot filename>
91
316
  ```
92
317
  or
93
318
  ```
94
- DYNAMIC-FINDING: <guideline> — <one-line concrete issue, with screenshot filename>
319
+ DYNAMIC-FINDING: <guideline> [dyn-<check>] — <one-line concrete issue, with screenshot filename>
95
320
  Pierre: <2–3 sentences: why Apple cares, what you saw, what to fix or verify>
96
321
  ```
322
+ or
323
+ ```
324
+ DYNAMIC-SKIP: <guideline> [dyn-<check>] — <why this check could not be driven, or "not applicable: <why>">
325
+ ```
326
+
327
+ D0 uses the guideline slot for `setup`: `DYNAMIC-PASS: setup [dyn-install] — installed
328
+ <bundle id> from <Debug|Release>-iphonesimulator/<App>.app on <device> (created by this run …)`.
329
+ Only column-0 lines are observations; `Pierre:` lines, `# …` notes and any indented text are
330
+ commentary.
331
+
332
+ End with a summary table: count of `DYNAMIC-FINDING` vs `DYNAMIC-PASS` vs `DYNAMIC-SKIP` over every
333
+ check, plus the D0 line (device created, bundle id, Debug/Release directory, install result). A
334
+ SKIP is listed under "Not audited" in Phase 5, next to the static `SKIP:` lines.
335
+
336
+ ## Running it
337
+
338
+ ```bash
339
+ # 1. find a build the user already made (never builds); the user confirms ONE candidate
340
+ bash skills/appstore-precheck/scripts/app-discover.sh --repo /path/to/app --json
341
+
342
+ # 2. the observation-based checks on a throwaway device (3 repeats, 10 s window)
343
+ bash skills/appstore-precheck/scripts/dynamic-run.sh --app <path>.app --repo /path/to/app --out /tmp/precheck-dyn
344
+ # add --ipad for D9, --pktap (sudo) for DNS-based hosts, --dry-run to print the plan only
345
+
346
+ # 3. the selector-based checks (D3, D3b, D4, D5, D6) via Maestro MCP on the device the
347
+ # runner used — or on a fresh one — appending DYNAMIC-* lines to the same transcript
348
+ ```
349
+
350
+ `tests/local/run-dynamic.sh` chains discovery → confirmation → runner → `dynamic.sh` on macOS; it is
351
+ not part of `tests/all.sh`.
352
+
353
+ ## Feeding the transcript to dynamic.sh
354
+
355
+ Save the transcript (the DYNAMIC-* lines, commentary included) to a temp file outside the repo and
356
+ run:
357
+
358
+ ```bash
359
+ bash skills/appstore-precheck/scripts/dynamic.sh \
360
+ --transcript /tmp/precheck-dyn/transcript.txt \
361
+ --findings /tmp/precheck-static.json \ # scan.sh --format json output
362
+ --target simulator --build-config debug # from run.json / the directory name
363
+ ```
364
+
365
+ It prints the same envelope as `scan.sh --format json`, with `summary.runtime`
366
+ (`observed` / `resolved` / `confirmed`) added and the records reconciled:
367
+
368
+ | static ↔ runtime | result |
369
+ |---|---|
370
+ | static FAIL/WARN, runtime **confirms** the violation | one record, `evidence: runtime`, severity unchanged; `needs_build_verification` re-derived for this build (false only on `release`) |
371
+ | runtime **contradicts**, dynamic check is the **complete** test | severity `RESOLVED`, `resolved_by: runtime` — inert: counted by nothing, verdict unchanged |
372
+ | runtime contradicts, check is **partial** (or the build is Debug/unknown and the claim depended on the build) | FAIL → WARN only, observation appended to the message, never PASS |
373
+ | static PASS, runtime FINDING | a new `WARN` record with `evidence: runtime`; the static PASS stays (it was true about the repo) |
374
+ | could not be driven | `SKIP`, no labels |
375
+
376
+ Complete / partial pairs: `demo-account ↔ dyn-demo-login`; `usage-description-crosscheck ↔
377
+ dyn-permission-prompt:<KEY>` and `↔ dyn-shipped-bundle:<KEY>` (per key; a keyless D4 line is
378
+ partial, a keyless D10 line aims at nothing); `att-usage ↔ dyn-shipped-bundle:NSUserTrackingUsageDescription`;
379
+ `xcode-sdk-requirement ↔ dyn-shipped-sdk`; partial: `subscription-links-restore ↔ dyn-restore-tap`,
380
+ `private-api ↔ dyn-shipped-links`.
381
+
382
+ `--build-config` is what D0 read from the `.app`'s parent directory. If you do not know, leave it
383
+ `unknown`: it is treated exactly like `debug`, and nothing static is resolved on its account. A
384
+ `release` claim over a transcript whose D0 line says `Debug-iphonesimulator` is degraded to
385
+ `unknown`, loudly. `dynamic.sh --not-run --findings <static.json>` produces the
386
+ `runtime-not-audited` gap record for a run where the tier was not used.
387
+
388
+ ### D12–D17 — bounded fresh observations
389
+
390
+ `lib/dyn-guidelines.sh` invokes `dyn-guideline-capture.py` once per healthy launch,
391
+ before demo login, only on a device created and freshly erased by this runner. The
392
+ collector has a 240-second deadline; individual commands have 10–20-second deadlines.
393
+ `dyn-guidelines.py` requires at least three distinct fresh observations with identical
394
+ non-SKIP results. Missing repeats, mixed results, driver errors and degenerate UI
395
+ semantics remain SKIP. Existing `--udid` and `--dry-run` sessions cannot establish this
396
+ freshness. `run.json` links the private `guideline_observations` artifact directory.
397
+
398
+ The CPU check verifies the PID's executable path against the installed bundle before
399
+ sleeping or sampling. Host `ps` may report averaged process CPU; this is a performance
400
+ review hint, not a battery-use measurement. Missing tools, PID mismatch or incomplete
401
+ samples remain SKIP. It does not need an accessibility tree.
402
+
403
+ UI actions are an exact small English allowlist, one flow per Maestro invocation;
404
+ no permission acceptance, login, purchase or destructive controls are tapped. Source
405
+ mini-app applicability requires `WKScriptMessageHandler`, remote URL and JavaScript
406
+ execution signals together. OS prompts require both SpringBoard ownership and a native
407
+ alert class; text such as “Allow” in an app view is not OS evidence. If a driver omits
408
+ ownership, bounds or native classes, the affected observation is SKIP. Other languages
409
+ or deeper navigation currently need agent review.
410
+
411
+ D13 and D14 are deliberately incomplete defect detectors: they can establish the
412
+ positive, narrowly described observations, but cannot infer omitted capture warnings
413
+ or unauthorized library access from missing UI. D13 requires before/after screenshots,
414
+ a newly labelled recording frame and OS status-bar child geometry; it does not perform
415
+ visual pixel recognition. D15's defect case is an explicit unavailable directory, not
416
+ failure to discover an index. D16 is limited to accessible labels on visible entries;
417
+ it does not infer the rating of hidden content. D17 reports only the observed pre-action permission timing; it does not judge the
418
+ app’s purpose or whether the request was justified. The same wording applies to
419
+ English and localized app screens. It cannot distinguish WhenInUse from Always.
420
+
421
+ Each action must start from the same captured app context: a digest of app-owned
422
+ labels, frames and roles must match the initial screen, and ownership must match
423
+ the bundle under test. A changed screen after an earlier action, unknown ownership,
424
+ or a post-action switch to another app yields SKIP. Initial directory/prompt facts
425
+ remain attached to their original launch snapshot; they are never copied into a
426
+ different post-action screen.
427
+
428
+ These observations have no complete static equivalent, so reconciliation preserves
429
+ them as standalone records and never resolves a wider static source finding. Manually
430
+ supplied D12–D17 PASS/FINDING transcript lines also require a fresh unanimous quorum.
431
+
432
+ ### Demo-session output safety
97
433
 
98
- End with a summary table: 6 checks → count of `DYNAMIC-FINDING` vs `DYNAMIC-PASS` (note any not-applicable).
434
+ Normal launch, geometry and iPad captures finish before demo credentials are entered.
435
+ Demo login uses its own erased-device repeats. All persisted hierarchy JSON goes
436
+ through shared credential/email redaction before writing. Runtime review does not
437
+ implicitly explore: request `--explore` explicitly. With `--demo-login`, exploration
438
+ also needs `--authorized-navigation /path/to/allowlist.json` containing a nonempty
439
+ `selectors` array. The destructive-action denylist applies even to authorized labels.
440
+ Authenticated exploration preserves only those navigation labels and structural
441
+ geometry, redacts other text, and withholds screenshots. Maestro debug/test artifacts
442
+ are directed to temporary output subdirectories and deleted after each call.