appstore-precheck 1.20.2 → 1.23.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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,61 @@ All notable changes to this project are documented here. Versioning follows
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.23.0] — 2026-11-26
9
+
10
+ ### Artifact tier, baseline diff, positioning
11
+
12
+ - **`--artifact <path>` (alias `--ipa`)**: the read-only `artifact-review.py` inspector (`.app`, `.ipa`, `.xcarchive`; plists, signed entitlements, Mach-O linkage, embedded frameworks, nothing launched) is now part of `scan.sh`. Its nine checks are catalogued rules §78–§86 (`artifact-entitlements`, `artifact-reason-api`, `artifact-private-api`, `artifact-url-schemes`, `artifact-ats`, `artifact-sdk`, `artifact-embedded-sdk`, `artifact-executable-loading`, `artifact-debug`) with the new `artifact` evidence class; `FINDING` / `NEEDS_REVIEW` map to WARN, never FAIL, and a missing tool or artifact is an honest SKIP. Counted as "artifact checks" in the coverage inventory, apart from the static vectors. `npx appstore-precheck --artifact build/App.ipa` passes it through.
13
+ - **`--save-baseline <file>` / `--baseline <file>`**: accept today's FAIL/WARN findings and fail only on what is new. A match on rule + file + message is treated like a `.precheck-ignore` suppression (out of text and verdict, kept in JSON as `suppressed: true`), counted in the new `summary.baseline` and in the text footer. PASS and SKIP are never baselined; an unreadable baseline is reported on stderr and ignored.
14
+ - README states the scope plainly: iOS only, by design, with a pointer to greenlight for Google Play. New `tests/test-baseline.sh` and `tests/test-scan-artifact.sh`.
15
+
16
+ Coverage inventory: 94/104 leaf sections (90%); 94 touched, 2 positive-only; 77 static vectors, 9 artifact checks, 56 deep-review checks, 20 dynamic checks, 5 vision checks, 10 human-only sections.
17
+
18
+
19
+ ## [1.22.0] — 2026-11-26
20
+
21
+ ### App Store Connect changes of November 2026 encoded (guideline text unchanged)
22
+
23
+ Apple did not change the App Review Guidelines after October 16, 2026 (`guideline-drift.sh`: no drift), but App Store Connect and the new App Review Help hub added submission rules the scanner did not know. Five advisory static vectors (§73–§77) in the modular table, all WARN-only, all `judgment-call`:
24
+
25
+ - **§73 `shared-location-descriptor` (2.3.6)**: a location API together with copy about sharing location with other people. The "Shared Location" age-rating content descriptor is mandatory for every app by **2027-01-12**; the WARN says to answer it, not that the rating is wrong.
26
+ - **§74 `dating-age-descriptor` (2.3.6)**: dating / matchmaking / AI-companion wording in store metadata. The "Dating and Relationships" descriptor sets the minimum rating to 18+ (Brazil A18). "Updating", puzzle "match" and CRM "relationship" stay clean.
27
+ - **§75 `on-demand-resources` (2.1)**: `NSBundleResourceRequest` / ODR build settings. New apps using On-Demand Resources are not accepted from early 2027; Background Assets is the replacement.
28
+ - **§76 `required-device-capabilities` (2.4.1)**: `UIRequiredDeviceCapabilities` entries beyond architecture / baseline (telephony, gps, cameras, sensors, nfc) narrow the device set; App Review Help says to declare only what core functionality needs.
29
+ - **§77 `review-notes-completeness` (2.1)**: against `fastlane/metadata/review_information/`, a third-party AI provider in code must be named in the notes, auto-renewable subscriptions need a demo account in an expired state, and more than one account type needs credentials for each. Missing metadata is a SKIP gap.
30
+ - Deep-review check 4 lists the same three review-notes expectations; check 8 and vision S4 count the "more than half of each device set shows the app in use" rule (2 of 3, 3 of 56). The methodology checklist gains the ASC age questions, the App Compliance page, the screenshot ratio, the review-notes items and the Siri AI App Intents limits (under-13 and EU users excluded; submissions from spring 2027).
31
+ - Modular-table evidence classes now include `manifest`; the coverage derivation accepts it.
32
+
33
+ Coverage inventory: 94/104 leaf sections (90%); 94 touched, 2 positive-only; 77 static vectors, 56 deep-review checks, 20 dynamic checks, 5 vision checks, 10 human-only sections.
34
+
35
+
36
+ ## [1.21.1] — 2026-11-25
37
+
38
+ ### Fixed
39
+ - **§54 `saturated-category` (4.3(b))** now matches "simple timers", the one category in Apple's own 4.3(b) list that the regex had left out while the comment above it named it. A bare `timer` keyword still does not fire: Apple's words are "simple timers", and "timer" alone is an ordinary feature word.
40
+ - **§51 `xcode-sdk-requirement` (2.1)** reads every checked-in `project.pbxproj` instead of the first five `find` returned, and transports paths NUL-delimited (`-print0` / `xargs -0`), so a project under a directory with a space in its name, or a hand-maintained project listed after several generated Tuist / XcodeGen / SwiftPM wrapper projects, no longer escapes the pre-26 `LastUpgradeCheck` warning. New `tests/test-xcode-sdk-paths.sh` pins both cases.
41
+ - **§26 `misleading-claims`, §27 `kids-wording`, §40 `realmoney-gambling`** quote their metadata hits sorted by path then line (`LC_ALL=C`), so the finding's `file`/`line` and detail text are the same on APFS and ext4. The only cross-platform difference the full-suite Linux diagnostic found was §40 on `risky-app-2` naming `keywords.txt` on macOS and `description.txt` on Linux. New `tests/test-detail-order.sh` pins the path order.
42
+ - **§55 `ipv4-literal` (2.5.5)** lists its evidence sorted by path then line. `grep -r` walks directories in filesystem order, which differs between APFS and ext4, and the GitHub runner image of November 2026 changed that order on Linux: the additions-only golden test (`tests/test-default-golden.sh`) failed on `main` without any code change. The golden entry for `ipv4-literal-app` is re-pinned to the sorted order; `tests/test-ipv4-literal.sh` asserts it.
43
+ - SKILL.md no longer claims age rating, review notes and the demo account have "no scanner rule": §20 checks for reviewer credentials behind a login and the opt-in `--metadata` tier reports their presence; what remains a deep-review judgment is their substance. README's 2.3.3 row says the screenshot check is presence-only and names Apple's "more than half show the app in use" rule as the vision / human part.
44
+
45
+ ### Changed
46
+ - README visuals redrawn: the social preview carries the current numbers (72 static vectors, 56 deep checks, 20 dynamic, 94/104 sections) and all five hosts; a new "How it works" pipeline graphic sits above the phase table. Sources live in `assets/src/` and render with `bash assets/src/render.sh` (headless Chrome); the demo GIFs were re-recorded from the current CLI with the existing vhs tapes.
47
+
48
+ ## [1.21.0] — 2026-10-17
49
+
50
+ ### Apple App Review Guidelines update of October 16, 2026 reconciled
51
+
52
+ - Baseline gains the two new sections: **2.3.14 Creative Assets** (human-only: the product-page header / search art lives only in App Store Connect and has no fastlane metadata slot) and **2.5.19 hidden, dormant or undocumented features** (moved out of 2.3.1; obfuscation used to hide features is now grounds for removal and account termination). Denominator 102 → 104 leaf sections.
53
+ - New advisory static vector **§72 `review-mode-gate` (2.5.19)**: review-detection / hide-for-review identifiers and remote-config keys, App Store build-flag branches, date-gated unlocks, and obfuscation tooling (SwiftShield, swift-obfuscator, iXGuard, string obfuscators). WARN only; `SKStoreReviewController`, `requestReview`, review-prompt copy and product/order review vocabulary stay clean.
54
+ - **§22 (1.2)** now treats AI content creation as user-generated content: image/video generation endpoints and SDKs (OpenAI images, Replicate, Stability, fal.ai, Runway, ImagePlayground, StableDiffusion, `generateImage`) join the UGC signal list, and the WARN names nonconsensual intimate imagery and the Developer Code of Conduct consequence. Deep-review checks 1 and 38 mention AI-generated content.
55
+ - **§50 (4.5.3)** gains a Live Activities signal: `import ActivityKit` / `NSSupportsLiveActivities` with a marketing-push SDK is a WARN (push-to-start promotions), alone a PASS note; deep-review check 15 now asks about Live Activities spam.
56
+ - **§15 (3.1.1(a))** WARN uses Apple's "permitted destination" language and notes that approved destinations vary by region.
57
+ - Fingerprints reconciled against the live page (`reconciled_on` 2026-10-17); the eleven pinned quotations whose text Apple changed were re-pinned at the 25-word boundary and their golden hashes refreshed. Baseline `reconciled_on` 2026-10-17, `apple_last_updated_seen` October 16, 2026.
58
+ - `scripts/guideline-drift.sh` names the real check slug for modular-table checks (§56–§72) instead of the literal `$_static_slug`; SKILL.md points at the drift script at the repository root rather than the skill's own `scripts/`.
59
+
60
+ Coverage inventory: 94/104 leaf sections (90%); 94 touched, 2 positive-only; 72 static vectors, 56 deep-review checks, 20 dynamic checks, 5 vision checks, 10 human-only sections.
61
+
62
+
8
63
  ## [1.20.2] — 2026-10-02
