public-genome-release-audit

Promote private work to the sanitized main and public branches through an allowlisted export, staged-file and full-history leak audits, a release manifest, and explicit publication gates. Use for any

SKILL.md

GitHub

Public genome release audit

Trigger

Updating main in the private repository, preparing the public repository, or any push.

Inputs and outputs

  • Inputs: a committed private ref, config/release_allowlist.json, private scanner inputs (vault/registry/private-denylist.txt, vault/registry/case-rsids.txt).
  • Outputs: a staging directory with RELEASE_MANIFEST.json, a private receipt with the source commit, and a plumbing commit on an orphan, unrelated-history branch.

Privacy classification

The staged tree must be public-safe. Receipts and scanner inputs are private.

Preconditions

  • The source is a commit, never the working tree. Never git merge private into public.
  • Target branches must share no ancestor with private.

Procedure

  1. release stage → release audit (with --denylist and --case-rsids).
  2. release apply (dry run), then --execute; public targets also need --approve-public.
  3. release history-audit on the target; branch-policy audit --mode main in a checkout.
  4. Pushing: release publish --confirm-remote-url <exact url> prints the plan; only an explicit owner approval adds --approve. Never force-push.

Stop conditions

Any finding, any shared ancestor, a remote URL mismatch, or missing owner approval for a public push. Pause before every irreversible publication.

Failure handling

apply rolls back the ref if the post-commit history audit fails. Fix the source on private and stage again; never patch the staging directory by hand.

Validation

tests/test_release.py, tests/test_branch_policy.py, tests/test_privacy_audit.py.

Example (synthetic)

tests/test_release.py builds throwaway repositories; run it with:

.\.venv\Scripts\python.exe -m pytest tests\test_release.py -q

Cannot support

A clean scan reduces risk but is not proof of absence; new data types need new rules.