Commit 1d7fac8
authored
SNIFs 2: sharpen SEC-1 (deniability + taxonomy), gate the buffer ABI, behaviour gate + AFFIRMATION + Bustfile near-hit (#39)
## Summary
SNIFs 2 — sharpened verification, a ground-truthed honesty snapshot, and
a recorded near-hit. Signed commits (`id_ed25519_signing`, all
`signed=G`):
- **a82bb31** — the work
- **e60a94c** — `AFFIRMATION.adoc` (anchored to `a82bb31`; **parent ==
anchor**)
- **32bbe33** — Bustfile near-hit (Zig 0.15.2) + scaffold-banner note
### SEC-1 — operational crash-isolation (Agda `--safe --without-K`)
- **F1**: confidentiality wired into the operational run (`run-deniable`
/ `fault-via-observe` + a two-distinct-secret `SecretWitness`).
- **F2**: real 6-origin error taxonomy (`TrapOrigin`
guestFault/hostBudget/preExec + a `call` front-end + `PreExecWitness`).
- **F5**: non-trivial-`Alive` recovery witness (`PartialAlive`).
- All **mutation-confirmed load-bearing** by a 4-skeptic adversarial
re-audit (every targeted mutation rejected; `--safe` enforced;
`run`/`drive` totality real).
### ABI-7 + CI-1 + GAP-1b
- `BufferAbi.idr` models all 7 `buffer_abi` exports
(multi-value/void-faithful) → **15/20** Zig export sites gated;
guest-aware `abi_conformance.py`.
- Conformance now runs as a CI job in `proofs.yml`.
- `snif_metamorphic_test.exs` — dep-free metamorphic relations over the
scalar kernels; surfaced + corrected the `checked_add` wrapping-vs-name
misnomer.
### Honesty + aetiology
- `AFFIRMATION.adoc`: ground-truthed snapshot; **Safer-not-Safe**
(SEC-1-TCB trusted), ABI-7 15/20, GAP-1b scalar-only all stated.
- `docs/templates/contractiles/bust/Bustfile.a2ml`: the Zig-0.15.2
ffi-template breakage as a **near-hit** (recognition, not a fix) —
by-design type discipline; inert here (dead scaffold), genuinely *bust*
in typed-wasm.
## Verification (green at `a82bb31`)
- `just proof-check-all` → exit 0 (10 gated artifacts)
- `just abi-conformance` → 15 specs / 2 guests
- `mix test` → 30/30 (OTP 25)
## Base-branch note (flagged, not swept in)
This branch sits on the owner's pre-existing local commit **913d141**
("restore third-party vendored deps to pristine upstream licences") —
the branch HEAD when this work began, not yet on `main`. It is a
**licence** commit and the owner's own work; included here **with
explicit owner permission for this PR**, called out openly. Rebasing it
out was avoided deliberately because it would rewrite `a82bb31` and
break the AFFIRMATION's anchor.
## Owner follow-ups (not in this PR)
- Make `abi-conformance` a **required** status check (branch-protection,
owner-only).
- Zenodo DOI still carries the old "Safe" title (next deposit).
- Decide whether to **rename** the `checked_add` export (comment
corrected; name kept).
🤖 Generated with [Claude Code](https://claude.com/claude-code)86 files changed
Lines changed: 5463 additions & 333 deletions
File tree
- .github/workflows
- .machine_readable
- contractiles
- bust
- dust
- benches
- demo
- bench
- support
- deps
- jason
- lib
- rustler_precompiled
- lib
- rustler
- lib
- wasmex
- lib
- lib/snif_demo
- test
- docs
- decisions
- papers
- templates/contractiles/bust
- whitepapers/academic
- rust-guest
- src
- rust
- crates
- demo-guest
- src
- snif-abi
- src
- snif-logic
- src
- src/interface/ffi/src
- verification
- proofs
- agda
- coq
- idris2
- ABI
- lean4
- tlaplus
- tests
- tools
- zig
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| 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 | + | |
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| 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 | + | |
| 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 | + | |
0 commit comments