appstore-precheck 1.19.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 (58) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +81 -39
  3. package/package.json +2 -2
  4. package/skills/appstore-precheck/SKILL.md +39 -146
  5. package/skills/appstore-precheck/guidelines-baseline.json +284 -35
  6. package/skills/appstore-precheck/guidelines-fingerprints.json +307 -93
  7. package/skills/appstore-precheck/references/finding-commentary.md +93 -0
  8. package/skills/appstore-precheck/references/methodology.md +56 -19
  9. package/skills/appstore-precheck/references/optional-review.md +56 -0
  10. package/skills/appstore-precheck/references/pierre-deep-review.md +292 -47
  11. package/skills/appstore-precheck/references/review-catalog.json +500 -13
  12. package/skills/appstore-precheck/references/screenshot-vision-review.md +8 -8
  13. package/skills/appstore-precheck/references/simulator-dynamic-review.md +72 -12
  14. package/skills/appstore-precheck/references/typesafe.md +15 -0
  15. package/skills/appstore-precheck/scripts/artifact-review.sh +10 -0
  16. package/skills/appstore-precheck/scripts/augment-json.py +29 -0
  17. package/skills/appstore-precheck/scripts/build-run.sh +5 -0
  18. package/skills/appstore-precheck/scripts/coverage-sections.sh +6 -0
  19. package/skills/appstore-precheck/scripts/dynamic-run.sh +94 -9
  20. package/skills/appstore-precheck/scripts/dynamic.sh +25 -1
  21. package/skills/appstore-precheck/scripts/evidence.sh +8 -3
  22. package/skills/appstore-precheck/scripts/findings.sh +8 -0
  23. package/skills/appstore-precheck/scripts/lib/artifact-review.py +518 -0
  24. package/skills/appstore-precheck/scripts/lib/asc-client.py +293 -0
  25. package/skills/appstore-precheck/scripts/lib/build-evidence.py +50 -0
  26. package/skills/appstore-precheck/scripts/lib/build-exec.py +50 -0
  27. package/skills/appstore-precheck/scripts/lib/build-plan.py +106 -0
  28. package/skills/appstore-precheck/scripts/lib/build-plan.sh +15 -0
  29. package/skills/appstore-precheck/scripts/lib/build-run.py +177 -0
  30. package/skills/appstore-precheck/scripts/lib/coverage-run.sh +23 -0
  31. package/skills/appstore-precheck/scripts/lib/coverage-sections.py +244 -0
  32. package/skills/appstore-precheck/scripts/lib/dyn-demo-login.py +111 -0
  33. package/skills/appstore-precheck/scripts/lib/dyn-device.sh +32 -4
  34. package/skills/appstore-precheck/scripts/lib/dyn-explore.py +312 -0
  35. package/skills/appstore-precheck/scripts/lib/dyn-guideline-capture.py +301 -0
  36. package/skills/appstore-precheck/scripts/lib/dyn-guidelines.py +112 -0
  37. package/skills/appstore-precheck/scripts/lib/dyn-guidelines.sh +23 -0
  38. package/skills/appstore-precheck/scripts/lib/dyn-process.py +75 -0
  39. package/skills/appstore-precheck/scripts/lib/dyn-quorum.sh +28 -30
  40. package/skills/appstore-precheck/scripts/lib/dyn-scrub.py +79 -0
  41. package/skills/appstore-precheck/scripts/lib/dyn-signals.sh +2 -2
  42. package/skills/appstore-precheck/scripts/lib/metadata-review.py +369 -0
  43. package/skills/appstore-precheck/scripts/lib/optin-scan.sh +73 -0
  44. package/skills/appstore-precheck/scripts/lib/optional-records.py +60 -0
  45. package/skills/appstore-precheck/scripts/lib/runtime-blocking.py +26 -0
  46. package/skills/appstore-precheck/scripts/lib/safe_write.py +61 -0
  47. package/skills/appstore-precheck/scripts/lib/scan-guidelines.sh +199 -0
  48. package/skills/appstore-precheck/scripts/lib/static-guidelines.py +341 -0
  49. package/skills/appstore-precheck/scripts/lib/static-reader.py +39 -0
  50. package/skills/appstore-precheck/scripts/metadata-review.sh +4 -0
  51. package/skills/appstore-precheck/scripts/opt-in-review.py +160 -0
  52. package/skills/appstore-precheck/scripts/runtime-review.sh +5 -0
  53. package/skills/appstore-precheck/scripts/scan.sh +56 -23
  54. package/skills/appstore-precheck/scripts/semantic/client.py +3 -1
  55. package/skills/appstore-precheck/scripts/semantic/collect.py +82 -38
  56. package/skills/appstore-precheck/scripts/semantic/engine.py +165 -127
  57. package/skills/appstore-precheck/scripts/semantic/questions.py +5 -1
  58. package/skills/appstore-precheck/scripts/semantic/review_v4.py +81 -0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,52 @@ All notable changes to this project are documented here. Versioning follows
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.20.0] — 2026-10-02
9
+
10
+ ### Guideline section coverage 45 → 93 of 102 leaf rules (91%)
11
+
12
+ - Review fixes: custom document browsers and embedded emoji artwork replace inverted policy signals; ordinary metadata emoji, bug-fix notes and system document pickers remain clean.
13
+ - Missing inputs produce visible, suppressible modular SKIP records; run coverage excludes PASS absence claims and deduplicates skipped sections. Present metadata declarations remain unverified.
14
+ - Source reads have a 60-second deadline; face-authentication scanning is linear, UTF-16 strings are supported, and unreadable files produce local gaps.
15
+ - Demo login runs after geometry in fresh sessions; authenticated exploration requires a navigation allowlist and redacts personal text without screenshots. Collector failures retain diagnostics.
16
+ - Build copy validation supports trusted monorepo Flutter caches, rejects `/`, `$HOME` and its ancestors as repositories, and excludes secret/special files. Projects underneath `$HOME` remain buildable.
17
+ - Coverage inventory reports 93 touched sections, including 2 partial positive-only dynamic observations; semantic inventory requires procedures, fixtures and producible inputs.
18
+
19
+
20
+ 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.
21
+
22
+ ### Guideline coverage expansion
23
+ - Add signal-gated source and metadata checks in separate scanner helpers; preserve
24
+ existing finding records and expose new missing-input SKIPs as coverage gaps.
25
+ - Extend catalog v4 with advisory questions, explicit evidence requirements and a
26
+ vision tier; missing inputs abstain and text-only transport cannot judge images.
27
+ - Collect bounded fresh simulator observations with unanimous quorum; capture and
28
+ MusicKit checks only confirm observed indicators/prompts and cannot detect their
29
+ absence. Location review covers request timing, not authorization-scope mismatch.
30
+ - Harvest opt-in build, metadata, artifact and runtime helpers with credential,
31
+ output-path, process-timeout, simulator-ownership and trusted-config safeguards.
32
+ - Section coverage is an inventory of checks that touch a rule, not automatic
33
+ verification; synthetic cases do not establish live model or runtime accuracy.
34
+
35
+ ### Coverage groundwork
36
+ - Derive leaf-section coverage from baseline exclusions and cross-check scanner,
37
+ Pierre, dynamic and vision sources; add human-only reasons and the existing D9 mapping.
38
+ - Add run-local `coverage_sections` to scan JSON; keep text, SARIF and verdict fields unchanged.
39
+ - Require three unanimous launch observations; empty logs and flat screenshots alone
40
+ cannot establish a successful launch or a crash. Sanitize transcript control characters.
41
+
42
+ ### Fixed
43
+ - Correct scanner and Pierre guideline references, and require storefront/exception
44
+ context before drawing conclusions from payment SDK signals.
45
+ - Keep missing evidence, unsupported inspection and unexecuted checks separate from
46
+ supported review outcomes. Freeze catalog v2 procedures for historical evaluation
47
+ cases; freeze v3 before extending current reviews to catalog v4, and bind resumed evaluations to all three.
48
+ - Report TypeSafe transport attempts and retries, including unknown retry billing.
49
+
50
+ ### Maintenance
51
+ - Keep private source archives outside Git and npm packages; exercise the package
52
+ boundary with synthetic private files.
53
+
8
54
  ## [1.19.0] — 2026-09-18
