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,19 +1,25 @@
1
1
  ---
2
2
  name: appstore-precheck
3
- description: Read-only pre-submission check for an iOS app before App Store review. Scans Swift and Objective-C code, fastlane metadata, screenshots, PrivacyInfo.xcprivacy, and the paywall for 54 rejection vectors, wraps Apple's official `fastlane precheck`, watches for live App Store Review Guideline drift, has Pierre explain every FAIL and WARN, then runs 23 semantic deep-review checks (Tier A) plus 7 heuristic checks (Tier B v1) — 30 total. Emits a GREEN/YELLOW/RED verdict and a `.precheck-pass` token an upload guard can gate on. Use when preparing an iOS App Store submission (before Archive, before "Submit for Review", before TestFlight, or before any `fastlane deliver/pilot/release`), or when the user mentions App Store rejection, app review, or fastlane upload.
3
+ description: Read-only pre-submission check for an iOS app before App Store review. Scans Swift and Objective-C code, fastlane metadata, screenshots, PrivacyInfo.xcprivacy, and the paywall for 71 rejection vectors, wraps Apple's official `fastlane precheck`, watches for live App Store Review Guideline drift, has Pierre explain every FAIL and WARN, then runs 56 semantic deep-review checks across Tier A, heuristic Tier B and host vision Tier C. Emits a GREEN/YELLOW/RED verdict and a `.precheck-pass` token an upload guard can gate on. Use when preparing an iOS App Store submission (before Archive, before "Submit for Review", before TestFlight, or before any `fastlane deliver/pilot/release`), or when the user mentions App Store rejection, app review, or fastlane upload.
4
4
  license: MIT
5
5
  metadata:
6
6
  author: Berkay Turk
7
- version: 1.18.0
7
+ version: 1.20.0
8
8
  allowed-tools: Bash Read Grep Glob WebFetch mcp__maestro__list_devices mcp__maestro__run mcp__maestro__inspect_screen mcp__maestro__take_screenshot mcp__maestro__cheat_sheet
9
9
  ---
10
10
 
11
11
  # App Store Precheck
12
12
 
13
+ Optional CLI tiers and build/credential boundaries: [optional-review.md](references/optional-review.md).
14
+
15
+ Coverage inventory: 93/102 leaf sections (91%); 93 touched, 2 positive-only; 71 static vectors, 56 deep-review checks, 20 dynamic checks, 5 vision checks, 9 human-only sections.
16
+
17
+ This percentage counts sections touched, not automatic verification of every requirement.
18
+
13
19
  A one-command gate to run before every iOS App Store submission. It minimizes the risk of
14
20
  rejection by statically scanning the most common rejection vectors, running Apple's own
15
21
  metadata linter, watching for guideline drift, having Pierre explain every FAIL and WARN, and
16
- running 30 semantic deep-review checks (23 Tier A + 7 Tier B v1 heuristic). The deep-review checklist lives in
22
+ running 56 semantic deep-review checks (Tier A, heuristic Tier B and host vision Tier C). The deep-review checklist lives in
17
23
  [`references/pierre-deep-review.md`](references/pierre-deep-review.md).
18
24
 
19
25
  **This skill is read-only.** It never edits code, metadata, or assets. It only reports and
@@ -144,12 +150,12 @@ bash <skill-dir>/scripts/scan.sh
144
150
  bash skills/appstore-precheck/scripts/scan.sh
