Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Specification
Specification
Functions
Schemas
Registers

ObservedStateReceipt

Source schemas/json/observed-state-receipt.schema.json

On this page
  1. Properties
  2. Positive fixtures
  3. Negative fixtures
  4. Schema

Canonical Node-emitted observed-state receipt for central deployment-state ingestion. Evidence-oriented; not Fleet command authority.

FieldValue
Identifierurn:obsp:schema:v3.1:observedstatereceipt
Dialecthttps://json-schema.org/draft/2020-12/schema
Used by functionsTime, Orchestrate

Properties

PropertyRequiredTypeDescription
schemaVersionyesreference
claimyesstringReceipt is observation evidence only; not Site/deployment readiness or Fleet authority.
receiptUniyesreference
eventIdyesstring
produceryesstring
producerVersionyesstring
nodeUniyesreference
siteUniyesreference
deploymentUniyesreference
tenantUniyesreference
workspaceUniyesreference
purposeyesstring
jurisdictionContextyesarray
observationSequenceyesinteger
nodeStateVersionyesinteger
observedAtyesstring
recordedAtyesstring
planBasisyesobject
reconciliationyesobject
resourceObservationsyesarray
statusDimensionsyesobjectOrthogonal dimensions only. No overallHealthy/ready boolean.
timeIntegrityyesobject
evidenceRefsyesarray
preflightDigestyesreference
applyDigestyesreference
verificationDigestyesreference
observedDigestyesreference
payloadDigestyesreference
correctionOfnoreference
supersedesnoreference
extensionsnoobject

Positive fixtures

  • observed-state-receipt.valid.json

