appstore-precheck 1.16.0 → 1.18.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 +203 -0
- package/README.md +139 -10
- package/package.json +2 -2
- package/skills/appstore-precheck/SKILL.md +190 -29
- package/skills/appstore-precheck/guidelines-baseline.json +1 -1
- package/skills/appstore-precheck/guidelines-fingerprints.json +178 -58
- package/skills/appstore-precheck/references/methodology.md +278 -1
- package/skills/appstore-precheck/references/pierre-deep-review.md +31 -7
- package/skills/appstore-precheck/scripts/evidence.sh +210 -0
- package/skills/appstore-precheck/scripts/findings.sh +82 -3
- package/skills/appstore-precheck/scripts/guideline-cite.sh +196 -0
- package/skills/appstore-precheck/scripts/lib/guideline-text.sh +86 -0
- package/skills/appstore-precheck/scripts/sarif.sh +9 -0
- package/skills/appstore-precheck/scripts/scan.sh +144 -8
- package/skills/appstore-precheck/scripts/suppress.sh +5 -0
- package/skills/appstore-precheck/scripts/verdict.sh +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,209 @@
|
|
|
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
|
+
## [1.18.0] - 2026-08-31
|
|
7
|
+
|
|
8
|
+
Two gaps closed, both about **not overstating what the tool knows**. Prior art credit: the
|
|
9
|
+
validator-vs-reviewer confidence split and the never-quote-from-memory rule are adapted from
|
|
10
|
+
[dabodamjan/app-store-rejection-checker](https://github.com/dabodamjan/app-store-rejection-checker)
|
|
11
|
+
(MIT), which applies them to an LLM auditor; this is the deterministic-scanner form of both.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- **Evidence strength and confidence on every finding**
|
|
15
|
+
([`scripts/evidence.sh`](skills/appstore-precheck/scripts/evidence.sh)). Severity says how bad a
|
|
16
|
+
finding is; it never said how firmly it was *established*. Apple's upload validators run against
|
|
17
|
+
the built product while this scanner reads a repository, so a missing purpose string found by
|
|
18
|
+
grepping `.swift` and a missing key in a checked-in `Info.plist` were reported identically even
|
|
19
|
+
though the first can be dead code, `#if DEBUG`, or a file excluded from the shipping target. Each
|
|
20
|
+
of the 53 rules now carries an **evidence class** (`metadata` / `manifest` / `resource` /
|
|
21
|
+
`build-setting` / `source`, the weakest artifact its conclusion depends on) and a **confidence
|
|
22
|
+
level** (`validator-blocking` / `review-risk` / `judgment-call`, who actually acts on it).
|
|
23
|
+
- **`needs_build_verification`, derived not stored**: true exactly when a `validator-blocking` claim
|
|
24
|
+
rests on `source` or `build-setting` evidence. It cannot drift out of sync with the catalogues
|
|
25
|
+
because it is computed from them. Phase 5 surfaces the count as a "what this run could not
|
|
26
|
+
establish" note; it never changes the GREEN/YELLOW/RED verdict.
|
|
27
|
+
- **`set_evidence` / `set_confidence` per-branch refinement** so a degraded read cannot inherit the
|
|
28
|
+
rule's label. §2's empty-purpose-string FAIL is `manifest` rather than the rule's `source` floor;
|
|
29
|
+
§2's "Info.plist not found", §1's "declared but no code usage grepped" and "could not auto-detect
|
|
30
|
+
iOS source dir", §42's "could not read PNG dimensions", §10's "no paywall view found" and §53's
|
|
31
|
+
"no metadata dir" drop to `judgment-call` instead of claiming Apple's validator blocks them.
|
|
32
|
+
- **Offline pinned guideline citations**
|
|
33
|
+
([`scripts/guideline-cite.sh`](skills/appstore-precheck/scripts/guideline-cite.sh)). Pierre now
|
|
34
|
+
quotes Apple's actual wording instead of his recollection of it. Quotes are pinned in
|
|
35
|
+
`guidelines-fingerprints.json` next to the hashes that already detect when a section changes, so
|
|
36
|
+
an out-of-date quote is a **detectable condition** rather than a silent lie — offline,
|
|
37
|
+
deterministic, reviewable in git, and staleness-aware (`STALE` past
|
|
38
|
+
`GUIDELINE_CITE_STALE_DAYS`, default 120). All 57 covered sections are pinned.
|
|
39
|
+
Exit `3` / `NO PINNED CITATION` is the load-bearing case: Phase 3 now forbids reconstructing
|
|
40
|
+
guideline text from memory and requires saying the wording could not be verified this run.
|
|
41
|
+
- **`guideline_url` on every finding** (text via the citation tool, plus JSON and SARIF), so a human
|
|
42
|
+
can always open the section the finding cites. Parenthetical sub-items (`5.1.1(v)`, `3.1.1(a)`)
|
|
43
|
+
resolve to their anchor.
|
|
44
|
+
- **`scripts/guideline-drift.sh --quotes`**: maintainer step that fills in the citable quotes only.
|
|
45
|
+
It never touches a fingerprint or `reconciled_on`, and refuses to re-quote a section that has
|
|
46
|
+
drifted since its baseline — quoting a drifted section would take the new wording while the
|
|
47
|
+
fingerprint still claimed the old, papering over the very change drift detection exists to catch.
|
|
48
|
+
- **`gd_section_quote`** in `skills/appstore-precheck/scripts/lib/guideline-text.sh`: original-case, sentence-bounded
|
|
49
|
+
excerpts. The extraction was split into a shared `_gd_section_raw`, verified byte-identical
|
|
50
|
+
against the live page for all 57 sections so no fingerprint moved.
|
|
51
|
+
- **`tests/test-evidence.sh`** (57 assertions) and **`tests/test-guideline-cite.sh`**. The evidence
|
|
52
|
+
test enforces a completeness invariant: every rule `scan.sh` sets must carry both labels from the
|
|
53
|
+
closed vocabularies, so a new check cannot ship unlabelled.
|
|
54
|
+
|
|
55
|
+
### Changed
|
|
56
|
+
- Text output gains one indented `evidence: …` line under each `FAIL:`/`WARN:` (never under `PASS:`).
|
|
57
|
+
`^FAIL:`/`^WARN:` anchoring, verdict arithmetic, and the token are untouched; set
|
|
58
|
+
`APPSTORE_PRECHECK_NO_EVIDENCE=1` to suppress it.
|
|
59
|
+
- `--format json` findings gain `evidence`, `confidence`, `needs_build_verification` and
|
|
60
|
+
`guideline_url`; the summary gains `by_confidence` and `needs_build_verification`. `--format
|
|
61
|
+
sarif` carries the same labels in each result's `properties` bag, omitted entirely for an
|
|
62
|
+
unclassified rule rather than guessed.
|
|
63
|
+
- Phase 3 of `SKILL.md` now requires a citation lookup per finding and requires Pierre to reflect
|
|
64
|
+
the evidence label — especially to say, in plain words, when a finding rests on a grep rather than
|
|
65
|
+
on the shipping build.
|
|
66
|
+
- `docs`: methodology.md gains "Evidence strength and confidence" (with the generated per-rule
|
|
67
|
+
table) and "Guideline citations" (including why pinned snapshots beat a live fetch here);
|
|
68
|
+
README gains both sections under "How it works".
|
|
69
|
+
|
|
70
|
+
### Added — second pass: the remaining gaps
|
|
71
|
+
- **`SKIP:` — a fourth line class for checks that could not run.** `FAIL`/`WARN`/`PASS` all assert
|
|
72
|
+
something about the build; a check that never ran asserts nothing, and reporting it as a `PASS`
|
|
73
|
+
turns an unexamined surface into a clean bill of health. The screenshots check did exactly that
|
|
74
|
+
(*"assumed managed in App Store Connect"*). `SKIP` is counted separately (`skip=` from
|
|
75
|
+
`verdict.sh`, `summary.not_audited` in JSON), excluded from SARIF, and **never moves the
|
|
76
|
+
verdict** — a gap in coverage is not a defect in the build.
|
|
77
|
+
- **The store listing is no longer skipped in silence.** With no `fastlane/metadata` directory, a dozen
|
|
78
|
+
store-listing checks used to vanish without a word. `SKIP: metadata` now names how many did not
|
|
79
|
+
run, counted from the evidence catalogue via the new `rules_with_evidence` so the number cannot
|
|
80
|
+
rot. SKILL.md Phase 1 then **asks the user to paste their App Store Connect listing** — name,
|
|
81
|
+
subtitle, description, keywords, promotional text, age rating, review notes, demo account — and
|
|
82
|
+
audits it directly; those findings count. If the user declines, or there is no user (CI), they
|
|
83
|
+
stay `SKIP`. Metadata is never invented.
|
|
84
|
+
- **A mandatory "Not audited" section on every run, GREEN included**: the checks that did not run,
|
|
85
|
+
plus the fixed list of what a static tool can never see (runtime crashes, whether links resolve,
|
|
86
|
+
whether Restore Purchases works, OAuth round trips, server-driven content, the built archive).
|
|
87
|
+
A GREEN that never saw the store listing is a GREEN with a hole in it, and it now says so.
|
|
88
|
+
- **§54 `saturated-category` (4.3(b))** — the guideline was not covered at all. Apple *names* the
|
|
89
|
+
saturated categories ("dating, flashlight, sound effects, wallpaper, simple timers, and fortune
|
|
90
|
+
telling ... we will not accept new submissions unless they offer a meaningfully different or
|
|
91
|
+
improved experience", plus drinking games, kama sutra, fart and burp apps), so the rule matches
|
|
92
|
+
Apple's own list rather than a guess. Matched against **name / subtitle / keywords only** — those
|
|
93
|
+
say what the app *is*; the description says what it *does*, where "flashlight" or "timer" is an
|
|
94
|
+
ordinary feature of an unrelated app. Word-boundary anchored, so `fart` does not match `farther`.
|
|
95
|
+
WARN + `judgment-call`: being in a named category is exposure, not a violation.
|
|
96
|
+
- **Deep-review check 30 (Tier B, 4.3)** — the differentiation judgment the scanner cannot make:
|
|
97
|
+
what does this app do that the incumbents do not, including 4.3(a) variant-bundle-ID patterns.
|
|
98
|
+
Deep review is now **30 checks (23 Tier A + 7 Tier B)**; the scanner covers **54 vectors**.
|
|
99
|
+
- **`guideline-cite.sh --verify-live`** — change-based staleness. Age was only a proxy, bad in both
|
|
100
|
+
directions: an untouched section stays correct for years, a section edited yesterday is wrong and
|
|
101
|
+
still looks fresh. This re-hashes the live section against the pinned fingerprint (one fetch,
|
|
102
|
+
cached per day, so a whole run costs one request). Unchanged → the quote is current however old
|
|
103
|
+
the pin is, and `STALE` is withdrawn. Changed → exit `4` and `CHANGED`, and Phase 3 requires
|
|
104
|
+
saying Apple's text has moved instead of quoting the old wording. Any failure degrades to the
|
|
105
|
+
offline path and never reports a verification that did not happen.
|
|
106
|
+
- **Phase 0 scans Apple's announcements.** `developer.apple.com/news` carries policy changes —
|
|
107
|
+
deadlines, new required declarations, entitlement changes — often before the guideline text
|
|
108
|
+
catches up. Items newer than the baseline `reconciled_on` produce a non-blocking WARN.
|
|
109
|
+
|
|
110
|
+
### Changed — second pass
|
|
111
|
+
- The shared HTML parser moved from `scripts/lib/` to
|
|
112
|
+
**`skills/appstore-precheck/scripts/lib/guideline-text.sh`**. Only the skill directory is
|
|
113
|
+
packaged, and `--verify-live` needs the parser at the user's machine. `guideline-drift.sh` and
|
|
114
|
+
`eval/rag/ingest.sh` source it from the new location; there is still exactly one implementation.
|
|
115
|
+
- `guidelines-fingerprints.json` reconciled against the live page on 2026-09-01: all 57 previously
|
|
116
|
+
pinned fingerprints verified **unchanged**, 4.3 added, 58 sections now carry quotes.
|
|
117
|
+
|
|
118
|
+
### Fixed — adversarial review pass
|
|
119
|
+
Found by reviewing the two commits above as a hostile second reader, verifying each suspect by
|
|
120
|
+
running it rather than reading it.
|
|
121
|
+
- **`--verify-live` cached the live page at a predictable path in shared `/tmp`** and `rm -f`'d
|
|
122
|
+
that path on failure. Any local user could pre-place a crafted page and have the tool "verify" a
|
|
123
|
+
citation against it; and the very first test pointed the cache at `/dev/null`, which — run as
|
|
124
|
+
root — would have deleted `/dev/null`. The cache now lives under the user's own
|
|
125
|
+
`${XDG_CACHE_HOME:-~/.cache}/appstore-precheck` (mode 0700), a non-regular file or symlink at the
|
|
126
|
+
path is refused rather than read or removed, and only a file this run created is ever deleted.
|
|
127
|
+
`GUIDELINE_CITE_URL` was added so the test fails the fetch **offline and instantly**
|
|
128
|
+
(`file:///nonexistent`) — it had been making a real HTTP request to Apple on every run.
|
|
129
|
+
- **SKILL.md contradicted itself on pasted metadata.** Phase 1 said findings from a pasted App Store
|
|
130
|
+
Connect listing "count toward the verdict"; Phase 5 says the verdict is derived *only* from
|
|
131
|
+
scanner lines. Both cannot be true, and the first would have had Pierre judge character limits
|
|
132
|
+
by eye. Resolved the honest way: the skill now writes the pasted fields into a temporary
|
|
133
|
+
fastlane-shaped tree outside the repo and **re-runs the scanner** with an absolute `metadataDir`
|
|
134
|
+
(verified to work; test added). The findings are then real scanner lines that count, and the
|
|
135
|
+
repo stays untouched. Review notes, demo account and age rating — which have no scanner rule —
|
|
136
|
+
are judged in deep review as advisory.
|
|
137
|
+
- **A `SKIP` under a rule inherited that rule's labels.** The screenshots SKIP carried
|
|
138
|
+
`confidence: validator-blocking` in JSON — a line that established nothing claiming Apple's
|
|
139
|
+
validator enforces it. SKIP now records no evidence class and no confidence; test added.
|
|
140
|
+
- **The store-listing SKIP hardcoded a guideline enumeration** ("2.1, 2.3.x, 5.1.4, 5.3.4") that
|
|
141
|
+
was already stale the moment §54 (4.3) landed — precisely the rot the *derived* count was meant
|
|
142
|
+
to avoid, one line below it. The enumeration is gone; the skipped rule ids are now printed in
|
|
143
|
+
the detail block, derived from the same catalogue as the count, so the two cannot disagree.
|
|
144
|
+
- **The evidence completeness test hardcoded `seq 1 53`**, so §54 was outside the invariant that
|
|
145
|
+
exists to catch exactly an unclassified new rule (the secondary scan.sh-grep check happened to
|
|
146
|
+
cover it). Both the test and `rules_with_evidence` now walk the catalogue until `rule_slug`
|
|
147
|
+
returns empty (`catalogue_slugs`), and the test asserts the walk reached §54.
|
|
148
|
+
- **`skip()` bypassed `.precheck-ignore`.** A team whose screenshots genuinely live only in App
|
|
149
|
+
Store Connect had no way to acknowledge the gap; the rule-scoped SKIP now honours suppression
|
|
150
|
+
like every other emitter and is counted as suppressed. The store-listing SKIP was first left
|
|
151
|
+
unsuppressible ("a fact, not a preference"); on reflection that was inconsistent with the
|
|
152
|
+
screenshots SKIP and with what suppression means here — a signed acknowledgment, not a hiding
|
|
153
|
+
place. It now carries the stable id `store-listing-not-audited` (a *gap record*, outside the
|
|
154
|
+
catalogue; `is_gap_record`), can be acknowledged in `.precheck-ignore`, and **still counts in
|
|
155
|
+
`not_audited`** when acknowledged: signing for a gap does not close it.
|
|
156
|
+
- `tests/test-format-json.sh` counted `set_rule` call sites as a proxy for "53 sections tagged",
|
|
157
|
+
which broke on a legitimate re-declaration. It now counts distinct slugs.
|
|
158
|
+
- **`--reconcile` silently destroyed every pinned quote.** It rebuilt each entry from scratch, so a
|
|
159
|
+
later `--quotes` run would re-date all citations as if freshly verified. It now carries a quote
|
|
160
|
+
(and its original verification date) forward when the section is unchanged, and deliberately drops
|
|
161
|
+
it — announcing the drop — when the text moved, because that wording is now wrong. Regression test
|
|
162
|
+
in `tests/test-guideline-drift.sh`.
|
|
163
|
+
|
|
164
|
+
### Changed — the three review questions, researched and decided
|
|
165
|
+
- **Confidence column verified against Apple's own validators** (2026-09-01). `ITMS-90683` (any
|
|
166
|
+
missing purpose string when the framework is linked, ATT included), `ITMS-91053` (required-reason
|
|
167
|
+
declaration), `ITMS-90725` (iOS 26 SDK floor at upload) and App Store Connect's required
|
|
168
|
+
privacy/support URLs confirm the `validator-blocking` rows. Two overstatements corrected:
|
|
169
|
+
**`export-compliance` → `judgment-call`** (the build is held at "Missing Compliance" until the
|
|
170
|
+
question is answered — one click, friction not rejection), and **§6 no longer FAILs on an empty
|
|
171
|
+
subtitle or keywords file** — those are optional in App Store Connect; only name and description
|
|
172
|
+
are required. §7's missing-per-locale-folder and "only N images" branches are `judgment-call`
|
|
173
|
+
(App Store Connect falls back to the primary locale; 3–10 is advice).
|
|
174
|
+
- **Degraded reads are `SKIP`, not `judgment-call` WARNs.** §2 "Info.plist not found", §1 "could not
|
|
175
|
+
auto-detect iOS source dir" and §10 "no paywall view found" had been downgraded to
|
|
176
|
+
`judgment-call` — half a fix, since they still counted toward YELLOW. They are now `SKIP` under
|
|
177
|
+
their rule. §53's "no metadata dir" line was removed: the store-listing SKIP already names it.
|
|
178
|
+
- **§54 kept as is**, deliberately: Apple's 4.3(b) exposure applies to every app in a named
|
|
179
|
+
category, thin or substantial. Teams that have stated their differentiator can acknowledge the
|
|
180
|
+
rule in `.precheck-ignore`. Rationale recorded in methodology.md.
|
|
181
|
+
|
|
182
|
+
### Notes
|
|
183
|
+
- Origin of this release: a comparison against
|
|
184
|
+
[dabodamjan/app-store-rejection-checker](https://github.com/dabodamjan/app-store-rejection-checker).
|
|
185
|
+
Four things it did better are now closed — the confidence taxonomy, quoting live guideline text,
|
|
186
|
+
asking for App Store Connect metadata instead of skipping it silently, and a mandatory not-checked
|
|
187
|
+
list — plus guideline 4.3, which this project did not cover at all.
|
|
188
|
+
- **No rule reads a lockfile.** Building the evidence table surfaced that every SDK signal
|
|
189
|
+
(tracking, analytics, payment, AI, push) is a source grep rather than a `Podfile.lock` /
|
|
190
|
+
`Package.resolved` read — which is why so many signal-gated checks sit at the weakest evidence
|
|
191
|
+
class. This is now stated plainly in the README and methodology as the most honest available
|
|
192
|
+
account of where the real-panel false positives come from. Reading lockfiles is a candidate for a
|
|
193
|
+
follow-up; this release labels the weakness rather than hiding it.
|
|
194
|
+
|
|
195
|
+
## [1.17.0] - 2026-08-28
|
|
196
|
+
|
|
197
|
+
### Added
|
|
198
|
+
- **§53 `subscription-eula-metadata` (3.1.2)**: new IAP-gated scan vector requiring a functional
|
|
199
|
+
Terms of Use (EULA) URL in every locale's App Store `description.txt`. Apple's automated
|
|
200
|
+
metadata review rejects auto-renewable-subscription submissions whose app metadata has no
|
|
201
|
+
EULA link (standard Apple EULA linked in the description, or a custom EULA set in App Store
|
|
202
|
+
Connect); the description link is the checkable signal, so its absence in any locale is a
|
|
203
|
+
FAIL, and a missing fastlane metadata dir downgrades to a verify-manually WARN. Caught in the
|
|
204
|
+
wild: a live rejection ("does not include a functional link to the Terms of Use (EULA) in the
|
|
205
|
+
app metadata") passed every existing check — §10 covers the in-app paywall links, but nothing
|
|
206
|
+
covered the store description. Catalog, findings slug, methodology table, SKILL.md/README
|
|
207
|
+
counts (52 → 53), and tests updated.
|
|
208
|
+
|
|
6
209
|
## [1.16.0] - 2026-08-07
|
|
7
210
|
|
|
8
211
|
### Added
|
package/README.md
CHANGED
|
@@ -22,8 +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 **
|
|
26
|
-
(23 high-confidence Tier A +
|
|
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
27
|
incentivized review, push/HomeKit abuse, rating manipulation).
|
|
28
28
|
It hands you a single **GREEN / YELLOW / RED** verdict. It never edits your code.
|
|
29
29
|
|
|
@@ -37,7 +37,7 @@ also run it by hand or wire it into CI.
|
|
|
37
37
|
|
|
38
38
|
Your verdict is delivered by **Pierre**, a French critic who has seen ten thousand rejections and is
|
|
39
39
|
impressed by none of them. He reviews your build harder than Apple would, in private — first with a
|
|
40
|
-
fast static scan, then with **
|
|
40
|
+
fast static scan, then with **30 deep semantic checks** (23 confident + 7 heuristic). A GREEN from
|
|
41
41
|
Pierre means Apple will wave you through.
|
|
42
42
|
|
|
43
43
|
- 🔴 **RED**: *"Non. Restore Purchases, absent. Guideline 3.1.2. Suivant."*
|
|
@@ -50,7 +50,7 @@ each, divided by horizontal rules), not one compressed sentence. The breakdown b
|
|
|
50
50
|
|
|
51
51
|
## What it checks
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
54 rejection vectors across code, fastlane metadata, screenshots, `PrivacyInfo.xcprivacy`, and the paywall:
|
|
54
54
|
|
|
55
55
|
| Guideline | Check |
|
|
56
56
|
|-----------|-------|
|
|
@@ -85,6 +85,7 @@ each, divided by horizontal rules), not one compressed sentence. The breakdown b
|
|
|
85
85
|
| **4.4.2** | Safari content-blocker / web extension |
|
|
86
86
|
| **4.5.4** | Marketing-push SDK registered for notifications without an in-app opt-out signal |
|
|
87
87
|
| **4.8** | Sign in with Apple offered when a third-party social login is used |
|
|
88
|
+
| **4.3** | Exposure to a category Apple names as saturated in 4.3(b) (dating, flashlight, sound effects, wallpaper, simple timers, fortune telling, …) |
|
|
88
89
|
| **4.9** | Recurring Apple Pay (`PKRecurringPaymentRequest`) — verify the renewal / cancel disclosure |
|
|
89
90
|
| **5.1.1** | A non-empty purpose string for every sensitive framework |
|
|
90
91
|
| **5.1.1** | Analytics SDK present ↔ `PrivacyInfo.xcprivacy` declares collected data / tracking domains |
|
|
@@ -109,7 +110,7 @@ each, divided by horizontal rules), not one compressed sentence. The breakdown b
|
|
|
109
110
|
Paywall checks are skipped automatically when no in-app-purchase signals are present, and the
|
|
110
111
|
signal-gated advisory checks stay silent unless their triggering signal is found.
|
|
111
112
|
|
|
112
|
-
### Pierre deep review (
|
|
113
|
+
### Pierre deep review (30 semantic checks)
|
|
113
114
|
|
|
114
115
|
After the static scan, Pierre reads your project end-to-end and runs **29 evidence-based checks**
|
|
115
116
|
the grep layer cannot fully judge. These emit advisory `REVIEW-FINDING:` lines (they do **not**
|
|
@@ -165,7 +166,7 @@ how the app is built:
|
|
|
165
166
|
|
|
166
167
|
| App type | Coverage |
|
|
167
168
|
|----------|----------|
|
|
168
|
-
| 🟢 **Native Swift / SwiftUI** | **Full.** All
|
|
169
|
+
| 🟢 **Native Swift / SwiftUI** | **Full.** All 54 vectors apply. |
|
|
169
170
|
| 🟡 **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. |
|
|
170
171
|
|
|
171
172
|
## Quick start
|
|
@@ -353,13 +354,135 @@ nothing is auto-fixed.
|
|
|
353
354
|
| Phase | Step |
|
|
354
355
|
|-------|------|
|
|
355
356
|
| **0** | **Guideline drift**: diff the live App Store Review Guidelines against a tracked baseline. Never blocks. |
|
|
356
|
-
| **1** | **Static scan**: `scan.sh` over the
|
|
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). |
|
|
357
358
|
| **2** | **`fastlane precheck`**: Apple's own metadata rule engine. |
|
|
358
|
-
| **3** | **Pierre commentary**: explains **every** FAIL and WARN from Phases 0–2 in 2–3 sentences each. |
|
|
359
|
-
| **4** | **Pierre deep review**:
|
|
359
|
+
| **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. |
|
|
360
361
|
| **5** | **Verdict**: GREEN / YELLOW / RED from Phases 0–2 counts, plus `.precheck-pass` token the upload guard gates on. |
|
|
361
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. |
|
|
362
363
|
|
|
364
|
+
### Evidence strength
|
|
365
|
+
|
|
366
|
+
Severity says how bad a finding is. It does not say how firmly it is *established* — so every
|
|
367
|
+
`FAIL:` / `WARN:` carries an evidence line:
|
|
368
|
+
|
|
369
|
+
```
|
|
370
|
+
FAIL: 5.1.1 camera capture API used but Info.plist is missing 'NSCameraUsageDescription' [App/CameraView.swift:42]
|
|
371
|
+
evidence: source · validator-blocking · needs build verification
|
|
372
|
+
|
|
373
|
+
WARN: 2.3.1 Pricing language in app name/subtitle [fastlane/metadata/en-US/name.txt]
|
|
374
|
+
evidence: metadata · judgment-call
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
Apple's upload validators run against the **built product**; this scanner reads a **repository**.
|
|
378
|
+
The two labels make that gap explicit instead of leaving it implicit:
|
|
379
|
+
|
|
380
|
+
| Evidence | Read from | How faithfully it represents what ships |
|
|
381
|
+
|---|---|---|
|
|
382
|
+
| `metadata` | `fastlane/metadata/**` | uploaded to App Store Connect verbatim |
|
|
383
|
+
| `manifest` | `Info.plist`, entitlements, `PrivacyInfo.xcprivacy` | ships as authored |
|
|
384
|
+
| `resource` | String Catalogs, screenshot assets | shipped / uploaded files |
|
|
385
|
+
| `build-setting` | `project.pbxproj` values | resolved per target *and* configuration — a proxy |
|
|
386
|
+
| `source` | `.swift` / `.m` / `.h` greps | weakest: in a file ≠ in the shipping binary |
|
|
387
|
+
|
|
388
|
+
| Confidence | Who acts on it |
|
|
389
|
+
|---|---|
|
|
390
|
+
| `validator-blocking` | Apple's automated validation blocks this. Mechanical. |
|
|
391
|
+
| `review-risk` | A human reviewer rejects this pattern frequently. |
|
|
392
|
+
| `judgment-call` | A heuristic. A false positive is expected. |
|
|
393
|
+
|
|
394
|
+
`needs build verification` is **derived**, never stored: it appears when a `validator-blocking`
|
|
395
|
+
claim rests on `source` or `build-setting` evidence. It means *this will block the upload if it
|
|
396
|
+
ships as-is, and the repository cannot show that it ships* — dead code, `#if DEBUG`, and files
|
|
397
|
+
excluded from the shipping target all break the inference. Pierre says so in plain words rather
|
|
398
|
+
than presenting a grep as a certainty.
|
|
399
|
+
|
|
400
|
+
The labels are pinned per rule in [`scripts/evidence.sh`](skills/appstore-precheck/scripts/evidence.sh)
|
|
401
|
+
and gated by `tests/test-evidence.sh`, which fails the build if any rule is unclassified — a new
|
|
402
|
+
check cannot ship unlabelled. They appear in the text output, in `--format json`
|
|
403
|
+
(`evidence`, `confidence`, `needs_build_verification`, plus a `summary.by_confidence` roll-up) and
|
|
404
|
+
in each SARIF result's `properties` bag. `APPSTORE_PRECHECK_NO_EVIDENCE=1` suppresses the text line.
|
|
405
|
+
|
|
406
|
+
One thing the table makes plain: **no rule reads a lockfile.** Every SDK signal is a source grep,
|
|
407
|
+
which is why so many signal-gated checks sit at the weakest class — and the most honest available
|
|
408
|
+
account of where the real-panel false positives come from.
|
|
409
|
+
|
|
410
|
+
### Not audited (`SKIP`)
|
|
411
|
+
|
|
412
|
+
`FAIL` / `WARN` / `PASS` all assert something about the build. A check that **could not run** asserts
|
|
413
|
+
nothing — and reporting it as a pass turns an unexamined surface into a clean bill of health. The
|
|
414
|
+
screenshots check used to do exactly that (*"assumed managed in App Store Connect"*). It is now:
|
|
415
|
+
|
|
416
|
+
```
|
|
417
|
+
SKIP: metadata — no fastlane metadata directory detected; 12 store-listing checks did not run.
|
|
418
|
+
Paste your App Store Connect listing — name, subtitle, description, keywords, promotional
|
|
419
|
+
text — to have them audited (the skill re-runs the scanner over what you paste), or they
|
|
420
|
+
stay unaudited.
|
|
421
|
+
competitor-mentions metadata-char-limits locale-metadata-parity support-privacy-url …
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
`SKIP` is counted separately (`skip=` in `verdict.sh`, `summary.not_audited` in JSON) and **never
|
|
425
|
+
changes the verdict** — a gap in coverage is not a defect in the build. A team whose listing or
|
|
426
|
+
screenshots genuinely live only in App Store Connect can acknowledge the gap by id in
|
|
427
|
+
`.precheck-ignore` (`store-listing-not-audited`, `screenshots-per-locale`): the line goes quiet, the
|
|
428
|
+
record stays as suppressed, and it **still counts as not audited** — signing for a gap does not
|
|
429
|
+
close it. In agent mode Pierre then
|
|
430
|
+
**asks you for the listing**, writes it into a temporary fastlane-shaped tree outside your repo, and
|
|
431
|
+
**re-runs the scanner over it** — so those findings are real scanner lines and do count, rather
|
|
432
|
+
than Pierre's impression of your text. If you
|
|
433
|
+
decline, they stay unaudited and are listed as such.
|
|
434
|
+
|
|
435
|
+
Every run ends with a mandatory **Not audited** section: the checks that did not run this time, plus
|
|
436
|
+
the fixed list of what a static tool can never see — runtime crashes, whether links resolve, whether
|
|
437
|
+
Restore Purchases actually works, OAuth round trips, server-driven content, and the built archive
|
|
438
|
+
itself. A GREEN that never saw your store listing is a GREEN with a hole in it, and Pierre says
|
|
439
|
+
which hole.
|
|
440
|
+
|
|
441
|
+
### Guideline citations
|
|
442
|
+
|
|
443
|
+
A guideline explanation is only worth reading if the wording is Apple's. `guideline-cite.sh` returns
|
|
444
|
+
a **pinned** quote — offline, deterministic, reviewable in git:
|
|
445
|
+
|
|
446
|
+
```bash
|
|
447
|
+
bash skills/appstore-precheck/scripts/guideline-cite.sh 5.1.1
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
```
|
|
451
|
+
5.1.1 — https://developer.apple.com/app-store/review/guidelines/#5.1.1
|
|
452
|
+
"5.1.1 Data Collection and Storage (i) Privacy Policies: All apps must include a link to their
|
|
453
|
+
privacy policy in the App Store Connect metadata field and within the app in an easily accessible
|
|
454
|
+
manner. …"
|
|
455
|
+
pinned quote, verified 2026-08-31
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
The quotes live in `guidelines-fingerprints.json`, beside the hashes that already detect when Apple
|
|
459
|
+
changes a section — so a quote that has gone out of date is a **detectable condition**, not a silent
|
|
460
|
+
lie. Past a staleness window the citation prints `STALE` and says its age. When a section has no
|
|
461
|
+
pinned quote the tool exits `3` with `NO PINNED CITATION`, and Phase 3 requires Pierre to say the
|
|
462
|
+
wording could not be verified this run — **never** to reconstruct guideline text from memory. Every
|
|
463
|
+
finding also carries a `guideline_url` deep link so a human can read the source directly.
|
|
464
|
+
|
|
465
|
+
**Staleness, done properly.** Age is a weak proxy — an untouched section stays correct for years,
|
|
466
|
+
while a section Apple edited yesterday is wrong and still looks fresh. With network available:
|
|
467
|
+
|
|
468
|
+
```bash
|
|
469
|
+
bash skills/appstore-precheck/scripts/guideline-cite.sh --verify-live 5.1.1
|
|
470
|
+
```
|
|
471
|
+
|
|
472
|
+
re-hashes the live section and compares it with the pinned fingerprint (one cached fetch per day, so
|
|
473
|
+
verifying a whole run costs one request). Unchanged → the quote is current however old the pin is.
|
|
474
|
+
Changed → exit `4` and `CHANGED`, and Pierre must say Apple's text has moved instead of quoting the
|
|
475
|
+
old wording. Any failure degrades to offline behaviour and never claims a verification it did not do.
|
|
476
|
+
|
|
477
|
+
Phase 0 also scans [developer.apple.com/news](https://developer.apple.com/news/) for review-relevant
|
|
478
|
+
announcements newer than the baseline — policy changes often land there before the guideline text
|
|
479
|
+
catches up. Non-blocking, like every Phase 0 signal.
|
|
480
|
+
|
|
481
|
+
Maintainers refresh the quotes with `bash scripts/guideline-drift.sh --quotes`, which writes only
|
|
482
|
+
the quotes and refuses to re-quote a section that has drifted since its fingerprint baseline —
|
|
483
|
+
reconcile first, then re-quote. `--reconcile` carries unchanged quotes forward and deliberately
|
|
484
|
+
drops the quote of a section whose text moved, since that wording is now wrong.
|
|
485
|
+
|
|
363
486
|
## Demo
|
|
364
487
|
|
|
365
488
|
<p align="center">
|
|
@@ -440,6 +563,12 @@ independent measurements:
|
|
|
440
563
|
`bash scripts/scorecard.sh --real`; CI runs it as a separate **non-blocking, informational** job
|
|
441
564
|
(`continue-on-error: true`) that never gates a PR.
|
|
442
565
|
|
|
566
|
+
Since v1.18.0 every finding also carries an [evidence class and confidence level](#evidence-strength).
|
|
567
|
+
That is not a second accuracy metric — it is the mechanism behind the first one: the real-panel
|
|
568
|
+
false positives concentrate in `source`-evidence rules, because every SDK signal is a code grep
|
|
569
|
+
rather than a lockfile read, and a grep cannot tell shipping code from dead code. The labels make
|
|
570
|
+
that visible per finding instead of leaving it buried in an aggregate.
|
|
571
|
+
|
|
443
572
|
**Neither measurement claims agreement with Apple's actual review decisions.** Synthetic precision
|
|
444
573
|
measures intended-behaviour fidelity against fixtures this project wrote; real-panel precision
|
|
445
574
|
measures the false-positive rate on real, unrelated open-source code. See
|
|
@@ -448,7 +577,7 @@ measures the false-positive rate on real, unrelated open-source code. See
|
|
|
448
577
|
## Eval (LLM deep-review scorecard)
|
|
449
578
|
|
|
450
579
|
The static scanner above is measured by `docs/scorecard.md`; Pierre's **LLM deep-review layer**
|
|
451
|
-
(
|
|
580
|
+
(30 semantic checks, incl. the 7 heuristic Tier B checks) has its own harness under [`eval/`](eval/)
|
|
452
581
|
and its own scorecard, [`docs/llm-scorecard.md`](docs/llm-scorecard.md).
|
|
453
582
|
|
|
454
583
|
- **Dataset** — `eval/dataset/`: one labelled case per file (target check, expected
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appstore-precheck",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.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/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"
|
|
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"
|
|
29
29
|
},
|
|
30
30
|
"keywords": [
|
|
31
31
|
"ios",
|