9
55
 
10
56
  ### Added (optional TypeSafe / Jev semantic review)
package/README.md CHANGED
@@ -22,10 +22,8 @@
22
22
 
23
23
  `appstore-precheck` is a read-only, pre-submission gate for iOS apps. It statically scans the most
24
24
  common rejection vectors, runs Apple's own metadata linter, watches the App Store Review Guidelines
25
- for drift, has Pierre explain every FAIL and WARN, then runs **31 semantic deep-review checks**
26
- (23 high-confidence Tier A + 8 heuristic Tier B v1 — beta language, review notes quality, app preview,
27
- incentivized review, push/HomeKit abuse, rating manipulation, saturated-category differentiation,
28
- Apple's 4.0 design minimum).
25
+ for drift, has Pierre explain every FAIL and WARN, then runs **56 semantic deep-review checks**
26
+ (Tier A cross-reads, Tier B heuristics and Tier C host vision reviews).
29
27
  It hands you a single **GREEN / YELLOW / RED** verdict. It never edits your code.
30
28
 
31
29
  It ships as a portable [Agent Skill](https://agentskills.io): the same `SKILL.md` runs natively in
@@ -38,8 +36,7 @@ also run it by hand or wire it into CI.
38
36
 
39
37
  Your verdict is delivered by **Pierre**, a French critic who has seen ten thousand rejections and is
40
38
  impressed by none of them. He reviews your build harder than Apple would, in private — first with a
41
- fast static scan, then with **31 deep semantic checks** (23 confident + 8 heuristic). A GREEN from
42
- Pierre means Apple will wave you through.
39
+ fast static scan, then with **56 deep semantic checks**. GREEN describes this run’s gate results; it does not guarantee App Store approval.
43
40
 
44
41
  - 🔴 **RED**: *"Non. Restore Purchases, absent. Guideline 3.1.2. Suivant."*
45
42
  - 🟡 **YELLOW**: *"A few small uglinesses. I would not reject. But I noticed."*
@@ -51,7 +48,11 @@ each, divided by horizontal rules), not one compressed sentence. The breakdown b
51
48
 
52
49
  ## What it checks
53
50
 
54
- 55 rejection vectors across code, fastlane metadata, screenshots, `PrivacyInfo.xcprivacy`, and the paywall:
51
+ 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.
52
+
53
+ The percentage counts sections touched, not automatic verification of every requirement; see [the coverage inventory](docs/guideline-coverage.md).
54
+
55
+ 71 rejection vectors across code, fastlane metadata, screenshots, `PrivacyInfo.xcprivacy`, and the paywall:
55
56
 
56
57
  | Guideline | Check |
57
58
  |-----------|-------|
@@ -61,12 +62,12 @@ each, divided by horizontal rules), not one compressed sentence. The breakdown b
61
62
  | **2.1** | A login-gated app ships demo credentials / review notes for App Review |
62
63
  | **2.1** | Project's `LastUpgradeCheck` vs the April 2026 iOS 26 SDK (Xcode 26) upload minimum *(advisory)* |
63
64
  | **2.3** | A working support URL and a privacy URL in fastlane metadata (no placeholders) — also satisfies 1.5 and 5.1.1(i) |
64
- | **2.3.1** | Metadata length limits (name, subtitle, keywords, promo, description) |
65
+ | **2.3.7 / ASC** | Metadata length limits (name, subtitle, keywords, promo, description) |
65
66
  | **2.3.1** | Misleading marketing claims (iOS virus / malware scanners, fake speed boosters) in metadata |
66
- | **2.3.1** | Pricing / promo language ("Free", "% off", a currency amount) in the app name or subtitle |
67
+ | **2.3.7** | Pricing / promo language ("Free", "% off", a currency amount) in the app name or subtitle |
67
68
  | **2.3.3** | At least one screenshot per locale |
68
69
  | **2.3.3** | Screenshot format + PNG dimensions match a known App Store screenshot size *(advisory, WARN-only)* |
69
- | **2.3.7** | Localized metadata parity across every locale |
70
+ | **2.3** | Localized metadata parity across every locale |
70
71
  | **2.3.8** | "For Kids" / "For Children" wording outside the Kids Category |
71
72
  | **2.3.10** | No other-platform / competitor names in metadata |
72
73
  | **2.5.1** | No private / banned APIs |
@@ -79,9 +80,9 @@ each, divided by horizontal rules), not one compressed sentence. The breakdown b
79
80
  | **3.1.2** | Restore Purchases + Terms (EULA) + Privacy Policy on the paywall |
80
81
  | **3.1.2** | Trial-emphasized paywall CTA ("Continue with free trial") or a free-trial toggle instead of one clear price |
81
82
  | **3.1.2** | Urgency / scarcity dark patterns on the paywall ("only today", countdown + discount) |
82
- | **3.1.5(a)** | Cryptocurrency wallet / exchange / mining signal |
83
+ | **3.1.5** | Cryptocurrency wallet / exchange / mining signal |
83
84
  | **4.2** | Minimum functionality (real navigation) |
84
- | **4.2.3** | Thin WKWebView wrapper around a website |
85
+ | **4.2** | Thin WKWebView wrapper around a website |
85
86
  | **4.2.7** | Remote-desktop / host-mirroring app |