Negative fixtures

  • observed-state-receipt.bad-claim.json: const at /claim: 'OBSERVED_STATE_RECEIPT_NOT_READINESS' was expected

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:obsp:schema:v3.1:observedstatereceipt",
  "title": "ObservedStateReceipt",
  "description": "Canonical Node-emitted observed-state receipt for central deployment-state ingestion. Evidence-oriented; not Fleet command authority.",
  "type": "object",
  "required": [
    "schemaVersion",
    "claim",
    "receiptUni",
    "eventId",
    "producer",
    "producerVersion",
    "nodeUni",
    "siteUni",
    "deploymentUni",
    "tenantUni",
    "workspaceUni",
    "purpose",
    "jurisdictionContext",
    "observationSequence",
    "nodeStateVersion",
    "observedAt",
    "recordedAt",
    "planBasis",
    "reconciliation",
    "resourceObservations",
    "statusDimensions",
    "timeIntegrity",
    "evidenceRefs",
    "preflightDigest",
    "applyDigest",
    "verificationDigest",
    "observedDigest",
    "payloadDigest"
  ],
  "properties": {
    "schemaVersion": {
      "$ref": "#/$defs/SchemaVersion"
    },
    "claim": {
      "type": "string",
      "const": "OBSERVED_STATE_RECEIPT_NOT_READINESS",
      "description": "Receipt is observation evidence only; not Site/deployment readiness or Fleet authority."
    },
    "receiptUni": {
      "$ref": "#/$defs/Uni"
    },
    "eventId": {
      "type": "string",
      "minLength": 8
    },
    "producer": {
      "type": "string",
      "minLength": 1
    },
    "producerVersion": {
      "type": "string",
      "minLength": 1
    },
    "nodeUni": {
      "$ref": "#/$defs/Uni"
    },
    "siteUni": {
      "$ref": "#/$defs/Uni"
    },
    "deploymentUni": {
      "$ref": "#/$defs/Uni"
    },
    "tenantUni": {
      "$ref": "#/$defs/Uni"
    },
    "workspaceUni": {
      "$ref": "#/$defs/Uni"
    },
    "purpose": {
      "type": "string",
      "minLength": 1
    },
    "jurisdictionContext": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "minItems": 1
    },
    "observationSequence": {
      "type": "integer",
      "minimum": 1
    },
    "nodeStateVersion": {
      "type": "integer",
      "minimum": 0
    },
    "observedAt": {
      "type": "string",
      "format": "date-time"
    },
    "recordedAt": {
      "type": "string",
      "format": "date-time"
    },
    "planBasis": {
      "type": "object",
      "required": [
        "planUni",
        "planVersion",
        "planDigest"
      ],
      "properties": {
        "planUni": {
          "$ref": "#/$defs/Uni"
        },
        "planVersion": {
          "type": "string",
          "minLength": 1
        },
        "planDigest": {
          "$ref": "#/$defs/Digest"
        },
        "desiredRevisionUni": {
          "$ref": "#/$defs/Uni"
        },
        "desiredAggregateVersionAtAssignment": {
          "type": "integer",
          "minimum": 0
        }
      },
      "additionalProperties": false
    },
    "reconciliation": {
      "type": "object",
      "required": [
        "assignmentId",
        "operationId",
        "reconciliationState",
        "adapterId"
      ],
      "properties": {
        "assignmentId": {
          "type": "string",
          "minLength": 1
        },
        "operationId": {
          "type": "string",
          "minLength": 1
        },
        "reconciliationState": {
          "type": "string",
          "minLength": 1
        },
        "adapterId": {
          "type": "string",
          "minLength": 1
        },
        "adapterVersion": {
          "type": "string"
        },
        "adapterDigest": {
          "$ref": "#/$defs/Digest"
        },
        "verificationPassed": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "resourceObservations": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/ResourceObservation"
      }
    },
    "statusDimensions": {
      "type": "object",
      "required": [
        "bootstrap",
        "reconciliation",
        "resource",
        "connectivity",
        "synchronization",
        "identity",
        "policy",
        "provider",
        "planRelation",
        "correction",
        "timeIntegrity",
        "evidenceFreshness"
      ],
      "properties": {
        "bootstrap": {
          "$ref": "#/$defs/Dimension"
        },
        "reconciliation": {
          "$ref": "#/$defs/Dimension"
        },
        "resource": {
          "$ref": "#/$defs/Dimension"
        },
        "connectivity": {
          "$ref": "#/$defs/Dimension"
        },
        "synchronization": {
          "$ref": "#/$defs/Dimension"
        },
        "identity": {
          "$ref": "#/$defs/Dimension"
        },
        "policy": {
          "$ref": "#/$defs/Dimension"
        },
        "provider": {
          "$ref": "#/$defs/Dimension"
        },
        "planRelation": {
          "$ref": "#/$defs/Dimension"
        },
        "correction": {
          "$ref": "#/$defs/Dimension"
        },
        "timeIntegrity": {
          "$ref": "#/$defs/Dimension"
        },
        "evidenceFreshness": {
          "$ref": "#/$defs/Dimension"
        }
      },
      "additionalProperties": false,
      "description": "Orthogonal dimensions only. No overallHealthy/ready boolean."
    },
    "timeIntegrity": {
      "type": "object",
      "required": [
        "sourceClass",
        "classification"
      ],
      "properties": {
        "sourceClass": {
          "type": "string",
          "minLength": 1
        },
        "classification": {
          "type": "string",
          "minLength": 1
        },
        "degraded": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "evidenceRefs": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "uri",
          "digest"
        ],
        "properties": {
          "uri": {
            "type": "string",
            "minLength": 1
          },
          "digest": {
            "$ref": "#/$defs/Digest"
          },
          "kind": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "preflightDigest": {
      "$ref": "#/$defs/Digest"
    },
    "applyDigest": {
      "$ref": "#/$defs/Digest"
    },
    "verificationDigest": {
      "$ref": "#/$defs/Digest"
    },
    "observedDigest": {
      "$ref": "#/$defs/Digest"
    },
    "payloadDigest": {
      "$ref": "#/$defs/Digest"
    },
    "correctionOf": {
      "$ref": "#/$defs/Uni"
    },
    "supersedes": {
      "$ref": "#/$defs/Uni"
    },
    "extensions": {
      "type": "object",
      "propertyNames": {
        "pattern": "^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$"
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Uni": {
      "type": "string",
      "minLength": 8,
      "maxLength": 256,
      "pattern": "^[A-Za-z0-9][A-Za-z0-9:._/@-]{7,255}$"
    },
    "Digest": {
      "type": "string",
      "pattern": "^[a-z0-9]+:[A-Fa-f0-9]{32,128}$"
    },
    "SchemaVersion": {
      "type": "string",
      "const": "3.1.0"
    },
    "Dimension": {
      "type": "object",
      "required": [
        "state",
        "epistemic"
      ],
      "properties": {
        "state": {
          "type": "string",
          "minLength": 1
        },
        "epistemic": {
          "type": "string",
          "enum": [
            "OBSERVED",
            "COMPUTED",
            "MODELLED",
            "PROVISIONAL",
            "DEGRADED",
            "NO_DATA",
            "INSUFFICIENT_EVIDENCE",
            "NOT_APPLICABLE",
            "WITHHELD",
            "SUPERSEDED",
            "UNKNOWN"
          ]
        },
        "detail": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "ResourceObservation": {
      "type": "object",
      "required": [
        "resourceId",
        "resourceClass",
        "adapterId",
        "observedVersion",
        "configDigest",
        "present",
        "alive",
        "observationTime",
        "evidenceDigest",
        "claim"
      ],
      "properties": {
        "resourceId": {
          "$ref": "#/$defs/Uni"
        },
        "resourceClass": {
          "type": "string",
          "minLength": 1
        },
        "adapterId": {
          "type": "string",
          "minLength": 1
        },
        "observedVersion": {
          "type": "string",
          "minLength": 1
        },
        "configDigest": {
          "$ref": "#/$defs/Digest"
        },
        "executionState": {
          "type": "string"
        },
        "present": {
          "type": "boolean"
        },
        "alive": {
          "type": "boolean"
        },
        "sandboxRelativeIdentity": {
          "type": "string"
        },
        "observationTime": {
          "type": "string",
          "format": "date-time"
        },
        "evidenceDigest": {
          "$ref": "#/$defs/Digest"
        },
        "verificationResult": {
          "type": "string"
        },
        "claim": {
          "type": "string",
          "minLength": 1
        }
      },
      "additionalProperties": false
    }
  }
}