Skip to content

Close R0: CI, strict schema, release evidence record - #6

Merged
altrudev merged 5 commits into
mainfrom
altru/r0-close
Dec 5, 2026
Merged

altrudev merged 5 commits into
mainfrom
altru/r0-close

Conversation

@altrudev

@altrudev altrudev commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Closes R0 (foundation). Builds on #5: merge #5 first and this PR will show only its own three commits.

Changes

  • Files it doesn't read are counted, not hidden. New files_not_scanned in the summary (Dockerfile, .pem, ...). Skipped folders are still excluded.
  • Strict report schema 1.1.0. Types, enums and patterns for every field; unknown fields rejected. Tests validate real reports and keep rule values and schema enums in sync.
  • CI (.github/workflows/ci.yml): lint, type check, tests and a schema-validated self-scan on Python 3.11 to 3.14. Read-only permissions; actions pinned to commit SHAs.
  • Release workflow + release evidence record (F6) (.github/workflows/release.yml, scripts/release_evidence.py):
    • Triggered by a v* tag.
    • Refuses to publish if the tag and version differ, tests fail, or the tree is dirty.
    • Builds, then writes release-evidence.json (commit, test results, rule set, schema and artifact hashes).
    • Signs build provenance with GitHub's attestation (Sigstore, keyless) and publishes the release.
  • SECURITY.md: how to verify a release with gh attestation verify.

The evidence record describes the pqdocket release only and states that it does not vouch for anyone's verdicts.

Checks

  • pytest: 54 passed (12 new)
  • ruff check .: clean
  • mypy src: clean
  • Release evidence script exercised locally: it blocks on a dirty tree, failing tests and missing artifacts, as intended

After merge

Enable private vulnerability reporting, then tag v0.1.0 to produce the first release and evidence record.


Generated by Claude Code

pqcheck is already used on PyPI by another PQC scanner. pqdocket is free and
fits the product: a docket is a case file of evidence. Repository name stays
PostQuantum.
- F1 self-verifying offline HTML evidence record (R4)
- F2 FreeTSA and OpenTimestamps time stamps (R4)
- F3 disproof-first verdicts (R2)
- F4 a next step for every unknown (R2)
- F5 plain-English claims (R2)
- F6 release evidence record for pqdocket itself (R0 onward)
- F7 verifiable badges, F8 questionnaire answers (R6)
- F9 opt-in public transparency log (new R8)
- New summary field files_not_scanned: files of types the scanner does not
  read (Dockerfile, .pem, ...) are counted instead of silently ignored
- Schema now defines types, enums and patterns for every field and rejects
  unknown fields; schema version 1.1.0
- Tests validate real reports against the schema and keep rule values and
  schema enums in sync
- CI: lint, type check, tests and a schema-validated self-scan on Python
  3.11 to 3.14; read-only permissions; actions pinned to commit SHAs
- Release: on a v* tag, refuse to publish on version mismatch, failing tests
  or a dirty tree; build, write release-evidence.json (commit, tests, rules,
  schema and artifact hashes), sign build provenance, publish the release
- SECURITY.md explains how to verify a release
@altrudev
altrudev merged commit 34a24c6 into main Dec 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant