appstore-precheck 1.18.0 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +256 -0
  2. package/README.md +108 -39
  3. package/bin/cli.js +8 -0
  4. package/package.json +2 -2
  5. package/skills/appstore-precheck/SKILL.md +99 -157
  6. package/skills/appstore-precheck/guidelines-baseline.json +285 -36
  7. package/skills/appstore-precheck/guidelines-fingerprints.json +319 -93
  8. package/skills/appstore-precheck/references/finding-commentary.md +93 -0
  9. package/skills/appstore-precheck/references/methodology.md +81 -26
  10. package/skills/appstore-precheck/references/optional-review.md +56 -0
  11. package/skills/appstore-precheck/references/pierre-deep-review.md +323 -44
  12. package/skills/appstore-precheck/references/review-catalog.json +740 -0
  13. package/skills/appstore-precheck/references/screenshot-vision-review.md +8 -8
  14. package/skills/appstore-precheck/references/simulator-dynamic-review.md +398 -54
  15. package/skills/appstore-precheck/references/typesafe-example.json +239 -0
  16. package/skills/appstore-precheck/references/typesafe.md +216 -0
  17. package/skills/appstore-precheck/scripts/app-discover.sh +138 -0
  18. package/skills/appstore-precheck/scripts/artifact-review.sh +10 -0
  19. package/skills/appstore-precheck/scripts/augment-json.py +29 -0
  20. package/skills/appstore-precheck/scripts/build-run.sh +5 -0
  21. package/skills/appstore-precheck/scripts/coverage-sections.sh +6 -0
  22. package/skills/appstore-precheck/scripts/dynamic-run.sh +400 -0
  23. package/skills/appstore-precheck/scripts/dynamic.sh +329 -0
  24. package/skills/appstore-precheck/scripts/evidence.sh +49 -15
  25. package/skills/appstore-precheck/scripts/findings.sh +76 -26
  26. package/skills/appstore-precheck/scripts/framework-detect.sh +101 -0
  27. package/skills/appstore-precheck/scripts/guideline-cite.sh +4 -1
  28. package/skills/appstore-precheck/scripts/lib/artifact-review.py +518 -0
  29. package/skills/appstore-precheck/scripts/lib/asc-client.py +293 -0
  30. package/skills/appstore-precheck/scripts/lib/build-evidence.py +50 -0
  31. package/skills/appstore-precheck/scripts/lib/build-exec.py +50 -0
  32. package/skills/appstore-precheck/scripts/lib/build-plan.py +106 -0
  33. package/skills/appstore-precheck/scripts/lib/build-plan.sh +15 -0
  34. package/skills/appstore-precheck/scripts/lib/build-run.py +177 -0
  35. package/skills/appstore-precheck/scripts/lib/coverage-run.sh +23 -0
  36. package/skills/appstore-precheck/scripts/lib/coverage-sections.py +244 -0
  37. package/skills/appstore-precheck/scripts/lib/dyn-bundle.sh +185 -0
  38. package/skills/appstore-precheck/scripts/lib/dyn-demo-login.py +111 -0
  39. package/skills/appstore-precheck/scripts/lib/dyn-device.sh +123 -0
  40. package/skills/appstore-precheck/scripts/lib/dyn-explore.py +312 -0
  41. package/skills/appstore-precheck/scripts/lib/dyn-geometry.sh +75 -0
  42. package/skills/appstore-precheck/scripts/lib/dyn-guideline-capture.py +301 -0
  43. package/skills/appstore-precheck/scripts/lib/dyn-guidelines.py +112 -0
  44. package/skills/appstore-precheck/scripts/lib/dyn-guidelines.sh +23 -0
  45. package/skills/appstore-precheck/scripts/lib/dyn-hosts.sh +134 -0
  46. package/skills/appstore-precheck/scripts/lib/dyn-process.py +75 -0
  47. package/skills/appstore-precheck/scripts/lib/dyn-quorum.sh +90 -0
  48. package/skills/appstore-precheck/scripts/lib/dyn-scrub.py +79 -0
  49. package/skills/appstore-precheck/scripts/lib/dyn-signals.sh +120 -0
  50. package/skills/appstore-precheck/scripts/lib/guideline-text.sh +23 -5
  51. package/skills/appstore-precheck/scripts/lib/metadata-review.py +369 -0
  52. package/skills/appstore-precheck/scripts/lib/optin-scan.sh +73 -0
  53. package/skills/appstore-precheck/scripts/lib/optional-records.py +60 -0
  54. package/skills/appstore-precheck/scripts/lib/png-uniform.py +115 -0
  55. package/skills/appstore-precheck/scripts/lib/runtime-blocking.py +26 -0
  56. package/skills/appstore-precheck/scripts/lib/safe_write.py +61 -0
  57. package/skills/appstore-precheck/scripts/lib/scan-guidelines.sh +199 -0
  58. package/skills/appstore-precheck/scripts/lib/static-guidelines.py +341 -0
  59. package/skills/appstore-precheck/scripts/lib/static-reader.py +39 -0
  60. package/skills/appstore-precheck/scripts/metadata-review.sh +4 -0
  61. package/skills/appstore-precheck/scripts/opt-in-review.py +160 -0
  62. package/skills/appstore-precheck/scripts/runtime-review.sh +5 -0
  63. package/skills/appstore-precheck/scripts/scan.sh +132 -21
  64. package/skills/appstore-precheck/scripts/semantic/__init__.py +1 -0
  65. package/skills/appstore-precheck/scripts/semantic/client.py +95 -0
  66. package/skills/appstore-precheck/scripts/semantic/collect.py +165 -0
  67. package/skills/appstore-precheck/scripts/semantic/engine.py +320 -0
  68. package/skills/appstore-precheck/scripts/semantic/questions.py +167 -0
  69. package/skills/appstore-precheck/scripts/semantic/review_v4.py +81 -0
  70. package/skills/appstore-precheck/scripts/semantic-review.py +61 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,262 @@