145
151
  ```
146
152
 
147
- Emits `FAIL:` / `WARN:` / `PASS:` / `SKIP:` lines covering 54 rejection vectors: Privacy Manifest /
153
+ Emits `FAIL:` / `WARN:` / `PASS:` / `SKIP:` lines covering 71 rejection vectors: Privacy Manifest /
148
154
  Required Reason API parity (5.1.1), purpose strings (5.1.1), ATT (5.1.2), other-platform mentions
149
- (2.3.10), metadata limits (2.3.1), localized parity (2.3.7), screenshots (2.3.3), trial &
155
+ (2.3.10), metadata limits (2.3.7), localized parity (2.3), screenshots (2.3.3), trial &
150
156
  auto-renew disclosures (3.1.2), Restore/Terms/Privacy links (3.1.2), private API (2.5.1), minimum
151
157
  functionality (4.2), Sign in with Apple parity (4.8), external purchase links (3.1.1(a)), an
152
- opt-in Screen Time / FamilyControls justification (5.1.5), tracking/IDFA SDK without an ATT prompt
158
+ opt-in Screen Time / FamilyControls review preparation (no numbered guideline), tracking/IDFA SDK without an ATT prompt
153
159
  (5.1.2), the export-compliance key (`ITSAppUsesNonExemptEncryption`), support/privacy URLs in
154
160
  fastlane metadata (2.3 / 1.5 / 5.1.1(i)), analytics SDK vs PrivacyInfo data-types (5.1.1),
155
161
  placeholder/dummy metadata copy (2.1), third-party payment SDK for digital goods (3.1.1),
@@ -159,7 +165,7 @@ marketing claims (2.3.1), "For Kids" wording outside the Kids Category (2.3.8),
159
165
  extensions requiring full access (4.4.1), HealthKit data with an iCloud sync path (5.1.3), VPN /
160
166
  NetworkExtension usage (5.4), a demo account for a login-gated app (2.1), executable-code download
161
167
  / native hot-patching (2.5.2), unused background modes (2.5.4), cryptocurrency wallet/mining
162
- (3.1.5(a)), thin WKWebView wrappers (4.2.3), remote-desktop apps (4.2.7), Safari extensions
168
+ (3.1.5), thin WKWebView wrappers (4.2), remote-desktop apps (4.2.7), Safari extensions
163
169
  (4.4.2), account creation without in-app deletion (5.1.1(v) Account Sign-In), kids audience with
164
170
  third-party ads/analytics (5.1.4), real-money gambling copy (5.3.4), MDM signals (5.5), and
165
171
  screenshot format/dimension mismatches (2.3.3), permission-priming CTA copy that steers users
@@ -183,6 +189,13 @@ clean result. It is counted separately (`skip=` in `verdict.sh`, `summary.not_au
183
189
  **never changes the verdict**: a gap in coverage is not a defect in the build. It must never be
184
190
  presented as a pass.
185
191
 
192
+ **`SKIP: framework — …`** (`framework-not-audited`) appears when the repo is React Native, Flutter
193
+ or Kotlin Multiplatform (`scripts/framework-detect.sh`, file presence only): the code-level checks
194
+ grep Swift/ObjC, so on those toolkits they under-detect rather than false-fire, and the line names
195
+ how many checks (derived from the evidence catalogue) and which. The metadata, manifest, resource
196
+ and build-setting checks still apply in full. Tell the user; the Phase 6 tier observes the built
197
+ app regardless of toolkit.
198
+
186
199
  **When the scan emits `SKIP: metadata`, ask the user for the listing.** The App Store Connect
187
200
  listing is a real rejection surface — roughly a fifth of the checks read it — and a repo without a
188
201
  `fastlane/metadata` directory silently skips all of them. Ask for:
@@ -232,10 +245,13 @@ product, which no repository read can see. Set `APPSTORE_PRECHECK_NO_EVIDENCE=1`
232
245
  line if you parse the text output strictly. Full rationale and the per-rule table:
