Skip to main content

source_schema_to_nb

Function source_schema_to_nb 

Source
pub fn source_schema_to_nb(_schema: &SourceSchema) -> KindedSlot
Expand description

Convert a SourceSchema into a KindedSlot typed-object payload.

Phase 1.B (ADR-006 §2.7.4 audit-accuracy ruling): the runtime-side SourceSchema↔KindedSlot path goes through nested typed_object_from_pairs. The current typed_object_from_pairs expects the schema to already be registered for the (uri, tables, cached_at) and per-table-entity field shapes — those schemas are not currently registered (they were synthesized at runtime under the deleted ValueWord path). The Phase 2c rebuild registers the schemas as predeclared and rebuilds this helper. Until then, this function returns an empty KindedSlot placeholder.

The wire-format path (source_schema_to_wire) is unaffected and remains the canonical persisted-format converter.