3
3
  All notable changes to this project are documented here. Versioning follows
4
4
  [SemVer](https://semver.org/). Released as git tags.
5
5
 
6
+ ## [Unreleased]
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
+
54
+ ## [1.19.0] — 2026-09-18
55
+
56
+ ### Added (optional TypeSafe / Jev semantic review)
57
+ - **`appstore-precheck review`**: opt-in text-only semantic review using pinned Jev
58
+ `jev-1.13.0`, with ten bounded workflows: typed review verdicts, contextual copy,
59
+ purpose strings, subscription disclosures, claim/privacy consistency, applicability
60
+ routing, guideline reranking, explanation verification, policy-change triage, and
61
+ functional evidence. Uses Python 3.8+ standard library; no new install dependency.
62
+ - Evidence bundle preparation and dry runs, strict typed-response validation,
63
+ explicit uncertainty handoffs to Pierre, bounded HTTP retries, private opt-in
64
+ caches, and measured latency/token-cost reporting. Live calls require
65
+ `TYPESAFE_API_KEY` and explicit opt-in; default scans remain offline.
66
+ - Optional TypeSafe evaluation provider and RAG reranking. Versioned stable check
67
+ identities correct the rating-manipulation check number; historical baseline labels
68
+ are preserved. Scoring separates abstentions from true negatives and reports
69
+ decision coverage and calibration alongside accuracy.
70
+ - Four candidate evaluation fixtures (unconfirmed until independent human review),
71
+ 17 offline TypeSafe behavioral tests, and npm-package self-containment checks for
72
+ all ten workflows. The suite now contains 40 test files.
73
+
74
+ ### Safety and validation scope
75
+ - Jev output stays advisory and experimental. It cannot change scanner verdicts,
76
+ evidence provenance, runtime reconciliation, or `.precheck-pass`. Screenshots and
77
+ runtime inspection stay with the host tools.
78
+ - A three-case live purpose-description pilot verified API connectivity and typed
79
+ responses. Only one of two human-labeled cases passed the complete decision gate;
80
+ this is not a production-accuracy claim. One additional Turkish case is unlabeled.
81
+ - Real simulator smoke testing requires a user-built `.app`; none was available in
82
+ the release environment. Shimmed runtime tests cover the scripted runner.
83
+
84
+
85
+ Phases 0, 1 and 2 of the dynamic-tier plan. Phase 0: four static corrections that are right
86
+ regardless of whether a runtime tier ever ships. Phase 1: the Phase 6 tier changes what it
87
+ **records**, not what it observes — its output becomes machine-readable and is reconciled with the
88
+ static findings under the same honesty model (evidence class, derived build-verification
89
+ qualifier, SKIP). Phase 2: the tier learns to **find** a build without making one, to know which
90
+ toolkit it is looking at, to repeat before it accuses, and to read what the installed bundle
91
+ actually shipped. Still advisory, still local-only; the CI suite runs the runner against a shimmed
92
+ `xcrun`, the real simulator path lives under `tests/local/`. The dynamic tier ships in 1.19.0 alongside the optional Jev integration.
93
+
94
+ ### Added (Phase 2 — discovery, framework awareness, determinism; still advisory)
95
+ - **`scripts/app-discover.sh`** lists the simulator `.app` bundles the user already built
96
+ (`~/Library/Developer/Xcode/DerivedData/*/Build/Products/*-iphonesimulator/*.app`,
97
+ `<repo>/build/ios/iphonesimulator/*.app`, `<repo>/ios/build/…`) with build time, bundle id and
98
+ the **configuration read from the directory name** (`Debug-iphonesimulator` → `debug`,
99
+ `Release-iphonesimulator` → `release`, else `unknown`, never inferred from the plist), recommends
100
+ the newest and stops: the agent must obtain an explicit confirmation before anything is installed
101
+ or launched. No candidate → exit 3, the `runtime-not-audited` gap, and a per-framework build hint
102
+ (`xcodebuild -sdk iphonesimulator … -derivedDataPath`, `flutter build ios --simulator`, `npx expo
103
+ prebuild` + Metro note, the KMP `iosApp` project) that this tool **will not run**. A shim-PATH
104
+ test proves no build or launch tool is ever invoked; the repo is not written to.
105
+ - **`scripts/framework-detect.sh`** (file presence only, sourceable): `rn` (a `react-native`
106
+ *dependency* in `package.json`, not the word), `flutter` (`pubspec.yaml` + `ios/Runner.xcodeproj`),
107
+ `kmp` (a Gradle build or `.kt` sources + `iosApp/`), else `native`. **The static scan now emits a
108
+ `framework-not-audited` gap record** on rn / flutter / kmp: `SKIP: framework — N code-level checks
109
+ under-detect on <framework> (source greps read Swift/ObjC only)`, N and the rule list derived from
110
+ `rules_with_evidence source`, acknowledgeable in `.precheck-ignore`, never a FAIL. Fixtures
111
+ `rn-app`, `flutter-app`, `kmp-app`. The dynamic tier uses the same word to require **Metro on port
112
+ 8081** for a React Native Debug build without an embedded `main.jsbundle` (otherwise D1/D2 are SKIP,
113
+ not a false crash) and to **pre-SKIP the selector-based checks on Flutter / KMP** (`dyn-restore-tap`,
114
+ `dyn-demo-login`, the trigger half of `dyn-permission-prompt`: no accessibility semantics exposed
115
+ to Maestro), while the observation-based checks still run.
116
+ - **`scripts/dynamic-run.sh`** + `scripts/lib/dyn-{device,signals,quorum,geometry,hosts,bundle}.sh`
117
+ + `lib/png-uniform.py`: the observation-based half of Phase 6 as code. Device lifecycle: `simctl
118
+ create` (unique name) → `boot` → `bootstatus -b` → `status_bar override --time 9:41 --batteryLevel
119
+ 100 --wifiBars 3 --cellularBars 4` → `privacy reset all` → `install` → log stream observer
120
+ (`SIMCTL_CHILD_CFNETWORK_DIAGNOSTICS=3`) → `launch --terminate-running-process` → one `maestro
121
+ hierarchy` per call → `shutdown` → `delete` (only the device this run created; a `--udid` device is
122
+ launched on and never erased, reset or deleted). **N=3 repeats, a fresh erase before each; a crash
123
+ FINDING needs 3/3**, a mixed result is a FINDING carrying its ratio (`quorum 1/3 … not unanimous;
124
+ advisory, never blocking`), all-timeout is SKIP. Launch health is the four-signal conjunction
125
+ (process via `kill -0`, screenshot flatness via a stdlib-only PNG decoder, crash lines /
126
+ `.ips` reports, accessibility node count with the Flutter/Compose degenerate-tree caveat), and an
127
+ unreadable signal is named in the line. New observations, each with a rule id and reconciled by
128
+ `dynamic.sh`: **`dyn-dark-mode`** and **`dyn-dynamic-type`** (4.0; `simctl ui appearance dark`,
129
+ `content_size accessibility-extra-extra-extra-large`; clipped / zero-size / overlapping labelled
130
+ frames over the Maestro hierarchy, judgment-call), **`dyn-ipad-layout`** (2.4.1, `--ipad`, an iPad
131
+ simulator this run creates; iPhone-only apps are `not applicable`), **`dyn-shipped-bundle[:KEY]`**
132
+ (the *installed* `Info.plist` via `simctl get_app_container`: one complete per-key line per purpose
133
+ string, a FINDING for an empty one or for a key the repo plist has and the bundle lacks, a keyless
134
+ drift summary that aims at no static rule), **`dyn-shipped-sdk`** (`DTXcode` / `DTSDKName`, what
135
+ ITMS-90725 reads; complete for `xcode-sdk-requirement`), **`dyn-shipped-links`** (`otool -L`;
136
+ a `PrivateFrameworks` link is decisive, its absence partial for `private-api`), and
137
+ **`dyn-hosts-contacted`** (5.1.2; hosts from CFNetwork diagnostics vs `NSPrivacyTrackingDomains`
138
+ against a vendor→domain catalogue mirroring §16; opt-in `--pktap` adds `sudo tcpdump` DNS for
139
+ every process because Flutter's Dart `HttpClient` bypasses CFNetwork — documented as a blind spot).
140
+ The build configuration is taken from the `.app`'s parent directory, never from the plist, so a
141
+ Debug DerivedData bundle can confirm or downgrade but never resolve a build-dependent claim.
142
+ `--dry-run` prints the full plan and touches nothing; `run.json` carries the `build_config` for
143
+ `dynamic.sh`.
144
+ - **`dynamic.sh`**: the catalogue grows to 15 ids (so `runtime-not-audited` counts 14 unobserved
145
+ checks); the reconciliation table gains `dyn-shipped-bundle:<KEY>` ↔ `usage-description-crosscheck`
146
+ and ↔ `att-usage` (complete per key, **`require_key`**: a keyless line aims at nothing),
147
+ `dyn-shipped-sdk` ↔ `xcode-sdk-requirement` (complete) and `dyn-shipped-links` ↔ `private-api`
148
+ (partial); one dynamic id may now map to several static rules, consumption still tracked per record.
149
+ - Tests: `test-framework-detect.sh`, `test-app-discover.sh`, `test-dynamic-libs.sh` (decision rules,
150
+ PNG decoder, geometry over recorded hierarchies, hosts parity, installed-bundle readers),
151
+ `test-dynamic-run.sh` (the runner end to end against a shimmed `xcrun` / `maestro` / `otool`:
152
+ lifecycle order, erase between repeats, delete-only-created, quorum outcomes, Metro guard, Flutter
153
+ pre-SKIPs, `--udid` ownership, dry-run plan) and new cases in `test-dynamic-reconcile.sh` /
154
+ `test-phase6-doc.sh` (the reference must name every catalogue id). Suite: 39 files, none boots a
155
+ device. **`tests/local/run-dynamic.sh`** (macOS only, not in `tests/all.sh`) chains discovery →
156
+ confirmation → runner → `dynamic.sh` on a real simulator; MAINTENANCE.md lists it under "Before
157
+ each release".
158
+ - Docs: `simulator-dynamic-review.md` rewritten around the two kinds of checks (observation-based,
159
+ scripted; selector-based, agent-driven), the determinism policy, the framework table and D7–D11;
160
+ SKILL.md Phase 1 (`SKIP: framework`) and Phase 6 (discovery, runner, one flow per Maestro call);
161
+ README Phase 6 row and gap records; SECURITY.md (discovery reads only; `--pktap` needs sudo).
162
+
163
+ ### Deliberately not done (Phase 2)
164
+ - No blocking channel: every dynamic FINDING is still a WARN record; `verdict.sh` / `thresholds.sh`
165
+ untouched (Phase 3, opt-in `--dynamic-blocking` for `dyn-launch` 3/3 and `dyn-demo-login` only).
166
+ - No `corpus/dynamic/` fixture apps, no dynamic scorecard, no macOS CI job (Phase 3).
167
+ - The selector-based checks (D3, D3b, D4, D5, D6) are not scripted: they stay with the agent and
168
+ the Maestro MCP tools, because their selectors are per-app.
169
+
170
+ ### Added (Phase 1 — machine-readable dynamic tier, no simulator)
171
+ - **`runtime` evidence class** in `evidence.sh`, listed first: the running app's behaviour itself,
172
+ not a proxy for it. Two caveats are written into the class comment because they are
173
+ load-bearing: the class list is not one axis of strength (metadata is about the listing,
174
+ runtime about the binary), and simulator ≠ archive (architecture, StoreKit, `#if
175
+ targetEnvironment(simulator)`, Debug configuration). `needs_build_verification` takes an
176
+ optional third argument `build_config` (`release|debug|unknown`, default `unknown`):
177
+ `runtime + release` is established, `runtime + debug/unknown` still needs build verification.
178
+ **A Debug runtime observation never clears the qualifier** — the guard the tier rests on,
179
+ pinned by explicit tests. Existing two-argument calls are unchanged.
180
+ - **`findings.sh` records** carry four new fields: `id` (first 16 hex of sha256 over
181
+ rule + file + line + message, a stable handle for one finding), `resolved_by` (`null` |
182
+ `"runtime"`), `runtime_target` (`null` | `simulator` | `device`) and `build_config` (`null` |
183
+ `debug` | `release` | `unknown`). New severity **`RESOLVED`**, structurally inert: `render_json`,
184
+ `sarif.sh` and `verdict.sh` select by string equality on FAIL/WARN/PASS/SKIP, so a RESOLVED
185
+ record is kept for the reader and counted by nothing; the verdict cannot move. It is deliberately
186
+ not `suppressed: true` — that field means a human signed in `.precheck-ignore`.
187
+ - **`scripts/dynamic.sh`** (pure text, bash 3.2): reads `DYNAMIC-PASS:` / `DYNAMIC-FINDING:` /
188
+ `DYNAMIC-SKIP:` lines (column 0 only; `Pierre:` and indented text ignored), each tagged
189
+ `[dyn-<check>]`, into the same JSONL shape (severity PASS / WARN / SKIP, `evidence: runtime`,
190
+ rule id, target, build config) and reconciles them with the static scan (`--findings` takes the
191
+ `--format json` envelope or raw JSONL). The table, per static rule: runtime **confirms** → one
192
+ record, evidence `runtime`, severity unchanged, qualifier re-derived for this build; runtime
193
+ **contradicts** and the dynamic check is the **complete** test → `RESOLVED`; contradicts but
194
+ **partial** (or the build is Debug/unknown and the claim depended on the build) → FAIL→WARN
195
+ only, observation appended, never PASS; static PASS + runtime FINDING → a new WARN record, the
196
+ PASS stays; undriveable → SKIP with no labels. Complete/partial mappings are a fixed, reasoned
197
+ table in the script: `demo-account ↔ dyn-demo-login` complete;
198
+ `usage-description-crosscheck ↔ dyn-permission-prompt:<KEY>` complete per key, partial when
199
+ keyless; `subscription-links-restore ↔ dyn-restore-tap` partial. Output adds
200
+ `summary.runtime: {observed, resolved, confirmed}`. A dynamic FINDING is a WARN: the tier is
201
+ advisory in Phase 1; opt-in blocking is Phase 3. Hardened in review: a per-key id must be a
202
+ plist-key-shaped token matched as a whole word (an empty, one-character, substring or
203
+ double-colon key aims at nothing, so one malformed line can never withdraw a FAIL); every
204
+ observation aimed at a static record is folded into its message (none is dropped, screenshot
205
+ references included); consumption is tracked per record, so several lines for one rule are all
206
+ kept; a confirmation never *raises* the qualifier on already-established evidence; a
207
+ `--build-config release` claim contradicted by the D0 line (`Debug-iphonesimulator`) is degraded
208
+ to `unknown` on stderr; CRLF and stray blanks are tolerated.
209
+ - **`runtime-not-audited` gap record** (`dynamic.sh --not-run`): when no `.app` / UDID was
210
+ supplied, a SKIP with the count of unobserved dynamic checks derived from the catalogue.
211
+ `is_gap_record` already recognised the suffix; SKILL.md Phase 5 "Not audited" lists it.
212
+ - **Phase 6 reference:** every D-check has a rule id (`dyn-install`, `dyn-launch`,
213
+ `dyn-first-screen`, `dyn-paywall-visible`, `dyn-permission-prompt[:KEY]`, `dyn-demo-login`,
214
+ `dyn-screenshot-parity`); new **D3b `dyn-restore-tap`** (find Restore Purchases by
215
+ `accessibilityText`, tap, expect a non-inert response within 3 s; no button → SKIP, no response
216
+ → FINDING); **launch health (D1/D2) is a conjunction of four signals** (process alive,
217
+ screenshot not uniform, no crash in the log stream, accessibility tree ≥ N nodes) — a signal
218
+ that could not be read is written into the line, and a degenerate tree (Flutter / Compose) is
219
+ never a FINDING on its own. The promise is reworded from "read-only" to **"no-write, but it
220
+ executes your application code"**, with network, credential and screenshot exposure spelled
221
+ out; `SECURITY.md` says the same.
222
+ - `tests/test-dynamic-reconcile.sh` with recorded transcripts under
223
+ `tests/fixtures/dynamic-transcripts/`; `tests/test-phase6-doc.sh` extended (suite: 35 files).
224
+ No test boots a device.
225
+
226
+ ### Added (Phase 0)
227
+ - **Guideline 4.0 (Design) is now covered.** `guidelines-baseline.json` started its `all_sections`
228
+ at 4.1, so Apple's **single most-cited removal reason** (42,252 removals in the 2024 App Store
229
+ Transparency Report) was invisible to drift detection. Cause: the live page anchors each
230
+ category intro only as the bare `id="4"` (there is no `id="4.0"`, verified 2026-09-01), and
231
+ `gd_section_ids` required a dotted component. The parser now surfaces bare category anchors as
232
+ `N.0`, so `1.0`–`5.0` are baselined, fingerprinted and citable; `gd_anchor_id`,
233
+ `guideline_url` and `guideline-cite.sh` resolve `N.0` back to `#N` so no dangling `#4.0` link is
234
+ ever produced. `4.0` has a pinned quote and a fingerprint. New **deep-review check 31 (4.0, Tier
235
+ B)**: iPad / large-text layout, placeholder or degraded UI, Apple's minimum design bar.
236
+ Deep review is now **31 checks (23 Tier A + 8 Tier B)**.
237
+ - **§55 `ipv4-literal` (2.5.5 IPv6-only networks)**, the statically greppable subset of a
238
+ guideline the tool could not see: legacy IPv4-only BSD socket APIs (`inet_addr`, `inet_aton`,
239
+ `gethostbyname`, `sockaddr_in`, `AF_INET`) and hardcoded IPv4 literals in source or plists. App
240
+ Review runs on an IPv6-only NAT64 network; DNS64 rescues hostnames, not literals. `source` /
241
+ `review-risk` / WARN. Excludes loopback, `0.0.0.0`, `255.x` masks, CIDR ranges, version-looking
242
+ values and comment lines. `2.5.5` is pinned and drift-watched. The NAT64 run itself is GUI-only
243
+ and stays on the manual checklist. The scanner covers **55 vectors**.
244
+ - `tests/test-ipv4-literal.sh`, `tests/test-design-40.sh`, `tests/test-phase6-doc.sh`
245
+ (suite: 34 files). Fixtures `ipv4-literal-app` and `ipv4-clean-app`.
246
+
247
+ ### Fixed (Phase 0)
248
+ - **Phase 6 D3 (paywall) could emit a false `DYNAMIC-FINDING`.** A StoreKit configuration file is
249
+ a scheme Run-action setting; `xcrun simctl launch` does not apply it, so `Product.products`
250
+ is empty and a price-less paywall is the *expected* default on a simctl-launched app. D3 now
251
+ emits `DYNAMIC-SKIP: 3.1.2 — …` when no price is visible and only runs its check when prices
252
+ are on screen (the app was launched from Xcode with a StoreKit configuration). `DYNAMIC-SKIP:`
253
+ is a documented output class: a check that could not be driven is never a PASS.
254
+ - **Phase 6 had no install step.** The `.app`-path branch went straight to `launchApp`, so it
255
+ could not be driven as written. New **D0**: `xcrun simctl install`, bundle id read from the
256
+ `.app`'s `Info.plist` with `plutil`, and on failure every D-check is `DYNAMIC-SKIP`. The device
257
+ policy is hardened from "prefer a disposable simulator" to: the tier **creates its own device**
258
+ (`simctl create`), erases it before, deletes it after, and never touches an existing device.
259
+ - `methodology.md` Phase 1 table was missing §54 and still said "29 semantic checks";
260
+ `MAINTENANCE.md` still said 42 vectors / 28 deep checks. All counts now agree (55 / 31).
261
+
6
262
  ## [1.18.0] - 2026-08-31
7
263
 
8
264
  Two gaps closed, both about **not overstating what the tool knows**. Prior art credit: the
package/README.md CHANGED
@@ -22,9 +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 **30 semantic deep-review checks**
26
- (23 high-confidence Tier A + 7 heuristic Tier B v1 — beta language, review notes quality, app preview,
27
- incentivized review, push/HomeKit abuse, rating manipulation).
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).
28
27
  It hands you a single **GREEN / YELLOW / RED** verdict. It never edits your code.