86
87
  | **4.4.1** | Keyboard extension that requires full access (`RequestsOpenAccess`) |
87
88
  | **4.4.2** | Safari content-blocker / web extension |
@@ -101,18 +102,34 @@ each, divided by horizontal rules), not one compressed sentence. The breakdown b
101
102
  | **5.1.2** | Tracking / IDFA SDK (AdMob, AppLovin, AppsFlyer, Adjust, …) shipped without an ATT prompt |
102
103
  | **5.1.3** | HealthKit data with an iCloud / CloudKit sync path |
103
104
  | **5.1.4** | Kids-audience metadata shipping a third-party ads / analytics SDK |
104
- | **5.1.5** | Sensitive-API justification *(opt-in)* |
105
+ | **Review preparation** | Sensitive-API justification *(opt-in)* |
105
106
  | **5.3.4** | Real-money gambling language in metadata |
106
107
  | **5.4** | VPN / NetworkExtension usage (org account + on-screen data disclosure) |
107
108
  | **5.5** | Mobile Device Management (MDM) signal |
108
109
  | **5.6.1** | A custom App Store review prompt instead of the system `requestReview` API |
109
110
  | **5.6.1** | Sentiment-gated rating flow ("Enjoying the app?" → only happy users see the prompt) |
110
111
  | **encryption** | `ITSAppUsesNonExemptEncryption` set, so App Store Connect skips the export-compliance question |
112
+ | **2.3.12** | Release-notes files only; absent files are SKIP, and publication timing is unknown. |
113
+ | **2.4.4** | English quoted source strings and String Catalog/resource text only; contextual review remains necessary. |
114
+ | **2.5.6** | Dependency-name and deprecated UIWebView type-use signals only; regional browser entitlements and shipping target require review. UIWebView is WARN, not FAIL. |
115
+ | **2.5.11** | Legacy declarations and handler parity only; modern AppIntent is deliberately exempt from legacy plist registration. |
116
+ | **2.5.12** | Filter/directory APIs only: normal VoIP CallKit is deliberately excluded. Labels may exist on unreachable UI. |
117
+ | **2.5.13** | Face API and authentication terms must coexist in one file; LocalAuthentication presence elsewhere suppresses the warning, without proving correct authentication. |
118
+ | **2.5.15** | Picker alone does not prove a file-browser app; the warning explicitly asks that question. Unavailable main plist is SKIP. |
119
+ | **2.5.16** | Discovered extension/App Clip manifests and source hints only; variable bundle identifiers are SKIP pending resolved build settings. |
120
+ | **2.5.17** | Matter source import or setup entitlement without a discovered Matter extension; generated target settings may need manual inspection. |
121
+ | **2.5.18** | Imports in extension/App Clip manifest directories only; pbxproj link-phase target resolution is not audited. No extension means SKIP. |
122
+ | **4.2.1** | Low-confidence source footprint proxy: one AR usage file and fewer than two view declarations; does not establish functionality quality. |
123
+ | **4.2.3** | App query schemes plus a quoted install-to-continue instruction; arbitrary canOpenURL control/data flow is not inferred. |
124
+ | **4.5.5** | Game Center identifier and network/analytics API must coexist in one file; explicitly no assertion of actual data flow. |
125
+ | **4.5.6** | Unicode emoji range heuristic in store text; icon pixels always receive a separate SKIP gap. |
126
+ | **4.7.2** | All four signals must coexist in one file: handler, remote JS URL, evaluation and native-sensitive API. Does not resolve bridge access control. |
127
+ | **5.2.4** | Narrow English endorsement/official-product patterns; authorized claims still require human confirmation. Ordinary iPhone compatibility text stays clean. |
111
128
 
112
129
  Paywall checks are skipped automatically when no in-app-purchase signals are present, and the
113
- signal-gated advisory checks stay silent unless their triggering signal is found.
130
+ advisory warnings require their documented trigger. Missing inputs are recorded in the JSON coverage gaps.
114
131
 
115
- ### Pierre deep review (31 semantic checks)
132
+ ### Pierre deep review (56 semantic checks)
116
133
 
117
134
  Optional **TypeSafe / Jev** support adds typed semantic judgments for purpose strings,
118
135
  copy, disclosures, claims/privacy consistency, review routing, guideline reranking,
@@ -130,32 +147,31 @@ See the [TypeSafe guide](skills/appstore-precheck/references/typesafe.md) for al
130
147
  workflows, fallback behavior, private caches, costs, and evaluation. No new dependency
131
148
  is needed beyond Python 3.8+ for this optional command.
132
149
 
133
- After the static scan, Pierre reads your project end-to-end and runs **31 evidence-based checks**
150
+ After the static scan, Pierre reads your project end-to-end and runs **56 evidence-based checks**
134
151
  the grep layer cannot fully judge. These emit advisory `REVIEW-FINDING:` lines (they do **not**
135
152
  change the GREEN/YELLOW/RED verdict). Full procedure:
136
153
  [`references/pierre-deep-review.md`](skills/appstore-precheck/references/pierre-deep-review.md).
137
154
 
138
- **23 checks (Tier A)** are high-confidence cross-reads (privacy policy fetch, claims vs code,
139
- screenshots, paywall copy). **8 checks (Tier B v1, marked †)** are heuristic — useful pre-submit
140
- signals with a higher false-positive rate; Pierre prefers `not applicable` when no signal is present.
155
+ Tier A checks cross-read supplied artifacts; Tier B checks are heuristic. Tier C requires host vision.
156
+ Missing evidence is reported separately; a declared section is not a verified requirement.
141
157
 
142
158
  | Guideline | Deep check |
143
159
  |-----------|------------|
144
- | **1.2.1** | User-generated content → is there a real report / block / moderation UI flow? |
160
+ | **1.2** | User-generated content → is there a real report / block / moderation UI flow? |
145
161
  | **1.4.1** | Health or medical claims in metadata/UI without appropriate disclaimers? |
146
162
  | **2.1** | Store metadata claims match features actually implemented in code |
147
163
  | **2.1** † | App Review demo account / review notes actionable (credentials, steps — not placeholder) |
148
164
  | **2.2** † | Beta, test, preview, or work-in-progress language in store-facing copy or UI |
149
- | **2.3.2** | Primary App Store category fits the app type |
165
+ | **2.3.5** | Primary App Store category fits the app type |
150
166
  | **2.3.4** † | App preview video/assets (if in-repo) match shipped features and metadata |
