appstore-precheck 1.12.2 → 1.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,55 @@ All notable changes to this project are documented here. Versioning follows
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.13.1] - 2026-07-12
9
+
10
+ ### Fixed
11
+ - **Pierre pass-vs-not-applicable boundary**: the deep-review output format now states
12
+ explicitly that "not applicable" is only for checks whose subject matter is entirely
13
+ absent from the project; material that exists and is clean gets a plain `REVIEW-PASS`
14
+ with evidence. Found by the eval consistency metric (3 of 63 clean-case verdicts drifted
15
+ across Opus 4.8 and Fable 5); verified fixed by full re-runs of all three models —
16
+ consistency 1.00 across the board, with no regression on genuine not-applicable cases.
17
+
18
+ ### Added (eval)
19
+ - **Multi-model scorecard**: `docs/llm-scorecard.md` now opens with a comparison table and
20
+ renders every committed baseline (currently Sonnet 5, Opus 4.8, and Fable 5 — before and
21
+ after the prompt clarification); the CI Tier-A F1 floor gates each baseline separately.
22
+ - **Always-on-thinking model support**: `eval/run.sh --model claude-fable-5` works — the
23
+ request omits the `thinking` field for Fable/Mythos-tier models and raises `max_tokens`
24
+ for thinking headroom, both recorded in the manifest.
25
+ - **Prompt fingerprint + stricter resume**: every run manifest records a `prompt_sha256` of
26
+ `pierre-deep-review.md`, and the resume guard refuses to reuse a cache dir produced with
27
+ a different model or a different (or unrecorded) prompt version.
28
+
29
+ ## [1.13.0] - 2026-07-12
30
+
31
+ ### Added
32
+ - **LLM eval harness (`eval/`)**: Pierre's Phase 4 deep review (28 semantic checks,
33
+ incl. the 6 heuristic Tier B checks) is now measured, not just described. Additive and
34
+ opt-in — nothing in the default scan path changes, no new network calls, verdict logic
35
+ untouched.
36
+ - 21-case human-labelled dataset (`eval/dataset/`): positive+negative pairs per check,
37
+ deliberate false-positive traps, borderline cases, and pre-fetched-URL cases for the
38
+ privacy-policy check. Unconfirmed labels report as UNLABELED and never enter headline
39
+ metrics.
40
+ - Runner (`eval/run.sh`): pinned model + generation params recorded per run, `--repeat`
41
+ for consistency measurement, response caching with resume; `ANTHROPIC_API_KEY` read
42
+ from the environment only. Baseline cache dirs are per-model
43
+ (`eval/baseline/<date>-<model>/`) and a resume guard refuses to mix models in one dir.
44
+ - Offline scorer (`eval/score.py` → `docs/llm-scorecard.md`): per-check and per-tier
45
+ precision/recall/F1, Tier-B false-positive rate, majority-vote scoring, unanimity-based
46
+ consistency metric.
47
+ - Committed baselines: Sonnet 5 and Opus 4.8, both 21/21 correct (Tier-A F1 1.00,
48
+ Tier-B FP rate 0.00); consistency 1.00 (Sonnet) vs 0.95 (Opus — one pass/not-applicable
49
+ wording drift). See the honesty section in `docs/llm-scorecard.md` for what these
50
+ numbers do and do not mean.
51
+ - CI: blocking offline gate (dataset validity, scorecard freshness, Tier-A F1 ≥ 0.80
52
+ floor on the committed baseline) plus a non-blocking live smoke job that skips politely
53
+ without the API secret.
54
+ - Tests: verdict parsing, request building, scorer math, and the model-mismatch guard —
55
+ all offline, no key needed.
56
+
8
57
  ## [1.12.2] - 2026-07-08
9
58
 
10
59
  ### Fixed
package/README.md CHANGED
@@ -405,6 +405,39 @@ measures intended-behaviour fidelity against fixtures this project wrote; real-p
405
405
  measures the false-positive rate on real, unrelated open-source code. See
406
406
  [`docs/scorecard.md`](docs/scorecard.md) for the current numbers and full methodology.
407
407
 