29
28
 
30
29
  It ships as a portable [Agent Skill](https://agentskills.io): the same `SKILL.md` runs natively in
@@ -37,8 +36,7 @@ also run it by hand or wire it into CI.
37
36
 
38
37
  Your verdict is delivered by **Pierre**, a French critic who has seen ten thousand rejections and is
39
38
  impressed by none of them. He reviews your build harder than Apple would, in private — first with a
40
- fast static scan, then with **30 deep semantic checks** (23 confident + 7 heuristic). A GREEN from
41
- 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.
42
40
 
43
41
  - 🔴 **RED**: *"Non. Restore Purchases, absent. Guideline 3.1.2. Suivant."*
44
42
  - 🟡 **YELLOW**: *"A few small uglinesses. I would not reject. But I noticed."*
@@ -50,7 +48,11 @@ each, divided by horizontal rules), not one compressed sentence. The breakdown b
50
48
 
51
49
  ## What it checks
52
50
 
53
- 54 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:
54
56
 
55
57
  | Guideline | Check |
56
58
  |-----------|-------|
@@ -60,26 +62,27 @@ each, divided by horizontal rules), not one compressed sentence. The breakdown b
60
62
  | **2.1** | A login-gated app ships demo credentials / review notes for App Review |
61
63
  | **2.1** | Project's `LastUpgradeCheck` vs the April 2026 iOS 26 SDK (Xcode 26) upload minimum *(advisory)* |
