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.
Shell accessibilityai-agentsandroidapp-review-guidelinesapp-storeapp-store-connectapp-store-rejectionapp-store-reviewclaude-codecoppadata-safetyeu-ai-actgdprgoogle-playgoogle-play-policyiosmobile-complianceplay-consolepre-submission-checklistprivacy-manifest
docs(changelog): correct the #610 entry test-case count to 80 (#613)
Mirza Iqbal9e03db853796
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 38f1b93..2e4be88 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -12,7 +12,7 @@ All notable changes to this playbook are recorded here. The format follows Keep### Fixed-- The guard's hook-mode payload parser was not JSON-aware (#610, reported and measured by mj-deving). The regex extraction stopped at the first escaped quote, so `cd "$CLAUDE_PROJECT_DIR/apps/app" && npx eas submit --platform ios` reduced to two characters and the guard exited 0 unscanned, and a backslash-newline continuation left the JSON newline escape literal, so `eas submit` split across two lines never matched. The command is now read from `.tool_input.command` (or a top-level `command`) with jq, then python3, then a backslash-aware fallback when neither is installed. Backslash-newline continuations fold into one space, and bare newlines stay as separators, so a trigger split across two separate commands is never invented. In hook mode a block now writes the report to stderr, the only stream Claude Code shows on exit 2, so the reason no longer arrives empty. A pass stays on stdout and standalone mode is unchanged. An adversarial review of the fix added four more guards. the trigger is matched against the raw command with quote characters stripped, so `eas "submit"`, `bash -c 'eas submit'`, and a submit inside a `python3 -c` string are all scanned, and only a single simple line led by an inert text command (`echo`, `printf`, `grep`, `cat`, `head`, `tail`, `wc`, `sort`, `uniq`, `tee`) with no substitution, pipe, or separator has its quoted spans and trailing comment blanked, so a plain echo or grep that mentions a submit never blocks while `echo "$(eas submit)"` and a `git` alias still scan. jq and python3 are each probed with a trivial run and their real exit status is checked, so a present but broken interpreter (the macOS python3 stub without Command Line Tools, a stale pyenv shim, a jq that dies on real input) falls through instead of silencing the guard, while a payload python3 genuinely rejects as invalid JSON stays silent. A leading `cd <dir> &&`, when it is the only directory change in the command and resolves inside the project, scopes the scan to that app, which is how an EAS monorepo submits. A payload whose `tool_name` is not Bash, or that carries more than one JSON document, is never scanned. A hook timeout signal flushes the buffered report to stderr, and when no temp file can be created the report stays on stdout as before with only the block reason line added on stderr. 66 new test cases, including runs with jq and python3 removed from PATH, a present but broken interpreter on PATH, and every counterexample from four adversarial review rounds.+- The guard's hook-mode payload parser was not JSON-aware (#610, reported and measured by mj-deving). The regex extraction stopped at the first escaped quote, so `cd "$CLAUDE_PROJECT_DIR/apps/app" && npx eas submit --platform ios` reduced to two characters and the guard exited 0 unscanned, and a backslash-newline continuation left the JSON newline escape literal, so `eas submit` split across two lines never matched. The command is now read from `.tool_input.command` (or a top-level `command`) with jq, then python3, then a backslash-aware fallback when neither is installed. Backslash-newline continuations fold into one space, and bare newlines stay as separators, so a trigger split across two separate commands is never invented. In hook mode a block now writes the report to stderr, the only stream Claude Code shows on exit 2, so the reason no longer arrives empty. A pass stays on stdout and standalone mode is unchanged. An adversarial review of the fix added four more guards. the trigger is matched against the raw command with quote characters stripped, so `eas "submit"`, `bash -c 'eas submit'`, and a submit inside a `python3 -c` string are all scanned, and only a single simple line led by an inert text command (`echo`, `printf`, `grep`, `cat`, `head`, `tail`, `wc`, `sort`, `uniq`, `tee`) with no substitution, pipe, or separator has its quoted spans and trailing comment blanked, so a plain echo or grep that mentions a submit never blocks while `echo "$(eas submit)"` and a `git` alias still scan. jq and python3 are each probed with a trivial run and their real exit status is checked, so a present but broken interpreter (the macOS python3 stub without Command Line Tools, a stale pyenv shim, a jq that dies on real input) falls through instead of silencing the guard, while a payload python3 genuinely rejects as invalid JSON stays silent. A leading `cd <dir> &&`, when it is the only directory change in the command and resolves inside the project, scopes the scan to that app, which is how an EAS monorepo submits. A payload whose `tool_name` is not Bash, or that carries more than one JSON document, is never scanned. A hook timeout signal flushes the buffered report to stderr, and when no temp file can be created the report stays on stdout as before with only the block reason line added on stderr. 80 new test cases, including runs with jq and python3 removed from PATH, a present but broken interpreter on PATH, and every counterexample from four adversarial review rounds.- The guard scanned Python virtualenvs, bundled web output under dist/, and lowercase test folders (test/, tests/, integration_test/) as app source. A virtualenv's vendored API JSON alone raised five false criticals on one Flutter project. Directories are now pruned by name below the project root only, which also fixes a project sitting under a folder named build being scanned as empty (#542).- Every `find | grep -q .` pipeline exited 141 under `set -o pipefail` once grep stopped reading and find died of SIGPIPE, so a project with more than one PrivacyInfo.xcprivacy (any CocoaPods or SPM project) was reported as missing its privacy manifest, and platform detection could miss a platform. The pipelines now drain their input, as release_string_has already did.- ANDROID-USER-DATA-DISCLOSURE matched lowercase English words case-sensitively, so it fired on "files" in any documented repo and stayed silent on READ_CONTACTS. It now matches the permission constants and API symbols (#542).