233
246
  [`references/methodology.md`](references/methodology.md#evidence-strength-and-confidence).
234
247
 
235
- `scan.sh --format json` emits a structured findings envelope (`rule_id`, `severity`, `guideline`,
236
- `guideline_url`, `message`, optional `file`/`line`, plus `evidence`, `confidence` and the derived
237
- `needs_build_verification` per finding, and a verdict summary with a `by_confidence` roll-up)
238
- instead of the default text lines, for tooling and measurement to consume. `--format sarif` carries
248
+ `scan.sh --format json` emits a structured findings envelope (`id`, `rule_id`, `severity`,
249
+ `guideline`, `guideline_url`, `message`, optional `file`/`line`, plus `evidence`, `confidence` and
250
+ the derived `needs_build_verification` per finding; `resolved_by`, `runtime_target` and
251
+ `build_config` are `null` until the Phase 6 tier's `dynamic.sh` reconciles a run; and a verdict
252
+ summary with a `by_confidence` roll-up) instead of the default text lines, for tooling and
253
+ measurement to consume. The `runtime` evidence class and the `RESOLVED` severity appear only in
254
+ `dynamic.sh` output; `RESOLVED` is counted by nothing. `--format sarif` carries
239
255
  the same labels in each result's `properties` bag. It's read-only and additive; the default text
240
256
  output gains only the evidence line above.
241
257
 
@@ -270,100 +286,15 @@ covered by Phase 1, so `include_in_app_purchases:false` avoids the API-key IAP l
270
286
 
271
287
  ### Phase 3: Pierre explains every finding
272
288
 
273
- After Phases 0–2, role-play **Pierre** — a veteran Apple App Reviewer with a French critic's deadpan
274
- tone. His job in this phase is **not** to hunt for new issues or pick random guidelines. The scanner
275
- already did the detection. Pierre **explains every FAIL and WARN** the pipeline emitted.
276
-
277
- **Input to explain (all of it, no sampling):**
278
-
279
- 1. Every `WARN:` from Phase 0 (guideline drift and guideline news), if any.
280
- 2. Every `FAIL:` and `WARN:` from Phase 1 (`scan.sh`), verbatim.
281
- 3. Every violation from Phase 2 (`fastlane precheck`), if Phase 2 ran — treat each as a FAIL.
282
-
283
- **Rules:**
284
-
285
- - **One entry per finding.** Do not merge, skip, or summarize away individual lines.
286
- - **2–3 sentences per FAIL or WARN** in Pierre's voice: (1) which guideline Apple cares about and
287
- why it matters at review, (2) what the scan found in plain language, (3) the concrete fix or
288
- what to verify before submitting.
289
- - **Never quote guideline wording from memory.** Before explaining a finding, get Apple's actual
290
- text for its guideline number:
291
-
292
- ```bash
293
- bash skills/appstore-precheck/scripts/guideline-cite.sh 5.1.1 # or 5.1.1(v), 3.1.1(a), …
294
- ```
295
-
296
- It is offline and deterministic — it prints a **pinned** quote taken from the live guidelines at
297
- the last reconciliation, plus a deep link and the verification date. Use that quote (or a short
298
- excerpt of it) for the "why Apple cares" half of the explanation, in quotation marks.
299
- - **Exit 3 / `NO PINNED CITATION`** → say plainly that the exact wording could not be verified
300
- this run and link the section. Do **not** reconstruct the text from memory; a plausible
301
- paraphrase presented as Apple's words is worse than no quote.
302
- - **`STALE`** → still quote it, but say the pinned wording is older than the staleness window and
303
- should be re-checked against the live page.
304
-
305
- **When the machine has network, add `--verify-live`:**
306
-
307
- ```bash
308
- bash skills/appstore-precheck/scripts/guideline-cite.sh --verify-live 5.1.1
309
- ```
310
-
311
- This re-hashes the live section and compares it with the pinned fingerprint, turning staleness
312
- from a question about the pin's *age* into a question about whether Apple's text actually
313
- *changed*. It fetches once and caches for the day, so verifying every finding costs one request.
314
- - **Exit 4 / `CHANGED`** → the pinned wording is out of date. Do not quote it as current: say
315
- Apple's text for that section has changed, link the section, and describe the requirement in
316
- your own words marked as such.
317
- - Confirmed unchanged → the quote is current regardless of how old the pin is, and the `STALE`
318
- marker is correctly withdrawn.
319
- - Any failure (offline, fetch error, section not found) degrades to the offline behaviour above
320
- and **never** reports a verification that did not happen.
321
- - **Carry the evidence label.** Every FAIL/WARN in the scan output is followed by an indented
322
- `evidence: <class> · <confidence>` line (also in `--format json` / `sarif`). Reflect it:
323
- - `validator-blocking` → Apple's own validation stops this; say so with certainty.
324
- - `review-risk` → a human reviewer rejects this frequently; say it is a likely rejection, not a
325
- mechanical one.
326
- - `judgment-call` → a heuristic. Say it may be a false positive and what would confirm it.
327
- - `· needs build verification` → the claim rests on a source grep or a build setting, not on the
328
- shipping build. Say explicitly that it blocks the upload **if that code ships as-is**, and name
329
- what would settle it (conditional compilation, target membership, the actual archive).
330
- - Quote or repeat the **exact** `FAIL:`/`WARN:` line (or Phase 2 violation text) before each
331
- explanation block so the user can match Pierre to the machine output.
332
- - **Read-only:** never modify files; if a line lacks a path, say what to check manually — do not
333
- invent evidence.
334
- - **Zero FAIL and zero WARN:** Pierre gives a short all-clear (2–3 sentences total). Do not fabricate
335
- issues to seem thorough.
336
- - **Language:** write the 2–3 sentence explanations in the **user's conversation language** (keep
337
- Pierre's dry critic register). The Phase 5 trilingual one-liner stays separate.
338
-
339
- **Output format (repeat for each finding):**
340
-
341
- ```
342
- FAIL: <verbatim line from scan.sh or Phase 2>
343
- Pierre: <2–3 sentences>
344
- ```
345
-
346
- For WARN lines, use the same shape with `WARN:` instead of `FAIL:`.
347
-
348
- Use this prompt verbatim after Phases 0–2 complete, pasting in the collected findings:
349
-
350
- > You are **Pierre**, a veteran Apple App Reviewer who speaks like a French critic — dry, exacting,
351
- > never impressed. Phases 0–2 already ran. Your only job is to **explain every FAIL and WARN below**
352
- > in **2–3 sentences each**. Do not pick random guidelines. Do not hunt for extra issues. Do not skip
353
- > any line. For each finding: print the line verbatim, then `Pierre:` followed by your explanation
354
- > (why Apple flags this guideline, what the scan found, what to fix or verify). Before each
355
- > explanation run `bash skills/appstore-precheck/scripts/guideline-cite.sh <guideline>` and quote the
356
- > pinned wording it returns; if it exits 3 with `NO PINNED CITATION`, say the exact wording could not
357
- > be verified this run and **never** quote guideline text from memory. Reflect the finding's
358
- > `evidence:` line — in particular, when it says `needs build verification`, say the claim rests on a
359
- > source grep or a build setting rather than on the shipping build. If there are zero FAILs and zero
360
- > WARNs, say so briefly in 2–3 sentences. Read-only — never modify files. Write the explanations in
361
- > `<USER_LANGUAGE>`.
289
+ Follow [`references/finding-commentary.md`](references/finding-commentary.md) for the
290
+ complete procedure and prompt: every scanner finding verbatim, evidence strength,
291
+ pinned/live citations, and a short explanation in the user's language. Never invent
292
+ citations or claim a source grep establishes release behavior.
362
293
 
363
- ### Phase 4: Pierre deep review (30 semantic checks)
294
+ ### Phase 4: Pierre deep review (56 semantic checks)
364
295
 
365
- After Phase 3, Pierre runs the **Review Simulator**: 30 read-only, evidence-based checks the
366
- static scanner cannot fully judge (**23 Tier A** + **7 Tier B v1** heuristic — marked † below).
296
+ After Phase 3, Pierre runs the **Review Simulator**: 56 read-only, evidence-based checks the
297
+ static scanner cannot fully judge (Tier A cross-reads, Tier B heuristics and Tier C host vision).
367
298
  The full checklist, per-check procedure, and output format live in
368
299
  [`references/pierre-deep-review.md`](references/pierre-deep-review.md) — read it before starting
369
300
  Phase 4. When screenshots are present, also run the structured screenshot vision review in
@@ -376,55 +307,25 @@ SDK usage, screenshots vs features, and paywall disclosure quality.
376
307
 
377
308
  **Rules (summary):**
378
309
 
379
- - Run **all 30 checks every time** — report each as `REVIEW-PASS:` or `REVIEW-FINDING:` (never skip).
310
+ - Run **all 56 checks every time** — report an outcome for each using the reference status definitions; missing evidence never means PASS.
380
311
  - `REVIEW-FINDING:` is always **WARN** (advisory). It does **not** change FAIL/WARN counts or the verdict.
381
- - † **Tier B v1** checks (4, 5, 7, 10, 15, 29, 30) are heuristic — use cautious language; prefer not applicable when no signal.
312
+ - **Tier B** is heuristic; **Tier C** needs host vision. New v4 checks report FINDING, SKIP or no signal, never PASS.
382
313
  - When Phase 1 already flagged a guideline, still run the matching deep check and add semantic context.
383
314
  - Cite evidence (`file:line`, metadata path, screenshot name, fetched URL excerpt). Read-only — never edit files.
384
315
 
385
- **The 30 checks (guideline order):**
386
-
387
- | # | Guideline | Deep question |
388
- |---|-----------|---------------|
389
- | 1 | **1.2.1** | UGC → real report/block/moderation UI flow? |
390
- | 2 | **1.4.1** | Health/medical claims without disclaimers? |
391
- | 3 | **2.1** | Metadata claims match implemented features? |
392
- | 4 † | **2.1** | Demo account / App Review notes actionable (not placeholder)? |
393
- | 5 † | **2.2** | Beta / test / preview language in store-facing copy? |
394
- | 6 | **2.3.2** | Primary category fits app type? |
395
- | 7 † | **2.3.4** | App preview assets match shipped features? |
396
- | 8 | **2.3.5** | Screenshots match shipped features? |
397
- | 9 | **2.3.6** | Metadata pricing language matches paywall? |
398
- | 10 † | **2.3.9** | Incentivized review copy (rate for reward)? |
399
- | 11 | **2.3.11–2.3.13** | Cross-locale metadata materially consistent? |
400
- | 12 | **3.1.1** | Digital goods unlocked via external purchase links? |
401
- | 13 | **3.1.2** | Trial/auto-renew/cancel disclosures are legible sentences? |
402
- | 14 | **4.2.1–4.2.2** | More than a thin WebView shell / template? |
403
- | 15 † | **4.5.1–4.5.3** | Push / HomeKit entitlements used as intended? |
404
- | 16 | **4.8** | Third-party login → Sign in with Apple or valid exempt case? |
405
- | 17 | **5.1.1(i)** | Privacy policy text matches code + PrivacyInfo? |
406
- | 18 | **5.1.1(ii)** | Purpose strings specific and feature-tied? |
407
- | 19 | **5.1.1(iii)** | Permissions/SDKs proportionate to app purpose? |
408
- | 20 | **5.1.1(iv)** | Permission denial handled without forced loops? |
409
- | 21 | **5.1.1(iv)** | Pre-permission priming CTA neutral ("Continue"/"Next"), not steering? |
410
- | 22 | **5.1.2** | ATT, tracking description, policy, and ad SDKs align? |
411
- | 23 | **5.1.3** | HealthKit data not used for ads/marketing? |
412
- | 24 | **5.1.4** | Kids signals → parental gate before links/IAP/account? |
413
- | 25 | **5.4** | VPN → on-screen disclosure copy in UI strings? |
414
- | 26 | **5.2.1–5.2.3** | Obvious trademark/brand misuse in metadata or UI? |
415
- | 27 | **5.3.1–5.3.3** | Contest/sweepstakes copy includes official rules? |
416
- | 28 | **5.6.2–5.6.3** | Developer identity consistent (support URL, domains, app name)? |
417
- | 29 † | **5.6.1 / 5.6.3** | Rating manipulation dark patterns beyond scan §25? |
418
- | 30 † | **4.3** | Meaningfully different from the incumbents in a category Apple names as saturated? |
316
+ The canonical 56-check table, including check 31 (4.0 design quality), is in
317
+ [`references/pierre-deep-review.md`](references/pierre-deep-review.md). Its versioned
318
+ mapping is recorded in `references/review-catalog.json`.
419
319
 
420
320
  Use this prompt after Phase 3:
421
321
 
422
- > You are **Pierre**. Phase 3 is done. Now run **Phase 4 deep review**: all 30 checks in
322
+ > You are **Pierre**. Phase 3 is done. Now run **Phase 4 deep review**: all 56 checks in
423
323
  > [`references/pierre-deep-review.md`](references/pierre-deep-review.md), in table order. For each
424
- > check emit `REVIEW-PASS:` or `REVIEW-FINDING: <guideline> WARN — …`. For every REVIEW-FINDING,
324
+ > check use the reference outcome format, including NEEDS-REVIEW, UNSUPPORTED, NOT-RUN or
325
+ > evidence-backed NOT-APPLICABLE where appropriate. For every REVIEW-FINDING,
425
326
  > add `Pierre:` with 2–3 sentences (why Apple cares, what you found, what to fix). Read-only.
426
327
  > Write explanations in `<USER_LANGUAGE>`. Do not change the scan verdict counts. † Tier B checks
427
- > (4, 5, 7, 10, 15, 29, 30): prefer not applicable when no signal; use cautious language when flagging.
328
+ > require evidence of non-applicability; Tier C requires vision. Missing inputs mean REVIEW-SKIP.
428
329
 
429
330
  ### Phase 5: Consolidation + token
430
331
 
@@ -444,21 +345,28 @@ narrative; verdict.sh just pins the threshold arithmetic. `REVIEW-FINDING` lines
444
345
  from Phase 1 + Phase 0/2 only — Pierre's prose and REVIEW-FINDING lines do not add FAIL/WARN).
445
346
  2. Open with Pierre's **trilingual verdict block** using the required format in [Output contract](#trilingual-verdict-block-required-format) — bold language label + blockquote per language, separated by `---`; never one compressed line.
446
347
  3. Present **Phase 3 commentary** — Pierre's 2–3 sentence explanation for every FAIL and WARN.
447
- 4. Present **Phase 4 deep review** — summary count (`REVIEW-FINDING` vs `REVIEW-PASS` of 30), then
448
- every `REVIEW-FINDING` with Pierre explanation; list `REVIEW-PASS` lines compactly or omit if all 29 passed.
348
+ 4. Present **Phase 4 deep review** — summary counts for findings, no signal and missing evidence, then
349
+ every `REVIEW-FINDING` with Pierre explanation; list historical `REVIEW-PASS` lines compactly. New v4 checks never produce PASS.
449
350
  The 5 screenshot-vision checks (S1–S5) emit the same `REVIEW-*` prefixes but count as a
450
- **separate "+5 vision checks" sub-block** in the summary, never inside the "of 30" denominator.
351
+ **separate "+5 vision checks" sub-block** in the summary, never inside the "of 56" denominator.
451
352
  5. Present the **machine-faithful** scan output: each `FAIL:`/`WARN:` line verbatim, with its
452
353
  `evidence:` line, then for each FAIL a `file:line` reference and a suggested fix (one line each,
453
354
  surgical, not paraphrased).
454
- 6. Print a **"Not audited"** section. This is **mandatory on every run**, including a GREEN one —
355
+ 6. Print `Guideline coverage this run: X/102 sections touched, Y SKIP, Z human-only` using
356
+ `coverage_sections` from scan JSON (Y counts SKIP records, including `gaps`). List every
357
+ `human_only_sections` entry with its reason; optional tiers stay unexecuted unless observed.
358
+ Print a **"Not audited"** section. This is **mandatory on every run**, including a GREEN one —
455
359
  a verdict is only meaningful next to the list of what it did not cover. Two parts:
456
360
 
457
- **(a) Checks that did not run this time** — every `SKIP:` line, verbatim, with what would close
361
+ **(a) Checks that did not run this time** — every `SKIP:` line and coverage `gaps` record, with what would close
458
362
  the gap (paste the App Store Connect listing, set `.screenshotsDir`, …). A SKIP acknowledged in
459
363
  `.precheck-ignore` is not printed by the scanner but is still in `summary.not_audited` with
460
364
  `suppressed: true`; list it here as *acknowledged* — signing for a gap does not close it. If
461
- there are none, say "every check ran".
365
+ there are none, say "every check ran". This list always includes the runtime gap: when Phase 6
366
+ was not run, one line `SKIP: runtime — the Phase 6 dynamic tier did not run …` under the stable
367
+ id **`runtime-not-audited`** (produce it with `bash scripts/dynamic.sh --not-run --findings
368
+ <scan json>`, which derives the count of unobserved dynamic checks); when it was run, every
369
+ `DYNAMIC-SKIP` line instead.
462
370
 
463
371
  **(b) What this tool cannot see at all**, regardless of input — a fixed list, never omitted and
464
372
  never implied to have been verified:
@@ -491,19 +399,51 @@ bundle id). It uses `xcrun simctl` + Maestro MCP tools (`mcp__maestro__*`) to la
491
399
  disposable simulator and observe real behavior — the free/local alternative to a paid cloud device
