Commit 09f943e
Refs hyperpolymath/standards#124 (estate proof-debt epic, sub-issue
#127).
## TL;DR — foundation-first verification overturned PR#48
PR#48 (merged, prior session) added `RUST-SPARK-STANCE.adoc` claiming
the audit's "SPARK theatre" finding was *inaccurate* and the
safety-critical specs were "Strong". **Adversarial re-verification
(gnat/gnatprove + a 2-agent static SPARK-RM swarm, then dynamically
spot-confirmed on `origin/main`) found PR#48's coverage matrix is
comprehensively FALSE.** The original 2026-05-18 audit was right: the
entire `total-update/ada/dnfinition` SPARK story is theatre — and it
never even compiled.
### Verified evidence (file:line, on origin/main)
- `backend_interface.ads`: `Transaction_Item.Package` used an Ada
**reserved word** as a field name → no compiler accepts it (never
compiled). `Install/Remove/Upgrade/Upgrade_System/Autoremove` are
**functions with `in out` params** = illegal SPARK (RM 4.5.2) under
`SPARK_Mode (On)`.
- `snapshot_manager.adb:4` → `pragma SPARK_Mode (Off)` (entire rollback
body unanalysed) **and** never compiled (`:93` calls
`Create_Btrfs_Snapshot` declared `:145`, no forward decl). Headline
`Rollback_To_Snapshot` `Post` depends on `reversibility_types.adb:26-32`
`System_State_Matches_Snapshot` = `pragma Unreferenced (ID); return
True;` (hardcoded vacuous oracle) + fail-permissive disjunction.
- `safety_boundary.adb:6` → `pragma SPARK_Mode (Off)`;
`safety_boundary.ads:78+` `Safe_*` are functions with `in Out` params
(illegal SPARK). No privilege/scope/bound model exists at all.
- `safety_invariant.ads`: legal SPARK but tautologies over ghost state
the real (SPARK_Mode Off) enforcement path never updates.
## What this PR genuinely delivers (no theatre, no fake green)
1. **Real bug fix**: `backend_interface.ads` `Package`→`Pkg` (zero
references anywhere) — the unit now **compiles** (`gnat` exit 0).
2. **Honest SPARK boundary**: `backend_interface.ads` → `pragma
SPARK_Mode (Off)` with documented rationale (it is genuinely non-SPARK
by design).
3. **Sound Ada 2022 contracts**: `Pre'Class`/`Post'Class` on the
SPARK-legal query ops (`Get_Name`/`Search`/`Get_Package_Info`), `Pre` on
`Register_Backend`, and six non-empty-ID `Pre`s on `plugin_registry.ads`
— runtime-enforced (`-gnata`) and the spec for the OWED refactor.
4. **Verified, honest stance**: false coverage matrix flagged
SUPERSEDED; new `verified-correction` section with the evidence above +
precisely-scoped OWED programme.
## Honest scope — NOT closeable here
The real fix is a large genuine programme (tracked #127, must not be
faked): state-mutating `function`→`procedure` redesign across the
interface + every backend + `safety_boundary`; bring the safety bodies
into `SPARK_Mode (On)`; fix the elaboration error; replace the
hardcoded-`True` ghost oracle with a real state model. Only then can the
safety-critical contracts be `gnatprove`-discharged. This PR makes the
truth visible and the foundation honest; it does not claim verification
that does not exist.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ffda4ff commit 09f943e
3 files changed
Lines changed: 148 additions & 37 deletions
File tree
- total-update/ada/dnfinition/src
- backends
- plugins
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 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 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
115 | 176 | | |
116 | 177 | | |
117 | 178 | | |
| |||
Lines changed: 52 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
8 | 25 | | |
9 | 26 | | |
10 | 27 | | |
| |||
107 | 124 | | |
108 | 125 | | |
109 | 126 | | |
110 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
111 | 130 | | |
112 | 131 | | |
113 | 132 | | |
| |||
129 | 148 | | |
130 | 149 | | |
131 | 150 | | |
132 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
133 | 154 | | |
134 | 155 | | |
135 | 156 | | |
| |||
142 | 163 | | |
143 | 164 | | |
144 | 165 | | |
145 | | - | |
146 | | - | |
147 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
148 | 191 | | |
149 | 192 | | |
150 | 193 | | |
| |||
198 | 241 | | |
199 | 242 | | |
200 | 243 | | |
201 | | - | |
202 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
203 | 247 | | |
204 | 248 | | |
205 | 249 | | |
| |||
Lines changed: 16 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
154 | | - | |
155 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
163 | | - | |
164 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
| |||
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
179 | 185 | | |
180 | 186 | | |
181 | 187 | | |
| |||
0 commit comments