9
64
 
10
65
  ### Fixed
package/README.md CHANGED
@@ -13,10 +13,10 @@
13
13
  <p align="center"><strong>Catch App Store rejections before a reviewer does.</strong></p>
14
14
 
15
15
  <p align="center">
16
- <img src="assets/demo-fix-loop.gif" width="900" alt="appstore-precheck scanning an app: RED with four FAILs, then GREEN after the paywall is fixed">
16
+ <img src="assets/demo-fix-loop.gif" width="900" alt="appstore-precheck scanning an app: RED with five FAILs, then GREEN after the paywall and metadata are fixed">
17
17
  </p>
18
18
 
19
- <p align="center"><em>Four blockers found before Apple saw them, then a clean GREEN after the fix.</em></p>
19
+ <p align="center"><em>Five blockers found before Apple saw them, then a clean GREEN after the fix.</em></p>
20
20
 
21
21
  ---
22
22
 
@@ -48,15 +48,15 @@ each, divided by horizontal rules), not one compressed sentence. The breakdown b
48
48
 
49
49
  ## What it checks
50
50
 
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.
51
+ Coverage inventory: 94/104 leaf sections (90%); 94 touched, 2 positive-only; 77 static vectors, 9 artifact checks, 56 deep-review checks, 20 dynamic checks, 5 vision checks, 10 human-only sections.
52
52
 