151
- | **2.3.5** | Screenshot images match shipped features (no misleading frames or missing UI) |
152
- | **2.3.6** | Metadata pricing / subscription language matches the paywall |
153
- | **2.3.9** † | Incentivized review copy ("rate 5 stars", "review for reward") in metadata or UI |
154
- | **2.3.11–2.3.13** | Cross-locale metadata materially consistent (trial terms, features, URLs) |
167
+ | **2.3.3 / 2.3.1(a)** | Screenshot images match shipped features (no misleading frames or missing UI) |
168
+ | **2.3.2 / 3.1.2(c)** | Metadata pricing / subscription language matches the paywall |
169
+ | **3.2.2(x) / 5.6.3** † | Incentivized review copy ("rate 5 stars", "review for reward") in metadata or UI |
170
+ | **2.3** | Cross-locale metadata materially consistent (trial terms, features, URLs) |
155
171
  | **3.1.1** | Digital goods unlocked via external purchase links (web checkout in WebView, etc.) |
156
172
  | **3.1.2** | Trial, auto-renew, and cancel disclosures are legible sentences — not keyword stubs |
157
- | **4.2.1–4.2.2** | Minimum functionality beyond a thin WebView shell or template app |
158
- | **4.5.1–4.5.3** † | Push notification or HomeKit entitlement used as intended (no spam-push / HomeKit without home UI) |
173
+ | **4.2 / 4.2.2** | Minimum functionality beyond a thin WebView shell or template app |
174
+ | **2.5.1 / 4.5.3 / 4.5.4** † | Push notification or HomeKit entitlement used as intended (no spam-push / HomeKit without home UI) |
159
175
  | **4.8** | Third-party login → Sign in with Apple offered, or a valid exempt case |
160
176
  | **5.1.1(i)** | Privacy policy text (fetched live) matches code, PrivacyInfo, and SDK usage |
161
177
  | **5.1.1(ii)** | Purpose strings are specific and tied to a visible feature |
@@ -164,18 +180,44 @@ signals with a higher false-positive rate; Pierre prefers `not applicable` when
164
180
  | **5.1.1(iv)** | Pre-permission priming CTA is neutral ("Continue"/"Next"), not steering toward granting |
165
181
  | **5.1.2** | ATT prompt, tracking description, privacy policy, and ad SDK usage align |
166
182
  | **5.1.3** | HealthKit data not used for advertising or marketing |
167
- | **5.1.4** | Kids-audience signals → parental gate before external links / IAP / account areas |
183
+ | **1.3 / 5.1.4** | Kids-audience signals → parental gate before external links / IAP / account areas |
168
184
  | **5.4** | VPN / NetworkExtension → on-screen disclosure copy visible in UI strings |
169
- | **5.2.1–5.2.3** | Obvious third-party trademark or brand misuse in metadata or UI copy |
170
- | **5.3.1–5.3.3** | Contest / sweepstakes copy includes official rules and eligibility |
171
- | **5.6.2–5.6.3** | Developer identity consistent (app name, support URL content, domains) |
185
+ | **5.2.1** | Obvious third-party trademark or brand misuse in metadata or UI copy |
186
+ | **5.3.1 / 5.3.2** | Contest / sweepstakes copy includes official rules and eligibility |
187
+ | **1.5 / 5.6.2** | Developer identity consistent (app name, support URL content, domains) |
172
188
  | **5.6.1 / 5.6.3** † | Rating / review manipulation dark patterns (withhold features until 5 stars, write-review links without `requestReview`) |
173
189
  | **4.3** † | Meaningfully different from the incumbents in a category Apple names as saturated (4.3(b)); no 4.3(a) per-variant bundle ids |
174
190
  | **4.0** † | Apple's minimum design bar: iPad / large-text layout, no placeholder, clipped or degraded UI (Apple's #1 removal reason) |
175
-
176
- Pierre runs **all 31 every time** and reports each as `REVIEW-PASS:` or `REVIEW-FINDING:`. When the
191
+ | **1.1.1** (vision) | Does observed content attack or humiliate a named person or protected group? |
192
+ | **1.1.2** (vision) | Does realistic violent imagery conflict with the documented game context and age declaration? |
193
+ | **1.1.3** (vision) | Does the observed offering encourage harmful use of weapons or hazardous substances? |
194
+ | **1.1.4** (vision) | Does observed sexual content or the advertised matching purpose warrant a content-policy review? |
195
+ | **1.1.5** † | Does the supplied text contain inflammatory religious targeting or a quotation contradicted by its supplied source? |
196
+ | **1.1.6** † | Does a concrete implementation mismatch support a deceptive capability claim such as fabricated scanning or sensor data? |
197
+ | **1.2.1** † | Does a creator-content offering mislabel its content or move it outside the described in-app experience? |
198
+ | **1.4.2** † | Does a dosage-calculation offering lack the documented institutional source appropriate to its claims? |
199
+ | **1.4.3** † | Does the supplied offering promote or sell tobacco, vaping goods, or illegal drugs within its documented context? |
200
+ | **1.4.4** † | Does a checkpoint-location feature use a source other than the documented law-enforcement source? |
201
+ | **1.4.5** † | Does the observed challenge or wagering copy encourage actions likely to physically harm participants? |
202
+ | **2.3.6** (vision) | Does visible content materially contradict the supplied current age-rating declaration? |
203
+ | **2.5.8** † | Does the product promise to replace the device home screen beyond a clearly described in-app simulation? |
204
+ | **2.5.9** † | Does implemented behavior or user-facing copy override system controls outside the documented app-local context? |
205
+ | **3.1.3** † | Does the supplied external-purchase flow contradict the documented offering, storefront, and claimed exception? |
206
+ | **3.1.4** † | Does a hardware-gated content unlock exceed the documented relationship between the hardware and its function? |
207
+ | **3.2.1** † | Does the documented promotion, gift-card, or wallet model contradict the bounded permitted purpose claimed by the developer? |
208
+ | **4.2.6** (vision) | Do observed template reuse and the supplied ownership relationship support concern about a generic third-party app submission? |
209
+ | **4.5.1** † | Does the implementation use an Apple store feed beyond its documented display purpose? |
210
+ | **4.7.1** † | Do documented mini-app data practices contradict the containing app privacy declaration? |
211
+ | **4.7.3** † | Does a mini-app bridge transfer host permissions or personal data beyond the supplied consent boundary? |
212
+ | **4.10** † | Does the paywall charge solely for access to a built-in device capability rather than a documented added service? |
213
+ | **5.2.3** † | Does the offered media-downloading or sharing flow conflict with the documented authorization for third-party content? |
214
+ | **5.2.5** (vision) | Do the observed icon, name, and interface create a concrete misleading resemblance to an Apple product? |
215
+ | **5.3.3** † | Does the supplied StoreKit flow sell credits used for documented real-money gambling or lottery participation? |
216
+
217
+ Pierre reports an outcome for **all 56 every time**. New catalog v4 checks use FINDING, SKIP or no signal; historical checks retain their statuses. Separate conclusions
218
+ from missing evidence, unsupported inspection, unexecuted checks and proven non-applicability. When the
177
219
  static scan already flagged a guideline, the deep check adds semantic context the scanner could not see.
