Module seed_graph

Module seed_graph 

Source
Expand description

Runtime Seed Graph Loader & Index (Phase 2).

Loads compiled .ctbnbdl (CtbNodeBundle2 / CtbNodeBundle1) system graph bundles from the runtime resource bundle (data/graph/85899_34592.ctbnbdl, etc.) and indexes active statements, supersessions (Dc 591), retractions (Dc 592), seed classification entities, value nodes, and .Semantic:Pattern rules at runtime.

Re-exports§

pub use crate::support::seed_graph_reconstruct::ReconstructedNamedType;

Structs§

ActiveConverterStep
Single active conversion edge ([Dc 302 "Type conversion", src, dst]) resolved from SeedGraphIndex.
ActivePropertyValue
Active reified Has a (Dc 584) + Has value (Dc 610) property assignment.
GraphWasmSubstituteSnapshot
Vantage-point-agnostic runnable WebAssembly snapshot discovered across all revisions present in an arbitrary LedgerNode slice.
SeedGraphIndex
Runtime index over the System-block seed graph (8589934592..=12884901887).
StagelRoutineGraphMeta
Decoupled non-executable metadata attached to a StageL/StageR routine entity (Dc 2240..2241 decomposition) in a SeedGraphIndex snapshot.
SystemWasmSubstituteTarget
Single auto-discovered graph target eligible for native safe-Rust WebAssembly substitute compilation at a given snapshot.
TrustedSystemSupervisorResolution
Verified resolution of an unpinned 1-Short-Dc System supervisor entry document against the application-bundled System-block seed graph (ctoolbox.rsrc).

Enums§

ActiveConverterBody
Executable implementation body attached to an active converter routine or .Formats:transformation Format Dc in a SeedGraphIndex snapshot.
SystemWasmSubstituteTargetKind
Classification of an auto-discovered runnable graph node or Dc eligible for Guix-style native safe-Rust substitute compilation.

Constants§

PRIMARY_SEED_GRAPH_ASSET_KEY
Primary seed graph bundle asset key inside ctoolbox.rsrc.
SEED_GRAPH_ASSET_GLOB
Default glob pattern matching bundled active system graph .ctbnbdl files inside ctoolbox.rsrc.
SYSTEM_GRAPH_HISTORY_ASSET_GLOB
Default glob pattern matching optional historical/inactive system graph .ctbnbdl files inside system_graph_history.rsrc (assets/data/graph/system/*.ctbnbdl).
SYSTEM_WASM_SUBSTITUTE_DISCOVERY_VERSION
Version tag mixed into offline native substitute bundle fingerprints whenever discover_graph_wasm_substitute_snapshots or SeedGraphIndex::discover_system_wasm_substitute_targets selection rules change.

Functions§

compute_effective_inactive_ids
Computes the set of effectively inactive node IDs, along with superseded_by (old_id -> new_id) and retracted_by (old_id -> retract_stmt_id), across nodes in reverse chronological order.
current_system_block_most_recent_node_id
Returns the highest allocated node ID in the System block from the shared runtime seed graph.
discover_graph_wasm_substitute_snapshots
Discovers all runnable WebAssembly snapshots across an arbitrary slice of LedgerNodes without privileging HEAD over historical Dc 641 revisions.
parse_ambiguous_values_tokens
Parses a Dc 348 "Ambiguous values" list node (348 310 275 l<cand_1> 312 l<cand_2> ... 311) into its ordered candidate node IDs.
substitute_chunk_prefix_for_node_id
Returns the uniform .ctbnodes chunk stem (e.g. "85899_75792") owning node_id.