Skip to main content

Module equivocation

Module equivocation 

Source
Expand description

Equivocation accountability (SPEC-015 REQ-705/REQ-706/REQ-707, ADR-703, CON-702).

The paper proves per-message exclusion of equivocation is non-monotone (outside the CALM coordination-free envelope) while detection is monotone and the offending signed pair is a transferable proof. This module makes that literal, in three pieces:

  1. equivocation (REQ-705) — a monotone predicate over a thread-scoped store: does key have two distinct messages in thread that are (a) messages of two distinct alternatives of one (any …) choice point of the dialect’s protocol (choice equivocation), or (b) two distinct discharges of the same protocol obligation — same performative, different content hash (obligation equivocation)? Detection is read-only and verdict-neutral: both members of the pair keep whatever verdict they individually earned (detection, not exclusion — ADR-703).
  2. EquivocationProof / verify_equivocation_proof (REQ-706, CON-702) — the offending pair as a transferable proof object (equivocation key thread dialect-hash member member), verifiable by any third party from the pair and the pinned dialect alone (the proof names the governing dialect’s content hash and verification is against a dialect matching it, never a same-named substitute): no store, no testimony. Anything short of a fully-verifying pair is a typed rejection.
  3. choice_transparency_lint (REQ-707) — an opt-in, advisory R6-area lint: when a choice point’s alternatives share no common recipient role other than the chooser, no single honest endpoint is guaranteed to witness a choice equivocation locally, and detection relies on proof gossip. A warning, never a violation — the corpus shows disjoint-branch addressing is legitimate.

Key identity is canonical throughout (KeyId, REQ-708): @alice and @ed25519:alice are one identity, so spelling aliases can neither evade the predicate nor split a proof.

Choice-membership is read from the dialect as the (any …) node-refs of its causal protocol: every NodeRef::Any set appearing in any step’s predecessor or successor position is one choice point, its members the alternatives (begin excluded).

Structs§

ChoiceTransparencyWarning
Advisory warning: the alternatives of a choice point share no common recipient role other than the chooser, so no single honest endpoint is guaranteed to witness a choice equivocation locally — detection relies on proof gossip. A warning, never an crate::role::R6Violation.
EquivocationEvidence
Evidence returned by equivocation: the convicted key, the thread, the clause satisfied, and the offending pair as stored (hash-sorted, so evidence is deterministic for a given store state).
EquivocationProof
The transferable proof object (REQ-706, CON-702): (equivocation key thread dialect-hash member member).

Enums§

EquivocationKind
Which clause of REQ-705 the offending pair satisfies.
EquivocationProofError
Typed rejection for verify_equivocation_proof — anything short of a fully-verifying offending pair (LangSec discipline: reject, don’t repair). member is the 0-based index of the offending member.
MemberDefect
What is structurally wrong with a proof member (full recognition before any semantic action: a member missing a committed header field is rejected, never repaired).
ProofMember
One member of an equivocation proof (CON-702 member).

Functions§

attestation_header_for
Reconstruct the R4 v2 attestation header a full-message holder signs and verifies (REQ-701’s full-message arm): every committed field read from the message, the content hash computed from its canonical bytes.
choice_transparency_lint
REQ-707: the opt-in choice-transparency lint, companion to the R6 dialect checks (crate::r6::r6_violations) but advisory by design.
equivocation
REQ-705: the monotone, thread-scoped equivocation predicate.
message_content_hash
Canonical content hash of a message: f1220<lowercase-hex64>, the single content-address hub for every content-addressed message (attestation headers, envelope redaction, equivocation, :caused-by references, and the wasm binding’s message hashing, SPEC-003 REQ-314).
verify_equivocation_proof
REQ-706: verify an equivocation proof from the pair and the pinned dialect alone — no store, no third-party testimony.