Portable, closed schema for one governed consequence class.
A contract is deliberately small. Maps name every allowed key, $list
describes a homogeneous list, $optional and $nullable are explicit, and
$const fixes a literal value. Scalar leaves use one of the documented type
names; portable accepts any canonical portable value so application tools
can carry their own nested arguments. The four binding leaves (subject_ref,
subject_refs, target_ref
and target_refs) derive the exact Candidate endpoints. destination_ref(s)
additionally bind the disclosure destination, while meter_requests binds
the exact quantitative request. A proposer therefore cannot validate
authority against different endpoints or cost than the consequence carries.
The schema is data stored in the Surface. It contains no callback or module reference and is therefore independently replayable.
Summary
Functions
Returns the semantic boundary kinds explicitly bound by the schema.
Extracts the boundaries explicitly carried by a valid consequence.
Returns the plain, string-keyed ledger representation.
Returns the reference derived from the immutable contract content.
Restores a consequence contract and verifies its content reference.
Builds and validates a content-addressed consequence contract.
Validates the consequence and its exact declared boundary bindings.
Types
Functions
Returns the semantic boundary kinds explicitly bound by the schema.
Extracts the boundaries explicitly carried by a valid consequence.
Authoring can reuse the same schema walk as admission instead of guessing targets or Meter quantities. This is not authorization and supplies neither an executor nor consent. Runtime validation still compares every boundary.
Returns the plain, string-keyed ledger representation.
Returns the reference derived from the immutable contract content.
Restores a consequence contract and verifies its content reference.
Builds and validates a content-addressed consequence contract.
Validates the consequence and its exact declared boundary bindings.