Skip to content

Avoid common App Store and Google Play rejections. Open playbook and pre-submission guard with 117 documented rejection patterns and fixes, privacy manifest and Data safety checks, 95 tracked deadlines (EU AI Act, DSA, COPPA, age laws), and a skill for AI coding agents.

feat: CI pipeline, data validator, changelog, CI badge, issue template

mjmirzac76dd24586d9
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 0000000..0086358
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1 @@
+blank_issues_enabled: true
diff --git a/.github/ISSUE_TEMPLATE/pattern-contribution.md b/.github/ISSUE_TEMPLATE/pattern-contribution.md
new file mode 100644
index 0000000..5d97a21
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/pattern-contribution.md
@@ -0,0 +1,22 @@
+---
+name: Rejection pattern contribution
+about: Add or correct an App Store or Google Play rejection pattern
+title: "[pattern] "
+labels: ["good first issue"]
+---
+
+## The rejection
+
+What got rejected, and which guideline or policy did the store cite.
+
+## The trigger
+
+What in the app or the listing caused it.
+
+## The fix
+
+What cleared it.
+
+## Source
+
+A link to the live Apple or Google source, or the real rejection text. Every factual claim needs a source.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..a92b889
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,41 @@
+name: CI
+
+on:
+ push:
+ branches: [ master, main ]
+ pull_request:
+ branches: [ master, main ]
+
+jobs:
+ validate:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Set up Python
+ uses: actions/setup-python@v5
+ with:
+ python-version: '3.12'
+
+ - name: Validate data files and consistency
+ run: python3 scripts/validate.py
+
+ - name: Guard test suite
+ run: bash agent-os/hooks/app-store-compliance-guard-test.sh
+
+ - name: Metadata audit test suite
+ run: bash scripts/metadata-audit-test.sh
+
+ - name: References are in sync with the taxonomy
+ run: |
+ python3 scripts/generate-references.py
+ if ! git diff --quiet -- references/; then
+ echo "references/ is out of date. Run scripts/generate-references.py and commit."
+ git --no-pager diff --stat -- references/
+ exit 1
+ fi
+ echo "references/ in sync"
+
+ - name: JSON well formed
+ run: |
+ python3 -c "import json; json.load(open('data/rejection-patterns.json')); json.load(open('data/detection-recipes.json')); print('json ok')"
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..2b1bb94
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,27 @@
+# Changelog
+
+All notable changes to this playbook are recorded here. The format follows Keep a Changelog, adapted to plain punctuation.
+
+## Unreleased
+
+Nothing yet.
+
+## 1.0.0 (2026-06-06)
+
+### Added
+- Apple App Store rejection map across guideline sections 1 through 5, every rule with its trigger and fix, plus the 2026 age rating and AI disclosure changes.
+- Google Play rejection map across every policy, plus the four level enforcement ladder from rejection to account termination.
+- Advanced 2026 layer. Privacy manifests, export compliance, payments and the DMA, the full legal layer (GDPR, EU AI Act, DSA, COPPA), gambling depth, AI content policy, and Android specifics.
+- Mistake pattern taxonomy, the appeal playbook, and real rejection case studies.
+- Cross store coverage. Huawei AppGallery, the Chinese stores, Samsung, Amazon, Microsoft, and RuStore.
+- Open source patterns doc. The fastlane precheck rule set, the Android Play Policy Insights and security lints, and the Google Play pre-launch report.
+- Competitive gap analysis of the other open source compliance repositories.
+- A structured, AI loadable references tree. Rules by category and guidelines by app type, each rule carrying a concrete detection command, generated from the taxonomy.
+- A machine readable rejection pattern taxonomy with 53 patterns and 46 detection recipes.
+- A tested pre submission guard hook that blocks risky submission commands.
+- A tested metadata audit engine that audits the live store listing with a propose and re validate loop, plus a pull wrapper for the asc CLI.
+- A data validator that checks the taxonomy and recipes stay consistent, run in CI.
+- A continuous integration pipeline that runs the validator, both test suites, and a references drift check on every push and pull request.
+- An agent skill, a slash command, a review notes template, and a copy and paste install prompt.
+- Apple and Android logos, a 2026 urgency section with current statistics, engagement calls to action, a contributor guide, four good first issues, and a credits file.
+- Dual license. Code under MIT, content under CC BY 4.0, attribution compulsory.
diff --git a/README.md b/README.md
index 36ed179..a2ccaf7 100644
--- a/README.md
+++ b/README.md
@@ -9,6 +9,7 @@ Stop getting your iOS and Android apps rejected. The enterprise reference and au
[![Apple App Store](https://img.shields.io/badge/Apple_App_Store-000000?logo=apple&logoColor=white)](https://developer.apple.com/app-store/review/guidelines/)
[![Google Play](https://img.shields.io/badge/Google_Play-414141?logo=googleplay&logoColor=white)](https://play.google/developer-content-policy/)
[![Claude Code](https://img.shields.io/badge/Claude_Code-ready-000000?logo=anthropic&logoColor=white)](#how-you-actually-use-this)
+[![CI](https://img.shields.io/github/actions/workflow/status/mjmirza/app-store-compliance/ci.yml?branch=master&label=CI)](https://github.com/mjmirza/app-store-compliance/actions)
[![MIT License](https://img.shields.io/badge/License-MIT-2ea44f)](LICENSE)
[![PRs welcome](https://img.shields.io/badge/PRs-welcome-2ea44f)](.github/CONTRIBUTING.md)
diff --git a/data/detection-recipes.json b/data/detection-recipes.json
index c0f98fe..1634edf 100644
--- a/data/detection-recipes.json
+++ b/data/detection-recipes.json
@@ -3,7 +3,6 @@
"recipes": {
"APPLE-2.1-STAGING-BACKEND": "grep -rn 'localhost\\|127.0.0.1\\|staging\\.\\|ngrok\\|http://' --include='*.swift' --include='*.plist' . | grep -v https",
"APPLE-2.1-PLACEHOLDER-CONTENT": "grep -rni 'lorem ipsum\\|placeholder\\|TODO\\|FIXME\\|example.com' --include='*.swift' --include='*.strings' .",
- "APPLE-2.1-DEMO-OR-LOGIN": "grep -rn 'signIn\\|LoginView\\|OAuth\\|FirebaseAuth' --include='*.swift' . # then confirm a demo account is in the review notes",
"APPLE-5.1.1-MISSING-USAGE-DESCRIPTION": "for k in NSCameraUsageDescription NSLocationWhenInUseUsageDescription NSPhotoLibraryUsageDescription NSContactsUsageDescription NSMicrophoneUsageDescription; do echo \"$k\"; plutil -extract \"$k\" raw */Info.plist 2>/dev/null || echo ' MISSING or empty'; done",
"APPLE-5.1.1-NO-ACCOUNT-DELETION": "grep -rn 'createAccount\\|signUp\\|register' --include='*.swift' . && ! grep -rn 'deleteAccount\\|delete_account\\|account deletion' --include='*.swift' .",
"APPLE-5.1.2-MISSING-ATT": "grep -rn 'AppsFlyer\\|Adjust\\|FBSDK\\|advertisingIdentifier\\|ASIdentifierManager' --include='*.swift' . && ! grep -rn 'ATTrackingManager\\|NSUserTrackingUsageDescription' .",
@@ -37,6 +36,16 @@
"APPLE-2.3-NEGATIVE-APPLE-SENTIMENT": "python3 scripts/metadata-audit.py ./metadata",
"BOTH-UNREACHABLE-METADATA-URL": "python3 scripts/metadata-audit.py ./metadata --check-urls",
"APPLE-3.1.2-MISLEADING-PRICING": "python3 scripts/metadata-audit.py ./metadata",
- "APPLE-2.1-REVIEW-NOTES-INCOMPLETE": "use templates/REVIEW-NOTES-TEMPLATE.md and fill all six sections"
+ "APPLE-2.1-REVIEW-NOTES-INCOMPLETE": "use templates/REVIEW-NOTES-TEMPLATE.md and fill all six sections",
+ "APPLE-2.1-MISSING-DEMO-ACCOUNT": "grep -rn 'signIn\\|LoginView\\|OAuth\\|FirebaseAuth' --include='*.swift' . # then confirm a demo account is in the review notes",
+ "APPLE-5.1.1-MISSING-PRIVACY-POLICY": "grep -rn 'privacyPolicy\\|privacy-policy\\|PrivacyPolicy' --include='*.swift' . || echo 'no privacy policy reference found'",
+ "APPLE-5.1.1-VAGUE-PURPOSE-STRING": "for k in NSCameraUsageDescription NSLocationWhenInUseUsageDescription NSPhotoLibraryUsageDescription NSContactsUsageDescription; do v=$(plutil -extract \"$k\" raw */Info.plist 2>/dev/null); echo \"$k = $v\"; done # flag empty or generic values like 'required'",
+ "APPLE-4.2-WEB-WRAPPER": "grep -rn 'WKWebView\\|loadRequest\\|Capacitor\\|Cordova' --include='*.swift' . | wc -l # a high count with little native code is a thin wrapper",
+ "APPLE-5.1.2-AI-NO-CONSENT-MODAL": "grep -rni 'api.openai.com\\|anthropic\\|generativelanguage\\|chat/completions' . && ! grep -rni 'consent' .",
+ "GOOGLE-MISSING-PRIVACY-POLICY": "grep -rn 'privacyPolicy\\|privacy-policy' . || echo 'set a privacy policy URL in the Play listing'",
+ "APPLE-ACCOUNT-DELETION-WEAK": "grep -rn 'deleteAccount\\|delete account' --include='*.swift' . && grep -rn 'mailto:\\|deactivate' --include='*.swift' . # deletion must truly delete, not mailto or deactivate",
+ "ANDROID-ACCOUNT-DELETION-URL": "grep -rn 'createAccount\\|signUp\\|register' --include='*.kt' --include='*.java' . && ! grep -rn 'deleteAccount\\|delete_account' . # also set a data deletion URL in the Play listing",
+ "APPLE-1.2-UGC-24H-ACTION": "grep -rni 'post\\|comment\\|upload\\|feed\\|community' --include='*.swift' . && ! grep -rni 'report\\|block user\\|EULA\\|moderation' --include='*.swift' .",
+ "GOOGLE-FAMILIES-AD-SDK": "grep -rn 'com.google.android.gms.ads\\|applovin\\|unity.*ads\\|ironsource' --include='*.gradle' . && grep -rni 'children\\|families\\|kids' --include='AndroidManifest.xml' ."
}
-}
+}
\ No newline at end of file
diff --git a/references/rules/android.md b/references/rules/android.md
index fd36f50..fad0112 100644
--- a/references/rules/android.md
+++ b/references/rules/android.md
@@ -92,6 +92,12 @@ grep -rn 'BIND_ACCESSIBILITY_SERVICE\|AccessibilityService' --include='AndroidMa
- How to fix it. Use only Families certified ad SDKs and remove behavioral advertising to minors.
- Detection signals. children, Designed for Families, kids
+How to detect.
+
+```bash
+grep -rn 'com.google.android.gms.ads\|applovin\|unity.*ads\|ironsource' --include='*.gradle' . && grep -rni 'children\|families\|kids' --include='AndroidManifest.xml' .
+```
+
## GOOGLE-TARGET-API
- Title. App does not target the current required API level
diff --git a/references/rules/design.md b/references/rules/design.md
index 0da5d16..15b7766 100644
--- a/references/rules/design.md
+++ b/references/rules/design.md
@@ -29,6 +29,12 @@ grep -rn 'FacebookLogin\|GoogleSignIn\|GIDSignIn' --include='*.swift' . && ! gre
- How to fix it. Add native capability, offline value, device integration, or content the web version lacks.
- Detection signals. WKWebView loadRequest, single WebView, Capacitor, Cordova
+How to detect.
+
+```bash
+grep -rn 'WKWebView\|loadRequest\|Capacitor\|Cordova' --include='*.swift' . | wc -l # a high count with little native code is a thin wrapper
+```
+
## APPLE-4.0-SIWA-UX
- Title. Sign in with Apple UX violation
diff --git a/references/rules/performance.md b/references/rules/performance.md
index a282eab..d68b08c 100644
--- a/references/rules/performance.md
+++ b/references/rules/performance.md
@@ -12,6 +12,12 @@
- How to fix it. Add a working demo account and a live test path to the Notes for Review field before submission.
- Detection signals. LoginView, signIn, AuthService, OAuth, Firebase Auth
+How to detect.
+
+```bash
+grep -rn 'signIn\|LoginView\|OAuth\|FirebaseAuth' --include='*.swift' . # then confirm a demo account is in the review notes
+```
+
## APPLE-2.1-STAGING-BACKEND
- Title. Backend points at staging or localhost
diff --git a/references/rules/privacy.md b/references/rules/privacy.md
index 493a9ed..088febb 100644
--- a/references/rules/privacy.md
+++ b/references/rules/privacy.md
@@ -12,6 +12,12 @@
- How to fix it. Publish a privacy policy, link it in App Store Connect, and reach it from inside the app.
- Detection signals. privacyPolicy, privacy-policy, PrivacyPolicyURL
+How to detect.
+
+```bash
+grep -rn 'privacyPolicy\|privacy-policy\|PrivacyPolicy' --include='*.swift' . || echo 'no privacy policy reference found'
+```
+
## APPLE-5.1.1-MISSING-USAGE-DESCRIPTION
- Title. Sensitive framework linked without a usage description
@@ -55,6 +61,12 @@ grep -rn 'createAccount\|signUp\|register' --include='*.swift' . && ! grep -rn '
- How to fix it. Publish a privacy policy and set its URL in the Play Console store listing.
- Detection signals. privacyPolicy, privacy-policy
+How to detect.
+
+```bash
+grep -rn 'privacyPolicy\|privacy-policy' . || echo 'set a privacy policy URL in the Play listing'
+```
+
## APPLE-PRIVACY-MANIFEST-MISSING
- Title. Required reason APIs or third party SDKs without a privacy manifest
@@ -82,6 +94,12 @@ find . -name 'PrivacyInfo.xcprivacy' | grep -q . || echo 'MISSING PrivacyInfo.xc
- How to fix it. Write a specific purpose string naming the real feature that uses each permission.
- Detection signals. NSCameraUsageDescription, NSLocationWhenInUseUsageDescription, NSPhotoLibraryUsageDescription, NSMicrophoneUsageDescription, NSContactsUsageDescription
+How to detect.
+
+```bash
+for k in NSCameraUsageDescription NSLocationWhenInUseUsageDescription NSPhotoLibraryUsageDescription NSContactsUsageDescription; do v=$(plutil -extract "$k" raw */Info.plist 2>/dev/null); echo "$k = $v"; done # flag empty or generic values like 'required'
+```
+
## APPLE-5.1.2-MISSING-ATT
- Title. Tracking SDK without App Tracking Transparency
@@ -110,6 +128,12 @@ grep -rn 'AppsFlyer\|Adjust\|FBSDK\|advertisingIdentifier\|ASIdentifierManager'
- Detection signals. OpenAI, anthropic, gemini, completion, chat/completions
- Present means handled. consent, data sharing modal
+How to detect.
+
+```bash
+grep -rni 'api.openai.com\|anthropic\|generativelanguage\|chat/completions' . && ! grep -rni 'consent' .
+```
+
## APPLE-ACCOUNT-DELETION-WEAK
- Title. Account deletion is a mailto or deactivate only flow
@@ -120,6 +144,12 @@ grep -rn 'AppsFlyer\|Adjust\|FBSDK\|advertisingIdentifier\|ASIdentifierManager'
- How to fix it. Provide genuine in app deletion of the account and its data, not a deactivate or an external form.
- Detection signals. mailto:, deactivate, contact us to delete
+How to detect.
+
+```bash
+grep -rn 'deleteAccount\|delete account' --include='*.swift' . && grep -rn 'mailto:\|deactivate' --include='*.swift' . # deletion must truly delete, not mailto or deactivate
+```
+
## ANDROID-ACCOUNT-DELETION-URL
- Title. Account creation without in app deletion and a data deletion URL
@@ -131,6 +161,12 @@ grep -rn 'AppsFlyer\|Adjust\|FBSDK\|advertisingIdentifier\|ASIdentifierManager'
- Detection signals. signUp, createAccount, register
- Present means handled. deleteAccount, delete_account, account deletion
+How to detect.
+
+```bash
+grep -rn 'createAccount\|signUp\|register' --include='*.kt' --include='*.java' . && ! grep -rn 'deleteAccount\|delete_account' . # also set a data deletion URL in the Play listing
+```
+
## BOTH-FINGERPRINTING
- Title. Device fingerprinting to track users
diff --git a/references/rules/safety.md b/references/rules/safety.md
index 3c50d66..28d7243 100644
--- a/references/rules/safety.md
+++ b/references/rules/safety.md
@@ -13,6 +13,12 @@
- Detection signals. post, comment, upload, chat, feed, community
- Present means handled. report, block user, EULA, moderation
+How to detect.
+
+```bash
+grep -rni 'post\|comment\|upload\|feed\|community' --include='*.swift' . && ! grep -rni 'report\|block user\|EULA\|moderation' --include='*.swift' .
+```
+
## BOTH-AI-GENERATED-CONTENT
- Title. Generative AI output without moderation or safeguards
diff --git a/scripts/validate.py b/scripts/validate.py
new file mode 100644
index 0000000..35b30fa
--- /dev/null
+++ b/scripts/validate.py
@@ -0,0 +1,70 @@
+#!/usr/bin/env python3
+"""
+Validate the data files and their consistency. Run in CI and before any release.
+Checks:
+ 1. rejection-patterns.json is well formed and every pattern has required fields.
+ 2. pattern ids are unique, severity and platform are from the allowed sets.
+ 3. every detection recipe key maps to a real pattern id (no dead recipes).
+ 4. reports automatable-looking patterns that have no recipe yet (info only).
+Exit code 0 on pass, 1 on any error.
+"""
+import json, os, sys
+
+ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+PATTERNS = os.path.join(ROOT, "data", "rejection-patterns.json")
+RECIPES = os.path.join(ROOT, "data", "detection-recipes.json")
+
+REQUIRED = ["id", "platform", "guideline", "title", "severity", "detection", "fix"]
+SEVERITIES = {"critical", "high", "medium", "low"}
+PLATFORMS = {"apple", "google", "both"}
+
+errors = []
+warnings = []
+
+def main():
+ data = json.load(open(PATTERNS))
+ patterns = data.get("patterns", [])
+ if not patterns:
+ errors.append("rejection-patterns.json has no patterns")
+ return finish()
+
+ ids = set()
+ for p in patterns:
+ pid = p.get("id", "<no id>")
+ for f in REQUIRED:
+ if not p.get(f):
+ errors.append(f"{pid} missing required field {f}")
+ if pid in ids:
+ errors.append(f"duplicate pattern id {pid}")
+ ids.add(pid)
+ if p.get("severity") not in SEVERITIES:
+ errors.append(f"{pid} has invalid severity {p.get('severity')}")
+ if p.get("platform") not in PLATFORMS:
+ errors.append(f"{pid} has invalid platform {p.get('platform')}")
+
+ recipes = json.load(open(RECIPES)).get("recipes", {})
+ for rid in recipes:
+ if rid not in ids:
+ errors.append(f"detection recipe '{rid}' has no matching pattern id, it will never surface")
+
+ with_recipe = set(recipes.keys())
+ for p in patterns:
+ sig = p.get("signals")
+ if sig and p["id"] not in with_recipe:
+ warnings.append(f"{p['id']} has detection signals but no recipe command yet")
+
+ return finish(len(patterns), len(recipes))
+
+def finish(npat=0, nrec=0):
+ for w in warnings:
+ print(f" warn. {w}")
+ for e in errors:
+ print(f" ERROR. {e}")
+ if errors:
+ print(f"\nvalidate. FAILED with {len(errors)} error(s), {len(warnings)} warning(s)")
+ return 1
+ print(f"validate. OK. {npat} patterns, {nrec} recipes, {len(warnings)} warning(s), 0 errors")
+ return 0
+
+if __name__ == "__main__":
+ sys.exit(main())