492
400
  farm.
493
401
 
494
- It emits advisory `DYNAMIC-PASS:` / `DYNAMIC-FINDING:` lines and **never changes the
495
- GREEN/YELLOW/RED verdict** (the verdict stays derived only from Phases 0–2). It is read-only w.r.t.
496
- the user's project — it touches only disposable simulator state, never the repo. It requires macOS +
497
- Xcode + a simulator runtime and is permanently local-only (it cannot run in CI). It is a pre-submit
498
- local smoke signal, not a TestFlight / crash-reporter / QA replacement.
402
+ It emits advisory `DYNAMIC-PASS:` / `DYNAMIC-FINDING:` / `DYNAMIC-SKIP:` lines, each tagged with a
403
+ rule id (`[dyn-launch]`, `[dyn-permission-prompt:NSCameraUsageDescription]`, …), and **never
404
+ changes the GREEN/YELLOW/RED verdict** (the verdict stays derived only from Phases 0–2). A check
405
+ that could not be driven is a `DYNAMIC-SKIP`, never a PASS and never an invented FINDING. It is
406
+ **no-write, but it executes your application code**: it creates its own throwaway simulator
407
+ device and never touches an existing one or the repo, but the launched app reaches its backends
408
+ and receives the demo credentials you supplied — tell the user so before the first launch. It
409
+ requires macOS + Xcode + a simulator runtime and is permanently local-only (it cannot run in CI).
410
+ It is a pre-submit local smoke signal, not a TestFlight / crash-reporter / QA replacement.
411
+
412
+ **Getting a build without building.** Never run `xcodebuild` / `flutter build` / `gradle`. Run
413
+ `bash <skill-dir>/scripts/app-discover.sh --repo <repo> --json`: it lists the simulator `.app`
414
+ bundles the user already built (DerivedData, `build/ios/iphonesimulator`) with build time,
415
+ configuration (from the directory name: `debug` / `release` / `unknown`) and bundle id, and
416
+ recommends the newest. **Ask the user to confirm one candidate explicitly** before anything is
417
+ installed or launched. If it finds none, keep the `runtime-not-audited` gap and paste the build
418
+ command it prints for the user to run themselves.
419
+
420
+ **Observation-based checks are scripted.** `bash <skill-dir>/scripts/dynamic-run.sh --app <path>.app
421
+ --repo <repo> --out <tmp>` creates a throwaway device, runs the launch checks **three times on an
422
+ erased device** (a crash FINDING needs 3/3; a mixed result carries its ratio and never blocks),
423
+ then dark-mode / Dynamic Type layout heuristics, the installed bundle (`Info.plist` purpose
424
+ strings, `DTXcode`, `otool -L`), and hosts contacted, writing `<tmp>/transcript.txt` and
425
+ `<tmp>/run.json` (which carries the `build_config` to pass on). Add `--ipad` for the iPad pass. On
426
+ React Native without Metro on port 8081 it SKIPs the launch checks instead of reporting a false
427
+ crash; on Flutter / KMP it pre-SKIPs the selector-based checks (no accessibility semantics). Then
428
+ drive the selector-based checks (D3 paywall, D3b Restore tap, D4 prompts, D5 demo login, D6
429
+ parity) with the Maestro MCP tools — **one flow per `mcp__maestro__run` call**, labels read from
430
+ `accessibilityText` — appending `DYNAMIC-*` lines to the same transcript.
499
431
 
