Skip to main content

Module compactor

Module compactor 

Source
Expand description

Tier-2 cold GTOP segment compiler and delta-ring compaction engine.

Tier-2 Cold Bounded (AGENTS.md §0-A): compile_geometry_segment checks the caller’s budget_bytes before allocating scratch buffers and emits a 64-byte-aligned GTOP binary segment directly into the caller’s out_buf with Castagnoli CRC-32C receipts.

Structs§

UnsealedGeometrySpec
Unsealed specification of a host Geometry Complex and its $M$ harboured graphs.
UnsealedGraphSpec
Unsealed specification of one harboured graph prior to CSR/CSC compaction.

Functions§

compile_geometry_segment
Compile spec into a 64-byte-aligned GTOP binary segment inside out_buf.
required_geometry_segment_bytes
Compute the exact 64-byte-aligned byte length required to encode spec into a GTOP segment.
seal_harboured_graph_deltas
Apply live TopologicalDeltaEntry mutations targeting slot onto base_spec and deduplicate.