- Automate release validation and owner-facing maintenance checks.
release_check.pyis the authoritative local distribution gate.release.pyowns read-only production preflight and tag-safe workflow dispatch.validate_workflows.pyowns repository-specific GitHub Actions syntax and security-contract validation.
- Scripts must fail closed, redact credentials, and avoid publishing or reserving names.
- Release validation must inspect tracked source and built archives for repository junk or credential patterns, then test a clean installation.
- Clean-environment creation must work with both system and dynamically linked uv-managed CPython interpreters.
- Release dispatch must fail closed unless the clean local checkout, local and remote
main, local and remote annotated tag, version, changelog, and unused publication destinations agree. It must never source, persist, or print credentials. - Workflow validation must run inside ordinary CI and the authoritative release gate, and protect manual-only triggers, least-privilege permissions, isolated OIDC publication, checked-draft retention, and no-OIDC recovery.
- Keep scripts runnable from the repository root with declared optional dependencies.
- Run
python scripts/validate_workflows.pyafter workflow changes andpython scripts/release_check.pyafter packaging, metadata, workflow-contract, or release-script changes.