SpaceSpec™ Schema 0.1 Reference For Agents

JSON Schema Draft 2020-12 · $id: https://spacespec.org/schema/0.1/spacespec.json

SpaceSpec™ v0.1 Schema Reference

Normative property definitions, pattern constraints, and public redaction boundaries for spacespec/0.1 envelopes.

Top-Level Envelope Properties

additionalProperties is set to false. Unregistered root keys are rejected; custom domain fields belong inside the pattern-validated extensions object.

Property Type / Constraint Required Notes
schema_version const: "spacespec/0.1" Yes Identifies the frozen v0.1 contract.
spec_id string · ^[A-Za-z0-9_.:@-]{3,160}$ Yes Deterministic stable specification identifier.
version string (1..40 chars) Yes Document revision string (e.g. 0.1.0).
subject_kind string (1..80 chars) Yes Entity granularity such as building_assembly_system or interior_living_space.
category_key string (2..120 chars) Yes Catalog-driven taxonomy identifier; no hardcoded categories.
jurisdictions array<string> (minItems: 1, unique) Yes Target region codes (ISO 3166-1/2 plus INT or EU).
quantity_key / unit string | null Yes Primary physical quantity and SI/controlled unit (nullable when multi-metric).
physical_anchor $defs/PhysicalAnchor Yes Physical datum, specimen scope, calibration state, and original verification flag.
uncertainty_envelope $defs/UncertaintyEnvelope Yes Tolerance bounds, profile digest, calibration status, and deviation counters.
measurement_provenance $defs/MeasurementProvenance Yes Capture source, engine_version, as_of date, and explicit ml_inference_used / ocr_used flags.
issuer_did / issuer_key_id did:web:* / did:web:*#kid Yes Issuing controller DID and delegated online signing key ID.
verdict_state "PASS" | "FAIL" | "REVERIFY_REQUIRED" Yes Maps to Clearance OK, Borderline — Re-measure Required, or Not Recommended in residential flows.
measurements / evidence_refs array Yes Itemized parameter checks and standard/clause/report references (may be empty arrays when no sub-items apply).
rs / bts / kjhx Domain namespace objects or null No Isolated RuleSpan, BriefToSource, and residential interior metadata.
extensions prefix:key map No Pattern-checked extension slot (^[a-z][a-z0-9_-]{1,24}:[A-Za-z0-9_.:-]+$).

Schema Definitions ($defs) & Disclosure Redaction

All sub-objects enforce additionalProperties: false and disallow non-finite numeric values.

PhysicalAnchor
anchor_kind (specimen_baseline, physical_reference_marker, lidar_scale_anchor, cad_datum, other), specimen_scope_type, originals_verified, scale_calibrated, calibration_unit. Free-form notes are omitted from public basic views.
UncertaintyEnvelope
envelope_kind (specimen_extension_envelope, measurement_tolerance_band, composite_clearance_band), profile_id, profile_sha256 (64-hex), tolerance_lower / tolerance_upper, checked_rule_count, deviation_count, missing_input_count.
MeasurementItem
quantity_key, label / label_zh, unit, family, extension_rule, status, is_binding_key. Raw specimen_value, design_value, and reason appear only in approval-gated view=full responses.
EvidenceRef
ref_id, ref_kind (standard_edition, clause_locator, eval_pack, lab_test_report, adjudication, other), jurisdiction, edition_id, clause_code, digest_sha256. Public basic views strip lab_test_report entries and sensitive_ref strings.
RuleSpanNamespace (rs)
Cross-market compliance metadata including profile_id, profile_sha256, taxonomy_node_id, performance_domain, calibration_status, unsigned_warning, market pass/fail/reverify counts, and eval_pack_digests.
BtsNamespace (bts)
Procurement handoff fields including independent action_label_4tier (continue_investigating, clarify_first, defer, not_fit_current_path) and explicit_unknown_keys.
KjhxNamespace (kjhx)
Minimal residential fields: space_id, room_zone, depth_source, install_receipt_status (pending, matched, deviated, not_applicable), scale_anchor_verified, and optional notes.