178
- † Tier B v1 items are heuristic — treat findings as "verify before submit", not automatic blockers.
220
+ † Tier B items are heuristic — treat findings as "verify before submit", not automatic blockers.
179
221
 
180
222
  ### Supported app types
181
223
 
@@ -186,7 +228,7 @@ how the app is built:
186
228
 
187
229
  | App type | Coverage |
188
230
  |----------|----------|
189
- | 🟢 **Native Swift / SwiftUI** | **Full.** All 55 vectors apply. |
231
+ | 🟢 **Native Swift / SwiftUI** | Source checks are supported; applicability and missing-input gates still apply. |
190
232
  | 🟡 **React Native / Flutter** | Metadata, privacy manifest, screenshots, and export compliance apply in full. The native-source checks (ATT, paywall links, private API, SDK detection, navigation) **under-detect rather than misfire**: that logic lives in JS/Dart, so they stay quiet instead of blocking. |
191
233
 
192
234
  ## Quick start
@@ -374,10 +416,10 @@ nothing is auto-fixed.
374
416
  | Phase | Step |
375
417
  |-------|------|
376
418
  | **0** | **Guideline drift**: diff the live App Store Review Guidelines against a tracked baseline. Never blocks. |
377
- | **1** | **Static scan**: `scan.sh` over the 55 vectors above. Every finding is labelled with the artifact it was read from and who enforces it — see [Evidence strength](#evidence-strength). |
419
+ | **1** | **Static scan**: `scan.sh` over the 71 vectors above. Every finding is labelled with the artifact it was read from and who enforces it — see [Evidence strength](#evidence-strength). |
378
420
  | **2** | **`fastlane precheck`**: Apple's own metadata rule engine. |
379
421
  | **3** | **Pierre commentary**: explains **every** FAIL and WARN from Phases 0–2 in 2–3 sentences each, quoting Apple's pinned guideline text rather than his memory — see [Guideline citations](#guideline-citations). |
380
- | **4** | **Pierre deep review**: 31 semantic checks (23 Tier A + 8 Tier B v1 heuristic), plus 5 screenshot-vision checks when screenshots are present. Advisory only. |
422
+ | **4** | **Pierre deep review**: 56 semantic checks (Tier A, heuristic Tier B and host vision Tier C), plus 5 screenshot-vision checks when screenshots are present. Advisory only. |
381
423
  | **5** | **Verdict**: GREEN / YELLOW / RED from Phases 0–2 counts, plus `.precheck-pass` token the upload guard gates on. |
382
424
  | **6** | *(opt-in, agent mode)* **Local dynamic simulator tier**: finds a simulator `.app` you already built (`scripts/app-discover.sh`, never builds), then `scripts/dynamic-run.sh` runs it on a throwaway simulator it creates and deletes — launch health three times on an erased device (a crash finding needs 3/3), first screen, dark-mode / Dynamic Type / iPad layout heuristics, the *installed* bundle's purpose strings / `DTXcode` / linked frameworks, hosts contacted vs `NSPrivacyTrackingDomains` — while the agent drives paywall / Restore-tap / permission / demo-login / screenshot-parity via Maestro. Advisory; never changes the verdict; a check it cannot drive is a `DYNAMIC-SKIP`, never a pass. `scripts/dynamic.sh` turns the transcript into `evidence: runtime` records and reconciles them with the static findings; a Debug build never clears `needs build verification`. Not read-only: it executes your app. |
383
425
 
@@ -390,7 +432,7 @@ Severity says how bad a finding is. It does not say how firmly it is *establishe
390
432
  FAIL: 5.1.1 camera capture API used but Info.plist is missing 'NSCameraUsageDescription' [App/CameraView.swift:42]
391
433
  evidence: source · validator-blocking · needs build verification
392
434
 
393
- WARN: 2.3.1 Pricing language in app name/subtitle [fastlane/metadata/en-US/name.txt]
435
+ WARN: 2.3.7 Pricing language in app name/subtitle [fastlane/metadata/en-US/name.txt]
394
436
  evidence: metadata · judgment-call
395
437
  ```
396
438
 
@@ -604,7 +646,7 @@ measures the false-positive rate on real, unrelated open-source code. See
604
646
  ## Eval (LLM deep-review scorecard)
605
647
 
606
648
  The static scanner above is measured by `docs/scorecard.md`; Pierre's **LLM deep-review layer**
607
- (31 semantic checks, incl. the 8 heuristic Tier B checks) has its own harness under [`eval/`](eval/)
649
+ (56 semantic checks, including heuristics and host vision) has its own harness under [`eval/`](eval/)
608
650
  and its own scorecard, [`docs/llm-scorecard.md`](docs/llm-scorecard.md).
609
651
 
610
652
  - **Dataset** — `eval/dataset/`: one labelled case per file (target check, expected
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appstore-precheck",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "description": "Read-only iOS App Store pre-submission check, packaged as a portable Agent Skill with native Claude Code, Cursor, Codex, and Grok Build plugins, plus an npx CLI.",
5
5
  "license": "MIT",
6
6
  "author": "Berkay Turk (https://github.com/berkayturk)",
@@ -25,7 +25,7 @@
25
25
  "scripts": {
26
26
  "test": "bash tests/all.sh",
27
27
  "check-versions": "bash scripts/check-versions.sh",
28
- "lint": "node --check bin/cli.js && bash -n skills/appstore-precheck/scripts/scan.sh && bash -n skills/appstore-precheck/scripts/verdict.sh && bash -n skills/appstore-precheck/scripts/phase2-precheck.sh && bash -n skills/appstore-precheck/scripts/findings.sh && bash -n skills/appstore-precheck/scripts/evidence.sh && bash -n skills/appstore-precheck/scripts/dynamic.sh && bash -n skills/appstore-precheck/scripts/guideline-cite.sh && bash -n skills/appstore-precheck/scripts/suppress.sh && bash -n hooks/fastlane-guard.sh && bash -n install.sh && bash -n tests/run.sh && bash -n tests/all.sh && bash -n tests/test-verdict.sh && bash -n tests/test-guard.sh && bash -n tests/test-config.sh && bash -n tests/test-install.sh && bash -n tests/test-phase2.sh && bash -n tests/test-cli.sh && bash -n tests/test-findings.sh && bash -n tests/test-format-json.sh && bash -n tests/test-suppress.sh && bash -n tests/test-scorecard.sh && bash -n tests/test-sdk-signals.sh && bash -n scripts/scorecard.sh && bash -n scripts/scorecard-real.sh && bash -n scripts/update-brew-formula.sh && bash -n tests/test-pack.sh && bash -n eval/run.sh && bash -n eval/validate.sh && bash -n eval/rag/ingest.sh && bash -n tests/test-rag-ingest.sh && bash -n tests/test-rag-embed.sh && bash -n tests/test-rag-gemini-client.sh && bash -n tests/test-rag-retrieve.sh && bash -n tests/test-eval-parse.sh && bash -n tests/test-rag-build-request.sh && bash -n tests/test-rag-run-guard.sh && bash -n tests/test-eval-score.sh && bash -n tests/test-evidence.sh && bash -n tests/test-guideline-cite.sh && bash -n tests/test-skip.sh && bash -n tests/test-saturated.sh && bash -n tests/test-ipv4-literal.sh && bash -n tests/test-design-40.sh && bash -n tests/test-phase6-doc.sh && bash -n tests/test-dynamic-reconcile.sh && bash -n skills/appstore-precheck/scripts/framework-detect.sh && bash -n skills/appstore-precheck/scripts/app-discover.sh && bash -n skills/appstore-precheck/scripts/dynamic-run.sh && bash -n skills/appstore-precheck/scripts/lib/dyn-quorum.sh && bash -n skills/appstore-precheck/scripts/lib/dyn-device.sh && bash -n skills/appstore-precheck/scripts/lib/dyn-signals.sh && bash -n skills/appstore-precheck/scripts/lib/dyn-geometry.sh && bash -n skills/appstore-precheck/scripts/lib/dyn-hosts.sh && bash -n skills/appstore-precheck/scripts/lib/dyn-bundle.sh && python3 -m py_compile skills/appstore-precheck/scripts/lib/png-uniform.py && bash -n tests/test-framework-detect.sh && bash -n tests/test-app-discover.sh && bash -n tests/test-dynamic-libs.sh && bash -n tests/test-dynamic-run.sh && bash -n tests/local/run-dynamic.sh && bash -n scripts/guideline-drift.sh && bash -n skills/appstore-precheck/scripts/lib/guideline-text.sh"
28
+ "lint": "node --check bin/cli.js && bash -n skills/appstore-precheck/scripts/scan.sh && bash -n skills/appstore-precheck/scripts/verdict.sh && bash -n skills/appstore-precheck/scripts/phase2-precheck.sh && bash -n skills/appstore-precheck/scripts/findings.sh && bash -n skills/appstore-precheck/scripts/evidence.sh && bash -n skills/appstore-precheck/scripts/dynamic.sh && bash -n skills/appstore-precheck/scripts/guideline-cite.sh && bash -n skills/appstore-precheck/scripts/suppress.sh && bash -n hooks/fastlane-guard.sh && bash -n install.sh && bash -n tests/run.sh && bash -n tests/all.sh && bash -n tests/test-verdict.sh && bash -n tests/test-guard.sh && bash -n tests/test-config.sh && bash -n tests/test-install.sh && bash -n tests/test-phase2.sh && bash -n tests/test-cli.sh && bash -n tests/test-findings.sh && bash -n tests/test-format-json.sh && bash -n tests/test-suppress.sh && bash -n tests/test-scorecard.sh && bash -n tests/test-sdk-signals.sh && bash -n scripts/scorecard.sh && bash -n scripts/scorecard-real.sh && bash -n scripts/update-brew-formula.sh && bash -n tests/test-pack.sh && bash -n eval/run.sh && bash -n eval/validate.sh && bash -n eval/rag/ingest.sh && bash -n tests/test-rag-ingest.sh && bash -n tests/test-rag-embed.sh && bash -n tests/test-rag-gemini-client.sh && bash -n tests/test-rag-retrieve.sh && bash -n tests/test-eval-parse.sh && bash -n tests/test-rag-build-request.sh && bash -n tests/test-rag-run-guard.sh && bash -n tests/test-eval-score.sh && bash -n tests/test-evidence.sh && bash -n tests/test-guideline-cite.sh && bash -n tests/test-skip.sh && bash -n tests/test-saturated.sh && bash -n tests/test-ipv4-literal.sh && bash -n tests/test-design-40.sh && bash -n tests/test-phase6-doc.sh && bash -n tests/test-dynamic-reconcile.sh && bash -n skills/appstore-precheck/scripts/framework-detect.sh && bash -n skills/appstore-precheck/scripts/app-discover.sh && bash -n skills/appstore-precheck/scripts/dynamic-run.sh && bash -n skills/appstore-precheck/scripts/lib/dyn-quorum.sh && bash -n skills/appstore-precheck/scripts/lib/dyn-device.sh && bash -n skills/appstore-precheck/scripts/lib/dyn-signals.sh && bash -n skills/appstore-precheck/scripts/lib/dyn-geometry.sh && bash -n skills/appstore-precheck/scripts/lib/dyn-hosts.sh && bash -n skills/appstore-precheck/scripts/lib/dyn-bundle.sh && python3 -m py_compile skills/appstore-precheck/scripts/lib/png-uniform.py && bash -n tests/test-framework-detect.sh && bash -n tests/test-app-discover.sh && bash -n tests/test-dynamic-libs.sh && bash -n tests/test-dynamic-run.sh && bash -n tests/local/run-dynamic.sh && bash -n scripts/guideline-drift.sh && bash -n skills/appstore-precheck/scripts/lib/guideline-text.sh && bash -n skills/appstore-precheck/scripts/coverage-sections.sh && bash -n skills/appstore-precheck/scripts/lib/coverage-run.sh && python3 -B scripts/lint-coverage.py"
29
29
  },
30
30
  "keywords": [
31
31
  "ios",
@@ -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 55 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 8 heuristic checks (Tier B v1) — 31 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.19.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 31 semantic deep-review checks (23 Tier A + 8 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 55 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
@@ -280,100 +286,15 @@ covered by Phase 1, so `include_in_app_purchases:false` avoids the API-key IAP l
280
286
 
281
287
  ### Phase 3: Pierre explains every finding
282
288
 
283
- After Phases 0–2, role-play **Pierre** — a veteran Apple App Reviewer with a French critic's deadpan
284
- tone. His job in this phase is **not** to hunt for new issues or pick random guidelines. The scanner
285
- already did the detection. Pierre **explains every FAIL and WARN** the pipeline emitted.
286
-
287
- **Input to explain (all of it, no sampling):**
288
-
289
- 1. Every `WARN:` from Phase 0 (guideline drift and guideline news), if any.
290
- 2. Every `FAIL:` and `WARN:` from Phase 1 (`scan.sh`), verbatim.
291
- 3. Every violation from Phase 2 (`fastlane precheck`), if Phase 2 ran — treat each as a FAIL.
292
-
293
- **Rules:**
294
-
295
- - **One entry per finding.** Do not merge, skip, or summarize away individual lines.
296
- - **2–3 sentences per FAIL or WARN** in Pierre's voice: (1) which guideline Apple cares about and
297
- why it matters at review, (2) what the scan found in plain language, (3) the concrete fix or
298
- what to verify before submitting.
299
- - **Never quote guideline wording from memory.** Before explaining a finding, get Apple's actual
300
- text for its guideline number:
301
-
302
- ```bash
303
- bash skills/appstore-precheck/scripts/guideline-cite.sh 5.1.1 # or 5.1.1(v), 3.1.1(a), …
304
- ```
305
-
306
- It is offline and deterministic — it prints a **pinned** quote taken from the live guidelines at
307
- the last reconciliation, plus a deep link and the verification date. Use that quote (or a short
308
- excerpt of it) for the "why Apple cares" half of the explanation, in quotation marks.
309
- - **Exit 3 / `NO PINNED CITATION`** → say plainly that the exact wording could not be verified
310
- this run and link the section. Do **not** reconstruct the text from memory; a plausible
311
- paraphrase presented as Apple's words is worse than no quote.
312
- - **`STALE`** → still quote it, but say the pinned wording is older than the staleness window and
313
- should be re-checked against the live page.
314
-
315
- **When the machine has network, add `--verify-live`:**
316
-
317
- ```bash
318
- bash skills/appstore-precheck/scripts/guideline-cite.sh --verify-live 5.1.1
319
- ```
320
-
321
- This re-hashes the live section and compares it with the pinned fingerprint, turning staleness
322
- from a question about the pin's *age* into a question about whether Apple's text actually
323
- *changed*. It fetches once and caches for the day, so verifying every finding costs one request.
324
- - **Exit 4 / `CHANGED`** → the pinned wording is out of date. Do not quote it as current: say
325
- Apple's text for that section has changed, link the section, and describe the requirement in
326
- your own words marked as such.
327
- - Confirmed unchanged → the quote is current regardless of how old the pin is, and the `STALE`
328
- marker is correctly withdrawn.
329
- - Any failure (offline, fetch error, section not found) degrades to the offline behaviour above
330
- and **never** reports a verification that did not happen.
331
- - **Carry the evidence label.** Every FAIL/WARN in the scan output is followed by an indented
332
- `evidence: <class> · <confidence>` line (also in `--format json` / `sarif`). Reflect it:
333
- - `validator-blocking` → Apple's own validation stops this; say so with certainty.
334
- - `review-risk` → a human reviewer rejects this frequently; say it is a likely rejection, not a
335
- mechanical one.
336
- - `judgment-call` → a heuristic. Say it may be a false positive and what would confirm it.
337
- - `· needs build verification` → the claim rests on a source grep or a build setting, not on the
338
- shipping build. Say explicitly that it blocks the upload **if that code ships as-is**, and name
339
- what would settle it (conditional compilation, target membership, the actual archive).
340
- - Quote or repeat the **exact** `FAIL:`/`WARN:` line (or Phase 2 violation text) before each
341
- explanation block so the user can match Pierre to the machine output.
342
- - **Read-only:** never modify files; if a line lacks a path, say what to check manually — do not
343
- invent evidence.
344
- - **Zero FAIL and zero WARN:** Pierre gives a short all-clear (2–3 sentences total). Do not fabricate
345
- issues to seem thorough.
346
- - **Language:** write the 2–3 sentence explanations in the **user's conversation language** (keep
347
- Pierre's dry critic register). The Phase 5 trilingual one-liner stays separate.
348
-
349
- **Output format (repeat for each finding):**
350
-
351
- ```
352
- FAIL: <verbatim line from scan.sh or Phase 2>
353
- Pierre: <2–3 sentences>
354
- ```
355
-
356
- For WARN lines, use the same shape with `WARN:` instead of `FAIL:`.
357
-
358
- Use this prompt verbatim after Phases 0–2 complete, pasting in the collected findings:
359
-
360
- > You are **Pierre**, a veteran Apple App Reviewer who speaks like a French critic — dry, exacting,
361
- > never impressed. Phases 0–2 already ran. Your only job is to **explain every FAIL and WARN below**
362
- > in **2–3 sentences each**. Do not pick random guidelines. Do not hunt for extra issues. Do not skip
363
- > any line. For each finding: print the line verbatim, then `Pierre:` followed by your explanation
364
- > (why Apple flags this guideline, what the scan found, what to fix or verify). Before each
365
- > explanation run `bash skills/appstore-precheck/scripts/guideline-cite.sh <guideline>` and quote the
366
- > pinned wording it returns; if it exits 3 with `NO PINNED CITATION`, say the exact wording could not
367
- > be verified this run and **never** quote guideline text from memory. Reflect the finding's
368
- > `evidence:` line — in particular, when it says `needs build verification`, say the claim rests on a
369
- > source grep or a build setting rather than on the shipping build. If there are zero FAILs and zero
370
- > WARNs, say so briefly in 2–3 sentences. Read-only — never modify files. Write the explanations in
371
- > `<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.
372
293
 
373
- ### Phase 4: Pierre deep review (31 semantic checks)
294
+ ### Phase 4: Pierre deep review (56 semantic checks)
374
295
 
375
- After Phase 3, Pierre runs the **Review Simulator**: 30 read-only, evidence-based checks the
376
- static scanner cannot fully judge (**23 Tier A** + **8 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).
377
298
  The full checklist, per-check procedure, and output format live in
378
299
  [`references/pierre-deep-review.md`](references/pierre-deep-review.md) — read it before starting
379
300
  Phase 4. When screenshots are present, also run the structured screenshot vision review in
@@ -386,56 +307,25 @@ SDK usage, screenshots vs features, and paywall disclosure quality.
386
307
 
387
308
  **Rules (summary):**
388
309
 
389
- - Run **all 31 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.
390
311
  - `REVIEW-FINDING:` is always **WARN** (advisory). It does **not** change FAIL/WARN counts or the verdict.
391
- - † **Tier B v1** checks (4, 5, 7, 10, 15, 29, 30, 31) 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.
392
313
  - When Phase 1 already flagged a guideline, still run the matching deep check and add semantic context.
393
314
  - Cite evidence (`file:line`, metadata path, screenshot name, fetched URL excerpt). Read-only — never edit files.
394
315
 
395
- **The 31 checks (guideline order):**
396
-
397
- | # | Guideline | Deep question |
398
- |---|-----------|---------------|
399
- | 1 | **1.2.1** | UGC → real report/block/moderation UI flow? |
400
- | 2 | **1.4.1** | Health/medical claims without disclaimers? |
401
- | 3 | **2.1** | Metadata claims match implemented features? |
402
- | 4 † | **2.1** | Demo account / App Review notes actionable (not placeholder)? |
403
- | 5 † | **2.2** | Beta / test / preview language in store-facing copy? |
404
- | 6 | **2.3.2** | Primary category fits app type? |
405
- | 7 † | **2.3.4** | App preview assets match shipped features? |
406
- | 8 | **2.3.5** | Screenshots match shipped features? |
407
- | 9 | **2.3.6** | Metadata pricing language matches paywall? |
408
- | 10 † | **2.3.9** | Incentivized review copy (rate for reward)? |
409
- | 11 | **2.3.11–2.3.13** | Cross-locale metadata materially consistent? |
410
- | 12 | **3.1.1** | Digital goods unlocked via external purchase links? |
411
- | 13 | **3.1.2** | Trial/auto-renew/cancel disclosures are legible sentences? |
412
- | 14 | **4.2.1–4.2.2** | More than a thin WebView shell / template? |
413
- | 15 † | **4.5.1–4.5.3** | Push / HomeKit entitlements used as intended? |
414
- | 16 | **4.8** | Third-party login → Sign in with Apple or valid exempt case? |
415
- | 17 | **5.1.1(i)** | Privacy policy text matches code + PrivacyInfo? |
416
- | 18 | **5.1.1(ii)** | Purpose strings specific and feature-tied? |
417
- | 19 | **5.1.1(iii)** | Permissions/SDKs proportionate to app purpose? |
418
- | 20 | **5.1.1(iv)** | Permission denial handled without forced loops? |
419
- | 21 | **5.1.1(iv)** | Pre-permission priming CTA neutral ("Continue"/"Next"), not steering? |
420
- | 22 | **5.1.2** | ATT, tracking description, policy, and ad SDKs align? |
421
- | 23 | **5.1.3** | HealthKit data not used for ads/marketing? |
422
- | 24 | **5.1.4** | Kids signals → parental gate before links/IAP/account? |
423
- | 25 | **5.4** | VPN → on-screen disclosure copy in UI strings? |
424
- | 26 | **5.2.1–5.2.3** | Obvious trademark/brand misuse in metadata or UI? |
425
- | 27 | **5.3.1–5.3.3** | Contest/sweepstakes copy includes official rules? |
426
- | 28 | **5.6.2–5.6.3** | Developer identity consistent (support URL, domains, app name)? |
427
- | 29 † | **5.6.1 / 5.6.3** | Rating manipulation dark patterns beyond scan §25? |
428
- | 30 † | **4.3** | Meaningfully different from the incumbents in a category Apple names as saturated? |
429
- | 31 † | **4.0** | Meets Apple's minimum design bar (iPad / large-text layout, no placeholder or degraded UI)? |
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`.
430
319
 
431
320
  Use this prompt after Phase 3:
432
321
 
433
- > You are **Pierre**. Phase 3 is done. Now run **Phase 4 deep review**: all 31 checks in
322
+ > You are **Pierre**. Phase 3 is done. Now run **Phase 4 deep review**: all 56 checks in
434
323
  > [`references/pierre-deep-review.md`](references/pierre-deep-review.md), in table order. For each
435
- > 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,
436
326
  > add `Pierre:` with 2–3 sentences (why Apple cares, what you found, what to fix). Read-only.
437
327
  > Write explanations in `<USER_LANGUAGE>`. Do not change the scan verdict counts. † Tier B checks
438
- > (4, 5, 7, 10, 15, 29, 30, 31): 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.
439
329
 
440
330
  ### Phase 5: Consolidation + token
441
331
 
@@ -455,17 +345,20 @@ narrative; verdict.sh just pins the threshold arithmetic. `REVIEW-FINDING` lines
455
345
  from Phase 1 + Phase 0/2 only — Pierre's prose and REVIEW-FINDING lines do not add FAIL/WARN).
456
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.
457
347
  3. Present **Phase 3 commentary** — Pierre's 2–3 sentence explanation for every FAIL and WARN.
458
- 4. Present **Phase 4 deep review** — summary count (`REVIEW-FINDING` vs `REVIEW-PASS` of 31), then
459
- every `REVIEW-FINDING` with Pierre explanation; list `REVIEW-PASS` lines compactly or omit if all 31 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.
460
350
  The 5 screenshot-vision checks (S1–S5) emit the same `REVIEW-*` prefixes but count as a
461
- **separate "+5 vision checks" sub-block** in the summary, never inside the "of 31" denominator.
351
+ **separate "+5 vision checks" sub-block** in the summary, never inside the "of 56" denominator.
462
352
  5. Present the **machine-faithful** scan output: each `FAIL:`/`WARN:` line verbatim, with its
463
353
  `evidence:` line, then for each FAIL a `file:line` reference and a suggested fix (one line each,
464
354
  surgical, not paraphrased).
465
- 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 —
466
359
  a verdict is only meaningful next to the list of what it did not cover. Two parts:
467
360
 
468
- **(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
469
362
  the gap (paste the App Store Connect listing, set `.screenshotsDir`, …). A SKIP acknowledged in
470
363
  `.precheck-ignore` is not printed by the scanner but is still in `summary.not_audited` with
471
364
  `suppressed: true`; list it here as *acknowledged* — signing for a gap does not close it. If
@@ -537,7 +430,7 @@ parity) with the Maestro MCP tools — **one flow per `mcp__maestro__run` call**
537
430
  `accessibilityText` — appending `DYNAMIC-*` lines to the same transcript.
538
431
 
539
432
  Follow [`references/simulator-dynamic-review.md`](references/simulator-dynamic-review.md) for the
540
- setup step (D0), the full checklist (D1–D11 incl. D3b) and the output format.
433
+ setup step (D0), the full checklist (D1–D17 incl. D3b) and the output format.
541
434
  Afterwards feed the transcript to [`scripts/dynamic.sh`](scripts/dynamic.sh) with the static
542
435
  `--format json` output: it records every observation as `evidence: runtime` with the run's
543
436
  `runtime_target` and `build_config`, and reconciles them with the static findings (a runtime
@@ -573,7 +466,7 @@ from, and leave it `unknown` if you do not know.
573
466
  false-fire — and the scan now says so with a `SKIP: framework` gap record (`framework-not-audited`)
574
467
  naming the affected checks.
575
468
  - iOS only.
576
- - 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.
577
470
  - Guideline citations are **pinned snapshots**, not a live fetch: offline and reproducible, but only
578
471
  as current as the last reconciliation. `guideline-cite.sh` prints the verification date and marks a
579
472
  citation `STALE` past the staleness window; `--verify-live` upgrades that to a real change check