|
| 1 | +# SPDX-License-Identifier: MPL-2.0 |
| 2 | +# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk> |
| 3 | +# |
| 4 | +# Ochrance <-> Valence Shell <-> Echo Types — cross-repo bridge note. |
| 5 | +# Machine-readable companion to docs/VALENCE_SHELL_BRIDGE.adoc. |
| 6 | +# This is an ORIENTATION note for agents. It records a documentation-only |
| 7 | +# bridge. Nothing here is mechanised, shipped, or trusted. |
| 8 | + |
| 9 | +[bridge] |
| 10 | +name = "valence-shell-bridge" |
| 11 | +type = "cross-repo-documentation-bridge" |
| 12 | +human-doc = "docs/VALENCE_SHELL_BRIDGE.adoc" |
| 13 | +created = "2026-06-02" |
| 14 | +thesis = "Ochrance is the receipt layer for Valence Shell's accountable state transitions; Echo Types is the semantics of the residue/loss those transitions expose." |
| 15 | + |
| 16 | +# Required status tags. ALL hold simultaneously today. |
| 17 | +[status] |
| 18 | +state = "documentation-bridge" |
| 19 | +mechanised = "not-mechanised" |
| 20 | +production-trust = "not-production-trust" |
| 21 | +cryptographic-integrity = "no-cryptographic-integrity-claim-until-hash-and-attestation-gaps-close" |
| 22 | +tags = [ |
| 23 | + "documentation-bridge", |
| 24 | + "not-mechanised", |
| 25 | + "not-production-trust", |
| 26 | + "no-cryptographic-integrity-claim-until-hash-and-attestation-gaps-close", |
| 27 | +] |
| 28 | + |
| 29 | +[participants] |
| 30 | +valence-shell = "https://github.com/hyperpolymath/valence-shell" |
| 31 | +echo-types = "https://github.com/hyperpolymath/echo-types" |
| 32 | +ochrance = "https://github.com/hyperpolymath/ochrance" |
| 33 | + |
| 34 | +[roles] |
| 35 | +valence-shell = "operational shell: executes actions, tracks history, undo/redo/checkpoint/restore/diff/replay, RMR/RMO vocabulary" |
| 36 | +echo-types = "semantic theory of structured loss: Echo f y := Sigma (x : A), (f x = y) — the proof-relevant fibre/residue over an observed output" |
| 37 | +ochrance = "evidence/receipt substrate: A2ML manifests, Merkle-backed state commitments, repair witnesses, future attestation surfaces" |
| 38 | + |
| 39 | +# The four trust boundaries. Each layer is sound only within its own boundary. |
| 40 | +[trust-boundaries] |
| 41 | +valence-shell-proofs = "concern modelled shell operations (abstract model); Lean->Rust correspondence is property-tested, not mechanised" |
| 42 | +echo-types-scope = "classifies recoverable / constrained / lossy / obliterative information; it is a semantics, not a runtime or evidence store" |
| 43 | +ochrance-receipts = "can attest to concrete filesystem state evidence (Merkle commitments, A2ML manifests) once the hash/attestation gaps close" |
| 44 | +end-to-end = "none of this currently proves Valence Shell implementation correctness end-to-end" |
| 45 | + |
| 46 | +# Ochrance integrity caveats. Load-bearing; carry into any future receipt. |
| 47 | +[caveats] |
| 48 | +hashes = "Zig std.crypto primitives (BLAKE3/SHA-256/SHA3-256/Ed25519) are now implemented in ffi/zig/src/main.zig; still no cryptographic filesystem-integrity claim while Idris-side XOR/zero stub fallbacks remain reachable and libochrance.so is not yet built and linked into the verification flow" |
| 49 | +attestation = "no full attestation until Ed25519 signature verification is integrated end-to-end with a trust-root/key-management story (stub + signature-skipping path still present)" |
| 50 | +linear-repair = "no complete linear repair until that work is actually complete; linear quantities are typed but repair bodies are stubbed/elided" |
| 51 | + |
| 52 | +# Echo Types residue classification used as bridge vocabulary. |
| 53 | +# DESIGN CORRESPONDENCE ONLY — a human reading, not a mechanised classifier. |
| 54 | +[residue-classes] |
| 55 | +recoverable = "reversible map / section exists; RMR-class ops with working undo/redo" |
| 56 | +constrained = "recoverable only with retained side-evidence (checkpoint/history/metadata)" |
| 57 | +lossy = "genuine collapse with non-trivial observable residue; not invertible" |
| 58 | +obliterative = "maximal collapse; Echo Types proves NO section exists (no-section family); RMO-class irreversible erasure" |
| 59 | + |
| 60 | +# Future event shape. DESIGN SKETCH ONLY — no such type exists in this repo. |
| 61 | +[event-shape] |
| 62 | +name = "ValenceShellReceipt" |
| 63 | +implemented = false |
| 64 | +implementation-status = "design-only — do not implement until gating conditions are met" |
| 65 | +fields = [ |
| 66 | + "event_id", |
| 67 | + "command", |
| 68 | + "pre_state_commitment", |
| 69 | + "post_state_commitment", |
| 70 | + "valence_proof_ref", |
| 71 | + "echo_residue_class", |
| 72 | + "ochrance_manifest_ref", |
| 73 | + "merkle_root", |
| 74 | + "attestation_ref", |
| 75 | + "trust_boundary", |
| 76 | + "status", |
| 77 | +] |
| 78 | + |
| 79 | +# All of these must hold before ANY code is written for this bridge. |
| 80 | +[gating] |
| 81 | +real-hashes = "Ochrance uses real cryptographic hashes end-to-end; no XOR/zero stub path reachable" |
| 82 | +real-attestation = "Ochrance attestation does real Ed25519 verification with a defined trust-root/key-management story" |
| 83 | +real-repair = "Ochrance linear repair implemented, not stubbed" |
| 84 | +valence-proof-ref = "Valence Shell exposes a stable referenceable proof/operation handle with its modelled-vs-implementation boundary stated" |
| 85 | +residue-procedure = "a residue-classification procedure exists beyond a human reading, if echo_residue_class is to be machine-trusted" |
| 86 | + |
| 87 | +# Explicit non-claims. This bridge must NOT be cited as asserting any of these. |
| 88 | +[non-claims] |
| 89 | +ochrance-proves-valence = false # Ochrance does NOT prove Valence Shell correct |
| 90 | +echo-proves-ochrance = false # Echo Types does NOT prove Ochrance correct |
| 91 | +rmo-undoable = false # RMO is NOT undoable; obliterative = no section |
| 92 | +gdpr-compliance = false # no GDPR claim until RMO is implemented AND Ochrance evidence chain is closed |
| 93 | +echidna-integration = false # no Echidna claim; no concrete tested integration in this bridge |
| 94 | + |
| 95 | +[cross-references] |
| 96 | +architecture = "docs/ARCHITECTURE.md" # existing Reversibility Stack framing this bridge refines |
| 97 | +explainme = "EXPLAINME.adoc" # same hash/attestation/repair caveats, honesty pass |
| 98 | +roadmap = "ROADMAP.adoc" # open Phase-1 items the gating tracks |
| 99 | +crypto-ffi = "ochrance-core/Ochrance/FFI/Crypto.idr" |
| 100 | +merkle = "modules/Ochrance/Filesystem/Merkle.idr" |
| 101 | +repair = "modules/Ochrance/Filesystem/Repair.idr" |
0 commit comments