62
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) |
63
- | **2.3.1** | Metadata length limits (name, subtitle, keywords, promo, description) |
65
+ | **2.3.7 / ASC** | Metadata length limits (name, subtitle, keywords, promo, description) |
64
66
  | **2.3.1** | Misleading marketing claims (iOS virus / malware scanners, fake speed boosters) in metadata |
65
- | **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 |
66
68
  | **2.3.3** | At least one screenshot per locale |
67
69
  | **2.3.3** | Screenshot format + PNG dimensions match a known App Store screenshot size *(advisory, WARN-only)* |
68
- | **2.3.7** | Localized metadata parity across every locale |
70
+ | **2.3** | Localized metadata parity across every locale |
69
71
  | **2.3.8** | "For Kids" / "For Children" wording outside the Kids Category |
70
72
  | **2.3.10** | No other-platform / competitor names in metadata |
71
73
  | **2.5.1** | No private / banned APIs |
72
74
  | **2.5.2** | No executable-code download / native hot-patching (JSPatch, Rollout, …) |
73
75
  | **2.5.4** | Background modes declared in `UIBackgroundModes` but never used |
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)* |
74
77
  | **3.1.1** | Third-party payment SDK (Stripe, Braintree, PayPal, …) linked for digital goods instead of in-app purchase |
