Expand description
cbcl-core: Pure core library for the CBCL language runtime.
This crate contains all deterministic, effect-free modules that form the
verified core of CBCL. Every module is #![forbid(unsafe_code)] and
no_std-compatible (with alloc).
§Modules
sexpr— S-expression data types (Atom, SExpr)blame— Violation blame attribution (REQ-230, REQ-232, REQ-233, CON-205)message— Message types and core performativesdialect— Dialect definitions and resource boundsagent— Agent with beliefs, dialect registry, message queue, threadsevaluator— Message evaluator: dispatch, template expansion, effect interpretationserializer— Canonical S-expression serializationr1— R1: No recursion safety constraintr2— R2: Resource bounds safety constraintr3— R3: Core preservation safety constraintr4— R4: Integrity (Signer trait)r5— R5: Shape well-formedness (REQ-222)template— Template expansionpattern— Pattern matching for message dispatchmsg_tag— Deterministic message tagging (DCFL)shape— Structural shape constraints (REQ-220)gossip— Epidemic gossip protocol for dialect propagationkeyid— Canonical suite-typed key identity (SPEC-015 REQ-708)attest— R4 v2 attestation signing discipline (SPEC-015 REQ-701, ADR-700)envelope— Redacted envelopes: payload-free evidence widening (SPEC-015 REQ-700..703)equivocation— Equivocation accountability: predicate, proof object, lint (SPEC-015 REQ-705..707)state— State layer: the(state …)clause, kernel, fold, values (SPEC-019 R.1–R.3)r7— R7: state-clause installation checks and state shape (SPEC-019 R.4)intend— The intent binder (SPEC-019 R.5)
Modules§
- admission
- Accepted-history admission corresponding to the paper’s
Execution.Trace. - agent
- Agent: a CBCL participant with beliefs, dialects, and message queues.
- attest
- R4 v2 attestation signing discipline (SPEC-015 REQ-701/REQ-708, ADR-700, CON-700).
- blame
- Violation blame attribution (REQ-230, REQ-232, REQ-233, CON-205).
- canonical
- RFC 9804 canonical S-expression encoding for CBCL R4 signing.
- certification
- SPEC-026: declaration defaults. Resolving a committee grants no certification.
- clock
- Pluggable clock abstraction for time-aware agent state (REQ-305 TTL).
- context
- SPEC-038 CON-3804: read-only installed metadata and sealed cast context.
- contracts
- SPEC-040: pure, bounded, representation-preserving flat contracts.
- dialect
- Dialect definitions, resource bounds, and dialect registry.
- envelope
- Redacted envelopes (SPEC-015 REQ-700..703, NFR-700..702, CON-700, ADR-702).
- equivocation
- Equivocation accountability (SPEC-015 REQ-705/REQ-706/REQ-707, ADR-703, CON-702).
- escrow
- SPEC-019 CON-1907..1909: pure escrow verification over authenticated acts. Protocol admission remains independent. A ready verdict is conditional on nonforking account issuance; it does not prove absence of undisclosed forks.
- evaluator
- Message evaluator: dispatch, template expansion, effect interpretation, thread tracking.
- finite
- SPEC-038 CON-3803: finite lattice tables, recognized as data and verified exhaustively before use. No user-supplied executable merge is accepted.
- gossip
- Epidemic gossip protocol for dialect propagation (REQ-120–122).
- hlc
- Pure host-supplied hybrid logical clock evidence (SPEC-035). SPEC-035 ADR-3502: immutable, host-supplied hybrid logical clock evidence.
- intend
- The intent binder (SPEC-019 R.5):
intendcompletes a caller’s verb and data fields into a canonical act, or rejects. Pure: it never signs, sends, stores, or reads a clock. Every host must bind identically, which is why it lives beside the fold. - keyid
- Canonical suite-typed key identity (SPEC-015 REQ-708).
- lattice
- The state kernel as lattice terms (SPEC-038 CON-3800, first slice).
- message
- Message types and core performatives.
- msg_tag
- Deterministic message tagging (DCFL).
- multihash
- Canonical SHA2-256 multihashes, in multibase base16 (lowercase) text.
Binary layout: unsigned-varint code 0x12, unsigned-varint length 0x20,
then the 32 digest bytes. Text is
f1220followed by 64 lowercase hex digits. Hash input and Merkle construction are independent of this wire encoding. - multikey
- Bounded public Multikey payloads (SPEC-043 CON-4301 / REQ-4308).
- numeric
- Deterministic non-integer atoms. Floats are finite IEEE 754 binary64; decimals retain exact, arbitrary precision base-ten values.
- pattern
- Pattern matching for message dispatch.
- policy
- Unknown predecessor policy: maps verification results to policy outcomes (REQ-305).
- prelude
- Prelude re-exporting the most-used types.
- projection
- Endpoint projection and role-local verification (SPEC-014 REQ-609..620, 623, 626; CON-602).
- protocol
- Causal protocol types and verification result lattice (REQ-200, REQ-302, REQ-303).
- quorum
- Consensus-free quorum-budget runtime. Consensus-free bounded counters with multi-parent DAG adoption (SPEC-031).
- r1
- R1: No recursion safety constraint.
- r2
- R2: Resource bounds safety constraint.
- r3
- R3: Core preservation safety constraint.
- r4
- R4: Integrity (Signer trait).
- r5
- R5: Shape well-formedness validation (REQ-222).
- r6
- R6: role well-formedness — the dialect-level installation check (SPEC-014 REQ-601..607, CON-603).
- r7
- R7 (SPEC-019): installation checks for the
(state …)clause, the compiler-inserted:replacesfield, self-addressed naming, and the message-level state-shape check (R.4). - role
- Role layer types and parsing (SPEC-014).
- serializer
- Canonical S-expression serialization.
- sexpr
- S-expression data types.
- shape
- Structural shape constraints for dialect messages (REQ-220, REQ-223, REQ-224).
- splice
- Splice-coherence: a de-risking prototype of a candidate relaxation of R6(vi) causal locality (NOT a shipped installation check).
- state
- State layer (SPEC-019 R.1–R.3): the
(state …)clause, fixed kernel selections and reductions (including protocol-position maximum), the fold, and the canonical JSON rendering. - store
- Message store with G-Set CRDT semantics (REQ-300, REQ-309, ADR-008).
- template
- Template expansion engine (REQ-100, REQ-101).
- typed_
addr - SPEC-017 seed (architecture spike — NOT wired into any hash path).
Constants§
- VERSION
- Crate version, taken from
Cargo.tomlat compile time.