Skip to main content

Module field_semantics

Module field_semantics 

Source
Expand description

Bounded shared field metadata/reference validation with domain-registry hooks. Bounded candidate SHARED metadata/reference admission, not domain physics. Scientific modes, units beyond base strings, domain schemas and imported frame profiles require a supplied registry. No model execution/device authority follows.

Structs§

Context
FieldRule
Exact type/count rule; None count admits a bounded array/string length.
Limits
NodeState
Caller-owned deterministic graph workspace. Contents may change on failure.
Scratch
SharedAdmission
Only shared metadata and reference closure are admitted. Domain payloads and numeric providers remain separate; whole requested chunks still need verification.
SharedOnly

Enums§

Error

Traits§

DomainRegistry
Domain registries own exact domain field rules and numeric/reference semantics. Returning rules commits the registry to validating that schema, not preserving it. Callbacks must charge variable work through Context::charge_work before doing it.

Functions§

admit_shared
field
validate_fields
Exact representation and required-critical checks, reusable by domain registries. Unknown optional keys remain preserved. Critical unknown keys/types reject.