75
78
  | **3.1.1(a)** | External purchase link entitlement + disclosure, when external purchase APIs are used |
76
79
  | **3.1.2** | Trial & auto-renew subscription disclosures |
77
80
  | **3.1.2** | Restore Purchases + Terms (EULA) + Privacy Policy on the paywall |
78
81
  | **3.1.2** | Trial-emphasized paywall CTA ("Continue with free trial") or a free-trial toggle instead of one clear price |
79
82
  | **3.1.2** | Urgency / scarcity dark patterns on the paywall ("only today", countdown + discount) |
80
- | **3.1.5(a)** | Cryptocurrency wallet / exchange / mining signal |
83
+ | **3.1.5** | Cryptocurrency wallet / exchange / mining signal |
81
84
  | **4.2** | Minimum functionality (real navigation) |
82
- | **4.2.3** | Thin WKWebView wrapper around a website |
85
+ | **4.2** | Thin WKWebView wrapper around a website |
83
86
  | **4.2.7** | Remote-desktop / host-mirroring app |
84
87
  | **4.4.1** | Keyboard extension that requires full access (`RequestsOpenAccess`) |
85
88
  | **4.4.2** | Safari content-blocker / web extension |
@@ -99,45 +102,76 @@ each, divided by horizontal rules), not one compressed sentence. The breakdown b
99
102
  | **5.1.2** | Tracking / IDFA SDK (AdMob, AppLovin, AppsFlyer, Adjust, …) shipped without an ATT prompt |
