Commit ff8eced
neurophone: proofs (2.1 TLC / 2.3 typestate) + estate Trustfile (#158)
## Summary
Continues the neurophone hardening (follow-up to the merged #154, #156).
Two chunks:
### Proofs — honest staged path (#84)
- **2.1 lifecycle: TLC-model-checked.** Added `proofs/tla/Lifecycle.cfg`
+ a
`WorkBound` constraint; TLC now reports **"No error has been found"**
(13 states) —
`TypeOK`, `NoUseBeforeInit`, and the `NoUseAfterShutdown` property all
hold.
- **2.1 (type level) + 2.3 release-once: compile-fail verified.** Three
`compile_fail`
doc-tests on `NeuroSymbolicSystem` prove the typestate rejects
use-before-init,
use-after-shutdown, and double-shutdown — `cargo test` fails if any
starts compiling.
- **0.1 panic-freedom + 0.2 numeric containment** on the core
operational paths:
`neurophone-core/tests/proptest_core.rs`.
- `proofs/README.adoc` rewritten to reflect reality
(property/checked/open), and
corrected: the `spectral_radius` misnomer is **already fixed** in `esn`
(power
iteration), so 1.1's precondition holds — only the formal contraction
proof remains.
- `Justfile`: `proof-tla` (fetches `tla2tools.jar`, self-skips without
java), `proof`,
and the RSR `quality` gate.
### Estate Trustfile (owner's explicit ask)
- `.machine_readable/contractiles/trust/Trustfile.a2ml` upgraded from 23
lines to the
full **A2ML Trustfile v2026.2.5-final** baseline, specialised for
neurophone: threat
model for an on-device app, real seams, the honest 0.1–3.2
`PROOF_ARTIFACTS` map with
explicit `non_claims`, capability gateway, crypto-agility. Owner-only
crypto
(Ed448+Dilithium5 / SPHINCS+, hashes, transparency entries) left as
`{{PLACEHOLDER}}`.
- New SHA-pinned `.github/workflows/trustfile.yml` gate: structural lint
+ placeholder
policy (WARN on branches / ERROR on main) + integrity-hash drift report
+ runnable checks.
Ground truth: `cargo test` **160 pass**, `cargo clippy --all-targets --
-D warnings`
clean, `cargo fmt --check` clean; TLC verified locally.
## FLAGS — external / owner-plane (unchanged)
- `gossamer` + `conative-gating` clones remain **403-blocked** → #83
epic and #103 staged.
- OPEN obligations 1.1 / 1.2 (formal) / 2.2 / 3.1 residual — honest,
with completion paths.
- Owner fills the Trustfile `{{PLACEHOLDER}}` crypto at signing time.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_0172RBMz3qYjb1ttzD2i7RNh
---
_Generated by [Claude
Code](https://claude.ai/code/session_0172RBMz3qYjb1ttzD2i7RNh)_
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 672636f commit ff8eced
10 files changed
Lines changed: 670 additions & 39 deletions
File tree
- .github/workflows
- .machine_readable/contractiles/trust
- contractiles/trust
- crates/neurophone-core
- src
- tests
- proofs
- tla
| 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 | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
0 commit comments