53
53
  The percentage counts sections touched, not automatic verification of every requirement; see [the coverage inventory](docs/guideline-coverage.md).
54
54
 
55
- 71 rejection vectors across code, fastlane metadata, screenshots, `PrivacyInfo.xcprivacy`, and the paywall:
55
+ 77 rejection vectors across code, fastlane metadata, screenshots, `PrivacyInfo.xcprivacy`, and the paywall:
56
56
 
57
57
  | Guideline | Check |
58
58
  |-----------|-------|
59
- | **1.2** | User-generated content without a report / block / moderation mechanism |
59
+ | **1.2** | User-generated or AI-generated content (chat/UGC SDKs, image & video generation endpoints) without a report / block / moderation mechanism |
60
60
  | **1.6** | App Transport Security disabled app-wide (`NSAllowsArbitraryLoads`) |
61
61
  | **2.1** | No placeholder / dummy copy (lorem ipsum, TODO, `example.com`) in store metadata |
62
62
  | **2.1** | A login-gated app ships demo credentials / review notes for App Review |
@@ -65,7 +65,7 @@ The percentage counts sections touched, not automatic verification of every requ
65
65
  | **2.3.7 / ASC** | Metadata length limits (name, subtitle, keywords, promo, description) |
66
66
  | **2.3.1** | Misleading marketing claims (iOS virus / malware scanners, fake speed boosters) in metadata |
67
67
  | **2.3.7** | Pricing / promo language ("Free", "% off", a currency amount) in the app name or subtitle |
