Expand description
Transcription of SafeMesh.RecordKernel ownership rules. The existing Lean corpus binds these decisions to their specification; no Lean runtime is used.
Structs§
- Refused
- Write
Context - Facts supplied by the local fence, not by a remote packet. Public for oracle conformance; constructing these facts does not grant a local writer lease.
- Writer
Config
Enums§
- Owned
Payload - An add mints exactly one token at its record ID. Removes reference observed tokens, including other writers’ tokens, and do not mint tokens.
Traits§
- Owned
Delta - Extract only the ownership-relevant facts from the existing wire payload.
Functions§
- allocate_
token - Pure allocation rule, evaluated with checked bounded arithmetic. The record sequence starts at one; configuration must be identical across a replica set.
- check_
counter_ record - Checked counter boundary for existing, unfenced replica adapters. This does not grant fencing: it checks the record author’s coordinate before admission.
- next_
sequence - refuses
- The sole Rust transcription of the packet-A refusal predicate. Every local and incoming operation in LocalReplica passes here before M1 admission.