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.

Adopt verified bot PR parts, fix day counts, validator rules, guard scan time (#831)

Mirza Iqbal1df7e3722f42
diff --git a/.citation-allowlist b/.citation-allowlist
index 31511fa..d2f8186 100644
--- a/.citation-allowlist
+++ b/.citation-allowlist
@@ -39,6 +39,8 @@ https://example.com/x
https://kiosk.example.io/privacy-policy
https://realbackend.io/privacy-policy
https://staging.example.com
+https://app.com/privacy-policy
+https://prod.app.com
# Real GitHub page that returns 404 to logged-out clients (README stars badge link).
https://github.com/mjmirza/app-store-compliance/stargazers
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ef6dcf1..c57bf15 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -29,6 +29,9 @@ jobs:
- name: Metadata audit test suite
run: bash scripts/metadata-audit-test.sh
+ - name: Accessibility audit test suite
+ run: bash scripts/accessibility-audit-test.sh
+
- name: Policy monitor test suites
run: bash scripts/run-monitor-tests.sh
@@ -39,6 +42,7 @@ jobs:
run: |
python3 scripts/test-generate-timeline.py
python3 scripts/test-deadline-checker.py
+ python3 scripts/test-validate.py
bash scripts/deadline-checker-test.sh
- name: References are in sync with the taxonomy
diff --git a/AGENTS.md b/AGENTS.md
index 4e67db3..668e5bf 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -160,3 +160,4 @@ Priority 5, Social Media and AI Summaries:
- Never trust secondary sources before official sources.
- Never create compliance pull requests using Priority 4 or Priority 5 sources unless verified by a Priority 1 source. Any citation or claim sourced from Priority 4 or 5 must be traceably corroborated by an official publication from Priority 1.
+- A deadline that is postponed, withdrawn, or narrowed is updated in place in `data/regulatory-deadlines.json`, never deleted. Keep the old date and the reason in a `history` note on the entry. A deadline that has passed gets `absorbed_into` naming the doc section that now carries the rule, and `scripts/validate.py` fails a passed entry without one after 7 days.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b676525..143e256 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,9 @@ All notable changes to this playbook are recorded here. The format follows Keep
### Added
+- Validator deadline rules (#660). `scripts/validate.py` fails an entry whose effective date is after its mandatory date or whose mandatory date is after its enforcement date, and fails a deadline that passed more than 7 days ago with no `absorbed_into`. Inside the 7 days it warns. `scripts/test-validate.py` pins both with eight cases. AGENTS.md records the policy for a postponed, withdrawn, or narrowed deadline.
+- Guard scan time (#658). The guard prints `Scan time. Ns` after the summary, and past 45 seconds it names the hook timeout setting to raise. The threshold reads APP_STORE_GUARD_SLOW_SECS. The time sits on its own line because the gauntlet compares the summary line across interpreter tiers. Five new cases, 189 total.
+- The three deadlines of 30 September 2026 (Android developer verification sideloading leg, Play organization registration for regulated categories, Play package name registration) carry `absorbed_into`.
- iPhone Duo readiness (#724). Deadline APPLE-IPHONE-DUO-LAUNCH (pre-order 16 October 2026, ships 23 October 2026), PLATFORM-MECHANICS section 1.8 covering the Xcode 27.1 build, size classes and scene bounds, reserved regions around the cameras and the fold, arrangement views, vertical bars, camera direction, and the App Store asset status (specifications published, uploads not yet open, no Duo-specific review rule published), plus three pre-submission checklist items. Sourced from Apple's newsroom, developer documentation, and HIG pages.
- Project board at github.com/users/mjmirza/projects/3 with the roadmap, one issue per dated deadline milestone through May 2027, and the guard limits from #614 as tracked enhancements. Labels for area, priority, type, and platform on the repo. README links to it from Contributing.
- September 2026 gap analysis, docs/GAP-ANALYSIS-2026-09.md. 22 rejection patterns (Apple social media declaration gate, Sign in with Apple relay domain, RESCIND_CONSENT, external purchase link region gating, Live Activities, On-Demand Resources deprecation, removed App Store Connect age-rating endpoints, Rosetta sunset, Play chargeback liability, donation links, organization registration, package registration, Contact Picker and location button and geofence rules for API 37, ACCESS_LOCAL_NETWORK, R8 optimization, Restore Credentials, generative AI NCII controls, anonymous chat minor blocking, unrated apps, developer account enrollment readiness), 20 regulatory deadlines (US ADA Title II and HHS 504 extensions, FTC COPPA age-verification policy, UK DUAA, ICO storage guidance, DMCCA subscriptions, under-16 ban, Ofcom app stores report, EU AI Act marking retrofit, Product Liability Directive, Data Act switching, eIDAS wallet, CSAM derogation expiry, Korea PIPA, China AI companion measures, Singapore OSRAA, India Consent Managers, Japan APPI), 16 new guard checks with 16 gauntlet cases, and an account and program readiness section in the pre-submission checklist.
@@ -18,6 +21,16 @@ All notable changes to this playbook are recorded here. The format follows Keep
### Fixed
+- Bot PR review, 30 September 2026. The 97 scheduled Jules PRs opened since 19 September were triaged. 38 carried an empty commit. The other 59 were reruns of the same 12 jobs (the release audit branches add an untested report flag and a dated snapshot, and two of them rewrite a tracked doc on every run), each reviewed against master with tests run and added citations checked live. Four small parts were adopted with a test each. the Apple monitor keywords from #812, the pyenv-safe python lookup in the guard gauntlet from #810, the AI monitor word stems from #779, and the accessibility CI step from #819. Every PR was closed with its reason. No dated report was adopted. The reports again presented the monitors' sample announcements as verified findings, one stated the vacated FTC click to cancel rule as mandatory, one gave 17 February 2025 for the Digital Services Act where Article 93 says 2024, and two cited Apple API names that do not exist.
+- The deadline checker and the timeline counted days from the current time of day, so a deadline read as 1 day overdue on its own date and every upcoming count was one day short. Both now count whole UTC calendar days. The timeline generator accepts DEADLINES_FILE and TIMELINE_OUTPUT_FILE, so its tests no longer need to swap the real data file.
+- `monitor.py --simulate all` reached 24 of the 25 Apple tracks. The AI-related track matched none of its own sample text. It now matches, and the test counts all 25 tracks instead of spot-checking three.
+- The AI policy monitor matched whole words only, so "disclose" and "policies" in an announcement never produced the disclosure and Play policy topics. It now matches on stems.
+- `verify-citations.py` walked hidden tool-state directories, so a local browser log under .gstack produced 49 false failures. Hidden directories other than .github are skipped. The two fixture URLs in the guard gauntlet are allowlisted as fixtures.
+- `pull-metadata.sh` piped the Play listings into a python heredoc, which replaces stdin, so the listing pull always failed to parse. The listings now travel in the environment. Not run against the live Play API.
+- docs/REGULATORY-GAP-REPORT-2026.md and the GLOBAL-REGULATORY state table cited Louisiana HB 570, which never takes effect. Both now cite HB 977, Act 185 of 2026, as the deadline data already did.
+- The Quebec Law 25 line cited only a vendor blog. It now cites the Commission d'accès à l'information page, states the administrative penalty maximum that page gives, and says plainly that the penal fine maximum was not read on the statute.
+- `release-audit.py` given a path that does not exist fell back to auditing this playbook and printed a BLOCKED verdict for it. It now rejects the path before any scan.
+- CI never ran the accessibility audit test suite or a validator test. It runs both now.
- Bot PR review, 19 September 2026. The 58 open scheduled Jules PRs were triaged. Five carried an empty commit. The other 53, reruns of 13 jobs, were each reviewed against current master with tests run and every added citation checked live. The durable parts of eight were adopted with corrections (#684, #691, #693, #698, #700, #706, #718, #727) and every PR was closed with its reason. None of the dated snapshot reports were adopted. Several presented the monitors' sample announcements as verified official sources, cited EN 301 549 and WCAG clauses that do not exist or sit at another level, or stated the vacated FTC click to cancel rule as in force.
- The policy monitors now write the simulated-output notice themselves whenever they used sample data, so a regenerated report or PR draft can no longer drop it, and the notice names the real --mock and --live flags. monitor-privacy --live appended the sample announcements to real feed items because --mock defaulted to inline. Tasks repeated in the Android, security, and privacy reports are deduplicated.
- The Android monitor told developers to adopt the Privacy Sandbox Topics and Attribution Reporting APIs. Since October 2025 Google has scheduled both for phase-out on Android. Its minSdk, generative AI, and foreground service tasks now match Play policy text.
diff --git a/agent-os/hooks/app-store-compliance-guard-test.sh b/agent-os/hooks/app-store-compliance-guard-test.sh
index 1435686..859ac8e 100755
--- a/agent-os/hooks/app-store-compliance-guard-test.sh
+++ b/agent-os/hooks/app-store-compliance-guard-test.sh
@@ -739,7 +739,7 @@ rm -rf "$D"
# 70 without jq the fallback decoder still handles the quoted path (a vendored copy on a runner without jq)
D="$(mk_ios_bad)"
-NOJQ="$(mktemp -d)"; for b in bash grep sed awk find xargs tr head mktemp cat rm printf wc sort uniq cut plutil python3 xmllint dirname basename date; do p="$(command -v "$b" 2>/dev/null)"; [ -n "$p" ] && ln -s "$p" "$NOJQ/$b"; done
+NOJQ="$(mktemp -d)"; for b in bash grep sed awk find xargs tr head mktemp cat rm printf wc sort uniq cut plutil python3 xmllint dirname basename date; do p="$([ "$b" = python3 ] && pyenv which python3 2>/dev/null || command -v "$b" 2>/dev/null)"; [ -n "$p" ] && ln -s "$p" "$NOJQ/$b"; done
OUT="$(printf '%s' "$P_QUOTED" | PATH="$NOJQ" CLAUDE_PROJECT_DIR="$D" bash "$GUARD" 2>&1)"; RC=$?
echo "$OUT" | grep -q 'App Store Compliance Guard' && [ "$RC" -eq 2 ] && ok "610-8 quoted path is scanned without jq on PATH" || bad "610-8 quoted path is scanned without jq on PATH (rc=$RC bytes=${#OUT})"
rm -rf "$D" "$NOJQ"
@@ -785,7 +785,7 @@ rm -rf "$D"
# ===== Issue #610, second round. Counterexamples from the adversarial review, pinned =====
NOTOOLS="$(mktemp -d)"; for b in bash grep sed awk find xargs tr head mktemp cat rm printf wc sort uniq cut plutil xmllint dirname basename date; do p="$(command -v "$b" 2>/dev/null)"; [ -n "$p" ] && ln -s "$p" "$NOTOOLS/$b"; done
-NOJQ="$(mktemp -d)"; for b in bash grep sed awk find xargs tr head mktemp cat rm printf wc sort uniq cut plutil python3 xmllint dirname basename date; do p="$(command -v "$b" 2>/dev/null)"; [ -n "$p" ] && ln -s "$p" "$NOJQ/$b"; done
+NOJQ="$(mktemp -d)"; for b in bash grep sed awk find xargs tr head mktemp cat rm printf wc sort uniq cut plutil python3 xmllint dirname basename date; do p="$([ "$b" = python3 ] && pyenv which python3 2>/dev/null || command -v "$b" 2>/dev/null)"; [ -n "$p" ] && ln -s "$p" "$NOJQ/$b"; done
P_ESCBS='{"tool_input":{"command":"gradlew '"$BS$BS$BS$BS$BS"'nbundleRelease"}}'
P_BSSPACE='{"tool_input":{"command":"npx eas '"$BS$BS"' '"$BS"'nsubmit --platform ios"}}'
P_META_OK='{"meta":{"command":"eas submit"},"tool_input":{"command":"ls"}}'
@@ -918,7 +918,7 @@ rm -rf "$D"
# 92 a UTF-8 BOM before the payload is read on every tier
D="$(mk_ios_bad)"
NOTOOLS="$(mktemp -d)"; for b in bash grep sed awk find xargs tr head mktemp cat rm printf wc sort uniq cut plutil xmllint dirname basename date; do p="$(command -v "$b" 2>/dev/null)"; [ -n "$p" ] && ln -s "$p" "$NOTOOLS/$b"; done
-NOJQ="$(mktemp -d)"; for b in bash grep sed awk find xargs tr head mktemp cat rm printf wc sort uniq cut plutil python3 xmllint dirname basename date; do p="$(command -v "$b" 2>/dev/null)"; [ -n "$p" ] && ln -s "$p" "$NOJQ/$b"; done
+NOJQ="$(mktemp -d)"; for b in bash grep sed awk find xargs tr head mktemp cat rm printf wc sort uniq cut plutil python3 xmllint dirname basename date; do p="$([ "$b" = python3 ] && pyenv which python3 2>/dev/null || command -v "$b" 2>/dev/null)"; [ -n "$p" ] && ln -s "$p" "$NOJQ/$b"; done
for tier in "$PATH" "$NOJQ" "$NOTOOLS"; do
OUT="$(printf '%s' "$P_BOM" | PATH="$tier" CLAUDE_PROJECT_DIR="$D" bash "$GUARD" 2>&1)"; RC=$?
echo "$OUT" | grep -q 'App Store Compliance Guard' && [ "$RC" -eq 2 ] && ok "610-30 BOM payload is read (tier=${tier##*/})" || bad "610-30 BOM payload is read (tier=${tier##*/} rc=$RC bytes=${#OUT})"
@@ -960,7 +960,7 @@ P_ABS_SH='{"tool_input":{"command":"/bin/sh -c '"'"'eas submit --platform ios'"'
P_TWO_CD='{"tool_input":{"command":"cd apps/app && cd ../kiosk && npx eas submit --platform ios"}}'
P_TWO_DOCS='{"tool_input":{"command":"eas submit --platform ios"}} {"tool_input":{"command":"echo"}}'
P_NESTED_TN='{"metadata":{"tool_name":"Edit"},"tool_name":"Bash","tool_input":{"command":"fastlane pilot upload"}}'
-NOJQ="$(mktemp -d)"; for b in bash grep sed awk find xargs tr head mktemp cat rm printf wc sort uniq cut plutil python3 xmllint dirname basename date; do p="$(command -v "$b" 2>/dev/null)"; [ -n "$p" ] && ln -s "$p" "$NOJQ/$b"; done
+NOJQ="$(mktemp -d)"; for b in bash grep sed awk find xargs tr head mktemp cat rm printf wc sort uniq cut plutil python3 xmllint dirname basename date; do p="$([ "$b" = python3 ] && pyenv which python3 2>/dev/null || command -v "$b" 2>/dev/null)"; [ -n "$p" ] && ln -s "$p" "$NOJQ/$b"; done
# 96 a submit is scanned however it is quoted or wrapped
D="$(mk_ios_bad)"
@@ -1062,7 +1062,7 @@ rm -rf "$D"
mk_shim_path() { # $1 tool name to shim, $2 shim body, $3 = jq|python3|none to keep real on PATH besides the shim
local d; d="$(mktemp -d)"
for b in bash grep sed awk find xargs tr head mktemp cat rm printf wc sort uniq cut plutil xmllint dirname basename date; do p="$(command -v "$b" 2>/dev/null)"; [ -n "$p" ] && ln -s "$p" "$d/$b"; done
- [ "$3" = jq ] && ln -s "$(command -v jq)" "$d/jq"; [ "$3" = python3 ] && ln -s "$(command -v python3)" "$d/python3"
+ [ "$3" = jq ] && ln -s "$(command -v jq)" "$d/jq"; [ "$3" = python3 ] && ln -s "$(pyenv which python3 2>/dev/null || command -v python3)" "$d/python3"
printf '%s\n' "$2" > "$d/$1"; chmod +x "$d/$1"
echo "$d"
}
@@ -1093,14 +1093,14 @@ OUT="$(printf '{"tool_input":{"command":"fastlane deliver' | PATH="$SHIM" CLAUDE
rm -rf "$SHIM"
# 110 PYTHONIOENCODING=ascii never drops a command with a non-ASCII path on the python3 tier
-NOJQ="$(mktemp -d)"; for b in bash grep sed awk find xargs tr head mktemp cat rm printf wc sort uniq cut plutil python3 xmllint dirname basename date; do p="$(command -v "$b" 2>/dev/null)"; [ -n "$p" ] && ln -s "$p" "$NOJQ/$b"; done
+NOJQ="$(mktemp -d)"; for b in bash grep sed awk find xargs tr head mktemp cat rm printf wc sort uniq cut plutil python3 xmllint dirname basename date; do p="$([ "$b" = python3 ] && pyenv which python3 2>/dev/null || command -v "$b" 2>/dev/null)"; [ -n "$p" ] && ln -s "$p" "$NOJQ/$b"; done
OUT="$(printf "$P_UNI" | PYTHONIOENCODING=ascii PATH="$NOJQ" CLAUDE_PROJECT_DIR="$D" bash "$GUARD" 2>&1)"; RC=$?
echo "$OUT" | grep -q 'App Store Compliance Guard' && [ "$RC" -eq 2 ] && ok "610-48 non-ASCII path survives PYTHONIOENCODING=ascii" || bad "610-48 non-ASCII path survives PYTHONIOENCODING=ascii (rc=$RC bytes=${#OUT})"
rm -rf "$NOJQ"
# 111 with no temp file available the pass report stays on stdout and a block still puts its reason on stderr
SHIM="$(mk_shim_path mktemp '#!/bin/sh
-exit 1' jq)"; ln -s "$(command -v python3)" "$SHIM/python3"
+exit 1' jq)"; ln -s "$(pyenv which python3 2>/dev/null || command -v python3)" "$SHIM/python3"
ERR="$(printf '{"tool_input":{"command":"fastlane deliver --submit"}}' | PATH="$SHIM" CLAUDE_PROJECT_DIR="$D" bash "$GUARD" 2>&1 >/dev/null)"; RC=$?
echo "$ERR" | grep -q '^BLOCKED\.' && [ "$RC" -eq 2 ] && ok "610-49 degraded routing still puts the block reason on stderr" || bad "610-49 degraded routing still puts the block reason on stderr (rc=$RC err=${ERR:0:80})"
rm -rf "$D"
@@ -1538,6 +1538,19 @@ OUT="$(bash "$GUARD" "$D" 2>&1)"; RC=$?
[ "$(echo "$OUT" | grep -c '^App\. ')" -eq 2 ] && [ "$RC" -eq 2 ] && ok "612-37 an app with a peer dependency and its own platform projects is an app" || bad "612-37 an app with a peer dependency and its own platform projects is an app (rc=$RC sections=$(echo "$OUT" | grep -c '^App\. '))"
rm -rf "$D"
+# ===== Issue #658. The run reports how long it took, and says so when it nears the hook timeout =====
+D="$(mk_ios_bad)"
+OUT="$(bash "$GUARD" "$D" 2>&1)"
+echo "$OUT" | grep -qE '^Scan time\. [0-9]+s$' && ok "658-1 the scan time is printed" || bad "658-1 the scan time is printed"
+echo "$OUT" | grep -q 'hook timeout' && bad "658-2 a fast run prints no timeout hint" || ok "658-2 a fast run prints no timeout hint"
+OUT="$(APP_STORE_GUARD_SLOW_SECS=0 bash "$GUARD" "$D" 2>&1)"
+echo "$OUT" | grep -q 'hook timeout' && echo "$OUT" | grep -q '"timeout"' && ok "658-3 a run past the slow threshold names the timeout setting to raise" || bad "658-3 a run past the slow threshold names the timeout setting to raise"
+ERR="$(printf '{"tool_input":{"command":"fastlane deliver --submit"}}' | APP_STORE_GUARD_SLOW_SECS=0 CLAUDE_PROJECT_DIR="$D" bash "$GUARD" 2>&1 >/dev/null)"; RC=$?
+echo "$ERR" | grep -qE '^Scan time\. [0-9]+s$' && echo "$ERR" | grep -q 'hook timeout' && [ "$RC" -eq 2 ] && ok "658-4 a hook-mode block carries the scan time and the hint on stderr" || bad "658-4 a hook-mode block carries the scan time and the hint on stderr (rc=$RC)"
+OUT="$(APP_STORE_GUARD_SLOW_SECS=abc bash "$GUARD" "$D" 2>&1)"; RC=$?
+echo "$OUT" | grep -qE '^Scan time\. [0-9]+s$' && ! echo "$OUT" | grep -q 'hook timeout' && [ "$RC" -eq 2 ] && ok "658-5 a non-numeric threshold falls back to the default" || bad "658-5 a non-numeric threshold falls back to the default (rc=$RC)"
+rm -rf "$D"
+
echo ""
echo "app-store-compliance-guard-test: $PASS passed, $FAIL failed"
[ "$FAIL" -eq 0 ]
diff --git a/agent-os/hooks/app-store-compliance-guard.sh b/agent-os/hooks/app-store-compliance-guard.sh
index 1facad3..d3ebd66 100755
--- a/agent-os/hooks/app-store-compliance-guard.sh
+++ b/agent-os/hooks/app-store-compliance-guard.sh
@@ -829,6 +829,11 @@ fi
# ===== summary and exit =====
echo ""
echo "Summary. critical=$CRIT high=$HIGH medium=$MED"
+# Issue #658. A run killed by the hook timeout looks like a silent pass, so say how long this one took.
+SLOW_SECS="${APP_STORE_GUARD_SLOW_SECS:-45}"
+case "$SLOW_SECS" in ''|*[!0-9]*) SLOW_SECS=45 ;; esac
+echo "Scan time. ${SECONDS}s"
+[ "$SECONDS" -ge "$SLOW_SECS" ] && echo "Slow scan. This run is close to the Claude Code hook timeout of 60 seconds. Raise \"timeout\" on the hook entry in settings.json to at least 120."
echo "Reference. docs/ in the app-store-compliance repo, and data/rejection-patterns.json"
if [ "$CRIT" -gt 0 ]; then
diff --git a/data/regulatory-deadlines.json b/data/regulatory-deadlines.json
index 73f6025..9c7a114 100644
--- a/data/regulatory-deadlines.json
+++ b/data/regulatory-deadlines.json
@@ -473,7 +473,8 @@
"mandatory_date": "2026-09-30",
"enforcement_date": "2026-09-30",
"affected_repository_sections": "docs/PLATFORM-MECHANICS-2026.md section 2.1, references/rules/android.md",
- "priority": "critical"
+ "priority": "critical",
+ "absorbed_into": "docs/PLATFORM-MECHANICS-2026.md section 2.1, references/rules/android.md"
},
{
"id": "GOOGLE-PLAY-PHOTO-VIDEO-PERM",
@@ -563,7 +564,8 @@
"mandatory_date": "2026-09-30",
"enforcement_date": "2026-09-30",
"affected_repository_sections": "docs/GOOGLE-PLAY.md 2026 policy rounds, references/rules/android.md",
- "priority": "critical"
+ "priority": "critical",
+ "absorbed_into": "docs/GOOGLE-PLAY.md 2026 policy rounds, references/rules/android.md"
},
{
"id": "GOOGLE-PLAY-APP-PACKAGE-REGISTRATION",
@@ -575,7 +577,8 @@
"mandatory_date": "2026-09-30",
"enforcement_date": "2026-09-30",
"affected_repository_sections": "docs/GOOGLE-PLAY.md 2026 policy rounds, docs/PLATFORM-MECHANICS-2026.md section 2",
- "priority": "critical"
+ "priority": "critical",
+ "absorbed_into": "docs/GOOGLE-PLAY.md 2026 policy rounds, docs/PLATFORM-MECHANICS-2026.md section 2"
},
{
"id": "GOOGLE-US-ALT-BILLING-FEE-REPORTING",
diff --git a/docs/AI-POLICY-MIGRATION.md b/docs/AI-POLICY-MIGRATION.md
index 7ff0f89..ee329e8 100644
--- a/docs/AI-POLICY-MIGRATION.md
+++ b/docs/AI-POLICY-MIGRATION.md
@@ -16,13 +16,13 @@ This report is continuously generated and updated by `scripts/monitor-ai-policy.
### Sample. Apple App Review Guidelines, generative AI section (illustrative) (Apple)
- **Published**: Wed, 01 Apr 2026 10:00:00 PDT
- **Official Link**: [https://developer.apple.com/app-store/review/guidelines/](https://developer.apple.com/app-store/review/guidelines/)
-- **Key Topics**: AI-generated content requirements, App Review AI guidance, Safety expectations
+- **Key Topics**: AI-generated content requirements, App Review AI guidance, Safety expectations, User disclosure requirements
- **Details**: Illustrative example only. Apps with generative AI features are expected to implement input/output moderation and user-reporting, disclose data shared with third-party LLM providers, and reflect AI-generated content in the age rating questionnaire. Verify the current wording at the linked guidelines page before citing it as fact.
### Sample. Google Play generative AI content policy (illustrative) (Google Play)
- **Published**: Thu, 02 Apr 2026 09:00:00 PDT
- **Official Link**: [https://play.google/developer-content-policy/](https://play.google/developer-content-policy/)
-- **Key Topics**: Google Play AI policies
+- **Key Topics**: Google Play AI policies, AI-generated content disclosures, User safety requirements
- **Details**: Illustrative example only. Apps featuring generative AI are expected to disclose AI-generated content, let users flag or report harmful output, and prevent deepfakes, face-swaps, and non-consensual sexual content. Verify the current wording at the linked developer policy center before citing it as fact.
<!-- AI_POLICY_MONITOR_END -->
\ No newline at end of file
diff --git a/docs/GLOBAL-REGULATORY-2026.md b/docs/GLOBAL-REGULATORY-2026.md
index cd3c3fb..1cbe323 100644
--- a/docs/GLOBAL-REGULATORY-2026.md
+++ b/docs/GLOBAL-REGULATORY-2026.md
@@ -70,7 +70,7 @@ These put duties on both the store and the developer, separate from broader soci
|---|---|---|---|
| Utah | SB 142 | 26 March 2025 | store and developer duties from 6 May 2026, some operational parts delayed to 6 May 2027, private right of action from 31 December 2026 |
| Texas | SB 2420 | 2025 | statutory 1 January 2026, enjoined 23 December 2025, injunction stayed 28 May 2026 so now in effect while litigation continues |
-| Louisiana | HB 570 | 30 June 2025 | delayed one year to 1 July 2027 |
+| Louisiana | HB 977 (Act 185 of 2026), replacing HB 570 | 2026 | 1 July 2027. HB 570 (Act 481 of 2025) never takes effect |
| Alabama | HB 161 | 9 March 2026 | 2027, exact date unverified |
Common developer duties. request and receive an age category from the store. confirm whether verifiable parental consent exists for a minor account before use. assign an accurate age and suitability rating. re-request consent on a major change. limit use of age and consent data to compliance and delete it after verification (Texas is explicit on deletion). For Android apps, Google Play supports this via the Play Age Signals API, which began returning signals for eligible Texas accounts created after May 28, 2026. Sources. [Utah SB 142](https://le.utah.gov/~2025/bills/static/SB0142.html), [FPF comparison of the ASAAs](https://fpf.org/blog/comparing-enacted-app-store-accountability-acts/), [Wiley ASAA developments](https://www.wiley.law/alert-Key-Developments-With-State-App-Store-Accountability-Acts-as-Texas-Act-Takes-Effect).
@@ -177,7 +177,7 @@ Neither rule is a general developer duty. Both bind the entity that provides the
### 3.4 Canada
-- PIPEDA is the federal baseline. informed consent, purpose limitation, and breach reporting. Quebec Law 25 is stricter. explicit opt-in consent for tracking and profiling, a named privacy officer, privacy impact assessments, and breach notification. Penalty up to the greater of 25 million Canadian dollars or 4 percent of global turnover. Sources. [Quebec Law 25](https://www.cookieyes.com/blog/quebec-law-25/).
+- PIPEDA is the federal baseline. informed consent, purpose limitation, and breach reporting. Quebec Law 25 is stricter. explicit opt-in consent for tracking and profiling, a named privacy officer, privacy impact assessments, and breach notification. Administrative monetary penalties reach 10 million Canadian dollars or 2 percent of worldwide turnover, read on the regulator page on 30 September 2026. The penal fine maximum of 25 million Canadian dollars or 4 percent comes from a vendor summary, because LégisQuébec refuses automated fetches and the statute text was not read. Sources. [Commission d'accès à l'information, main changes under Law 25](https://www.cai.gouv.qc.ca/protection-renseignements-personnels/sujets-et-domaines-dinteret/principaux-changements-loi-25), [CookieYes summary](https://www.cookieyes.com/blog/quebec-law-25/).
- Checked 5 September 2026. No AI statute exists (no government AI bill in the 45th Parliament), Bill C-36 (privacy) is at first reading, Bill S-209 (age verification) passed the Senate on 15 April 2026 and is at House first reading, and the Online Harms bill was reintroduced as C-34 at second reading. Bill C-8 (cyber security, Royal Assent 15 June 2026) binds vital-services operators, not consumer apps. No new dated app obligation. Source. [LEGISinfo](https://www.parl.ca/legisinfo/).
diff --git a/docs/REGULATORY-GAP-REPORT-2026.md b/docs/REGULATORY-GAP-REPORT-2026.md
index 9f1cb4b..05490dd 100644
--- a/docs/REGULATORY-GAP-REPORT-2026.md
+++ b/docs/REGULATORY-GAP-REPORT-2026.md
@@ -130,11 +130,11 @@ Official Citation: Directive (EU) 2023/2673 of the European Parliament and of th
## 4. US State App Store Accountability Acts (ASAA)
### 4.1 Regulatory Overview and Background
-The US State App Store Accountability Acts (ASAA) represent a growing wave of state-level legislation (Utah SB 142, Texas SB 2420, Louisiana HB 570, Alabama HB 161) aimed at regulating minors' access to mobile applications, in-app purchases, and content updates.
+The US State App Store Accountability Acts (ASAA) represent a growing wave of state-level legislation (Utah SB 142, Texas SB 2420, Louisiana HB 977, Alabama HB 161) aimed at regulating minors' access to mobile applications, in-app purchases, and content updates.
These laws place strict operational obligations on both app stores and mobile application developers. Developers must request and process the user's age category (e.g., via Apple's Declared Age Range API or Google's Play Age Signals API) and obtain verifiable parental consent before allowing minors (under 18 or under 16, depending on the state) to download, purchase digital goods, or access major updates. Furthermore, verified age verification data must be deleted immediately after verification to protect children's privacy.
-Official Citations: Utah SB 142 (2025), Texas SB 2420 (2025), Louisiana HB 570 (2025), Alabama HB 161 (2026).
+Official Citations: Utah SB 142 (2025), Texas SB 2420 (2025), Louisiana HB 977 (2026), Act No. 185, which replaces HB 570 (2025), Alabama HB 161 (2026).
### 4.2 Comprehensive Gap Analysis Across the Eight Compliance Categories
diff --git a/docs/REGULATORY-TIMELINE.md b/docs/REGULATORY-TIMELINE.md
index 480f4cf..715c938 100644
--- a/docs/REGULATORY-TIMELINE.md
+++ b/docs/REGULATORY-TIMELINE.md
@@ -1,7 +1,7 @@
# Global Regulatory Compliance Timeline
This document compiles every registered global regulatory deadline tracking regional, national, and platform requirements.
-Last compiled: 2026-09-19 11:37:22 UTC
+Last compiled: 2026-09-30 07:16:14 UTC
## Active and Approaching Compliance Warnings
@@ -9,70 +9,70 @@ Last compiled: 2026-09-19 11:37:22 UTC
| Priority | Jurisdiction | Law | Requirement | Effective Date | Grace Period | Mandatory Date | Enforcement Date | Overdue Days | Affected Sections |
|---|---|---|---|---|---|---|---|---|---|
-| CRITICAL | Illinois (USA State) | Biometric Information Privacy Act (BIPA), 740 ILCS 14 | Written notice and release before collecting biometric identifiers, public retention schedule, destruction within 3 years, and no sale. | 2008-06-01 | none | 2008-06-01 | 2008-06-01 | 6685 days | docs/GLOBAL-REGULATORY-2026.md section 2.6, references/rules/privacy.md |
-| HIGH | United Kingdom (UK) | ICO Age Appropriate Design Code (Children's Code) | High privacy by default, data minimisation, geolocation off, profiling off by default, and a mandatory DPIA. | 2020-09-02 | 12 months | 2021-09-02 | 2021-09-02 | 1844 days | docs/GLOBAL-REGULATORY-2026.md section 3.1, references/rules/privacy.md |
-| HIGH | South Korea | Telecommunications Business Act | Approved billing providers, 26% commission, com.apple.developer.storekit.external-purchase entitlement, South Korea-only binary, modal sheet, reporting. | 2022-03-15 | none | 2022-03-15 | 2022-03-15 | 1650 days | docs/GLOBAL-REGULATORY-2026.md section 3.5, references/rules/payments.md |
-| HIGH | European Union (EU) | EU Digital Markets Act (DMA) | External purchase links and alternative payments (com.apple.developer.storekit.external-purchase-link entitlement, custom link sheet, CTC 5% reporting). | 2024-03-07 | none | 2024-03-07 | 2024-03-07 | 927 days | docs/EU-REGULATORY-2026.md section 2 |
-| CRITICAL | China | Mobile App Filing with the MIIT (ICP Extension) | Mandatory Chinese MIIT app filing, local partner/entity, real-name, PIPL privacy, data localization, Banhao license for games. | 2023-09-01 | 7 months | 2024-03-31 | 2024-03-31 | 903 days | docs/GLOBAL-REGULATORY-2026.md section 3.9, references/rules/metadata.md |
-| HIGH | United States (Federal) | FTC Health Breach Notification Rule, 16 CFR Part 318 | 2024 Final Rule compliance (unauthorized sharing of health/sensitive data with advertisers treated as breach, mandatory 60-day notice). | 2024-06-25 | none | 2024-06-25 | 2024-06-25 | 817 days | docs/GLOBAL-REGULATORY-2026.md section 2.6, references/guidelines/by-app-type/health-fitness-and-medical.md |
-| HIGH | European Union (EU) | General Product Safety Regulation (GPSR), Regulation (EU) 2023/988 | Display manufacturer identity, electronic and postal contact details, and product safety warnings on the online interface for consumer products. | 2023-06-12 | 18 months | 2024-12-13 | 2024-12-13 | 646 days | docs/REGULATORY-GAP-REPORT-2026.md section 1, references/rules/safety.md |
-| HIGH | European Union (EU) | EU AI Act, Regulation (EU) 2024/1689 | Article 4 AI Literacy. Providers and deployers must take measures to ensure a sufficient level of AI literacy, proportionate to context. A written policy, induction, and log are pragmatic evidence, not a stated legal mandate. | 2024-08-01 | 6 months | 2025-02-02 | 2025-02-02 | 595 days | docs/EU-REGULATORY-2026.md section 1.3, references/guidelines/by-app-type/ai-and-generative-apps.md |
-| CRITICAL | European Union (EU) | EU AI Act, Regulation (EU) 2024/1689 | Article 5 Prohibited Practices (ban on subliminal manipulation, child exploitation, social scoring, biometric trait categorization, etc.). | 2024-08-01 | 6 months | 2025-02-02 | 2025-02-02 | 595 days | docs/EU-REGULATORY-2026.md section 1.4, references/guidelines/by-app-type/ai-and-generative-apps.md |
-| CRITICAL | European Union (EU) | EU Digital Services Act (DSA) | Trader status declaration and verification (D-U-N-S, phone, email publish, 2FA verified) or app removal from EU storefront. | 2024-02-17 | 12 months | 2025-02-17 | 2025-02-17 | 580 days | docs/EU-REGULATORY-2026.md section 3, references/rules/metadata.md |
-| CRITICAL | Google Play (Global) | Google Play Child Safety Standards Policy | Publish CSAE standards on globally reachable web page, in-app feedback, CSAM response protocol, named child-safety contact. | 2025-03-19 | none | 2025-03-19 | 2025-03-19 | 550 days | docs/PLATFORM-MECHANICS-2026.md section 3.2, references/rules/android.md |
-| CRITICAL | Google Play (Global) | Google Play Photo and Video Permissions Policy | Broad-access READ_MEDIA_IMAGES/READ_MEDIA_VIDEO restricted to broad-access apps; others must use Android Photo Picker. | 2025-05-28 | none | 2025-05-28 | 2025-05-28 | 480 days | docs/PLATFORM-MECHANICS-2026.md section 2.9, references/rules/android.md |
-| HIGH | European Union (EU) | European Accessibility Act (EAA), Directive (EU) 2019/882 | Harmonised standard EN 301 549 Chapter 11 / WCAG 2.1 AA mobile accessibility compliance and published accessibility statement. | 2022-06-28 | 36 months | 2025-06-28 | 2025-06-28 | 449 days | docs/EU-REGULATORY-2026.md section 4, references/rules/design.md |
-| CRITICAL | United Kingdom (UK) | UK Online Safety Act 2023 | Highly Effective Age Assurance methods (facial age estimation, open banking, credit-card checks) to protect children from harmful content. | 2025-07-25 | none | 2025-07-25 | 2025-07-25 | 422 days | docs/GLOBAL-REGULATORY-2026.md section 3.1, references/rules/safety.md |
-| HIGH | European Union (EU) | EU AI Act, Regulation (EU) 2024/1689 | GPAI-model obligations, governance, and penalties (Articles 99 and 100). | 2024-08-01 | 12 months | 2025-08-02 | 2025-08-02 | 414 days | docs/EU-REGULATORY-2026.md section 1.1, section 1.6 |
-| CRITICAL | Google Play (Global) | Google Play Target API Requirement | New apps and updates must target API level 35 (Android 15) or higher, and existing target API 34+. | 2025-08-31 | none | 2025-08-31 | 2025-08-31 | 385 days | docs/PLATFORM-MECHANICS-2026.md section 2.5, references/rules/android.md |
-| MEDIUM | European Union (EU) | EU Data Act, Regulation (EU) 2023/2854 | Core data access-by-design obligations when apps interact with connected products and wearables. | 2024-01-11 | 20 months | 2025-09-12 | 2025-09-12 | 373 days | docs/EU-REGULATORY-2026.md section 5 |
-| CRITICAL | Australia | Online Safety Amendment (Social Media Minimum Age) Act 2024 | Stop under-16s holding accounts on social media via robust age assurance; ringfence and destroy age data. | 2024-12-10 | 12 months | 2025-12-10 | 2025-12-10 | 284 days | docs/GLOBAL-REGULATORY-2026.md section 3.2, references/rules/safety.md |
-| CRITICAL | Texas (USA State) | Texas SB 2420 (App Store Accountability Act) | Age assurance and verifiable parental consent for minors on downloads, purchases, and major updates, delete age data, request age category. Statutory effective date 1 January 2026. Preliminary injunctions of 23 December 2025 were stayed by the Fifth Circuit on 4 June 2026 and the Supreme Court declined to vacate the stay on 6 July 2026, so the law is in force while the merits appeal is pending. | 2026-01-01 | none | 2026-01-01 | 2026-06-04 | 262 days | docs/GLOBAL-REGULATORY-2026.md section 1, section 2.2, references/rules/privacy.md |
-| HIGH | California (USA State) | California CPRA (CPPA 2026 Regulations) | Honoring Global Privacy Control (GPC), privacy policy/notice at collection, opt-out of sale/sharing/profiling, and sensitive personal info limits. | 2026-01-01 | automated decision-making from 2027-04-01; cybersecurity audits from 2028-04-01 | 2026-01-01 | 2026-01-01 | 262 days | docs/GLOBAL-REGULATORY-2026.md section 2.4, references/rules/privacy.md |
-| CRITICAL | Apple App Store (Global) | Apple App Store Review Guidelines (Guideline 2.3.6) | Every app must answer the updated age-rating questionnaire (13+, 16+, 18+ tiers, UGC/ Livestream indicators) or be blocked from updates. | 2025-07-24 | 6 months | 2026-01-31 | 2026-01-31 | 232 days | docs/EU-REGULATORY-2026.md section 6, references/rules/metadata.md |
-| CRITICAL | Apple App Store (Brazil, Australia, Singapore) | Apple App Store Region Age Requirements | Blocks users in Brazil, Australia, and Singapore from downloading apps rated 18-plus unless age confirmed through reasonable methods. | 2026-02-24 | none | 2026-02-24 | 2026-02-24 | 208 days | docs/GLOBAL-REGULATORY-2026.md section 1, references/rules/privacy.md |
-| HIGH | United States (Federal) | FTC Enforcement Policy Statement Promoting the Adoption of Age-Verification Technology under the COPPA Rule (25 February 2026) | A general-audience or mixed-audience app may collect age data for age verification without COPPA enforcement risk only if it uses the data solely for age determination, minimises retention, vets third parties, notices parents and children, and secures the data. In force until final COPPA rule amendments are published or the statement is withdrawn. | 2026-02-25 | none | 2026-02-25 | 2026-02-25 | 207 days | docs/GLOBAL-REGULATORY-2026.md section 2.1, references/guidelines/by-app-type/kids-category-and-families.md |
-| CRITICAL | Brazil | Digital ECA (Law 15,211/2025) | Accepted age verification (document check, facial estimation, CPF check); self-declaration check-box is prohibited. | 2025-09-17 | 6 months | 2026-03-17 | 2026-03-17 | 187 days | docs/GLOBAL-REGULATORY-2026.md section 3.3, references/rules/privacy.md |
-| CRITICAL | Brazil | Decreto n. 12.880 of 18 March 2026, Articles 21 and 25, regulating the Digital ECA | App stores and operating systems supply a free age signal, request age at account creation, verify it by an ANPD-approved method, allow contestation, seek guardian authorisation, and show the age rating before download. Stores must block gambling and lottery apps and any app lacking an age-verification solution. | 2026-03-18 | none | 2026-03-18 | 2026-03-18 | 186 days | docs/GLOBAL-REGULATORY-2026.md section 3.3, references/rules/privacy.md |
-| CRITICAL | Singapore | IMDA Code of Practice for Online Safety for App Distribution Services | App-store age assurance (screen and stop users under 18 from downloading age-inappropriate apps), age-assurance data destroyed. This is the age-assurance bite date. The Code of Practice for Online Safety for App Distribution Services itself commenced 31 March 2025. | 2026-04-01 | none | 2026-04-01 | 2026-04-01 | 172 days | docs/GLOBAL-REGULATORY-2026.md section 3.7, references/rules/privacy.md |
-| CRITICAL | United States (Federal) | Children's Online Privacy Protection Act (COPPA), 16 CFR Part 312 | Amended COPPA Rule compliance (biometric identifiers added to PII, separate opt-in consent for third-party disclosure/targeted-ads, written retention policy, written info-security program). The section 312.11 carve-outs are earlier dates (90 days and six months after the 22 April 2025 publication) and bind FTC-approved COPPA Safe Harbor programs only, not app developers. | 2025-06-23 | 10 months | 2026-04-22 | 2026-04-22 | 151 days | docs/GLOBAL-REGULATORY-2026.md section 2.1, references/guidelines/by-app-type/kids-category-and-families.md |
-| CRITICAL | Apple App Store (Global) | Apple App Store Submission Requirements | From 28 April 2026 apps uploaded to App Store Connect must be built with the iOS 26 and iPadOS 26 SDK or later (and the matching watchOS 26, tvOS 26, visionOS 26 SDKs). Apple states the requirement in SDK terms, not Xcode terms, and macOS is not in Apple's list. Age assurance features additionally require the iOS 26.2 SDK with Xcode 26.2 (17C52) or later. | 2026-02-03 | 2 months | 2026-04-28 | 2026-04-28 | 145 days | docs/EU-REGULATORY-2026.md section 6, docs/PLATFORM-MECHANICS-2026.md section 1.6 |
-| HIGH | United Kingdom (UK) | ICO final Guidance on Storage and Access Technologies (29 April 2026), PECR regulation 6 with the DUAA Schedule A1 exemptions and the uplifted PECR penalty (17.5 million pounds or 4 percent of turnover) | Re-audit every SDK, tracking pixel, and device-fingerprinting call against the guidance, not only cookies. A consent breach now carries the UK GDPR scale fine. | 2026-04-29 | none | 2026-04-29 | 2026-04-29 | 144 days | docs/GLOBAL-REGULATORY-2026.md section 3.1, references/rules/privacy.md |
-| CRITICAL | United States (Federal) | TAKE IT DOWN Act, Pub. L. 119-12 | Covered platforms run a clear and conspicuous non-consensual intimate imagery notice-and-removal process and remove reported content, with known identical copies, within 48 hours. FTC enforcement began 19 May 2026. | 2026-05-19 | none | 2026-05-19 | 2026-05-19 | 124 days | docs/GLOBAL-REGULATORY-2026.md section 2.6, references/rules/safety.md |
-| HIGH | Apple App Store (Australia, Vietnam) | App Store regional age rating changes. Australia 15+ removed, Vietnam Decree 147 Article 38 region-specific rating (Apple Developer news yrrb45pw) | From 18 June 2026 the 15+ rating is no longer available in Australia (affected apps move to 16+), and apps available in Vietnam require a region-specific age rating aligned with Decree 147 Article 38. Review your App Store Connect age rating per storefront. | 2026-05-21 | until 18 June 2026 | 2026-06-18 | 2026-06-18 | 94 days | docs/GLOBAL-REGULATORY-2026.md sections 3.2 and 3.10 |
-| HIGH | European Union (EU) | Distance Marketing of Financial Services, Directive (EU) 2023/2673 | Prominent, easily accessible 'withdrawal button' or 'withdrawal function' on the online interface (including apps) to withdraw from contracts. | 2023-11-28 | 30 months | 2026-06-19 | 2026-06-19 | 93 days | docs/EU-REGULATORY-2026.md section 5, references/rules/payments.md |
-| MEDIUM | United Kingdom (UK) | Data (Use and Access) Act 2025 section 103 and Schedule 10, commenced by SI 2026/82 regulation 3 | Operate a data-protection complaints process. Acknowledge a data subject complaint within 30 days and respond without undue delay. | 2026-06-19 | none | 2026-06-19 | 2026-06-19 | 93 days | docs/GLOBAL-REGULATORY-2026.md section 3.1, references/rules/privacy.md |
-| HIGH | Singapore | Online Safety (Relief and Accountability) Act 2025, partial commencement | Act on notice from the Online Safety Commission as a platform to address the five priority harms. Further harm categories follow progressively with no published date. | 2026-06-29 | none | 2026-06-29 | 2026-06-29 | 83 days | docs/GLOBAL-REGULATORY-2026.md section 3.7 |
-| CRITICAL | Apple App Store (Brazil) | Apple Developer Program License Agreement Attachment 12, Brazil alternative distribution under the CADE decision (Apple Developer news dhwadr2x and umq9wxmm) | By 6 July 2026 all Apple Developer Program members had to accept the updated ADPLA. From iOS 26.5 developers may distribute on alternative marketplaces, operate marketplaces, and process payments for digital goods outside Apple In-App Purchase in Brazil. Unaccepted agreements block new submissions. | 2026-06-18 | until 6 July 2026 | 2026-07-06 | 2026-07-06 | 76 days | docs/GLOBAL-REGULATORY-2026.md section 3.3 |
-| CRITICAL | China | Interim Measures for AI Anthropomorphic Interactive Services, CAC Order No. 21 | Identify minor users, switch them into minors mode automatically, obtain guardian consent under 14, and never offer virtual companion or virtual kin services to a minor. Any chat, companion, or roleplay app shipping in China is in scope. | 2026-07-15 | none | 2026-07-15 | 2026-07-15 | 67 days | docs/GLOBAL-REGULATORY-2026.md section 3.9, references/guidelines/by-app-type/ai-and-generative-apps.md |
-| HIGH | Google Play (United States) | Play Catalog Access Program (Play Console Help answers 17117200 and 15582165) | From 22 July 2026 registered third-party US Android app stores can access the Play catalog and list your app by default. Opt out in Play Console under Settings, Catalog Settings, if you do not want distribution through third-party stores. | 2026-07-22 | none | 2026-07-22 | 2026-07-22 | 60 days | docs/GOOGLE-PLAY.md 2026 policy rounds |
-| CRITICAL | European Union (EU) | EU AI Act, Regulation (EU) 2024/1689 | Article 50 Transparency Obligations (AI-interaction disclosure, synthetic content marking, and deepfake disclosure). | 2024-08-01 | 24 months | 2026-08-02 | 2026-08-02 | 49 days | docs/EU-REGULATORY-2026.md section 1.2, references/guidelines/by-app-type/ai-and-generative-apps.md |
-| HIGH | Google Play (Global) | Google Play chargeback cost responsibility update (Play Console Help answer 17068375) | For orders placed after 3 August 2026 the developer bears the purchase price less the service fee plus the financial institution's chargeback fee. Google Play covers only its service fee. Handle PendingRefundReviewNotification and call the Review Refund API within 24 hours to contest illegitimate disputes. | 2026-08-03 | none | 2026-08-03 | 2026-08-03 | 48 days | docs/GOOGLE-PLAY.md Payments rows, references/rules/payments.md |
-| HIGH | European Union (EU) | e-Evidence Package, Regulation (EU) 2023/1543 | Cross-border law enforcement direct electronic evidence access (10 days response timeline, and a critical 8-hour emergency timeline). | 2023-08-18 | 36 months | 2026-08-18 | 2026-08-18 | 33 days | docs/EU-REGULATORY-2026.md section 5, references/rules/privacy.md |
-| CRITICAL | Google Play (Global) | Age-Restricted Content, Families, and Child Safety Standards policy expansion to anonymous and random chat apps (Play Console Help answers 17036597, 17122218, 14747720) | Apps whose core function is random or anonymous chat with strangers must use Play Console tools to block minors, may not target children under Families, and are in scope of the Child Safety Standards policy (published CSAE standards, in-app reporting, CSAM removal, child-safety contact). | 2026-08-26 | none | 2026-08-26 | 2026-08-26 | 25 days | docs/GOOGLE-PLAY.md 2026 policy rounds, references/rules/safety.md |
-| CRITICAL | Google Play (Global) | Google Play Billing Policy | All new apps and updates must use Play Billing Library version 8 or later from 31 August 2026, with an extension available to 1 November 2026. This is a publishing gate, already-published v7 binaries keep transacting until the 2027 all-apps deadline. | 2026-05-01 | 3 months | 2026-08-31 | 2026-08-31 | 20 days | docs/PLATFORM-MECHANICS-2026.md section 2.4, references/rules/payments.md |
-| HIGH | Google Play (Global) | Google Play Target API Requirement | New apps and updates must target API level 36 (Android 16) or higher from 31 August 2026, with a Play Console extension request available to 1 November 2026. Wear OS and Android Automotive OS apps must target API 35 or higher, Android TV and Android XR apps API 34 or higher. Existing apps must target API 35 or higher to stay available to new users on newer devices. | 2026-08-31 | none | 2026-08-31 | 2026-08-31 | 20 days | docs/PLATFORM-MECHANICS-2026.md section 2.5, references/rules/android.md |
-| CRITICAL | Apple App Store (Global) | App Store Connect social media capability declaration (Apple Developer news 0d2gpmml and tlur8uvi) | Apple states Starting September 2026 (no exact day published) you must indicate whether your app or game includes social media capabilities to submit a new version or update, or to notarize for alternative marketplaces. Declaring social media places the app in the Time Allowance category for Social Media with a minimum 13+ rating, and the Declared Age Range API is required to serve under-13 users. | 2026-09-01 | none | 2026-09-01 | 2026-09-01 | 19 days | docs/APPLE.md Section 2 and the 2026 changes list, references/rules/metadata.md |
-| CRITICAL | Australia | App Distribution Services Online Safety Code (Class 1C and Class 2 Material), Schedule 7 of the Consolidated Industry Codes, registered 9 September 2025 | App stores apply age assurance and access controls before permitting the download or purchase of adult apps, six months after the Code commenced. The Head Terms working-towards grace period ends and the initial risk assessment is due the same day. Read from a Wayback capture of eSafety pages last updated 19 May 2026 because esafety.gov.au was unreachable, re-confirm on the live register. | 2026-03-09 | none | 2026-09-09 | 2026-09-09 | 11 days | docs/GLOBAL-REGULATORY-2026.md section 3.2, references/rules/safety.md |
-| MEDIUM | European Union (EU) | Cyber Resilience Act, Regulation (EU) 2024/2847 | Active vulnerability reporting and security incident notification obligations. | 2024-12-11 | 21 months | 2026-09-11 | 2026-09-11 | 9 days | docs/EU-REGULATORY-2026.md section 5 |
-| HIGH | South Korea | Personal Information Protection Act amendment, Act No. 21445 | Name the CEO and representative as the final accountable parties, seat a board-approved chief privacy officer at qualifying scale, and absorb punitive surcharges plus widened breach notification. | 2026-09-11 | none | 2026-09-11 | 2026-09-11 | 9 days | docs/GLOBAL-REGULATORY-2026.md section 3.5, references/rules/privacy.md |
-| MEDIUM | European Union (EU) | EU Data Act, Regulation (EU) 2023/2854 | Access-by-design technical implementation for connected wearables and devices. This is the Article 3(1) access-by-design duty for connected products, not cloud switching. Switching charges fall to zero on 12 January 2027 under Article 29(1). | 2024-01-11 | 32 months | 2026-09-12 | 2026-09-12 | 8 days | docs/EU-REGULATORY-2026.md section 5 |
+| CRITICAL | Illinois (USA State) | Biometric Information Privacy Act (BIPA), 740 ILCS 14 | Written notice and release before collecting biometric identifiers, public retention schedule, destruction within 3 years, and no sale. | 2008-06-01 | none | 2008-06-01 | 2008-06-01 | 6695 days | docs/GLOBAL-REGULATORY-2026.md section 2.6, references/rules/privacy.md |
+| HIGH | United Kingdom (UK) | ICO Age Appropriate Design Code (Children's Code) | High privacy by default, data minimisation, geolocation off, profiling off by default, and a mandatory DPIA. | 2020-09-02 | 12 months | 2021-09-02 | 2021-09-02 | 1854 days | docs/GLOBAL-REGULATORY-2026.md section 3.1, references/rules/privacy.md |
+| HIGH | South Korea | Telecommunications Business Act | Approved billing providers, 26% commission, com.apple.developer.storekit.external-purchase entitlement, South Korea-only binary, modal sheet, reporting. | 2022-03-15 | none | 2022-03-15 | 2022-03-15 | 1660 days | docs/GLOBAL-REGULATORY-2026.md section 3.5, references/rules/payments.md |
+| HIGH | European Union (EU) | EU Digital Markets Act (DMA) | External purchase links and alternative payments (com.apple.developer.storekit.external-purchase-link entitlement, custom link sheet, CTC 5% reporting). | 2024-03-07 | none | 2024-03-07 | 2024-03-07 | 937 days | docs/EU-REGULATORY-2026.md section 2 |
+| CRITICAL | China | Mobile App Filing with the MIIT (ICP Extension) | Mandatory Chinese MIIT app filing, local partner/entity, real-name, PIPL privacy, data localization, Banhao license for games. | 2023-09-01 | 7 months | 2024-03-31 | 2024-03-31 | 913 days | docs/GLOBAL-REGULATORY-2026.md section 3.9, references/rules/metadata.md |
+| HIGH | United States (Federal) | FTC Health Breach Notification Rule, 16 CFR Part 318 | 2024 Final Rule compliance (unauthorized sharing of health/sensitive data with advertisers treated as breach, mandatory 60-day notice). | 2024-06-25 | none | 2024-06-25 | 2024-06-25 | 827 days | docs/GLOBAL-REGULATORY-2026.md section 2.6, references/guidelines/by-app-type/health-fitness-and-medical.md |
+| HIGH | European Union (EU) | General Product Safety Regulation (GPSR), Regulation (EU) 2023/988 | Display manufacturer identity, electronic and postal contact details, and product safety warnings on the online interface for consumer products. | 2023-06-12 | 18 months | 2024-12-13 | 2024-12-13 | 656 days | docs/REGULATORY-GAP-REPORT-2026.md section 1, references/rules/safety.md |
+| HIGH | European Union (EU) | EU AI Act, Regulation (EU) 2024/1689 | Article 4 AI Literacy. Providers and deployers must take measures to ensure a sufficient level of AI literacy, proportionate to context. A written policy, induction, and log are pragmatic evidence, not a stated legal mandate. | 2024-08-01 | 6 months | 2025-02-02 | 2025-02-02 | 605 days | docs/EU-REGULATORY-2026.md section 1.3, references/guidelines/by-app-type/ai-and-generative-apps.md |
+| CRITICAL | European Union (EU) | EU AI Act, Regulation (EU) 2024/1689 | Article 5 Prohibited Practices (ban on subliminal manipulation, child exploitation, social scoring, biometric trait categorization, etc.). | 2024-08-01 | 6 months | 2025-02-02 | 2025-02-02 | 605 days | docs/EU-REGULATORY-2026.md section 1.4, references/guidelines/by-app-type/ai-and-generative-apps.md |
+| CRITICAL | European Union (EU) | EU Digital Services Act (DSA) | Trader status declaration and verification (D-U-N-S, phone, email publish, 2FA verified) or app removal from EU storefront. | 2024-02-17 | 12 months | 2025-02-17 | 2025-02-17 | 590 days | docs/EU-REGULATORY-2026.md section 3, references/rules/metadata.md |
+| CRITICAL | Google Play (Global) | Google Play Child Safety Standards Policy | Publish CSAE standards on globally reachable web page, in-app feedback, CSAM response protocol, named child-safety contact. | 2025-03-19 | none | 2025-03-19 | 2025-03-19 | 560 days | docs/PLATFORM-MECHANICS-2026.md section 3.2, references/rules/android.md |
+| CRITICAL | Google Play (Global) | Google Play Photo and Video Permissions Policy | Broad-access READ_MEDIA_IMAGES/READ_MEDIA_VIDEO restricted to broad-access apps; others must use Android Photo Picker. | 2025-05-28 | none | 2025-05-28 | 2025-05-28 | 490 days | docs/PLATFORM-MECHANICS-2026.md section 2.9, references/rules/android.md |
+| HIGH | European Union (EU) | European Accessibility Act (EAA), Directive (EU) 2019/882 | Harmonised standard EN 301 549 Chapter 11 / WCAG 2.1 AA mobile accessibility compliance and published accessibility statement. | 2022-06-28 | 36 months | 2025-06-28 | 2025-06-28 | 459 days | docs/EU-REGULATORY-2026.md section 4, references/rules/design.md |
+| CRITICAL | United Kingdom (UK) | UK Online Safety Act 2023 | Highly Effective Age Assurance methods (facial age estimation, open banking, credit-card checks) to protect children from harmful content. | 2025-07-25 | none | 2025-07-25 | 2025-07-25 | 432 days | docs/GLOBAL-REGULATORY-2026.md section 3.1, references/rules/safety.md |
+| HIGH | European Union (EU) | EU AI Act, Regulation (EU) 2024/1689 | GPAI-model obligations, governance, and penalties (Articles 99 and 100). | 2024-08-01 | 12 months | 2025-08-02 | 2025-08-02 | 424 days | docs/EU-REGULATORY-2026.md section 1.1, section 1.6 |
+| CRITICAL | Google Play (Global) | Google Play Target API Requirement | New apps and updates must target API level 35 (Android 15) or higher, and existing target API 34+. | 2025-08-31 | none | 2025-08-31 | 2025-08-31 | 395 days | docs/PLATFORM-MECHANICS-2026.md section 2.5, references/rules/android.md |
+| MEDIUM | European Union (EU) | EU Data Act, Regulation (EU) 2023/2854 | Core data access-by-design obligations when apps interact with connected products and wearables. | 2024-01-11 | 20 months | 2025-09-12 | 2025-09-12 | 383 days | docs/EU-REGULATORY-2026.md section 5 |
+| CRITICAL | Australia | Online Safety Amendment (Social Media Minimum Age) Act 2024 | Stop under-16s holding accounts on social media via robust age assurance; ringfence and destroy age data. | 2024-12-10 | 12 months | 2025-12-10 | 2025-12-10 | 294 days | docs/GLOBAL-REGULATORY-2026.md section 3.2, references/rules/safety.md |
+| CRITICAL | Texas (USA State) | Texas SB 2420 (App Store Accountability Act) | Age assurance and verifiable parental consent for minors on downloads, purchases, and major updates, delete age data, request age category. Statutory effective date 1 January 2026. Preliminary injunctions of 23 December 2025 were stayed by the Fifth Circuit on 4 June 2026 and the Supreme Court declined to vacate the stay on 6 July 2026, so the law is in force while the merits appeal is pending. | 2026-01-01 | none | 2026-01-01 | 2026-06-04 | 272 days | docs/GLOBAL-REGULATORY-2026.md section 1, section 2.2, references/rules/privacy.md |
+| HIGH | California (USA State) | California CPRA (CPPA 2026 Regulations) | Honoring Global Privacy Control (GPC), privacy policy/notice at collection, opt-out of sale/sharing/profiling, and sensitive personal info limits. | 2026-01-01 | automated decision-making from 2027-04-01; cybersecurity audits from 2028-04-01 | 2026-01-01 | 2026-01-01 | 272 days | docs/GLOBAL-REGULATORY-2026.md section 2.4, references/rules/privacy.md |
+| CRITICAL | Apple App Store (Global) | Apple App Store Review Guidelines (Guideline 2.3.6) | Every app must answer the updated age-rating questionnaire (13+, 16+, 18+ tiers, UGC/ Livestream indicators) or be blocked from updates. | 2025-07-24 | 6 months | 2026-01-31 | 2026-01-31 | 242 days | docs/EU-REGULATORY-2026.md section 6, references/rules/metadata.md |
+| CRITICAL | Apple App Store (Brazil, Australia, Singapore) | Apple App Store Region Age Requirements | Blocks users in Brazil, Australia, and Singapore from downloading apps rated 18-plus unless age confirmed through reasonable methods. | 2026-02-24 | none | 2026-02-24 | 2026-02-24 | 218 days | docs/GLOBAL-REGULATORY-2026.md section 1, references/rules/privacy.md |
+| HIGH | United States (Federal) | FTC Enforcement Policy Statement Promoting the Adoption of Age-Verification Technology under the COPPA Rule (25 February 2026) | A general-audience or mixed-audience app may collect age data for age verification without COPPA enforcement risk only if it uses the data solely for age determination, minimises retention, vets third parties, notices parents and children, and secures the data. In force until final COPPA rule amendments are published or the statement is withdrawn. | 2026-02-25 | none | 2026-02-25 | 2026-02-25 | 217 days | docs/GLOBAL-REGULATORY-2026.md section 2.1, references/guidelines/by-app-type/kids-category-and-families.md |
+| CRITICAL | Brazil | Digital ECA (Law 15,211/2025) | Accepted age verification (document check, facial estimation, CPF check); self-declaration check-box is prohibited. | 2025-09-17 | 6 months | 2026-03-17 | 2026-03-17 | 197 days | docs/GLOBAL-REGULATORY-2026.md section 3.3, references/rules/privacy.md |
+| CRITICAL | Brazil | Decreto n. 12.880 of 18 March 2026, Articles 21 and 25, regulating the Digital ECA | App stores and operating systems supply a free age signal, request age at account creation, verify it by an ANPD-approved method, allow contestation, seek guardian authorisation, and show the age rating before download. Stores must block gambling and lottery apps and any app lacking an age-verification solution. | 2026-03-18 | none | 2026-03-18 | 2026-03-18 | 196 days | docs/GLOBAL-REGULATORY-2026.md section 3.3, references/rules/privacy.md |
+| CRITICAL | Singapore | IMDA Code of Practice for Online Safety for App Distribution Services | App-store age assurance (screen and stop users under 18 from downloading age-inappropriate apps), age-assurance data destroyed. This is the age-assurance bite date. The Code of Practice for Online Safety for App Distribution Services itself commenced 31 March 2025. | 2026-04-01 | none | 2026-04-01 | 2026-04-01 | 182 days | docs/GLOBAL-REGULATORY-2026.md section 3.7, references/rules/privacy.md |
+| CRITICAL | United States (Federal) | Children's Online Privacy Protection Act (COPPA), 16 CFR Part 312 | Amended COPPA Rule compliance (biometric identifiers added to PII, separate opt-in consent for third-party disclosure/targeted-ads, written retention policy, written info-security program). The section 312.11 carve-outs are earlier dates (90 days and six months after the 22 April 2025 publication) and bind FTC-approved COPPA Safe Harbor programs only, not app developers. | 2025-06-23 | 10 months | 2026-04-22 | 2026-04-22 | 161 days | docs/GLOBAL-REGULATORY-2026.md section 2.1, references/guidelines/by-app-type/kids-category-and-families.md |
+| CRITICAL | Apple App Store (Global) | Apple App Store Submission Requirements | From 28 April 2026 apps uploaded to App Store Connect must be built with the iOS 26 and iPadOS 26 SDK or later (and the matching watchOS 26, tvOS 26, visionOS 26 SDKs). Apple states the requirement in SDK terms, not Xcode terms, and macOS is not in Apple's list. Age assurance features additionally require the iOS 26.2 SDK with Xcode 26.2 (17C52) or later. | 2026-02-03 | 2 months | 2026-04-28 | 2026-04-28 | 155 days | docs/EU-REGULATORY-2026.md section 6, docs/PLATFORM-MECHANICS-2026.md section 1.6 |
+| HIGH | United Kingdom (UK) | ICO final Guidance on Storage and Access Technologies (29 April 2026), PECR regulation 6 with the DUAA Schedule A1 exemptions and the uplifted PECR penalty (17.5 million pounds or 4 percent of turnover) | Re-audit every SDK, tracking pixel, and device-fingerprinting call against the guidance, not only cookies. A consent breach now carries the UK GDPR scale fine. | 2026-04-29 | none | 2026-04-29 | 2026-04-29 | 154 days | docs/GLOBAL-REGULATORY-2026.md section 3.1, references/rules/privacy.md |
+| CRITICAL | United States (Federal) | TAKE IT DOWN Act, Pub. L. 119-12 | Covered platforms run a clear and conspicuous non-consensual intimate imagery notice-and-removal process and remove reported content, with known identical copies, within 48 hours. FTC enforcement began 19 May 2026. | 2026-05-19 | none | 2026-05-19 | 2026-05-19 | 134 days | docs/GLOBAL-REGULATORY-2026.md section 2.6, references/rules/safety.md |
+| HIGH | Apple App Store (Australia, Vietnam) | App Store regional age rating changes. Australia 15+ removed, Vietnam Decree 147 Article 38 region-specific rating (Apple Developer news yrrb45pw) | From 18 June 2026 the 15+ rating is no longer available in Australia (affected apps move to 16+), and apps available in Vietnam require a region-specific age rating aligned with Decree 147 Article 38. Review your App Store Connect age rating per storefront. | 2026-05-21 | until 18 June 2026 | 2026-06-18 | 2026-06-18 | 104 days | docs/GLOBAL-REGULATORY-2026.md sections 3.2 and 3.10 |
+| HIGH | European Union (EU) | Distance Marketing of Financial Services, Directive (EU) 2023/2673 | Prominent, easily accessible 'withdrawal button' or 'withdrawal function' on the online interface (including apps) to withdraw from contracts. | 2023-11-28 | 30 months | 2026-06-19 | 2026-06-19 | 103 days | docs/EU-REGULATORY-2026.md section 5, references/rules/payments.md |
+| MEDIUM | United Kingdom (UK) | Data (Use and Access) Act 2025 section 103 and Schedule 10, commenced by SI 2026/82 regulation 3 | Operate a data-protection complaints process. Acknowledge a data subject complaint within 30 days and respond without undue delay. | 2026-06-19 | none | 2026-06-19 | 2026-06-19 | 103 days | docs/GLOBAL-REGULATORY-2026.md section 3.1, references/rules/privacy.md |
+| HIGH | Singapore | Online Safety (Relief and Accountability) Act 2025, partial commencement | Act on notice from the Online Safety Commission as a platform to address the five priority harms. Further harm categories follow progressively with no published date. | 2026-06-29 | none | 2026-06-29 | 2026-06-29 | 93 days | docs/GLOBAL-REGULATORY-2026.md section 3.7 |
+| CRITICAL | Apple App Store (Brazil) | Apple Developer Program License Agreement Attachment 12, Brazil alternative distribution under the CADE decision (Apple Developer news dhwadr2x and umq9wxmm) | By 6 July 2026 all Apple Developer Program members had to accept the updated ADPLA. From iOS 26.5 developers may distribute on alternative marketplaces, operate marketplaces, and process payments for digital goods outside Apple In-App Purchase in Brazil. Unaccepted agreements block new submissions. | 2026-06-18 | until 6 July 2026 | 2026-07-06 | 2026-07-06 | 86 days | docs/GLOBAL-REGULATORY-2026.md section 3.3 |
+| CRITICAL | China | Interim Measures for AI Anthropomorphic Interactive Services, CAC Order No. 21 | Identify minor users, switch them into minors mode automatically, obtain guardian consent under 14, and never offer virtual companion or virtual kin services to a minor. Any chat, companion, or roleplay app shipping in China is in scope. | 2026-07-15 | none | 2026-07-15 | 2026-07-15 | 77 days | docs/GLOBAL-REGULATORY-2026.md section 3.9, references/guidelines/by-app-type/ai-and-generative-apps.md |
+| HIGH | Google Play (United States) | Play Catalog Access Program (Play Console Help answers 17117200 and 15582165) | From 22 July 2026 registered third-party US Android app stores can access the Play catalog and list your app by default. Opt out in Play Console under Settings, Catalog Settings, if you do not want distribution through third-party stores. | 2026-07-22 | none | 2026-07-22 | 2026-07-22 | 70 days | docs/GOOGLE-PLAY.md 2026 policy rounds |
+| CRITICAL | European Union (EU) | EU AI Act, Regulation (EU) 2024/1689 | Article 50 Transparency Obligations (AI-interaction disclosure, synthetic content marking, and deepfake disclosure). | 2024-08-01 | 24 months | 2026-08-02 | 2026-08-02 | 59 days | docs/EU-REGULATORY-2026.md section 1.2, references/guidelines/by-app-type/ai-and-generative-apps.md |
+| HIGH | Google Play (Global) | Google Play chargeback cost responsibility update (Play Console Help answer 17068375) | For orders placed after 3 August 2026 the developer bears the purchase price less the service fee plus the financial institution's chargeback fee. Google Play covers only its service fee. Handle PendingRefundReviewNotification and call the Review Refund API within 24 hours to contest illegitimate disputes. | 2026-08-03 | none | 2026-08-03 | 2026-08-03 | 58 days | docs/GOOGLE-PLAY.md Payments rows, references/rules/payments.md |
+| HIGH | European Union (EU) | e-Evidence Package, Regulation (EU) 2023/1543 | Cross-border law enforcement direct electronic evidence access (10 days response timeline, and a critical 8-hour emergency timeline). | 2023-08-18 | 36 months | 2026-08-18 | 2026-08-18 | 43 days | docs/EU-REGULATORY-2026.md section 5, references/rules/privacy.md |
+| CRITICAL | Google Play (Global) | Age-Restricted Content, Families, and Child Safety Standards policy expansion to anonymous and random chat apps (Play Console Help answers 17036597, 17122218, 14747720) | Apps whose core function is random or anonymous chat with strangers must use Play Console tools to block minors, may not target children under Families, and are in scope of the Child Safety Standards policy (published CSAE standards, in-app reporting, CSAM removal, child-safety contact). | 2026-08-26 | none | 2026-08-26 | 2026-08-26 | 35 days | docs/GOOGLE-PLAY.md 2026 policy rounds, references/rules/safety.md |
+| CRITICAL | Google Play (Global) | Google Play Billing Policy | All new apps and updates must use Play Billing Library version 8 or later from 31 August 2026, with an extension available to 1 November 2026. This is a publishing gate, already-published v7 binaries keep transacting until the 2027 all-apps deadline. | 2026-05-01 | 3 months | 2026-08-31 | 2026-08-31 | 30 days | docs/PLATFORM-MECHANICS-2026.md section 2.4, references/rules/payments.md |
+| HIGH | Google Play (Global) | Google Play Target API Requirement | New apps and updates must target API level 36 (Android 16) or higher from 31 August 2026, with a Play Console extension request available to 1 November 2026. Wear OS and Android Automotive OS apps must target API 35 or higher, Android TV and Android XR apps API 34 or higher. Existing apps must target API 35 or higher to stay available to new users on newer devices. | 2026-08-31 | none | 2026-08-31 | 2026-08-31 | 30 days | docs/PLATFORM-MECHANICS-2026.md section 2.5, references/rules/android.md |
+| CRITICAL | Apple App Store (Global) | App Store Connect social media capability declaration (Apple Developer news 0d2gpmml and tlur8uvi) | Apple states Starting September 2026 (no exact day published) you must indicate whether your app or game includes social media capabilities to submit a new version or update, or to notarize for alternative marketplaces. Declaring social media places the app in the Time Allowance category for Social Media with a minimum 13+ rating, and the Declared Age Range API is required to serve under-13 users. | 2026-09-01 | none | 2026-09-01 | 2026-09-01 | 29 days | docs/APPLE.md Section 2 and the 2026 changes list, references/rules/metadata.md |
+| CRITICAL | Australia | App Distribution Services Online Safety Code (Class 1C and Class 2 Material), Schedule 7 of the Consolidated Industry Codes, registered 9 September 2025 | App stores apply age assurance and access controls before permitting the download or purchase of adult apps, six months after the Code commenced. The Head Terms working-towards grace period ends and the initial risk assessment is due the same day. Read from a Wayback capture of eSafety pages last updated 19 May 2026 because esafety.gov.au was unreachable, re-confirm on the live register. | 2026-03-09 | none | 2026-09-09 | 2026-09-09 | 21 days | docs/GLOBAL-REGULATORY-2026.md section 3.2, references/rules/safety.md |
+| MEDIUM | European Union (EU) | Cyber Resilience Act, Regulation (EU) 2024/2847 | Active vulnerability reporting and security incident notification obligations. | 2024-12-11 | 21 months | 2026-09-11 | 2026-09-11 | 19 days | docs/EU-REGULATORY-2026.md section 5 |
+| HIGH | South Korea | Personal Information Protection Act amendment, Act No. 21445 | Name the CEO and representative as the final accountable parties, seat a board-approved chief privacy officer at qualifying scale, and absorb punitive surcharges plus widened breach notification. | 2026-09-11 | none | 2026-09-11 | 2026-09-11 | 19 days | docs/GLOBAL-REGULATORY-2026.md section 3.5, references/rules/privacy.md |
+| MEDIUM | European Union (EU) | EU Data Act, Regulation (EU) 2023/2854 | Access-by-design technical implementation for connected wearables and devices. This is the Article 3(1) access-by-design duty for connected products, not cloud switching. Switching charges fall to zero on 12 January 2027 under Article 29(1). | 2024-01-11 | 32 months | 2026-09-12 | 2026-09-12 | 18 days | docs/EU-REGULATORY-2026.md section 5 |
### Approaching Deadlines (Within 90 Days)
| Priority | Jurisdiction | Law | Requirement | Effective Date | Grace Period | Mandatory Date | Enforcement Date | Days Remaining | Affected Sections |
|---|---|---|---|---|---|---|---|---|---|
-| CRITICAL | Android (Brazil, Indonesia, Singapore, Thailand) | Android Developer Verification Policy | Sideloading leg. from 30 September 2026 apps installed on certified devices in Brazil, Indonesia, Singapore, and Thailand must be registered to a verified developer identity (Android Developer Console, USD 25 for full distribution, free limited-distribution accounts up to 20 devices, D-U-N-S for organizations). Global expansion is stated only as 2027 with no exact date published. The separate Play leg (register every Play package name in Play Console by 30 September 2026, global) is GOOGLE-PLAY-APP-PACKAGE-REGISTRATION. | 2026-03-15 | 6 months | 2026-09-30 | 2026-09-30 | 10 days | docs/PLATFORM-MECHANICS-2026.md section 2.1, references/rules/android.md |
-| CRITICAL | Google Play (Global) | Play Console requirements. organization registration for financial, health, VPN, and government apps (Play Console Help answers 10788890 and 17125096) | Apps offering financial products (banking, loans, stock trading, investment funds, crypto wallets and exchanges), health apps (medical, human subjects research), apps approved to use the VpnService class, and government apps must be published from an organization account with a D-U-N-S number consistent with the Dun and Bradstreet profile. Non-compliant apps are removed. | 2026-07-15 | until 30 September 2026 | 2026-09-30 | 2026-09-30 | 10 days | docs/GOOGLE-PLAY.md 2026 policy rounds, references/rules/android.md |
-| CRITICAL | Google Play (Global) | Android developer verification, Play leg. register every Play app package name in Play Console (Play Console Help answers 17125096 and 17134731) | Register your app package names via Play Console to comply with Android developer verification. This leg is global and separate from the Brazil, Indonesia, Singapore, Thailand sideloading leg. Non-registration risks global removal from Google Play. | 2026-07-15 | until 30 September 2026 | 2026-09-30 | 2026-09-30 | 10 days | docs/GOOGLE-PLAY.md 2026 policy rounds, docs/PLATFORM-MECHANICS-2026.md section 2 |
-| CRITICAL | Google Play (United States) | US alternative billing and external links program. transaction reporting and service fees (Play Console Help answer 16497028) | Developers enrolled in the US alternative billing or external links program must report transactions and successful downloads and pay the relevant Play service fee starting 1 October 2026. | 2026-10-01 | none | 2026-10-01 | 2026-10-01 | 11 days | docs/GLOBAL-REGULATORY-2026.md section 2.3, docs/GOOGLE-PLAY.md |
-| CRITICAL | European Union (EU) | Apple EU business terms update. Core Technology Commission replaces the Core Technology Fee, ADPLA Attachment 14 (Apple Developer news gmws0jgp and 0cgo95n6) | From 1 October 2026 the per-install Core Technology Fee is replaced by a 5 percent Core Technology Commission on digital transactions in apps distributed outside the App Store, the Initial Acquisition Fee and Store Services Fee are eliminated, apps may offer alternative payment options alongside Apple In-App Purchase, and marketplace and web distribution eligibility widens to seven alternative criteria. Attachment 14 of the ADPLA must be accepted. | 2026-08-18 | until 1 October 2026 | 2026-10-01 | 2026-10-01 | 11 days | docs/EU-REGULATORY-2026.md section 2.3 |
-| HIGH | Apple App Store (Global) | Apple iPhone Duo platform readiness | iPhone Duo, Apple's first foldable iPhone, opens for pre-order on 16 October 2026 and ships 23 October 2026, launching on iOS 27.1. Apps built with Xcode 26 or earlier still run but do not extend under the status bar and camera. Build with Xcode 27.1 (beta from 18 September 2026) and the iOS 27.1 SDK, test every pose in the Duo simulator, resize from size classes and scene bounds, handle reserved regions (outer camera, inner camera when active, the folding region), and let navigation bars, toolbars, and tab bars present vertically. App Store Connect does not accept iPhone Duo screenshots yet (Apple says later this year), so the 6.9 inch set stays required. Tracked in issue #724. Sources https://www.apple.com/newsroom/2026/09/apple-unveils-iphone-duo/ https://developer.apple.com/documentation/technologyoverviews/preparing-your-app-for-iphone-duo | 2026-09-09 | about 6 weeks | 2026-10-23 | 2026-10-23 | 33 days | docs/PLATFORM-MECHANICS-2026.md section 1.8, docs/PRE-SUBMISSION-CHECKLIST.md Apple specific, docs/GAP-ANALYSIS-2026-09.md open items |
-| MEDIUM | India | Digital Personal Data Protection Rules 2025, G.S.R. 846(E), rule 4 | Registered Consent Managers commence one year after Gazette publication (13 November 2025). Be ready to interoperate with a registered Consent Manager ahead of the 18-month tranche on 13 May 2027. | 2026-11-13 | none | 2026-11-13 | 2026-11-13 | 54 days | docs/GLOBAL-REGULATORY-2026.md section 3.6, references/rules/privacy.md |
-| HIGH | European Union (EU) | EU AI Act, Regulation (EU) 2024/1689 as amended by Regulation (EU) 2026/1744, Article 111(4) and Article 5(1)(ba) and (bb) | Retrofit Article 50(2) machine-readable AI-content marking onto any generative audio, image, video, or text system already on the market before 2 August 2026, and stop operating any AI system whose intended or reasonably foreseeable output is non-consensual intimate imagery or child sexual abuse material. | 2026-12-02 | none | 2026-12-02 | 2026-12-02 | 73 days | docs/EU-REGULATORY-2026.md section 1.1, references/guidelines/by-app-type/ai-and-generative-apps.md |
-| MEDIUM | European Union (EU) | Product Liability Directive (EU) 2024/2853, Articles 21 and 22 | From 9 December 2026 national strict-liability law treats standalone software and app updates as a product. Anything placed on the market or put into service on or after that date falls under the new regime. | 2026-12-09 | none | 2026-12-09 | 2026-12-09 | 80 days | docs/EU-REGULATORY-2026.md section 5, references/rules/safety.md |
-| HIGH | Australia | Privacy Act 1988 APP 1.7 to 1.9, inserted by the Privacy and Other Legislation Amendment Act 2024 | From 10 December 2026 the privacy policy must state the kinds of personal information used by, and the decisions made by, automated decision-making that significantly affects rights or interests. | 2026-12-10 | none | 2026-12-10 | 2026-12-10 | 81 days | docs/GLOBAL-REGULATORY-2026.md section 3.2, references/rules/privacy.md |
-| HIGH | Australia | Children's Online Privacy Code under the Privacy Act 1988 | The Code must be finalised and registered by 10 December 2026, bringing binding children's-privacy obligations to social media, relevant electronic services, and designated internet services. | 2026-12-10 | none | 2026-12-10 | 2026-12-10 | 81 days | docs/GLOBAL-REGULATORY-2026.md section 3.2, references/guidelines/by-app-type/kids-category-and-families.md |
+| CRITICAL | Android (Brazil, Indonesia, Singapore, Thailand) | Android Developer Verification Policy | Sideloading leg. from 30 September 2026 apps installed on certified devices in Brazil, Indonesia, Singapore, and Thailand must be registered to a verified developer identity (Android Developer Console, USD 25 for full distribution, free limited-distribution accounts up to 20 devices, D-U-N-S for organizations). Global expansion is stated only as 2027 with no exact date published. The separate Play leg (register every Play package name in Play Console by 30 September 2026, global) is GOOGLE-PLAY-APP-PACKAGE-REGISTRATION. | 2026-03-15 | 6 months | 2026-09-30 | 2026-09-30 | 0 days | docs/PLATFORM-MECHANICS-2026.md section 2.1, references/rules/android.md |
+| CRITICAL | Google Play (Global) | Play Console requirements. organization registration for financial, health, VPN, and government apps (Play Console Help answers 10788890 and 17125096) | Apps offering financial products (banking, loans, stock trading, investment funds, crypto wallets and exchanges), health apps (medical, human subjects research), apps approved to use the VpnService class, and government apps must be published from an organization account with a D-U-N-S number consistent with the Dun and Bradstreet profile. Non-compliant apps are removed. | 2026-07-15 | until 30 September 2026 | 2026-09-30 | 2026-09-30 | 0 days | docs/GOOGLE-PLAY.md 2026 policy rounds, references/rules/android.md |
+| CRITICAL | Google Play (Global) | Android developer verification, Play leg. register every Play app package name in Play Console (Play Console Help answers 17125096 and 17134731) | Register your app package names via Play Console to comply with Android developer verification. This leg is global and separate from the Brazil, Indonesia, Singapore, Thailand sideloading leg. Non-registration risks global removal from Google Play. | 2026-07-15 | until 30 September 2026 | 2026-09-30 | 2026-09-30 | 0 days | docs/GOOGLE-PLAY.md 2026 policy rounds, docs/PLATFORM-MECHANICS-2026.md section 2 |
+| CRITICAL | Google Play (United States) | US alternative billing and external links program. transaction reporting and service fees (Play Console Help answer 16497028) | Developers enrolled in the US alternative billing or external links program must report transactions and successful downloads and pay the relevant Play service fee starting 1 October 2026. | 2026-10-01 | none | 2026-10-01 | 2026-10-01 | 1 days | docs/GLOBAL-REGULATORY-2026.md section 2.3, docs/GOOGLE-PLAY.md |
+| CRITICAL | European Union (EU) | Apple EU business terms update. Core Technology Commission replaces the Core Technology Fee, ADPLA Attachment 14 (Apple Developer news gmws0jgp and 0cgo95n6) | From 1 October 2026 the per-install Core Technology Fee is replaced by a 5 percent Core Technology Commission on digital transactions in apps distributed outside the App Store, the Initial Acquisition Fee and Store Services Fee are eliminated, apps may offer alternative payment options alongside Apple In-App Purchase, and marketplace and web distribution eligibility widens to seven alternative criteria. Attachment 14 of the ADPLA must be accepted. | 2026-08-18 | until 1 October 2026 | 2026-10-01 | 2026-10-01 | 1 days | docs/EU-REGULATORY-2026.md section 2.3 |
+| HIGH | Apple App Store (Global) | Apple iPhone Duo platform readiness | iPhone Duo, Apple's first foldable iPhone, opens for pre-order on 16 October 2026 and ships 23 October 2026, launching on iOS 27.1. Apps built with Xcode 26 or earlier still run but do not extend under the status bar and camera. Build with Xcode 27.1 (beta from 18 September 2026) and the iOS 27.1 SDK, test every pose in the Duo simulator, resize from size classes and scene bounds, handle reserved regions (outer camera, inner camera when active, the folding region), and let navigation bars, toolbars, and tab bars present vertically. App Store Connect does not accept iPhone Duo screenshots yet (Apple says later this year), so the 6.9 inch set stays required. Tracked in issue #724. Sources https://www.apple.com/newsroom/2026/09/apple-unveils-iphone-duo/ https://developer.apple.com/documentation/technologyoverviews/preparing-your-app-for-iphone-duo | 2026-09-09 | about 6 weeks | 2026-10-23 | 2026-10-23 | 23 days | docs/PLATFORM-MECHANICS-2026.md section 1.8, docs/PRE-SUBMISSION-CHECKLIST.md Apple specific, docs/GAP-ANALYSIS-2026-09.md open items |
+| MEDIUM | India | Digital Personal Data Protection Rules 2025, G.S.R. 846(E), rule 4 | Registered Consent Managers commence one year after Gazette publication (13 November 2025). Be ready to interoperate with a registered Consent Manager ahead of the 18-month tranche on 13 May 2027. | 2026-11-13 | none | 2026-11-13 | 2026-11-13 | 44 days | docs/GLOBAL-REGULATORY-2026.md section 3.6, references/rules/privacy.md |
+| HIGH | European Union (EU) | EU AI Act, Regulation (EU) 2024/1689 as amended by Regulation (EU) 2026/1744, Article 111(4) and Article 5(1)(ba) and (bb) | Retrofit Article 50(2) machine-readable AI-content marking onto any generative audio, image, video, or text system already on the market before 2 August 2026, and stop operating any AI system whose intended or reasonably foreseeable output is non-consensual intimate imagery or child sexual abuse material. | 2026-12-02 | none | 2026-12-02 | 2026-12-02 | 63 days | docs/EU-REGULATORY-2026.md section 1.1, references/guidelines/by-app-type/ai-and-generative-apps.md |
+| MEDIUM | European Union (EU) | Product Liability Directive (EU) 2024/2853, Articles 21 and 22 | From 9 December 2026 national strict-liability law treats standalone software and app updates as a product. Anything placed on the market or put into service on or after that date falls under the new regime. | 2026-12-09 | none | 2026-12-09 | 2026-12-09 | 70 days | docs/EU-REGULATORY-2026.md section 5, references/rules/safety.md |
+| HIGH | Australia | Privacy Act 1988 APP 1.7 to 1.9, inserted by the Privacy and Other Legislation Amendment Act 2024 | From 10 December 2026 the privacy policy must state the kinds of personal information used by, and the decisions made by, automated decision-making that significantly affects rights or interests. | 2026-12-10 | none | 2026-12-10 | 2026-12-10 | 71 days | docs/GLOBAL-REGULATORY-2026.md section 3.2, references/rules/privacy.md |
+| HIGH | Australia | Children's Online Privacy Code under the Privacy Act 1988 | The Code must be finalised and registered by 10 December 2026, bringing binding children's-privacy obligations to social media, relevant electronic services, and designated internet services. | 2026-12-10 | none | 2026-12-10 | 2026-12-10 | 71 days | docs/GLOBAL-REGULATORY-2026.md section 3.2, references/guidelines/by-app-type/kids-category-and-families.md |
## Full Chronological Timeline
diff --git a/scripts/deadline-checker.py b/scripts/deadline-checker.py
index 99ebe3c..57eb909 100755
--- a/scripts/deadline-checker.py
+++ b/scripts/deadline-checker.py
@@ -63,7 +63,8 @@ def main():
# Check against the mandatory date or enforcement date (whichever is earlier/relevant, let's use mandatory_date)
# We calculate remaining days based on the mandatory date
- remaining_days = (mand_dt - now).days
+ # whole calendar days in UTC, so a deadline is due on its own date and not a day early
+ remaining_days = (mand_dt.date() - now.date()).days
raw_sections = d.get("affected_repository_sections", "")
if isinstance(raw_sections, list):
diff --git a/scripts/generate-timeline.py b/scripts/generate-timeline.py
index 8fd9456..27b33ae 100755
--- a/scripts/generate-timeline.py
+++ b/scripts/generate-timeline.py
@@ -12,8 +12,12 @@ import json
from datetime import datetime, timezone
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
-DEADLINES_FILE = os.path.join(ROOT, "data", "regulatory-deadlines.json")
-OUTPUT_FILE = os.path.join(ROOT, "docs", "REGULATORY-TIMELINE.md")
+DEADLINES_FILE = os.environ.get(
+ "DEADLINES_FILE", os.path.join(ROOT, "data", "regulatory-deadlines.json")
+)
+OUTPUT_FILE = os.environ.get(
+ "TIMELINE_OUTPUT_FILE", os.path.join(ROOT, "docs", "REGULATORY-TIMELINE.md")
+)
def load_deadlines():
@@ -53,7 +57,7 @@ def main():
print(f"Error parsing date for {d.get('id', 'Unknown')}: {e}", file=sys.stderr)
continue
- remaining_days = (mand_dt - now).days
+ remaining_days = (mand_dt.date() - now.date()).days
parsed_items.append({
"id": d.get("id"),
"jurisdiction": d.get("jurisdiction", "Unknown"),
diff --git a/scripts/monitor-ai-policy-test.sh b/scripts/monitor-ai-policy-test.sh
index 48a2f61..7fb6d28 100755
--- a/scripts/monitor-ai-policy-test.sh
+++ b/scripts/monitor-ai-policy-test.sh
@@ -135,6 +135,24 @@ else
bad "PR Draft file was not created"
fi
+# Topic labels are assigned from word stems, so "disclose", "policies" and "harmful" are not missed.
+STEM_JSON="$(mktemp)"; STEM_DOCS="$(mktemp)"; STEM_PR="$(mktemp)"
+cat << 'STEMS' > "$STEM_JSON"
+[
+ {"id": "A", "platform": "Apple", "title": "Generative AI apps must disclose third-party AI use",
+ "description": "Apps using generative AI must disclose data sharing and block harmful output.",
+ "link": "https://mock.invalid/a", "pubDate": "Mon, 10 Mar 2026 09:00:00 PDT"},
+ {"id": "G", "platform": "Google", "title": "Generative AI apps and Play policies",
+ "description": "Updated Play policies for generative AI apps. Apps must disclose AI content and keep users safe.",
+ "link": "https://mock.invalid/g", "pubDate": "Mon, 10 Mar 2026 09:00:00 PDT"}
+]
+STEMS
+python3 scripts/monitor-ai-policy.py --mock "$STEM_JSON" --dir . --output-docs "$STEM_DOCS" --pr-output "$STEM_PR" >/dev/null 2>&1
+TOPICS="$(grep 'Key Topics' "$STEM_DOCS")"
+echo "$TOPICS" | grep -q "User disclosure requirements" && echo "$TOPICS" | grep -q "Safety expectations" && ok "Apple topics are matched from the stems disclose and harmful" || bad "Apple topics are matched from the stems disclose and harmful"
+echo "$TOPICS" | grep -q "Google Play AI policies" && echo "$TOPICS" | grep -q "AI-generated content disclosures" && echo "$TOPICS" | grep -q "User safety requirements" && ok "Google topics are matched from the stems policies, disclose and safe" || bad "Google topics are matched from the stems policies, disclose and safe"
+rm -f "$STEM_JSON" "$STEM_DOCS" "$STEM_PR"
+
echo ""
echo "AI Policy Monitor test suite: $PASS passed, $FAIL failed"
[ "$FAIL" -eq 0 ]
diff --git a/scripts/monitor-ai-policy.py b/scripts/monitor-ai-policy.py
index eed3263..3afe56a 100755
--- a/scripts/monitor-ai-policy.py
+++ b/scripts/monitor-ai-policy.py
@@ -247,29 +247,29 @@ def analyze_announcements(announcements, keywords):
review_items.append("App Review AI guidance")
if any(
x in text_to_search
- for x in ["safety", "abuse", "nsfw", "moderation", "filter"]
+ for x in ["safe", "harmful", "abuse", "nsfw", "moderation", "filter"]
):
review_items.append("Safety expectations")
if any(
x in text_to_search
- for x in ["disclosure", "consent", "modal", "inform"]
+ for x in ["disclos", "consent", "modal", "inform"]
):
review_items.append("User disclosure requirements")
if not review_items:
review_items = ["General Apple AI policy"]
else:
if any(
- x in text_to_search for x in ["policy", "guideline", "requirement"]
+ x in text_to_search for x in ["policy", "policies", "guideline", "requirement"]
):
review_items.append("Google Play AI policies")
if any(
x in text_to_search
- for x in ["disclosure", "consent", "modal", "inform"]
+ for x in ["disclos", "consent", "modal", "inform"]
):
review_items.append("AI-generated content disclosures")
if any(
x in text_to_search
- for x in ["safety", "abuse", "nsfw", "moderation", "filter"]
+ for x in ["safe", "harmful", "abuse", "nsfw", "moderation", "filter"]
):
review_items.append("User safety requirements")
if not review_items:
diff --git a/scripts/monitor-test.sh b/scripts/monitor-test.sh
index 71242fd..2832ca7 100644
--- a/scripts/monitor-test.sh
+++ b/scripts/monitor-test.sh
@@ -23,6 +23,8 @@ echo "$OUT" | grep -q "TRACK UPDATE: \[In-App Purchase policies\]" && \
echo "$OUT" | grep -q "TRACK UPDATE: \[DMA compliance changes\]" && \
echo "$OUT" | grep -q "TRACK UPDATE: \[Swift requirements\]" && \
ok "simulating all 25 tracks runs successfully with no crashes and outputs matches" || bad "simulate all tracks"
+N_TRACKS="$($MONITOR --simulate "all" 2>&1 | grep -o 'TRACK UPDATE: \[[^]]*\]' | sort -u | wc -l | tr -d ' ')"
+[ "$N_TRACKS" = "25" ] && ok "simulating all reaches every one of the 25 tracks" || bad "simulating all reaches every one of the 25 tracks (got $N_TRACKS)"
# 4. JSON output format verification
JSON_OUT="$($MONITOR --simulate "Required Reason APIs" --json 2>&1)"
diff --git a/scripts/monitor.py b/scripts/monitor.py
index b0d960f..57d33d6 100644
--- a/scripts/monitor.py
+++ b/scripts/monitor.py
@@ -255,7 +255,9 @@ TRACK_METADATA = {
"llm",
"chatgpt",
"ai policy",
+ "ai policies",
"ai content",
+ "ai-related",
"openai",
"anthropic",
],
@@ -264,7 +266,9 @@ TRACK_METADATA = {
r"llm",
r"chatgpt",
r"ai[ -]policy",
+ r"ai[ -]policies",
r"ai[ -]content",
+ r"ai[ -]related",
],
"detect_files": ["*.swift", "Info.plist"],
"detect_regex": r"api\.openai\.com|anthropic|generativelanguage|chat/completions|stable[ -]diffusion|openai",
diff --git a/scripts/pull-metadata.sh b/scripts/pull-metadata.sh
index cdcc8a1..fbecc7b 100755
--- a/scripts/pull-metadata.sh
+++ b/scripts/pull-metadata.sh
@@ -54,10 +54,11 @@ case "$target" in
if [ -z "$EDIT" ]; then echo "Failed to create edit. Check token and package access."; exit 1; fi
echo "Edit $EDIT. Fetching listings."
LISTINGS="$(curl -fsS -H "Authorization: Bearer $TOKEN" "$BASE/edits/$EDIT/listings")"
- echo "$LISTINGS" | python3 - "$DIR" <<'PYIN'
+ # the heredoc is python's stdin, so the listings travel in the environment, not on a pipe
+ LISTINGS="$LISTINGS" python3 - "$DIR" <<'PYIN'
import json, os, sys
dir = sys.argv[1]
-data = json.load(sys.stdin)
+data = json.loads(os.environ["LISTINGS"])
for l in data.get("listings", []):
lang = l.get("language", "default")
d = os.path.join(dir, lang); os.makedirs(d, exist_ok=True)
diff --git a/scripts/release-audit-test.sh b/scripts/release-audit-test.sh
index 0ddace7..281e76e 100755
--- a/scripts/release-audit-test.sh
+++ b/scripts/release-audit-test.sh
@@ -33,5 +33,9 @@ TOTAL="$(echo "$SUMMARY" | grep -oE '[0-9]+' | awk '{t+=$1} END {print t+0}')"
IDS="$(grep -oE '\b[A-Z]+(-[A-Z0-9.]+)+\b' "$REPORT" 2>/dev/null | sort -u | wc -l | tr -d ' ')"
[ "${TOTAL:-x}" = "$IDS" ] && ok "every counted finding has a real hyphenated id ($TOTAL)" || bad "finding count $TOTAL does not match $IDS real ids"
+# A target path that does not exist is an error, never a silent audit of this playbook.
+OUT="$(python3 scripts/release-audit.py "$FX/no-such-app" 2>&1)"; RC=$?
+[ "$RC" -eq 1 ] && echo "$OUT" | grep -q "not a directory" && ! echo "$OUT" | grep -q "Starting Release Readiness" && ok "a missing target path is rejected before any scan" || bad "a missing target path is rejected before any scan (rc=$RC)"
+
echo "release-audit-test: $PASS passed, $FAIL failed"
[ "$FAIL" -eq 0 ]
diff --git a/scripts/release-audit.py b/scripts/release-audit.py
index 558128a..e287ce2 100755
--- a/scripts/release-audit.py
+++ b/scripts/release-audit.py
@@ -291,7 +291,10 @@ def find_affected_files(target_dir, patterns_dict):
def main():
target_dir = ROOT
- if len(sys.argv) > 1 and os.path.isdir(sys.argv[1]):
+ if len(sys.argv) > 1:
+ if not os.path.isdir(sys.argv[1]):
+ print(f"release-audit. '{sys.argv[1]}' is not a directory.", file=sys.stderr)
+ return 1
target_dir = os.path.abspath(sys.argv[1])
print("== Starting Release Readiness Compliance Audit ==")
diff --git a/scripts/test-deadline-checker.py b/scripts/test-deadline-checker.py
index cb73553..7787e96 100755
--- a/scripts/test-deadline-checker.py
+++ b/scripts/test-deadline-checker.py
@@ -125,5 +125,66 @@ class TestDeadlineChecker(unittest.TestCase):
os.rename(backup_db_path, real_db_path)
+class TestDeadlineDayBoundary(unittest.TestCase):
+ """A deadline is due on its own date, not one day overdue, and tomorrow is one day away."""
+
+ def _run(self, script, extra_env):
+ env = dict(os.environ, **extra_env)
+ cmd = [sys.executable, os.path.join(ROOT, "scripts", script)]
+ return subprocess.run(cmd, capture_output=True, text=True, env=env)
+
+ def _db(self, tmpdir):
+ today = datetime.now(timezone.utc).date()
+ rows = []
+ for name, delta in (("Due Today Act", 0), ("Due Tomorrow Act", 1), ("Due Yesterday Act", -1)):
+ day = (today + timedelta(days=delta)).strftime("%Y-%m-%d")
+ rows.append({
+ "id": name.upper().replace(" ", "-"),
+ "jurisdiction": "Test",
+ "law": name,
+ "requirement": "Boundary",
+ "effective_date": day,
+ "grace_period": "none",
+ "mandatory_date": day,
+ "enforcement_date": day,
+ "affected_repository_sections": "docs/APPLE.md",
+ "priority": "high",
+ })
+ path = os.path.join(tmpdir, "deadlines.json")
+ with open(path, "w") as f:
+ json.dump({"deadlines": rows}, f)
+ return path
+
+ def test_checker_counts_whole_days(self):
+ import tempfile
+ with tempfile.TemporaryDirectory() as tmp:
+ out = self._run("deadline-checker.py", {"DEADLINES_FILE": self._db(tmp)}).stdout
+ passed, _, upcoming = out.partition("UPCOMING COMPLIANCE DEADLINES")
+ self.assertIn("Due Yesterday Act", passed)
+ self.assertIn("(1 days overdue)", passed)
+ self.assertNotIn("Due Today Act", passed)
+ self.assertIn("Due Today Act", upcoming)
+ self.assertIn("(in 0 days)", upcoming)
+ self.assertIn("(in 1 days)", upcoming)
+
+ def test_timeline_counts_whole_days(self):
+ import tempfile
+ with tempfile.TemporaryDirectory() as tmp:
+ out_md = os.path.join(tmp, "timeline.md")
+ self._run("generate-timeline.py", {"DEADLINES_FILE": self._db(tmp), "TIMELINE_OUTPUT_FILE": out_md})
+ text = open(out_md).read()
+ row = {}
+ for line in text.splitlines():
+ for name in ("Due Today Act", "Due Tomorrow Act", "Due Yesterday Act"):
+ if line.startswith("|") and name in line:
+ row.setdefault(name, line)
+ self.assertIn("| 0 days |", row["Due Today Act"])
+ self.assertIn("| 1 days |", row["Due Tomorrow Act"])
+ self.assertIn("| 1 days |", row["Due Yesterday Act"])
+ overdue_part = text.split("### Approaching Deadlines")[0]
+ self.assertIn("Due Yesterday Act", overdue_part)
+ self.assertNotIn("Due Today Act", overdue_part)
+
+
if __name__ == "__main__":
unittest.main()
diff --git a/scripts/test-validate.py b/scripts/test-validate.py
new file mode 100644
index 0000000..c37b309
--- /dev/null
+++ b/scripts/test-validate.py
@@ -0,0 +1,132 @@
+#!/usr/bin/env python3
+"""Tests the deadline rules in validate.py (#660): a passed deadline needs an
+owner, and the effective, mandatory, and enforcement dates must be in order."""
+
+import json
+import os
+import subprocess
+import sys
+import tempfile
+import unittest
+from datetime import datetime, timedelta, timezone
+
+ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+
+
+def day(offset):
+ return (datetime.now(timezone.utc).date() + timedelta(days=offset)).strftime(
+ "%Y-%m-%d"
+ )
+
+
+def entry(**over):
+ base = {
+ "id": "TEST-ENTRY",
+ "jurisdiction": "Test",
+ "law": "Test Act",
+ "requirement": "Fixture",
+ "effective_date": day(100),
+ "grace_period": "none",
+ "mandatory_date": day(100),
+ "enforcement_date": day(100),
+ "affected_repository_sections": "docs/APPLE.md",
+ "priority": "high",
+ }
+ base.update(over)
+ return base
+
+
+def run(*entries):
+ with tempfile.TemporaryDirectory() as tmp:
+ path = os.path.join(tmp, "deadlines.json")
+ with open(path, "w") as f:
+ json.dump({"deadlines": list(entries)}, f)
+ env = dict(os.environ, DEADLINES_FILE=path)
+ cmd = [sys.executable, os.path.join(ROOT, "scripts", "validate.py")]
+ result = subprocess.run(cmd, capture_output=True, text=True, env=env)
+ return result.returncode, result.stdout + result.stderr
+
+
+class TestPassedDeadlineNeedsOwner(unittest.TestCase):
+ def test_passed_without_owner_fails(self):
+ d = day(-8)
+ rc, out = run(entry(effective_date=d, mandatory_date=d, enforcement_date=d))
+ self.assertEqual(rc, 1, out)
+ self.assertIn("passed", out)
+ self.assertIn("absorbed_into", out)
+
+ def test_passed_with_owner_is_ok(self):
+ d = day(-8)
+ rc, out = run(
+ entry(
+ effective_date=d,
+ mandatory_date=d,
+ enforcement_date=d,
+ absorbed_into="docs/APPLE.md",
+ )
+ )
+ self.assertEqual(rc, 0, out)
+
+ def test_empty_owner_counts_as_missing(self):
+ d = day(-8)
+ rc, out = run(
+ entry(
+ effective_date=d,
+ mandatory_date=d,
+ enforcement_date=d,
+ absorbed_into=" ",
+ )
+ )
+ self.assertEqual(rc, 1, out)
+
+ def test_seven_day_grace(self):
+ d = day(-7)
+ rc, out = run(entry(effective_date=d, mandatory_date=d, enforcement_date=d))
+ self.assertEqual(rc, 0, out)
+ self.assertIn("warning", out)
+
+
+class TestDateOrder(unittest.TestCase):
+ def test_effective_after_mandatory_fails(self):
+ rc, out = run(
+ entry(
+ effective_date=day(120),
+ mandatory_date=day(100),
+ enforcement_date=day(130),
+ )
+ )
+ self.assertEqual(rc, 1, out)
+ self.assertIn("effective_date", out)
+
+ def test_mandatory_after_enforcement_fails(self):
+ rc, out = run(
+ entry(
+ effective_date=day(90),
+ mandatory_date=day(100),
+ enforcement_date=day(95),
+ )
+ )
+ self.assertEqual(rc, 1, out)
+ self.assertIn("enforcement_date", out)
+
+ def test_ordered_and_equal_dates_are_ok(self):
+ rc, out = run(
+ entry(
+ id="A",
+ effective_date=day(90),
+ mandatory_date=day(100),
+ enforcement_date=day(110),
+ ),
+ entry(id="B"),
+ )
+ self.assertEqual(rc, 0, out)
+
+ def test_real_data_is_valid(self):
+ cmd = [sys.executable, os.path.join(ROOT, "scripts", "validate.py")]
+ env = {k: v for k, v in os.environ.items() if k != "DEADLINES_FILE"}
+ result = subprocess.run(cmd, capture_output=True, text=True, env=env)
+ self.assertEqual(result.returncode, 0, result.stdout + result.stderr)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/scripts/validate.py b/scripts/validate.py
index dd87f1c..048209a 100644
--- a/scripts/validate.py
+++ b/scripts/validate.py
@@ -10,7 +10,11 @@ import datetime
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")
-DEADLINES = os.path.join(ROOT, "data", "regulatory-deadlines.json")
+DEADLINES = os.environ.get(
+ "DEADLINES_FILE", os.path.join(ROOT, "data", "regulatory-deadlines.json")
+)
+# a passed deadline with no absorbed_into is a warning for this many days, then an error
+PASSED_GRACE_DAYS = 7
REQUIRED_PATTERN = [
"id",
@@ -50,6 +54,38 @@ def validate_date(date_str, field_name, item_id):
)
+def parse_day(value):
+ try:
+ return datetime.datetime.strptime(value, "%Y-%m-%d").date()
+ except (TypeError, ValueError):
+ return None
+
+
+def validate_deadline_dates(d, did, today):
+ """Date order, and an owner for a deadline that has passed (#660)."""
+ eff, mand, enf = (
+ parse_day(d.get(k)) for k in ("effective_date", "mandatory_date", "enforcement_date")
+ )
+ if eff and mand and eff > mand:
+ errors.append(
+ f"deadline '{did}' has effective_date {eff} after mandatory_date {mand}"
+ )
+ if mand and enf and mand > enf:
+ errors.append(
+ f"deadline '{did}' has mandatory_date {mand} after enforcement_date {enf}"
+ )
+ if mand and mand < today and not str(d.get("absorbed_into") or "").strip():
+ days = (today - mand).days
+ msg = (
+ f"deadline '{did}' passed {days} day(s) ago on {mand} with no absorbed_into. "
+ "Name the doc section that now carries the rule."
+ )
+ if days > PASSED_GRACE_DAYS:
+ errors.append(msg)
+ else:
+ warnings.append(msg)
+
+
def main():
# 1. Validate rejection patterns
if not os.path.exists(PATTERNS):
@@ -141,6 +177,9 @@ def main():
val = d.get(date_field)
if val and val != "none":
validate_date(val, date_field, did)
+ validate_deadline_dates(
+ d, did, datetime.datetime.now(datetime.timezone.utc).date()
+ )
except Exception as e:
errors.append(f"Failed to parse regulatory-deadlines.json: {e}")
diff --git a/scripts/verify-citations-test.sh b/scripts/verify-citations-test.sh
index 0c56240..5fb30b2 100755
--- a/scripts/verify-citations-test.sh
+++ b/scripts/verify-citations-test.sh
@@ -33,6 +33,13 @@ python3 "$VERIFY" --dir "$WORK/empty" --offline >/dev/null 2>&1 && ok "empty tre
printf 'http://\nhttps://x\n%s\n' "$(head -c 20000 /dev/zero | tr '\0' 'x')" > "$WORK/empty/junk.md"
python3 "$VERIFY" --dir "$WORK/empty" --offline >/dev/null 2>&1 && ok "malformed input survives" || bad "malformed input"
+# 3b. hidden tool-state directories are not cited sources, but .github is part of the repo
+mkdir -p "$WORK/hid/.gstack" "$WORK/hid/.github"
+echo "https://example.org/from-a-browser-log" > "$WORK/hid/.gstack/browse-network.log"
+echo "https://www.ftc.gov/legal-library" > "$WORK/hid/.github/CONTRIBUTING.md"
+out="$(python3 "$VERIFY" --dir "$WORK/hid" --offline 2>&1)"
+echo "$out" | grep -q "1 distinct URL" && echo "$out" | grep -q "ftc.gov" && ! echo "$out" | grep -q "browser-log" && ok "hidden tool-state directories are skipped, .github is scanned" || bad "hidden tool-state directories are skipped, .github is scanned"
+
if ! net_up; then
echo "SKIP network tests (offline)"
else
diff --git a/scripts/verify-citations.py b/scripts/verify-citations.py
index 7d53d48..fb8f178 100755
--- a/scripts/verify-citations.py
+++ b/scripts/verify-citations.py
@@ -118,7 +118,11 @@ def collect_urls(root, only=None):
walk = [target] if os.path.isfile(target) else []
if not walk:
for dirpath, dirnames, filenames in os.walk(target):
- dirnames[:] = [d for d in dirnames if d not in SKIP_DIRS]
+ # hidden directories hold local tool state (browser logs, editor caches), never cited sources
+ dirnames[:] = [
+ d for d in dirnames
+ if d not in SKIP_DIRS and (not d.startswith(".") or d == ".github")
+ ]
for fn in filenames:
if os.path.splitext(fn)[1].lower() in SKIP_EXT or fn in SELF:
continue