68
- | **2.3.3** | At least one screenshot per locale |
68
+ | **2.3.3** | At least one screenshot per locale *(presence only; Apple's "more than half show the app in use" rule per device set is a vision / human check)* |
69
69
  | **2.3.3** | Screenshot format + PNG dimensions match a known App Store screenshot size *(advisory, WARN-only)* |
70
70
  | **2.3** | Localized metadata parity across every locale |
71
71
  | **2.3.8** | "For Kids" / "For Children" wording outside the Kids Category |
@@ -75,7 +75,7 @@ The percentage counts sections touched, not automatic verification of every requ
75
75
  | **2.5.4** | Background modes declared in `UIBackgroundModes` but never used |
76
76
  | **2.5.5** | IPv4-only socket APIs (`inet_addr`, `AF_INET`, `gethostbyname`, …) or hardcoded IPv4 literals — App Review runs on an IPv6-only NAT64 network *(advisory)* |
77
77
  | **3.1.1** | Third-party payment SDK (Stripe, Braintree, PayPal, …) linked for digital goods instead of in-app purchase |
78
- | **3.1.1(a)** | External purchase link entitlement + disclosure, when external purchase APIs are used |
78
+ | **3.1.1(a)** | External purchase link entitlement + disclosure (link only to a permitted destination), when external purchase APIs are used |
79
79
  | **3.1.2** | Trial & auto-renew subscription disclosures |
80
80
  | **3.1.2** | Restore Purchases + Terms (EULA) + Privacy Policy on the paywall |
81
81
  | **3.1.2** | Trial-emphasized paywall CTA ("Continue with free trial") or a free-trial toggle instead of one clear price |
@@ -87,6 +87,7 @@ The percentage counts sections touched, not automatic verification of every requ
87
87
  | **4.4.1** | Keyboard extension that requires full access (`RequestsOpenAccess`) |
88
88
  | **4.4.2** | Safari content-blocker / web extension |
89
89
  | **4.5.4** | Marketing-push SDK registered for notifications without an in-app opt-out signal |
90
+ | **4.5.3** | Live Activities (`ActivityKit` / `NSSupportsLiveActivities`) alongside a marketing-push SDK: push-to-start promotions are spam *(advisory)* |
90
91
  | **4.8** | Sign in with Apple offered when a third-party social login is used |
91
92
  | **4.3** | Exposure to a category Apple names as saturated in 4.3(b) (dating, flashlight, sound effects, wallpaper, simple timers, fortune telling, …) |
92
93
  | **4.9** | Recurring Apple Pay (`PKRecurringPaymentRequest`) — verify the renewal / cancel disclosure |
@@ -125,6 +126,11 @@ The percentage counts sections touched, not automatic verification of every requ
125
126
  | **4.5.6** | Unicode emoji range heuristic in store text; icon pixels always receive a separate SKIP gap. |
126
127
  | **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
128
  | **5.2.4** | Narrow English endorsement/official-product patterns; authorized claims still require human confirmation. Ordinary iPhone compatibility text stays clean. |
129
+ | **2.5.19** | Review-detection / hide-for-review keys, App Store build-flag branches, date-gated unlocks and obfuscation tooling; store-review prompts and product-review vocabulary stay clean. A hit asks "show the reviewer what ships", it is not proof of a hidden feature. |
130
+ | **2.3.6** | Location API plus location-sharing copy → answer the new "Shared Location" age-rating descriptor; dating / AI-companion wording in metadata → "Dating and Relationships" descriptor means 18+ (both mandatory in App Store Connect by 2027-01-12) *(advisory)* |
131
+ | **2.1** | On-Demand Resources (`NSBundleResourceRequest`, ODR build settings): not accepted in new apps from early 2027, migrate to Background Assets *(advisory)* |
132
+ | **2.4.1** | `UIRequiredDeviceCapabilities` entries beyond architecture / baseline (telephony, gps, cameras, sensors) narrow the device set; declare only what core functionality needs *(advisory)* |
133
+ | **2.1** | Review notes name the third-party AI provider the code calls, give an expired-subscription demo account when subscriptions auto-renew, and cover every account type the app has *(advisory)* |
128
134
 
129
135
  Paywall checks are skipped automatically when no in-app-purchase signals are present, and the
130
136
  advisory warnings require their documented trigger. Missing inputs are recorded in the JSON coverage gaps.
@@ -231,6 +237,10 @@ how the app is built:
231
237
  | 🟢 **Native Swift / SwiftUI** | Source checks are supported; applicability and missing-input gates still apply. |
232
238
  | 🟡 **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. |
233
239
 
240
+ **iOS only, on purpose.** The scanner encodes Apple's App Store Review Guidelines and App Store
241
+ Connect rules; it does not read Android projects or Play Console policy, and it will not. For a
242
+ Google Play pre-check use a tool built for it, such as [greenlight](https://github.com/RevylAI/greenlight).
243
+
234
244
  ## Quick start
235
245
 
236
246
  One `SKILL.md`, every host. **Claude Code, Cursor, Codex, and Grok Build** install as native
@@ -373,6 +383,32 @@ bash skills/appstore-precheck/scripts/scan.sh --format json # structured findi
373
383
  default text lines, for scripts and measurement tooling to consume. It's read-only and additive;
374
384
  the default text output is unchanged.
375
385
 
386
+ **Built artifact (`--artifact`, alias `--ipa`)** — hand the scan a built `.app`, `.ipa` or
387
+ `.xcarchive` and nine read-only artifact checks join the output as rules `artifact-*`: signed
388
+ entitlements vs `Info.plist`, Required Reason API symbols vs `PrivacyInfo.xcprivacy`, private
389
+ framework linkage (`otool -L`), `LSApplicationQueriesSchemes`, ATS exceptions as shipped,
390
+ `MinimumOSVersion` vs the build SDK, embedded frameworks' manifests and signatures, downloaded
391
+ executable code strings, and debug leftovers (`get-task-allow`, stray `.mobileprovision`, dSYMs).
392
+ Nothing is launched. They carry `evidence: artifact`, never FAIL on their own, and report SKIP when a
393
+ tool (`codesign`, `otool`, `nm`) is missing.
394
+
395
+ ```bash
396
+ npx appstore-precheck --artifact build/MyApp.ipa
397
+ bash skills/appstore-precheck/scripts/scan.sh --ipa build/MyApp.ipa --format json
398
+ ```
399
+
400
+ **Baseline (`--save-baseline` / `--baseline`)** — accept today's findings and see only what is
401
+ new. `--save-baseline .precheck-baseline.json` records the live FAIL/WARN findings (rule, file,
402
+ message); on later runs `--baseline .precheck-baseline.json` treats a matching finding like a
403
+ `.precheck-ignore` suppression: it leaves the text output and the verdict, stays in `--format json`
404
+ as `suppressed: true`, and is counted in `summary.baseline` and in the footer. A baseline that
405
+ cannot be read is reported on stderr and ignored, so it can never hide anything by accident.
406
+
407
+ ```bash
408
+ npx appstore-precheck --save-baseline .precheck-baseline.json # once, after triage
409
+ npx appstore-precheck --baseline .precheck-baseline.json # in CI: fail only on new findings
410
+ ```
411
+
376
412
  ### CI
377
413
 
378
414
  Drop the static scan into a workflow with the bundled composite action. It fails the
@@ -413,10 +449,14 @@ nothing is auto-fixed.
413
449
 
414
450
  ## How it works
415
451
 
452
+ <p align="center">
453
+ <img src="assets/how-it-works.png" width="900" alt="The appstore-precheck pipeline: guideline drift, static scan, fastlane precheck, Pierre commentary, Pierre deep review, then a GREEN / YELLOW / RED verdict; an opt-in dynamic simulator tier runs beside it">
454
+ </p>
455
+
416
456
  | Phase | Step |
417
457
  |-------|------|
418
458
  | **0** | **Guideline drift**: diff the live App Store Review Guidelines against a tracked baseline. Never blocks. |
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). |
459
+ | **1** | **Static scan**: `scan.sh` over the 77 vectors above. Every finding is labelled with the artifact it was read from and who enforces it — see [Evidence strength](#evidence-strength). |
420
460
  | **2** | **`fastlane precheck`**: Apple's own metadata rule engine. |
421
461
  | **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). |
422
462
  | **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. |
package/bin/cli.js CHANGED
@@ -39,6 +39,9 @@ function printHelp() {
39
39
  ` --dir <path> Directory to scan (default: current directory)\n` +
40
40
  ` --fail-on <level> Exit non-zero at RED (default) or YELLOW\n` +
41
41
  ` --format <fmt> Output format: text (default), json, or sarif\n` +
42
+ ` --artifact <path> Also inspect a built .app / .ipa / .xcarchive (read-only)\n` +
43
+ ` --baseline <file> Hide findings recorded earlier with --save-baseline\n` +
44
+ ` --save-baseline <f> Write the live FAIL/WARN findings of this run to <f>\n` +
42
45
  ` -v, --version Print the version and exit\n` +
43
46
  ` -h, --help Show this help and exit\n` +
44
47
  `\n` +
@@ -56,7 +59,7 @@ function fail(message, code) {
56
59
  }
57
60
 
58
61
  function parseArgs(argv) {
59
- const opts = { dir: process.cwd(), failOn: 'RED', format: 'text' };
62
+ const opts = { dir: process.cwd(), failOn: 'RED', format: 'text', passthrough: [] };
60
63
  for (let i = 0; i < argv.length; i++) {
61
64
  const a = argv[i];
62
65
  if (a === '-h' || a === '--help') { printHelp(); process.exit(0); }
@@ -78,6 +81,12 @@ function parseArgs(argv) {
78
81
  opts.format = v;
79
82
  continue;
80
83
  }
84
+ if (a === '--artifact' || a === '--ipa' || a === '--baseline' || a === '--save-baseline') {
85
+ const v = argv[++i];
86
+ if (!v) fail(`${a} requires a path`, 64);
87
+ opts.passthrough.push(a === '--ipa' ? '--artifact' : a, v);
88
+ continue;
89
+ }
81
90
  fail(`unknown option: ${a} (try --help)`, 64);
82
91
  }
83
92
  return opts;
@@ -104,6 +113,7 @@ function main() {
104
113
  // the enclosing git toplevel.
105
114
  const scanArgs = [SCAN, '--dir', opts.dir];
106
115
  if (opts.format !== 'text') scanArgs.push('--format', opts.format);
116
+ scanArgs.push(...opts.passthrough);
107
117
  const scan = spawnSync('bash', scanArgs, {
108
118
  cwd: opts.dir,
109
119
  encoding: 'utf8',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appstore-precheck",
3
- "version": "1.20.2",
3
+ "version": "1.23.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 && 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"
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-xcode-sdk-paths.sh && bash -n tests/test-detail-order.sh && bash -n tests/test-baseline.sh && bash -n tests/test-scan-artifact.sh && bash -n skills/appstore-precheck/scripts/lib/scan-artifact.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,10 +1,10 @@
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 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.
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 77 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.20.2
7
+ version: 1.23.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
 
@@ -12,7 +12,7 @@ allowed-tools: Bash Read Grep Glob WebFetch mcp__maestro__list_devices mcp__maes
12
12
 
13
13
  Optional CLI tiers and build/credential boundaries: [optional-review.md](references/optional-review.md).
14
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.
15
+ Coverage inventory: 94/104 leaf sections (90%); 94 touched, 2 positive-only; 77 static vectors, 9 artifact checks, 56 deep-review checks, 20 dynamic checks, 5 vision checks, 10 human-only sections.
16
16
 
17
17
  This percentage counts sections touched, not automatic verification of every requirement.
18
18
 
@@ -132,11 +132,13 @@ those moved repeatedly through 2024–2026.
132
132
  Like the drift check this is a gap in **our** coverage, never a fault of the build: always
133
133
  non-blocking, WARN at most.
134
134
 
135
- The deterministic, full-page drift detector is `scripts/guideline-drift.sh` (maintainer/CI;
136
- curl-based, so it also covers the 5.5–5.6.x tail that `WebFetch` truncates). It reports
137
- section-number drift AND text (semantic) drift of covered sections, naming the affected
138
- check(s). It is non-blocking and never runs in the offline user scan; the fingerprint baseline
139
- (`guidelines-fingerprints.json`) is human-reconciled via `guideline-drift.sh --reconcile`.
135
+ The deterministic, full-page drift detector is `scripts/guideline-drift.sh` at the **source
136
+ repository root** (not this skill's own `scripts/`; it is a maintainer/CI tool and is not
137
+ installed with the skill). It is curl-based, so it also covers the 5.5–5.6.x tail that
138
+ `WebFetch` truncates, and reports section-number drift AND text (semantic) drift of covered
139
+ sections, naming the affected check(s). It is non-blocking and never runs in the offline user
140
+ scan; the fingerprint baseline (`guidelines-fingerprints.json`) is human-reconciled from the
141
+ repository root via `bash scripts/guideline-drift.sh --reconcile`.
140
142
 
141
143
  ### Phase 1: Static scan
142
144
 
@@ -150,7 +152,7 @@ bash <skill-dir>/scripts/scan.sh
150
152
  bash skills/appstore-precheck/scripts/scan.sh
151
153
  ```
152
154
 
153
- Emits `FAIL:` / `WARN:` / `PASS:` / `SKIP:` lines covering 71 rejection vectors: Privacy Manifest /
155
+ Emits `FAIL:` / `WARN:` / `PASS:` / `SKIP:` lines covering 77 rejection vectors: Privacy Manifest /
154
156
  Required Reason API parity (5.1.1), purpose strings (5.1.1), ATT (5.1.2), other-platform mentions
155
157
  (2.3.10), metadata limits (2.3.7), localized parity (2.3), screenshots (2.3.3), trial &
156
158
  auto-renew disclosures (3.1.2), Restore/Terms/Privacy links (3.1.2), private API (2.5.1), minimum
@@ -175,14 +177,16 @@ strings (5.1.1(ii)), a third-party AI endpoint without a provider-naming consent
175
177
  urgency/scarcity dark patterns on the paywall (3.1.2), sentiment-gated rating prompts (5.6.1),
176
178
  forced login without a guest path (5.1.1(v)), a marketing-push SDK without an opt-out signal
177
179
  (4.5.4), and a pre-26 Xcode `LastUpgradeCheck` against the April 2026 iOS 26 SDK upload minimum
178
- (2.1), and exposure to a category Apple names as saturated in 4.3(b) (4.3). The IAP checks (8–10 and 53) are skipped automatically
180
+ (2.1), exposure to a category Apple names as saturated in 4.3(b) (4.3), and the November 2026 App Store Connect rules:
181
+ Shared Location / Dating age descriptors (2.3.6), On-Demand Resources sunset (2.1), speculative `UIRequiredDeviceCapabilities` (2.4.1) and review-notes completeness (2.1). The IAP checks (8–10 and 53) are skipped automatically
179
182
  when no in-app-purchase signals are present, and the signal-gated advisory checks (16–52) stay
180
183
  silent unless their triggering signal is found. The
181
184
  full check table is in
182
185
  [`references/methodology.md`](references/methodology.md#phase-1-rejection-vectors).
183
186
 
184
187
  The scanner is portable Bash, so you can also run it directly, outside any agent, for a quick CI
185
- or pre-commit check.
188
+ or pre-commit check. `--artifact <.app|.ipa|.xcarchive>` adds nine read-only checks on the built bundle (`artifact-*`, `evidence: artifact`, never executed);
189
+ `--save-baseline` / `--baseline <file>` accept today's FAIL/WARN findings and fail only on what is new (see methodology.md).
186
190
 
187
191
  A fourth line class, `SKIP:`, marks a check that **could not run** — a missing artifact, not a
188
192
  clean result. It is counted separately (`skip=` in `verdict.sh`, `summary.not_audited` in JSON) and
@@ -221,8 +225,10 @@ The scanner accepts an absolute `metadataDir`, so the repo is untouched (read-on
221
225
  them like any other, saying they came from the pasted listing rather than the repo. Use the second
222
226
  run's output as the Phase 1 result.
223
227
 
224
- Age rating, review notes and the demo account have no scanner rule; judge those in Phase 4 (deep
225
- review check 4) as advisory `REVIEW-FINDING` lines. If the user declines, or there is no user to ask
228
+ Age rating, review notes and the demo account are only checked for *presence* (§20 looks for
229
+ `review_information/` credentials behind a login; the opt-in `--metadata` tier in
230
+ [optional-review.md](references/optional-review.md) reports whether the listing has them, unverified);
231
+ judge their substance in Phase 4 (deep review check 4) as advisory `REVIEW-FINDING` lines. If the user declines, or there is no user to ask
226
232
  (a CI or non-interactive run), leave the listing as `SKIP` and list it under "Not audited" in
227
233
  Phase 5. **Never invent metadata to audit.**
228
234
 
@@ -352,7 +358,7 @@ narrative; verdict.sh just pins the threshold arithmetic. `REVIEW-FINDING` lines
352
358
  5. Present the **machine-faithful** scan output: each `FAIL:`/`WARN:` line verbatim, with its
353
359
  `evidence:` line, then for each FAIL a `file:line` reference and a suggested fix (one line each,
354
360
  surgical, not paraphrased).
355
- 6. Print `Guideline coverage this run: X/102 sections touched, Y SKIP, Z human-only` using
361
+ 6. Print `Guideline coverage this run: X/104 sections touched, Y SKIP, Z human-only` using
356
362
  `coverage_sections` from scan JSON (Y counts SKIP records, including `gaps`). List every
357
363
  `human_only_sections` entry with its reason; optional tiers stay unexecuted unless observed.
358
364
  Print a **"Not audited"** section. This is **mandatory on every run**, including a GREEN one —
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_doc": "Baseline of Apple App Store Review Guidelines section numbers, for drift detection. Phase 0 fetches the live guidelines page and diffs its section numbers against `all_sections`; any NEW/REMOVED number => WARN: guideline-drift. This file is updated ONLY by deliberate human reconciliation (see SKILL.md Phase 0), NEVER auto-edited by the skill, otherwise the warning would be silently swallowed.",
3
3
  "source_url": "https://developer.apple.com/app-store/review/guidelines/",
4
- "reconciled_on": "2026-09-01",
5
- "apple_last_updated_seen": "Last Updated: June 8, 2026 (now exposed at the page footer); drift signal remains the set of section numbers. 2026-07-02: confirmed 5.6 now ends at 5.6.4 (5.6.1 App Store Reviews, 5.6.2 Developer Identity, 5.6.3 Discovery Fraud, 5.6.4 App Quality) \u2014 5.6.5/5.6.6/5.6.7 (rating/review manipulation) were removed/consolidated; that content now lives under 5.6.1 and 5.6.3. 2026-09-01: category intro sections added as 1.0-5.0 \u2014 the live page anchors each category intro only as the bare id=\"N\" (there is no id=\"4.0\"); scripts/lib/guideline-text.sh gd_section_ids surfaces those as N.0 so Apple's \"Guideline 4.0 - Design\" (its #1 removal reason in the 2024 transparency report) is baselined, fingerprinted and citable. 4.0 is covered by deep-review check 31; 2.5.5 by scan \u00a755.",
4
+ "reconciled_on": "2026-10-17",
5
+ "apple_last_updated_seen": "Last Updated: October 16, 2026 (now exposed at the page footer); drift signal remains the set of section numbers. 2026-07-02: confirmed 5.6 now ends at 5.6.4 (5.6.1 App Store Reviews, 5.6.2 Developer Identity, 5.6.3 Discovery Fraud, 5.6.4 App Quality) — 5.6.5/5.6.6/5.6.7 (rating/review manipulation) were removed/consolidated; that content now lives under 5.6.1 and 5.6.3. 2026-09-01: category intro sections added as 1.0-5.0 — the live page anchors each category intro only as the bare id=\"N\" (there is no id=\"4.0\"); scripts/lib/guideline-text.sh gd_section_ids surfaces those as N.0 so Apple's \"Guideline 4.0 - Design\" (its #1 removal reason in the 2024 transparency report) is baselined, fingerprinted and citable. 4.0 is covered by deep-review check 31; 2.5.5 by scan §55. 2026-10-17: October 16, 2026 update reconciled — NEW 2.3.14 Creative Assets (human_only) and NEW 2.5.19 hidden/dormant/undocumented features (moved out of 2.3.1; obfuscation to hide features => removal + account termination; scan §72 review-mode-gate). 1.2 now names AI content creation apps and nonconsensual intimate imagery (scan §22). 3.1.1(a) links go to a \"permitted destination\" (scan §15). Section 5 intro: violators are also blocked from alternative distribution. Remaining text drift was e.g. -> such as wording. 2026-11-26: guideline text unchanged since October 16, 2026; App Store Connect changes of November 2026 (Shared Location + Dating and Relationships age descriptors due 2027-01-12, ODR sunset for new apps early 2027, App Review Help review-notes rules) encoded as scan §73-§77 under 2.3.6 / 2.1 / 2.4.1.",
6
6
  "drift_check_coverage": "Reliable for Sections 1-4 + 5.1-5.4 (high-churn regions: 2.5.x, 3.1.x, 4.7, 5.1.x). The 5.5-5.6.x tail can't be fetched (the page truncates ~5.4) and is structurally stable; review it by hand at reconciliation.",
7
7
  "covered_by_scan": [
8
8
  "1.2",
@@ -52,7 +52,11 @@
52
52
  "4.5.5",
53
53
  "4.5.6",
54
54
  "4.7.2",
55
- "5.2.4"
55
+ "5.2.4",
56
+ "2.5.19",
57
+ "4.5.3",
58
+ "2.3.6",
59
+ "2.4.1"
56
60
  ],
57
61
  "covered_by_pierre_deep_review": [
58
62
  "1.2",
@@ -143,6 +147,7 @@
143
147
  "2.3.9": "Requires proof of rights and consent for supplied assets.",
144
148
  "2.3.11": "Requires the actual preorder listing and release commitments.",
145
149
  "2.3.13": "Requires the submitted in-app event and its external scheduling context.",
150
+ "2.3.14": "Creative assets (product page header / search result art) exist only in App Store Connect; fastlane metadata has no creative-asset slot, so content, brand relevance and pricing claims need a human look at the ASC listing.",
146
151
  "2.5.3": "Requires malware analysis and external security evidence beyond this scanner.",
147
152
  "4.1": "Requires comparison with other products and ownership evidence.",
148
153
  "5.2.2": "Requires third-party service permissions and applicable agreements.",
@@ -201,6 +206,7 @@
201
206
  "2.3.11",
202
207
  "2.3.12",
203
208
  "2.3.13",
209
+ "2.3.14",
204
210
  "2.4",
205
211
  "2.4.1",
206
212
  "2.4.2",
@@ -226,6 +232,7 @@
226
232
  "2.5.16",
227
233
  "2.5.17",
228
234
  "2.5.18",
235
+ "2.5.19",
229
236
  "3.0",
230
237
  "3.1",
231
238
  "3.1.1",