Module inbox

Module inbox 

Source
Expand description

Manual and staged .ctbnode-incoming node allocation pipeline (nodes/inbox/ -> nodes/allocated/), dynamic effective-state prevalidation, BATCH_COMMITTED provenance verification, and cross-ownership protection between csv and manual graph nodes.

Structs§

NodeProvenanceEntry
Verified provenance metadata for an allocated node (> BOOTSTRAP_BASELINE_LAST_ID).
NodeProvenanceMap
Verified provenance ownership map across the committed ledger.
ParsedCtbNodeIncomingFile
Parsed contents of a single .ctbnode-incoming file in nodes/inbox/ or nodes/allocated/.

Enums§

NodeProvenance
Provenance ownership classification of a ledger node.

Constants§

PRE_JOURNAL_BASELINE_LAST_ID
Highest node ID in the initial pre-journal baseline (17,833 nodes).

Functions§

load_and_validate_node_provenance
Validates that all committed nodes above the bootstrap_checkpoint in nodes have matching BATCH_COMMITTED entries in committed_pairs and (for inbox_allocation batches in open chunks) matching .ctbnode-incoming files in src/formats/dcdata/data-src/nodes/allocated/, with zero unrecorded files in nodes/allocated/.
parse_ctbnode_incoming_file
Parses and validates the headers and body of a .ctbnode-incoming inbox/allocated file.
prevalidate_and_plan_inbox_items
Prevalidates a batch of .dcsh inbox files (inbox_name, inbox_sha256, content) in memory against existing_nodes and provenance_map, returning the planned PlannedLedgerItems.
process_inbox_nodes
Processes all .ctbnode-incoming files in <repo_root>/src/formats/dcdata/data-src/nodes/inbox/ inside a single durable ledger transaction under LedgerWriteGuard (LOCK_EX).
process_inbox_nodes_with_fault
Same as process_inbox_nodes, with optional FaultInjectionPoint for crash/recovery testing.
verify_repo_committed_node_provenance
Convenience wrapper for external callers/tests to validate committed node provenance from repo_root.