pregate: REUSE accepted/refused lines, run-url regression test, receipt bind end to end

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-10-29 04:23:25 +00:00
1 parent 87387385bc
commit 29cc8ff6a0
4 files changed
+54 -12

No files matched your search

+9 -5
View File
@@ -626,11 +626,15 @@ once:
exactly the rule [above](#remote-gate-stamp-only) (a policy whose
`stamp_sensitive_gates` names `tests` refuses that substitution).
Any API or git error refuses. Each refusal prints `REUSE: refused — …` with the
run and its reason (`fork_run`, `event_mismatch`, `run_not_success`,
`job_missing`, `artifact_mismatch`, `artifact_reused`, `tree_mismatch`,
`newer_run_vetoes`, `run_stale`, `os_mismatch`, `api_error`, …), as
`PREGATE_RECEIPT_INVALID`. Accepted, the receipt reads
Any API or git error refuses. Each refusal prints `REUSE: refused
reason=<code> — …` as `PREGATE_RECEIPT_INVALID`, and a run that fails
verification is named with its own reason (`fork_run`, `event_mismatch`,
`run_not_success`, `job_missing`, `artifact_mismatch`, `artifact_reused`,
`tree_mismatch`, `newer_run_vetoes`, `run_stale`, `os_mismatch`, `api_error`,
…); the clear-level codes are `no_verified_run`, `tree_mismatch` (runs on
different trees), `inventory_failed`, `inventory_empty`, `inventory_uncovered`
and `no_tests`. Accepted, `clear` prints `REUSE: accepted <lane> <receipt>`, and
the receipt reads
`remote-gate tree=<t12> tests=<n> runs=<id>/<attempt>,… profiles=<p>,…
heads=<h12> verified=<time>` (with `accepted-for=` and the substitution for a
stamp-only predecessor). A lane with its own profile gets `run tree=… runs=…`