100
103
  | **5.1.3** | HealthKit data with an iCloud / CloudKit sync path |
101
104
  | **5.1.4** | Kids-audience metadata shipping a third-party ads / analytics SDK |
102
- | **5.1.5** | Sensitive-API justification *(opt-in)* |
105
+ | **Review preparation** | Sensitive-API justification *(opt-in)* |
103
106
  | **5.3.4** | Real-money gambling language in metadata |
104
107
  | **5.4** | VPN / NetworkExtension usage (org account + on-screen data disclosure) |
105
108
  | **5.5** | Mobile Device Management (MDM) signal |
106
109
  | **5.6.1** | A custom App Store review prompt instead of the system `requestReview` API |
107
110
  | **5.6.1** | Sentiment-gated rating flow ("Enjoying the app?" → only happy users see the prompt) |
108
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. |
109
128
 
110
129
  Paywall checks are skipped automatically when no in-app-purchase signals are present, and the
111
- 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.
131
+
132
+ ### Pierre deep review (56 semantic checks)
133
+
134
+ Optional **TypeSafe / Jev** support adds typed semantic judgments for purpose strings,
135
+ copy, disclosures, claims/privacy consistency, review routing, guideline reranking,
136
+ explanation verification, policy changes, and functional evidence. It is off by default,
137
+ text-only, and advisory; it cannot alter the release verdict or upload token.
112
138
 
