Commit 4620037
## What
Adds `.github/workflows/spark-theatre-gate.yml` — the estate **SPARK
Theatre
Gate**, a reusable (`workflow_call`) anti-theatre lint that also
self-runs on
`standards`.
Implements **standards#135** ("standards CI lint: ... fail `SPARK_Mode
On`
with zero contracts"), sub-issue of the proof-debt epic **#124**.
## Rules
Per SPARK_Mode-On Ada unit, only when the repo shows **no GNATprove
evidence**
(no workflow ref, no `gnatprove` build recipe, no gnatprove output
artifact):
- **T1 — header proof-claim without prover (hard fail, always).** A
strong
proof assertion (`formally verified`, `SPARK Proof Level`, `(Gold)`,
`all
preconditions and postconditions are verified`, `proving the invariant
holds`) in the **file header banner**. Header-scoped on purpose so an
incidental phrase in a body comment (e.g. an enum-literal description)
does
not false-fire.
- **T2 — zero-contract SPARK_Mode (warn by default).** `SPARK_Mode (On)`
with
no `Pre`/`Post`/`Global`/`Depends`/`Contract_Cases`. Emitted as a
warning so
the ~13 repos mid Ada/SPARK→Rust/SPARK migration are not broken on
rollout;
escalates to a hard failure when a caller passes
`enforce_zero_contract: true` (the #135 end-state).
Genuine SPARK repos (echidna, stapeln, …) pass — GNATprove evidence
suppresses
both rules. The gate only bites a *regression* that re-introduces a
hollow
"verified" claim.
## Verification (local harness, mirrors the workflow scanner)
| Target | Result |
|---|---|
| `standards` self-run | **PASS** |
| `ambientops` after the safety_boundary demotion | **PASS** (T2 warn
only, no T1) |
| `ambientops` with pre-demotion safety_boundary banner restored |
**T1-FAIL** (regression correctly caught) |
| `ambientops/.../strategy_matrix.ads:53` enum comment "Formally
verified" | not flagged (header-scoping works) |
## Rollout
This PR lands the gate + self-test. Consumer adoption is a 3-line caller
per
repo (the ambientops caller ships with the item-2 ambientops PR).
T2→hard-fail
escalation is deferred per #135 until the migration tail clears.
Refs #124
Refs #135
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 4aed5f8 commit 4620037
1 file changed
Lines changed: 137 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
0 commit comments