408
+ ## Eval (LLM deep-review scorecard)
409
+
410
+ The static scanner above is measured by `docs/scorecard.md`; Pierre's **LLM deep-review layer**
411
+ (28 semantic checks, incl. the 6 heuristic Tier B checks) has its own harness under [`eval/`](eval/)
412
+ and its own scorecard, [`docs/llm-scorecard.md`](docs/llm-scorecard.md).
413
+
414
+ - **Dataset** — `eval/dataset/`: one labelled case per file (target check, expected
415
+ `finding`/`pass`/`not-applicable`, one-line rationale, minimal fixture), validated against
416
+ `eval/schema/case.schema.json` by `bash eval/validate.sh`. Tier B is deliberately over-represented —
417
+ that is where false positives live.
418
+ - **Runner** — `bash eval/run.sh [--repeat 3] [--model claude-sonnet-5] [--cases 'check05-*']`
419
+ calls the Anthropic Messages API once per case per repeat and caches every raw response under
420
+ `eval/runs/<timestamp>/` (or `--baseline` → `eval/baseline/<date>-<model>/`, which is committed). Needs
421
+ `ANTHROPIC_API_KEY` in the environment; the key is never logged or written to disk. Model and
422
+ generation parameters are pinned in the run's `manifest.json`.
423
+ - **Scorer** — `python3 eval/score.py --write` re-parses the cached responses **offline** (no key,
424
+ no re-billing) and regenerates `docs/llm-scorecard.md`: per-check and per-tier precision/recall/F1
425
+ with TP/FP/FN/TN counts, the **Tier-B false-positive rate**, a **consistency** metric (share of
426
+ cases unanimous across repeats; majority vote is scored and disagreements are flagged), and the
427
+ count of **UNLABELED** cases — any label a human has not confirmed is excluded from headline
428
+ metrics, same rule as the real-panel scorecard.
429
+ - **CI** — the blocking job validates the dataset and fails if `docs/llm-scorecard.md` is stale or
430
+ **Tier-A F1 drops below 0.80** (`LLM_F1_FLOOR`), scored purely from the committed baseline caches.
431
+ A separate **non-blocking, informational** job (`continue-on-error: true`) runs a tiny live smoke
432
+ subset when the `ANTHROPIC_API_KEY` secret is configured — mirroring the real-panel job.
433
+
434
+ **Limitations, stated up front:** the numbers measure fidelity to this project's own human labels on
435
+ minimal synthetic fixtures — **not agreement with Apple's actual review decisions**. Each case
436
+ isolates a single check (cross-check interference is unmeasured), and Pierre's live URL fetches are
437
+ substituted with pre-fetched content embedded in the case for determinism. Non-determinism is
438
+ treated as a metric (consistency), not hidden: generation parameters are pinned and recorded, and
439
+ every rate is printed next to its raw counts so small samples stay visible.
440
+
408
441
  ## Configuration
409
442
 
410
443
  Zero config for a standard fastlane + Xcode layout. The scanner auto-detects your source directory,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appstore-precheck",
3
- "version": "1.12.2",
3
+ "version": "1.13.1",
4
4
  "description": "Read-only iOS App Store pre-submission check, packaged as a portable Agent Skill with native Claude Code, Cursor, and Codex 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 scripts/scorecard.sh && bash -n scripts/scorecard-real.sh && bash -n scripts/update-brew-formula.sh && bash -n tests/test-pack.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 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 tests/test-eval-parse.sh && bash -n tests/test-eval-score.sh"
29
29
  },
30
30
  "keywords": [
31
31
  "ios",
@@ -4,7 +4,7 @@ description: Read-only pre-submission check for an iOS app before App Store revi
4
4
  license: MIT
5
5
  metadata:
6
6
  author: Berkay Turk
7
- version: 1.12.2
7
+ version: 1.13.1
8
8
  allowed-tools: Bash Read Grep Glob WebFetch mcp__maestro__list_devices mcp__maestro__run mcp__maestro__inspect_screen mcp__maestro__take_screenshot mcp__maestro__cheat_sheet
9
9
  ---
10
10
 
@@ -54,6 +54,12 @@ If a check is **not applicable** (e.g. no HealthKit, no VPN, no contest copy), s
54
54
  REVIEW-PASS: <guideline> — not applicable (<reason>)
55
55
  ```
56
56
 
57
+ "Not applicable" is only for checks whose subject matter is entirely absent from the
58
+ project (no HealthKit import, no VPN entitlement, no contest copy anywhere). When the
59
+ material a check inspects exists and is clean — release notes present but free of beta
60
+ language, a review prompt present but using the system API — report a plain
61
+ `REVIEW-PASS` with the evidence pointer, not "not applicable".
62
+
57
63
  ---
58
64
 
59
65
  ## The 28 checks (guideline order)