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§
- Node
Provenance Entry - Verified provenance metadata for an allocated node (
> BOOTSTRAP_BASELINE_LAST_ID). - Node
Provenance Map - Verified provenance ownership map across the committed ledger.
- Parsed
CtbNode Incoming File - Parsed contents of a single
.ctbnode-incomingfile innodes/inbox/ornodes/allocated/.
Enums§
- Node
Provenance - Provenance ownership classification of a ledger node.
Constants§
- PRE_
JOURNAL_ BASELINE_ LAST_ ID - Highest node ID in the initial pre-journal baseline (
17,833nodes).
Functions§
- load_
and_ validate_ node_ provenance - Validates that all committed nodes above the
bootstrap_checkpointinnodeshave matchingBATCH_COMMITTEDentries incommitted_pairsand (forinbox_allocationbatches in open chunks) matching.ctbnode-incomingfiles insrc/formats/dcdata/data-src/nodes/allocated/, with zero unrecorded files innodes/allocated/. - parse_
ctbnode_ incoming_ file - Parses and validates the headers and body of a
.ctbnode-incominginbox/allocated file. - prevalidate_
and_ plan_ inbox_ items - Prevalidates a batch of
.dcshinbox files(inbox_name, inbox_sha256, content)in memory againstexisting_nodesandprovenance_map, returning the plannedPlannedLedgerItems. - process_
inbox_ nodes - Processes all
.ctbnode-incomingfiles in<repo_root>/src/formats/dcdata/data-src/nodes/inbox/inside a single durable ledger transaction underLedgerWriteGuard(LOCK_EX). - process_
inbox_ nodes_ with_ fault - Same as
process_inbox_nodes, with optionalFaultInjectionPointfor crash/recovery testing. - verify_
repo_ committed_ node_ provenance - Convenience wrapper for external callers/tests to validate committed node provenance from
repo_root.