113
- ### Pierre deep review (30 semantic checks)
139
+ ```sh
140
+ npx appstore-precheck review --repo /path/to/app --prepare > /tmp/review-bundle.json
141
+ npx appstore-precheck review --bundle /tmp/review-bundle.json --dry-run
142
+ # After inspecting/enriching the bundle; TYPESAFE_API_KEY comes from the environment:
143
+ npx appstore-precheck review --bundle /tmp/review-bundle.json --live
144
+ ```
145
+
146
+ See the [TypeSafe guide](skills/appstore-precheck/references/typesafe.md) for all ten
147
+ workflows, fallback behavior, private caches, costs, and evaluation. No new dependency
148
+ is needed beyond Python 3.8+ for this optional command.
114
149
 
115
- After the static scan, Pierre reads your project end-to-end and runs **29 evidence-based checks**
150
+ After the static scan, Pierre reads your project end-to-end and runs **56 evidence-based checks**
116
151
  the grep layer cannot fully judge. These emit advisory `REVIEW-FINDING:` lines (they do **not**
117
152
  change the GREEN/YELLOW/RED verdict). Full procedure:
118
153
  [`references/pierre-deep-review.md`](skills/appstore-precheck/references/pierre-deep-review.md).
119
154
 
120
- **23 checks (Tier A)** are high-confidence cross-reads (privacy policy fetch, claims vs code,
121
- screenshots, paywall copy). **6 checks (Tier B v1, marked †)** are heuristic — useful pre-submit
122
- 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.
123
157
 
124
158
  | Guideline | Deep check |
125
159
  |-----------|------------|
126
- | **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? |
127
161
  | **1.4.1** | Health or medical claims in metadata/UI without appropriate disclaimers? |
128
162
  | **2.1** | Store metadata claims match features actually implemented in code |
129
163
  | **2.1** † | App Review demo account / review notes actionable (credentials, steps — not placeholder) |
130
164
  | **2.2** † | Beta, test, preview, or work-in-progress language in store-facing copy or UI |
131
- | **2.3.2** | Primary App Store category fits the app type |
165
+ | **2.3.5** | Primary App Store category fits the app type |
132
166
  | **2.3.4** † | App preview video/assets (if in-repo) match shipped features and metadata |
133
- | **2.3.5** | Screenshot images match shipped features (no misleading frames or missing UI) |
134
- | **2.3.6** | Metadata pricing / subscription language matches the paywall |
135
- | **2.3.9** † | Incentivized review copy ("rate 5 stars", "review for reward") in metadata or UI |
136
- | **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) |
137
171
  | **3.1.1** | Digital goods unlocked via external purchase links (web checkout in WebView, etc.) |
138
172
  | **3.1.2** | Trial, auto-renew, and cancel disclosures are legible sentences — not keyword stubs |
139
- | **4.2.1–4.2.2** | Minimum functionality beyond a thin WebView shell or template app |
140
- | **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) |
141
175
  | **4.8** | Third-party login → Sign in with Apple offered, or a valid exempt case |
142
176
  | **5.1.1(i)** | Privacy policy text (fetched live) matches code, PrivacyInfo, and SDK usage |
143
177
  | **5.1.1(ii)** | Purpose strings are specific and tied to a visible feature |
@@ -146,16 +180,44 @@ signals with a higher false-positive rate; Pierre prefers `not applicable` when
146
180
  | **5.1.1(iv)** | Pre-permission priming CTA is neutral ("Continue"/"Next"), not steering toward granting |
147
181
  | **5.1.2** | ATT prompt, tracking description, privacy policy, and ad SDK usage align |
148
182
  | **5.1.3** | HealthKit data not used for advertising or marketing |
149
- | **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 |
150
184
  | **5.4** | VPN / NetworkExtension → on-screen disclosure copy visible in UI strings |
151
- | **5.2.1–5.2.3** | Obvious third-party trademark or brand misuse in metadata or UI copy |
152
- | **5.3.1–5.3.3** | Contest / sweepstakes copy includes official rules and eligibility |
153
- | **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) |
154
188
  | **5.6.1 / 5.6.3** † | Rating / review manipulation dark patterns (withhold features until 5 stars, write-review links without `requestReview`) |
