Skip to main content

qualia_core_db/net/peer/replication/
mod.rs

1//! QSync operation identity and local replay (SVC-01 partial).
2//!
3//! SHA-384 [`StrongDigest`](crate::net::qdnf::types::StrongDigest) operation
4//! IDs. Transport ACK is not durability. A source signature is not reusable
5//! after redaction. This library does not claim exactly-once external work,
6//! content swarms, or RAM-sized datasets.
7//!
8//! Remaining SVC-01 packages stay open. Checkpoints are partial (SVC-01.07).
9//! Tombstones are partial (SVC-01.11). Membership proofs are partial (SVC-01.08).
10//! Merge is partial (SVC-01.10). Manifests are partial (SVC-01.12). Transfer is
11//! partial (SVC-01.13). Resume is partial (SVC-01.14). Receipts are partial
12//! (SVC-01.04). Crash injection is in-memory (SVC-01.15). Scan is bounded-page
13//! (SVC-01.16) and does not materialize RAM-sized datasets. Evidential pages
14//! copy through [`source::ScanSource`]; the synthetic XOR `next_page` fill is
15//! not storage evidence. Cache misses are Incomplete (E06.3). Originals are
16//! distinct from projections (E06.4). Production scans require ScanSource
17//! (E11.1).
18
19pub mod cache;
20pub mod checkpoint;
21pub mod commit_adapter;
22pub mod crash;
23pub mod custody;
24pub mod disk_crash;
25pub mod dtn;
26pub mod manifest;
27pub mod merge;
28pub mod merkle;
29pub mod operation;
30pub mod originals;
31pub mod pair;
32pub mod projection;
33pub mod proof;
34pub mod receipts;
35pub mod resume;
36pub mod scan;
37pub mod source;
38pub mod tombstone;
39pub mod transfer;
40
41pub use cache::{
42    cache_key, eviction_proves_absence, insert as cache_insert, lookup as cache_lookup,
43    CacheLookup, CacheTable,
44};
45pub use checkpoint::{
46    build_checkpoint, forged_count_rejected, membership_implies_completeness, verify_checkpoint,
47    Checkpoint, MAX_CHECKPOINT_OPS,
48};
49pub use commit_adapter::{commit_verified_block, resume_from_log};
50pub use custody::{mark_stored, CustodyState};
51pub use dtn::{retry_is_new_effect, DtnHold};
52pub use manifest::{
53    container_generation_is_qsync_root, disclose_raw_artifact,
54    raw_artifact_requires_full_authorization, ByteRange, ContentManifest, MAX_DECODED_BYTES,
55    MAX_RANGES,
56};
57pub use merge::{
58    decide, lww_overrides_revocation, wall_clock_is_membership_authority, Alternate, MergeProfile,
59    MergeSet, MAX_ALTERNATIVES,
60};
61pub use merkle::{bounded_membership, manifest_page, range_witness, ManifestPage, RangeWitness};
62pub use operation::{
63    operation_id, source_signature_reusable_after_redaction, transport_ack_is_durable,
64    tx_from_operation_id, OpTable, OperationDesc, MAX_OPS, MAX_PARENTS,
65};
66pub use originals::{store_original, OriginalObject, QnfExtensionAdopted};
67pub use pair::{commit_pair, recover_pair, stage_paired, DurablePairing};
68pub use projection::{derive_projection, membership_oracle_from_dedup, plan_delta, Projection};
69pub use proof::{
70    membership_implies_range_coverage, private_neighbor_metadata_in_proof, prove_membership,
71    verify_membership, MembershipProof, MAX_PROOF_IDS,
72};
73pub use tombstone::{
74    tombstone_implies_global_completeness, transport_ack_is_compaction_frontier, ReplicaGate,
75    Tombstone, TombstoneTable, MAX_TOMBSTONES,
76};
77
78/// QBDL service framing; transport/runtime integration is tracked separately.
79pub mod qbdl;