500
432
  Follow [`references/simulator-dynamic-review.md`](references/simulator-dynamic-review.md) for the
501
- 6-check dynamic checklist and output format.
433
+ setup step (D0), the full checklist (D1–D17 incl. D3b) and the output format.
434
+ Afterwards feed the transcript to [`scripts/dynamic.sh`](scripts/dynamic.sh) with the static
435
+ `--format json` output: it records every observation as `evidence: runtime` with the run's
436
+ `runtime_target` and `build_config`, and reconciles them with the static findings (a runtime
437
+ confirmation upgrades the evidence; a complete runtime contradiction marks the static finding
438
+ `RESOLVED`, which counts toward nothing; a partial one only downgrades FAIL to WARN). A **Debug or
439
+ unknown build never clears `needs build verification`**; say which configuration the `.app` came
440
+ from, and leave it `unknown` if you do not know.
502
441
 
503
442
  ## Rules
504
443
 
505
444
  - **READ-ONLY:** never change code or assets. Only report and write the token. (The optional Phase 6
506
- simulator tier touches disposable simulator state only — never the user's project.)
445
+ simulator tier touches disposable simulator state only — never the user's project — but it does
446
+ execute the user's app; see Phase 6.)
507
447
  - **Speed > exhaustiveness:** `scan.sh` uses parallel grep/jq and finishes in seconds.
508
448
  - **No error swallowing:** if any scan command fails, that line is reported as FAIL and the scan continues.
509
449
  - **Token location:** `.precheck-pass` at the repo root; the guard tests it with an `mmin -60` filter.
@@ -522,9 +462,11 @@ Follow [`references/simulator-dynamic-review.md`](references/simulator-dynamic-r
522
462
  `REVIEW-FINDING` lines that do not change the verdict. Neither phase is a guarantee of Apple's decision.
523
463
  - Most accurate for native Swift / SwiftUI. The metadata, privacy-manifest, screenshots, and
524
464
  export-compliance checks apply to any iOS app, but the code-level checks read Swift source, so on
525
- React Native (JavaScript) or Flutter (Dart) they under-detect rather than false-fire.
465
+ React Native (JavaScript), Flutter (Dart) or Kotlin Multiplatform they under-detect rather than
466
+ false-fire — and the scan now says so with a `SKIP: framework` gap record (`framework-not-audited`)
467
+ naming the affected checks.
526
468
  - iOS only.
527
- - Phase 0 detects only **structural** drift (added/removed section numbers); see the reference for why.
469
+ - Phase 0 checks section-number drift and fingerprints of covered sections; it does not establish complete guideline coverage.
528
470
  - Guideline citations are **pinned snapshots**, not a live fetch: offline and reproducible, but only
529
471
  as current as the last reconciliation. `guideline-cite.sh` prints the verification date and marks a
530
472
  citation `STALE` past the staleness window; `--verify-live` upgrades that to a real change check