155
-
156
- Pierre runs **all 29 every time** and reports each as `REVIEW-PASS:` or `REVIEW-FINDING:`. When the
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 |
190
+ | **4.0** † | Apple's minimum design bar: iPad / large-text layout, no placeholder, clipped or degraded UI (Apple's #1 removal reason) |
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
157
219
  static scan already flagged a guideline, the deep check adds semantic context the scanner could not see.
158
- † 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.
159
221
 
160
222
  ### Supported app types
161
223
 
@@ -166,7 +228,7 @@ how the app is built:
166
228
 
167
229
  | App type | Coverage |
168
230
  |----------|----------|
169
- | 🟢 **Native Swift / SwiftUI** | **Full.** All 54 vectors apply. |
231
+ | 🟢 **Native Swift / SwiftUI** | Source checks are supported; applicability and missing-input gates still apply. |
170
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. |
171
233
 
172
234
  ## Quick start
@@ -354,12 +416,12 @@ nothing is auto-fixed.
354
416
  | Phase | Step |
355
417
  |-------|------|
356
418
  | **0** | **Guideline drift**: diff the live App Store Review Guidelines against a tracked baseline. Never blocks. |
357
- | **1** | **Static scan**: `scan.sh` over the 54 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). |
358
420
  | **2** | **`fastlane precheck`**: Apple's own metadata rule engine. |
359
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). |
360
- | **4** | **Pierre deep review**: 30 semantic checks (23 Tier A + 7 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. |
361
423
  | **5** | **Verdict**: GREEN / YELLOW / RED from Phases 0–2 counts, plus `.precheck-pass` token the upload guard gates on. |
362
- | **6** | *(opt-in, agent mode)* **Local dynamic simulator tier**: launch/paywall/permission smoke checks on a local simulator via Maestro + `xcrun simctl`. Advisory; never changes the verdict. |
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. |
363
425
 
364
426
  ### Evidence strength
365
427
 
@@ -370,7 +432,7 @@ Severity says how bad a finding is. It does not say how firmly it is *establishe
370
432
  FAIL: 5.1.1 camera capture API used but Info.plist is missing 'NSCameraUsageDescription' [App/CameraView.swift:42]
371
433
  evidence: source · validator-blocking · needs build verification
372
434
 
373
- 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]
374
436
  evidence: metadata · judgment-call
375
437
  ```
376
438
 
@@ -432,6 +494,13 @@ close it. In agent mode Pierre then
432
494
  than Pierre's impression of your text. If you
433
495
  decline, they stay unaudited and are listed as such.
434
496
 
497
+ Two more gap records exist. **`framework-not-audited`** (`SKIP: framework — N code-level checks
498
+ under-detect on rn|flutter|kmp …`): the code-level checks grep Swift/ObjC, so on React Native,
499
+ Flutter or Kotlin Multiplatform they under-detect rather than false-fire; the scan now names how
500
+ many and which (derived from the evidence catalogue) instead of looking clean on ground it never
501
+ read. **`runtime-not-audited`**: the Phase 6 dynamic tier did not run (no built simulator app was
502
+ supplied), so every runtime check is unobserved.
503
+
435
504
  Every run ends with a mandatory **Not audited** section: the checks that did not run this time, plus
436
505
  the fixed list of what a static tool can never see — runtime crashes, whether links resolve, whether
437
506
  Restore Purchases actually works, OAuth round trips, server-driven content, and the built archive
@@ -577,7 +646,7 @@ measures the false-positive rate on real, unrelated open-source code. See
577
646
  ## Eval (LLM deep-review scorecard)
578
647
 
579
648
  The static scanner above is measured by `docs/scorecard.md`; Pierre's **LLM deep-review layer**
580
- (30 semantic checks, incl. the 7 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/)
581
650
  and its own scorecard, [`docs/llm-scorecard.md`](docs/llm-scorecard.md).
582
651
 
583
652
  - **Dataset** — `eval/dataset/`: one labelled case per file (target check, expected
package/bin/cli.js CHANGED
@@ -29,6 +29,8 @@ function printHelp() {
29
29
  `\n` +
30
30
  `Usage:\n` +
31
31
  ` npx appstore-precheck [options]\n` +
32
+ ` npx appstore-precheck review --repo <path> --prepare\n` +
33
+ ` npx appstore-precheck review --bundle <json> --live\n` +
32
34
  `\n` +
33
35
  `Runs the static scanner over the current directory and prints a\n` +
34
36
  `GREEN / YELLOW / RED verdict. Read-only: it never edits your files.\n` +
@@ -82,6 +84,12 @@ function parseArgs(argv) {
82
84
  }
83
85
 
84
86
  function main() {
87
+ if (process.argv[2] === 'review') {
88
+ const script = path.join(PKG_ROOT, 'skills', 'appstore-precheck', 'scripts', 'semantic-review.py');
89
+ const result = spawnSync('python3', ['-B', script, ...process.argv.slice(3)], { stdio: 'inherit' });
90
+ if (result.error) fail('python3 is required for optional semantic review', 70);
91
+ process.exit(result.signal ? 70 : (result.status || 0));
92
+ }
85
93
  const opts = parseArgs(process.argv.slice(2));
86
94
 
87
95
  if (!fs.existsSync(SCAN) || !fs.existsSync(VERDICT)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appstore-precheck",
3
- "version": "1.18.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/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 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",