Machine-readable

JSON Schemas

The shape of every Universal Paper object and of trace files, in JSON Schema 2020-12. Each $id is a real address on this site.

Universal Paper UP/0.1-draft primitives

Machine-readable shapes of every Universal Paper object. Structural validity only: the axioms in spec/03-axioms.md decide whether a well-shaped object is valid.

$idhttps://universalpaper.org/schema/UP-0.1-draft/universal-paper.schema.json
Current versionhttps://universalpaper.org/schema/universal-paper.schema.json
Dialecthttps://json-schema.org/draft/2020-12/schema
Sourceschema/universal-paper.schema.json

Download · Source

Universal Paper trace (up-trace/0.1)

Output of the reference interpreter's trace command. Each step records one event, every check each evaluator ran on it, whether each evaluator accepted it, each evaluator's independently computed state hashes, and the values derived after the step. Viewers such as the Explorer only play this back; they never compute validity themselves.

$idhttps://universalpaper.org/schema/UP-0.1-draft/trace.schema.json
Current versionhttps://universalpaper.org/schema/trace.schema.json
Dialecthttps://json-schema.org/draft/2020-12/schema
Sourceschema/trace.schema.json

Download · Source

Validate a bundle

A schema checks shape only. Whether a well-shaped agreement or event is valid is decided by the axioms, which the reference interpreter (up validate) and the MCP server apply.

import json, urllib.request
import jsonschema  # pip install jsonschema

url = "https://universalpaper.org/schema/UP-0.1-draft/universal-paper.schema.json"
schema = json.load(urllib.request.urlopen(url))
jsonschema.validate(json.load(open("bundle.json")), schema)

Versioning

Each $id names the specification version in its path and is served at exactly that URL, so a reference to it never changes meaning. The unversioned /schema/… addresses always serve the current version. Schemas are code, licensed under Apache-2.0.

Optional integration schemas

Schemas for the optional Fingerprint Coordination convention. They are not part of the language.

FingerprintContribution (optional Fingerprint Coordination convention)

Which Universal Paper artifacts a party shares for analysis, how much of each, and the rules for using them. Not part of the Universal Paper language. `fingerprint` is the Universal Paper fingerprint of every other member.

$idhttps://universalpaper.org/examples/integrations/fingerprint-coordination/schemas/contribution.schema.json
Dialecthttps://json-schema.org/draft/2020-12/schema
Sourceexamples/integrations/fingerprint-coordination/schemas/contribution.schema.json

Download · Source

DerivedProfile (optional Fingerprint Coordination convention)

A recomputable analytical profile derived from Universal Paper artifacts. Lists every input by fingerprint, plus inputsRoot; `fingerprint` is the Universal Paper fingerprint of every other member. Not part of the Universal Paper language.

$idhttps://universalpaper.org/examples/integrations/fingerprint-coordination/schemas/derived-profile.schema.json
Dialecthttps://json-schema.org/draft/2020-12/schema
Sourceexamples/integrations/fingerprint-coordination/schemas/derived-profile.schema.json

Download · Source

esc
↑ ↓ move↵ openesc close