Skip to main content

Module registry

Module registry 

Source
Expand description

The typed extension registry: how generators, modifiers, and planners are declared, discovered, and turned into runnable operators.

Everything a value operator does is split across two lifetimes:

ExtensionRegistry owns three [Catalog]s (one per operator role). Each catalog keeps a BTreeMap of primary kinds — so discovery order is deterministic regardless of registration order — plus a second map from alias to primary kind. Registration keeps the two namespaces disjoint: a primary kind may not be registered twice, and an alias may neither shadow a primary kind nor duplicate another alias.

Structs§

ArgumentSpec
A single named argument a factory reads out of its config.
CompileContext
Everything a factory needs to compile a config into a runtime operator: the table and (for column-scoped operators) the column being compiled, the run’s SeedRoot, and the config’s YAML path for diagnostics.
ExtensionRegistry
The registry of all generator, modifier, and planner factories available to a compilation. Build an empty one with ExtensionRegistry::new or the phase’s built-in set with ExtensionRegistry::standard.
FamilySumCheck
A cross-table sum invariant: over the child rows of the CompiledPlanner::family_child_table that reference a given parent row, the integer value of child_column sums exactly to the integer value of the parent’s parent_column. Money columns are compared in currency minor units, so a verifier normalizes decimal/text renderings to the same fixed scale before summing.
GeneratorDescriptor
Static description of a registered generator.
ModifierDescriptor
Static description of a registered modifier. Mirrors GeneratorDescriptor, but accepts lists the families the modifier can transform rather than populate.
PlanContext
Context handed to a compiled planner. Planners run once per table before any row is generated, so they see the whole table and the run seed.
PlannerDescriptor
Static description of a registered planner. Planners operate at table scope rather than on a single column’s type, so there is no accepts family list; writes/reads describe the columns the planner coordinates.
RowContext
Per-row context handed to a compiled generator or modifier.

Enums§

Buffering
Whether an operator can stream row-by-row or must buffer rows first.
ColumnScope
Which columns an operator reads from or writes to, declared statically so the compiler can reason about ownership before a single row is generated.
Determinism
Whether an operator’s output is reproducible from its seed alone.
KeyRecipe
How a generator materializes as a random-access key domain when its column is a primary key referenced by a child foreign key. Context-free: the engine supplies the parent table/column/seed. A generator that is not a reproducible random-access key returns None from CompiledGenerator::key_recipe.
PlannerPredicate
A machine-checkable invariant a planner guarantees over the columns it owns.
PredicateGuard
A row-level condition selecting which rows a PlannerPredicate applies to.
Verification
Whether an operator can verify its own output against the model’s expectations (uniqueness, referential integrity, value distributions).

Constants§

INHERENT_UNIQUENESS_ENTROPY_BITS
The minimum output entropy (in bits) at which a random-string generator is treated as unique by construction. Below ~1e-9 birthday-collision probability for tables up to ten billion rows — far past any table a unique tracking budget could hold — so tracking such a column is pointless and only imposes the max_tracked ceiling.

Traits§

CompiledGenerator
A compiled generator: produces one value per row into a caller-owned slot.
CompiledModifier
A compiled modifier: transforms a value in place after generation.
CompiledPlanner
A compiled planner: coordinates several columns of a table together.
GeneratorFactory
Compiles a GeneratorConfig into a runnable generator.
ModifierFactory
Compiles a ModifierConfig into a runnable modifier.
PlannerFactory
Compiles a PlannerConfig into a runnable planner.
RowView
Read access to the other columns of the row currently being generated.