# Contributing Contributions are welcome and wanted. App store rules change often, and a playbook like this stays useful only when many practitioners keep it current. If you have shipped iOS or Android apps and hit a rejection this playbook does not cover, your experience is exactly what improves it. ## Ways to contribute - Open an issue for a rejection reason that is missing, out of date, or wrong. - Open a pull request that adds or corrects a guideline, a mistake pattern, a checklist item, or a detection rule. - Share a real rejection and how you recovered, so the appeal playbook gets sharper. - Improve the guard so it catches more real issues with fewer false positives. New contributors are encouraged. Look for issues labelled good first issue. If you want to help but are not sure where to start, open an issue and say so. ## The one standard that matters Every factual claim must trace to a live canonical source. - Apple claims trace to the App Store Review Guidelines or Apple developer news. - Google claims trace to the Google Play Developer Program Policy or Play Console help. - Never invent a guideline number, a policy name, or a statistic. If you cannot confirm it on the live source, mark it unverified rather than guessing. A pull request that adds a guideline number without a source link will be asked for the source before merge. ## Source Hierarchy and Trust Priorities To maintain the highest level of accuracy and regulatory alignment, all references and citations within this playbook must be evaluated and verified according to the following strict hierarchy of sources. ### Trust Levels Priority 1: Official Regulatory and Standardization Bodies - European Commission - EUR-Lex - Official Journal of the European Union - ENISA (European Union Agency for Cybersecurity) - EDPB (European Data Protection Board) - FTC (Federal Trade Commission) - NIST (National Institute of Standards and Technology) - CISA (Cybersecurity and Infrastructure Security Agency) - ICO (Information Commissioner's Office) - Government publications Priority 2: Reputable News Agencies - Reuters - AP (Associated Press) - Bloomberg Priority 3: Academic Publications - Academic papers and peer-reviewed journals Priority 4: Industry Material - Industry blogs and vendor publications Priority 5: Social Media and AI Summaries - LinkedIn - Reddit - Twitter - AI generated summaries ### Core Guidelines and Pull Request Rules - 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. ## How to fix a wrong citation 1. Find the official page that states the rule (Apple, Google, or the regulator). Read it and copy the exact wording. 2. Replace the link and the claim in the doc or data file. If a deadline date changes, say what the old date was in `CHANGELOG.md`, never change it silently. 3. Run the two checks below. Both must pass. ``` python3 scripts/verify-citations.py --files python3 scripts/check-docs.py ``` ## How to add a rejection pattern 1. Add the human facing entry to the matching doc in `docs/`. 2. Add a machine readable entry to `data/rejection-patterns.json` with an id, platform, guideline, severity, a concrete detection signal, and the fix. 3. If the pattern is automatable, add a check to `agent-os/hooks/app-store-compliance-guard.sh` and a case to `agent-os/hooks/app-store-compliance-guard-test.sh`. 4. Run the test suite and confirm it passes. ``` bash agent-os/hooks/app-store-compliance-guard-test.sh ``` ## Style - Plain, specific writing. No hype, no filler. - Tables for rule maps. Each row carries the requirement, the trigger, and the fix. - Keep severity honest. Critical means a real submission would be blocked. ## Pull request checklist - Sources linked for every new factual claim. - The guard test suite passes if you touched the guard. - Tests in both directions for any change to a check. A test that failed before your change and passes after it, and a control that shows the real case still fires. A change that makes a check flag less (an exclusion, a skip, a counter-signal, a narrower match) also lists in the PR what it could now miss, and why that is acceptable. - The doc, the JSON taxonomy, and the guard stay consistent with each other. - A short description of what changed and why. ## Cutting a release 1. Set the new version in `VERSION`, in the `version` field of `data/rejection-patterns.json` and `data/regulatory-deadlines.json`, and in `version` and `date-released` of `CITATION.cff`. `python3 scripts/validate.py` fails until all four agree. 2. Rename `## Unreleased` in `CHANGELOG.md` to the version and date, and start a new empty `## Unreleased` above it. 3. After the pull request is merged, tag the merge commit `v` and publish a GitHub release whose notes are that changelog section. Use a major version when a change breaks something people rely on, such as a licence change or a new exit code. ## License By contributing you agree that your contributions are licensed under the OpenRoots Agent License 2.3, the licence in `LICENSE`, and that the copyright notice and licence reference stay intact in every copy. If you used an AI tool to produce a contribution, say so in the pull request and name the tool, as Section 8.4 of the licence requires.