Expand description
Lossless schema documents and pure schema normalization.
This crate owns source-oriented schema concerns so YAML parsing never enters
the protocol-level type-bridge-contract dependency graph.
Structs§
- Adoption
Baseline - An immutable, operation-free starting point adopted from canonical observation.
- Bound
Managed Schema Scope - A managed fact selection with an explicit durable deployment/profile binding.
- Canonical
Observed Schema - Comparable direct schema and managed scope reconstructed from introspection.
- Delta
Safety Reason - One deterministic fact-level reason for the aggregate classification.
- Delta
Safety Report - Advisory classification only; it never grants authorization to execute.
- Derived
Safety Conditions - Ordered verifier output for one schema operation.
- Descriptor
Id - Stable content-addressed query descriptor identity.
- Descriptor
Index - Stable direct-fact descriptor lookup.
- Effective
Owns - Effective ownership, including resolved constraints and direct origin.
- Effective
Plays - Effective role-playing interface and its independent annotations.
- Effective
Relates - Effective related role, including specialization replacement history.
- Effective
Relates Id - Derived relation-role identity that can represent an inherited role interface.
- Effective
Sub - One direct subtype edge, including its exact declaration origin and annotations.
- Effective
Value Type - Effective direct or inherited attribute value domain.
- Fact
Assembler - Source-language-neutral construction of direct schema facts.
- Fact
Dependency Graph - The exact fact-level dependency graph used to order schema operations.
- Managed
Delta Context - Explicit inputs which determine a managed schema state.
- Managed
Schema Scope - Unbound evidence selecting direct fact identities observed as managed.
- Observed
Schema - An immutable provider-introspection capture with no server or network behavior.
- Observed
Schema Fact - One validated contract fact paired with provider provenance and deployment scope.
- Required
Safety Condition - One exact verifier-derived requirement bound to its transition and profiles.
- Resolution
Origin - Direct-fact identity plus the inheritance path used to derive an effective entry.
- Resolved
Function - Opaque resolved function retained without speculative body typing.
- Resolved
Role - Resolved role descriptor and accepted concrete player types.
- Resolved
Schema - Immutable pure resolution result.
- Resolved
Struct - A validated struct in resolved schema output.
- Resolved
Type - Fully resolved type semantics, rebuilt only from direct facts.
- Safety
Condition Domain Index - Precomputed source-domain evidence shared by every operation in one delta.
- Safety
Condition Id - Stable identity of canonical verifier-derived condition bytes.
- Safety
Derivation Profile - Registry-owned profiles which affect safety derivation and lowering identity.
- Schema
Authority Error - A fail-closed schema-authority failure retaining nested diagnostics.
- Schema
Comment - A comment retained with its exact source location.
- Schema
Dependency Graph - Projection dependency edges and deterministic strongly connected components.
- Schema
Discovery Evidence - Reproducible Phase 2 input for the later workspace lock producer.
- Schema
Discovery Limits - Resource ceilings for deterministic schema source discovery and parsing.
- Schema
Discovery Snapshot - One atomically captured schema-set manifest and its selected fragments.
- Schema
Discovery Version - A closed identifier for the source-discovery algorithm used by a snapshot.
- Schema
Document - One parsed schema source document.
- Schema
Document Set - A deterministic, identifier-keyed collection of schema documents.
- Schema
Parse Limits - Resource ceilings applied before a schema document becomes trusted input.
- Schema
Pattern Discovery Snapshot - An immutable set of captured schema source bytes parsed after revalidation.
- Schema
SetManifest - Validated semantic fields from a
typebridge.schema-set/v1manifest. - Schema
SetManifest Document - A validated schema-set manifest retaining its exact source presentation.
- Schema
Source Capture - One bounded file capture with observations from before and after the read.
- Schema
Source Evidence - One portable path and exact-source digest captured by schema discovery.
- Schema
Source Identity - One service-defined stable object identity.
- Schema
Source Observation - One point-in-time source-path observation.
- Schema
Source Revision - One service-defined content or metadata revision token.
- Schema
Source Service Error - An unavailable or inconsistent observation from a schema source service.
- System
Schema Source Service - Zero-sized adapter for the host filesystem.
- Verified
Schema Authority - Opaque source-free authority accepted only after complete reconstruction.
- Yaml
Mapping - A lossless, insertion-ordered YAML mapping.
- Yaml
Mapping Entry - One string-keyed YAML mapping entry.
- Yaml
Scalar - A decoded YAML scalar with its exact spelling and source location.
- Yaml
Sequence - A lossless YAML sequence.
Enums§
- Comment
Placement - Placement reported for a source comment.
- Delta
Error - A structured failure from contract checks or schema resolution.
- Observed
Fact Provenance - Provider evidence describing why an introspected fact is visible.
- Observed
Fact Scope - Deployment ownership assigned while capturing one introspected fact.
- Safety
Class - The exact eight-class provider-neutral migration safety vocabulary.
- Safety
Classification Error - A malformed formal transition that cannot be assigned a safety class.
- Safety
Condition - Closed verifier-derived safety-condition vocabulary.
- Safety
Condition Unlock - Missing feature or workflow required to express a safety condition honestly.
- Scalar
Safety Subject - Scalar annotation subject that can be represented by the assertion algebra.
- Schema
Authority Error Code - Stable high-level classification for schema-authority failures.
- Schema
Source Kind - The non-following or following kind observed for one source path.
- Unresolvable
Safety Reason - Closed reason vocabulary for conditions the current query algebra cannot express.
- Yaml
Collection Style - YAML collection spelling retained by the lossless document layer.
- Yaml
Node - A YAML node accepted by the closed schema-document grammar.
- Yaml
Scalar Style - YAML scalar spelling retained by the lossless document layer.
Constants§
- BUILTIN_
SCHEMA_ CAPABILITY_ IDS - Schema-feature capabilities implemented by the built-in compatibility resolver.
- DEFAULT_
MAX_ DISCOVERY_ DEPTH - Default maximum directory depth traversed below the schema root.
- DEFAULT_
MAX_ DISCOVERY_ ENTRIES - Default maximum filesystem entries inspected during one selection.
- DEFAULT_
MAX_ SOURCE_ PATTERNS - Default maximum number of source patterns in one schema-set manifest.
- DEFAULT_
MAX_ SOURCE_ PATTERN_ BYTES - Default maximum UTF-8 bytes in one portable source pattern.
- MAX_
SCHEMA_ AUTHORITY_ BYTES - Maximum canonical schema-authority size under the shared contract codec.
- OBSERVED_
SCHEMA_ CANONICALIZATION_ VERSION - Version of the provider-introspection-to-direct-facts canonicalization policy.
- SAFETY_
CONDITION_ CANONICALIZATION - Canonicalization identifier for verifier-derived safety conditions.
- SAFETY_
CONDITION_ FINGERPRINT_ DOMAIN - Fingerprint domain for verifier-derived safety-condition identities.
- SCHEMA_
AUTHORITY_ FINGERPRINT_ CANONICALIZATION - Canonicalization identity for the first schema-authority content envelope.
- SCHEMA_
AUTHORITY_ FINGERPRINT_ DOMAIN - Fingerprint domain for one exact canonical schema-authority content envelope.
- SCHEMA_
DISCOVERY_ V1 - The frozen Phase 2 source-discovery algorithm identifier.
- SCHEMA_
SET_ V1_ FORMAT - The only supported schema-set manifest format in V1.
- SCHEMA_
V2_ FORMAT - Exact discriminator for the first YAML Schema V2 document grammar.
- TYPEBRIDGE_
SCHEMA_ AUTHORITY_ V1 - The first source-free compiled schema-authority envelope.
- TYPEDB_
3_ 12_ 1_ TEMPORAL_ POLICY_ ID - Exact temporal scalar domain accepted by the TypeDB 3.12.1 Rust driver.
- TYPEDB_
3_ 12_ 1_ TIMEZONE_ POLICY_ ID - Exact named-timezone database policy used by the TypeDB 3.12.1 schema profile.
Traits§
- Schema
Source Service - Bounded environmental observations used by deterministic schema discovery.
Functions§
- adopt_
observed_ schema - Adopt canonical observed direct facts as one exclusive managed baseline.
- apply_
delta - Verify and apply a delta entirely in memory.
- build_
schema_ authority - Build and immediately reverify one source-free schema authority.
- canonical_
managed_ declared_ identity_ bytes - Return canonical declared-identity bytes for an explicitly bound managed scope.
- canonical_
managed_ semantic_ schema_ bytes - Return canonical direct-semantic bytes for an explicitly bound managed scope.
- canonical_
semantic_ schema_ bytes - Return canonical direct-semantic bytes with equal explicit defaults normalized.
- canonicalize_
observed_ schema - Canonicalize one captured provider schema without performing provider I/O.
- classify_
delta_ safety - Classify a delta without consulting or producing an authorization decision.
- classify_
operation_ safety - Classify one validated formal operation without granting execution authority.
- classify_
schema_ operation_ safety - Classify one operation and fail malformed transitions closed as unsupported.
- decode_
schema_ authority - Decode canonical bytes and independently reconstruct every bound schema view.
- derive_
safety_ conditions - Derive safety conditions from an exact trusted source/operation/target transition.
- derive_
safety_ conditions_ with_ domain_ index - Derive safety conditions while reusing one exact delta-level domain index.
- diff_
managed - Compute an exact formal managed-schema delta.
- discover_
schema_ documents - Discovers and freezes schema documents with default resource ceilings.
- discover_
schema_ documents_ with_ limits - Discovers and freezes schema documents with explicit resource ceilings.
- encode_
schema_ authority - Return exact canonical bytes retained by an already verified authority.
- inverse_
delta - Reverse operation order, invert every operation, and swap exact states.
- load_
schema_ set - Loads a strict schema-set manifest and atomically freezes all selected documents.
- load_
schema_ set_ with_ limits - Loads a strict schema-set manifest with explicit discovery and parser ceilings.
- load_
schema_ set_ with_ source - Loads a schema set through an injected bounded source-observation service.
- managed_
declared_ identity_ fingerprint - Fingerprint declared identity after explicit managed-scope filtering.
- managed_
schema_ state - Derive the exact managed state from declaration facts and explicit context.
- managed_
semantic_ schema_ fingerprint - Fingerprint direct semantics after explicit managed-scope filtering.
- normalize_
documents - Normalize a lossless document set into provider-independent direct facts.
- parse_
provider_ datetime_ tz - Parse a canonical timezone-aware scalar and resolve named zones under the exact TypeDB 3.12.1 timezone policy.
- parse_
provider_ datetime_ tz_ evidence - Parse exact datetime-tz evidence emitted by the driver bridge.
- plan_
schema_ operations - Compute the exact formal diff and deterministic dependency-safe operation order.
- project
- Derive a target-specific runtime projection without provider I/O or mutation.
- resolve
- Resolve direct schema facts under the built-in semantic-profile compatibility surface.
- resolve_
provider_ datetime_ tz - Resolve a written timezone designator without selecting an arbitrary side of an IANA daylight-saving gap or overlap.
- resolve_
schema_ with_ capabilities - Resolve direct schema facts using an explicitly available schema-feature set.
- schema_
authority_ capability_ vocabulary - Return every capability understood by generated packages and the generic server.
- semantic_
schema_ fingerprint - Fingerprint canonical direct semantics without hashing inherited resolver closure.
- validate_
provider_ datetime_ tz - Validate a carried canonical datetime-tz against the pinned provider timezone database without performing provider I/O.
- validate_
provider_ duration - Validate the exact unsigned component domain used by the TypeDB 3.12.1
driver duration type (
u32months/days andu64total nanoseconds). - validate_
provider_ temporal_ literal - Validate temporal values that must be written as TypeQL literals.
- validate_
provider_ temporal_ value - Validate temporal values that may cross the TypeDB 3.12.1 driver API.
Type Aliases§
- Delta
Safety - Compatibility name retained for the schema-delta API.