Home Contact
Universal Substratev1.4
/
For agents Markdown

25. Normative implementation profile and primitive contracts

v1.4 precedence: Standard 1.4 does not relabel or redigest RecordCore 1.3. Exact v1.4 operational profiles in Sections 33–44, Section 55, and Appendices N–Q supersede conflicting illustrative persistence, proof, receipt, event, cursor, control, and command…

Concept & directionLNK

v1.4 precedence: Standard 1.4 does not relabel or redigest RecordCore 1.3. Exact v1.4 operational profiles in Sections 33–44, Section 55, and Appendices N–Q supersede conflicting illustrative persistence, proof, receipt, event, cursor, control, and command shapes. Appendix D MUST be read through the v1.4 profile and MUST NOT define an alternative contract.

Sections 1–24 define what the substrate means. Sections 25–32 define how a conforming implementation writes, validates, stores, replays and serves that meaning. The contract is technology-neutral but not behavior-neutral: two implementations may choose different databases or programming languages only if canonical bytes, validation outcomes, temporal answers, authorization decisions and receipts remain interoperable.

Table
Normative language
MUST and MUST NOT are conformance requirements. SHOULD identifies a strong default whose deviation requires a recorded rationale. MAY identifies an optional behavior whose presence cannot weaken a MUST. Examples are non-normative unless a fixture says otherwise.

#25.1 Contract layers

LayerOwnsMust never own
Semantic kernelIdentity, typed records, time, provenance, correction, evidence, grants and receiptsUI labels, database joins, vendor identifiers or inferred authorization
Wire profileCanonical JSON object shape, exact scalar grammar, media type and digest inputDomain truth beyond the referenced schema and vocabulary lock
Graph profileSubject/object typing, topology, effectivity, cardinality and cross-record invariantsPhysical control execution or policy decisions
Policy profileCurrent principal, action, resource, purpose, audience, context, duties and revocationRewriting records or treating ontology inference as permission
Persistence profileAtomic append, idempotency, ordering, outbox and rebuild checkpointsProduct semantics hidden in database triggers
Projection profileDeterministic, versioned read models for a declared audience and as-of timeAuthoritative mutation or silent conflict resolution
Transport profileHTTP/event framing, authentication, rate limits, correlation and retry contractReplacing the canonical record envelope

#25.2 Primitive scalar profile

PrimitiveCanonical formForbidden shortcut
OpaqueIdlowercase UUID textual form or equivalent 128-bit opaque valueNever contains VIN, serial, tenant, time-zone or vehicle class semantics
TermRefabsolute namespaced identifier plus vocabulary version/digestHuman label is presentation metadata, not the stored term
SchemaRefimmutable schema identifier, semantic version and content digestA mutable latest URL is not valid for historical records
TimestampUTC instant with explicit offset and bounded fractional precisionLeap/clock uncertainty recorded separately; no local time without zone
TimeIntervalhalf-open [start, end) with open end allowedEnd precedes start; adjacent intervals do not overlap
DecimalStringcanonical sign, digits, optional fraction; scale declared by schemaBinary floating-point for money, exact quantity or digest input
IntegerStringcanonical base-10 integer when range exceeds safe JSON integerLeading plus or ambiguous leading zeros
Moneycurrency term, exact amount, minor-unit policy and rounding contextGeneric price field or currency inference from locale
QuantityValuequantity kind, original value/unit, optional canonical value/unit and uncertaintyUnitless numeric value unless the quantity kind is dimensionless
Digestalgorithm identifier plus lowercase encoded digest bytesDigest alone as proof of identity, truth or authority
LanguageStringtext, BCP-47 language tag and optional directionMachine translation overwriting the source string
GeoValuecoordinate reference system, axes/order, datum, epoch, uncertainty and privacy classBare latitude/longitude pair with assumed frame

#25.3 Presence and knowledge states

Omission is reserved for a field that is inapplicable to the selected schema branch. A field whose value is relevant but unknown must carry an explicit knowledge state. This prevents missing telemetry, withheld ownership, unsupported adapters and zero-valued measurements from collapsing into null.

StateMeaningProjection rule
knownA value is present and valid under the referenced schemaReturn value subject to policy
unknownThe question is meaningful but no value is currently establishedReturn unknown; do not invent default
not_observedObservation could have occurred but did notDistinguish from sensor failure and zero
not_measuredA measurement procedure was not performedDo not calculate from absent input unless a derivation says so
unavailableSource or service could not provide a valueExpose availability state and retry/freshness metadata
withheldValue exists but policy suppresses itReturn non-leaking withheld marker if audience may know that
redactedValue was removed from this projection or exportInclude redaction policy/receipt when allowed
disputedConflicting evidence remains unresolvedReturn conflict set or declared policy choice with explanation
unsupportedAdapter or implementation cannot interpret the valuePreserve original bytes and schema reference
not_applicableThe question does not apply in this schema/contextNever treat as false, zero or unknown

#25.4 Canonical serialization and digest boundary

  1. Reject malformed Unicode, duplicate object keys, non-finite numbers, negative zero and values outside schema limits before normalization.
  2. Resolve the exact local schema and semantic context by immutable identifier and digest; runtime network resolution is disabled.
  3. Normalize identifiers, timestamps, decimal lexical forms, term references and unordered-set fields according to the selected schema version.
  4. Sort object member names according to the canonical JSON profile; preserve array order unless the schema explicitly declares set semantics and a canonical key.
  5. Encode canonical UTF-8 bytes with no insignificant whitespace and compute recordDigest over the canonical record body, excluding transport headers and mutable signature containers.
  6. Bind signatures to the digest, schema lock, signer identity, signing purpose, algorithm suite, creation/expiry and key epoch.
  7. Store original received bytes and media type when required for evidentiary or import fidelity; original bytes and canonical bytes are different artifacts.
Table
Hash equality is narrow
Equal canonical digests prove equal canonical bytes under one profile. They do not prove that two physical assets, claims, photographs or events are the same, true, lawful or authorized.

#25.5 Compatibility classes

ChangeCompatibilityRequired handling
Add optional field with explicit default-absence semanticsbackward compatibleNew writer may emit; old reader preserves extension or ignores only if schema permits
Add required fieldbreakingNew major schema or deterministic upcast with supplied provenance
Narrow allowed value/rangebreaking for existing dataCorpus scan, exception policy and migration receipt
Broaden allowed value/rangereader-forward riskDeclare minimum reader; fixtures for unsupported values
Rename term or fieldsemantic mappingStable old identifier, replacement relation and lossless transform
Change unit or numeric scalepotentially lossyExact conversion rule, rounding method and loss manifest
Change truth lane, authority or privacy meaningnever silentNew concept/schema; no aliasing across boundaries
Change canonicalization profiledigest-breakingNew profile ID; preserve old digests and dual verification