From f48437881d662133edce309df5256d47e5942138 Mon Sep 17 00:00:00 2001 From: saagpatel <269905221+saagpatel@users.noreply.github.com> Date: Sat, 20 Jun 2026 05:27:10 -0700 Subject: [PATCH 1/2] Document proof-pr hygiene explain path --- README.md | 1 + docs/proof-pr-dogfood.md | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 docs/proof-pr-dogfood.md diff --git a/README.md b/README.md index dc0868a..75121a4 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,7 @@ Treat campaign/writeback, GitHub Projects, Notion sync, catalog overrides, score - Public-safe recording plan: [DEMO-PLAN.md](DEMO-PLAN.md) - Product brief: [docs/product/operator-os-product-brief.md](docs/product/operator-os-product-brief.md) - Public fixture proof package: [docs/demo-proof/public-fixture/README.md](docs/demo-proof/public-fixture/README.md) +- proof-pr dogfood: [docs/proof-pr-dogfood.md](docs/proof-pr-dogfood.md) - Product modes: [docs/modes.md](docs/modes.md) - Web UI operator guide: [docs/audit-serve.md](docs/audit-serve.md) - CLI migration (flat → subcommand): [docs/audit-cli-migration.md](docs/audit-cli-migration.md) diff --git a/docs/proof-pr-dogfood.md b/docs/proof-pr-dogfood.md new file mode 100644 index 0000000..90114e2 --- /dev/null +++ b/docs/proof-pr-dogfood.md @@ -0,0 +1,37 @@ +# proof-pr Dogfood + +GithubRepoAuditor uses `proof-pr` as an advisory proof receipt lane for PRs that +change workflow, proof, public evidence, release, or review surfaces. The +committed `proof-pr.json` is the dogfood receipt for the original workflow +adoption; keep it historical unless a PR is intentionally refreshing that +receipt. + +For local author checks, install the current public tag in a temporary +environment and render the proof block from a generated receipt: + +```bash +python3 -m venv /tmp/gra-proof-pr-venv +/tmp/gra-proof-pr-venv/bin/python -m pip install git+https://github.com/saagpatel/proof-pr.git@v0.2.7 +/tmp/gra-proof-pr-venv/bin/proof-pr init --cwd . --tier T1 --summary "Short PR summary" --output /tmp/gra-proof-pr.json +/tmp/gra-proof-pr-venv/bin/proof-pr collect /tmp/gra-proof-pr.json --cwd . +/tmp/gra-proof-pr-venv/bin/proof-pr render /tmp/gra-proof-pr.json +/tmp/gra-proof-pr-venv/bin/proof-pr receipt-hygiene /tmp/gra-proof-pr.json --explain +``` + +`receipt-hygiene --explain` is the author-facing nudge for incomplete receipts. +It keeps hygiene read-only, but adds copyable commands and compact receipt patch +examples for missing evidence such as public git metadata, secrets posture, +permission posture, or rollback specificity. + +For GithubRepoAuditor, keep the risk tier honest: + +- `T0`: documentation-only changes with no runtime effect. +- `T1`: narrow code changes covered by focused tests or a targeted verifier. +- `T2`: user-visible CLI, output, workbook, schema, or API behavior changes. +- `T3`: GitHub Actions, workflow permissions, public evidence, writeback, + generated truth surfaces, or agent/operator access changes. +- `T4`: releases, migrations, security-sensitive changes, or irreversible + external writes. + +The receipt is review evidence, not supply-chain provenance. Release/build tiers +should link separate attestations or artifact digests when those are relevant. From d6f726bed1d658b96e3ac28b2e7fdf397a0fb0d9 Mon Sep 17 00:00:00 2001 From: saagpatel <269905221+saagpatel@users.noreply.github.com> Date: Sat, 20 Jun 2026 05:27:47 -0700 Subject: [PATCH 2/2] Fix proof-pr dogfood command formatting --- docs/proof-pr-dogfood.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/docs/proof-pr-dogfood.md b/docs/proof-pr-dogfood.md index 90114e2..6450145 100644 --- a/docs/proof-pr-dogfood.md +++ b/docs/proof-pr-dogfood.md @@ -11,11 +11,21 @@ environment and render the proof block from a generated receipt: ```bash python3 -m venv /tmp/gra-proof-pr-venv -/tmp/gra-proof-pr-venv/bin/python -m pip install git+https://github.com/saagpatel/proof-pr.git@v0.2.7 -/tmp/gra-proof-pr-venv/bin/proof-pr init --cwd . --tier T1 --summary "Short PR summary" --output /tmp/gra-proof-pr.json -/tmp/gra-proof-pr-venv/bin/proof-pr collect /tmp/gra-proof-pr.json --cwd . -/tmp/gra-proof-pr-venv/bin/proof-pr render /tmp/gra-proof-pr.json -/tmp/gra-proof-pr-venv/bin/proof-pr receipt-hygiene /tmp/gra-proof-pr.json --explain +/tmp/gra-proof-pr-venv/bin/python -m pip install \ + git+https://github.com/saagpatel/proof-pr.git@v0.2.7 +/tmp/gra-proof-pr-venv/bin/proof-pr init \ + --cwd . \ + --tier T1 \ + --summary "Short PR summary" \ + --output /tmp/gra-proof-pr.json +/tmp/gra-proof-pr-venv/bin/proof-pr collect \ + /tmp/gra-proof-pr.json \ + --cwd . +/tmp/gra-proof-pr-venv/bin/proof-pr render \ + /tmp/gra-proof-pr.json +/tmp/gra-proof-pr-venv/bin/proof-pr receipt-hygiene \ + /tmp/gra-proof-pr.json \ + --explain ``` `receipt-hygiene --explain` is the author-facing nudge for incomplete receipts.