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

Plan

Source schemas/json/plan.schema.json

On this page
  1. Properties
  2. Positive fixtures
  3. Negative fixtures
  4. Mappings to open standards
  5. Schema

Immutable governed deployment proposal produced by the System Pack compiler. Planning is not execution, acceptance, readiness, or field observation.

FieldValue
Identifierurn:obsp:schema:v3.1:plan
Dialecthttps://json-schema.org/draft/2020-12/schema
Used by functionsOrchestrate

Properties

PropertyRequiredTypeDescription
schemaVersionyesreference
apiVersionyesconstant
planUniyesreference
planVersionyesstring
compilerVersionyesstring
sourceyesobject
contextyesobject
authorityCutyesobject
providersyesarray
topologyyesobject
capabilitiesyesarray
servicesyesarray
resourcesyesobject
networkyesobject
datayesobject
trustyesobject
placementnoarray
lifecycleyesobject
diagnosticsyesarray
proofObligationsnoarray
integrityyesobject
executionPermittedyesconstant
extensionsnoreference

Positive fixtures

  • plan.sha3-digest.valid.json
  • plan.valid.json

Negative fixtures

  • plan.digest-single-char-algorithm.json: plan digest algorithm prefix follows the shared Digest pattern (G-ID-1)
  • plan.digest-uppercase-algorithm.json: plan digest algorithm is lowercase (G-ID-1)
  • plan.digest-without-algorithm.json: plan digests are algorithm-prefixed (G-ID-1)
  • plan.execution-true.json: const at /executionPermitted: False was expected

Mappings to open standards

A mapping to a standard, never a conformance statement.

  • maps to NS-10 Policies and clauses (relation REL-NS-10)

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:obsp:schema:v3.1:plan",
  "title": "Plan",
  "description": "Immutable governed deployment proposal produced by the System Pack compiler. Planning is not execution, acceptance, readiness, or field observation.",
  "type": "object",
  "required": [
    "schemaVersion",
    "apiVersion",
    "planUni",
    "planVersion",
    "compilerVersion",
    "source",
    "context",
    "authorityCut",
    "providers",
    "topology",
    "capabilities",
    "services",
    "resources",
    "network",
    "data",
    "trust",
    "lifecycle",
    "diagnostics",
    "integrity",
    "executionPermitted"
  ],
  "properties": {
    "schemaVersion": {
      "$ref": "#/$defs/SchemaVersion"
    },
    "apiVersion": {
      "const": "obsp/plan/v3.1"
    },
    "planUni": {
      "$ref": "#/$defs/Uni"
    },
    "planVersion": {
      "type": "string",
      "minLength": 1
    },
    "compilerVersion": {
      "type": "string",
      "minLength": 1
    },
    "source": {
      "type": "object",
      "required": [
        "systemPackName",
        "systemPackVersion",
        "sourceArtifactDigest",
        "canonicalNormalizedSourceDigest"
      ],
      "properties": {
        "systemPackName": {
          "type": "string",
          "minLength": 1
        },
        "systemPackVersion": {
          "type": "string",
          "minLength": 1
        },
        "ownerUni": {
          "$ref": "#/$defs/Uni"
        },
        "sourceArtifactDigest": {
          "$ref": "#/$defs/Digest"
        },
        "canonicalNormalizedSourceDigest": {
          "$ref": "#/$defs/Digest"
        }
      },
      "additionalProperties": false
    },
    "context": {
      "type": "object",
      "required": [
        "tenantUni",
        "workspaceUni",
        "purpose",
        "jurisdictionContext"
      ],
      "properties": {
        "tenantUni": {
          "$ref": "#/$defs/Uni"
        },
        "workspaceUni": {
          "$ref": "#/$defs/Uni"
        },
        "purpose": {
          "$ref": "#/$defs/NonEmptyString"
        },
        "jurisdictionContext": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "chronotopeUni": {
          "$ref": "#/$defs/Uni"
        },
        "dataCutUni": {
          "$ref": "#/$defs/Uni"
        },
        "requestId": {
          "type": "string",
          "minLength": 1
        }
      },
      "additionalProperties": false
    },
    "authorityCut": {
      "type": "object",
      "required": [
        "authorityCutId",
        "deploymentProfileId",
        "deploymentProfileVersion"
      ],
      "properties": {
        "authorityCutId": {
          "type": "string",
          "minLength": 1
        },
        "deploymentProfileId": {
          "type": "string",
          "minLength": 1
        },
        "deploymentProfileVersion": {
          "type": "string",
          "minLength": 1
        },
        "capabilityRegistryVersion": {
          "type": "string",
          "minLength": 1
        },
        "interopCompatibilityCut": {
          "type": "string",
          "minLength": 1
        },
        "policyDigest": {
          "$ref": "#/$defs/Digest"
        }
      },
      "additionalProperties": false
    },
    "providers": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "providerId",
          "artifactDigest",
          "admissionUni",
          "capabilityOrProfile",
          "jurisdictionContext",
          "purpose",
          "qualificationRevision",
          "replacementPath",
          "exitDataExport"
        ],
        "properties": {
          "providerId": {
            "type": "string",
            "minLength": 1
          },
          "artifactDigest": {
            "$ref": "#/$defs/Digest"
          },
          "admissionUni": {
            "$ref": "#/$defs/Uni"
          },
          "qualificationRevision": {
            "type": "string",
            "minLength": 1
          },
          "capabilityOrProfile": {
            "type": "string",
            "minLength": 1
          },
          "jurisdictionContext": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "purpose": {
            "type": "string",
            "minLength": 1
          },
          "replacementClass": {
            "type": "string"
          },
          "replacementPath": {
            "type": "string",
            "minLength": 1
          },
          "exitDataExport": {
            "type": "string",
            "minLength": 1
          },
          "evidenceRefs": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/EvidenceRef"
            }
          }
        },
        "additionalProperties": false
      }
    },
    "topology": {
      "type": "object",
      "required": [
        "kind",
        "nodeCount",
        "roles",
        "quorumClaim"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "minLength": 1
        },
        "nodeCount": {
          "type": "integer",
          "minimum": 1
        },
        "nodeCountMin": {
          "type": "integer",
          "minimum": 1
        },
        "nodeCountMax": {
          "type": "integer",
          "minimum": 1
        },
        "roles": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "role",
              "count"
            ],
            "properties": {
              "role": {
                "type": "string"
              },
              "count": {
                "type": "integer",
                "minimum": 1
              }
            },
            "additionalProperties": false
          }
        },
        "quorumClaim": {
          "const": "NONE"
        },
        "siteCells": {
          "type": "integer",
          "minimum": 1
        },
        "clusterMode": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "capabilityId",
          "required",
          "resolved"
        ],
        "properties": {
          "capabilityId": {
            "type": "string",
            "minLength": 1
          },
          "required": {
            "type": "boolean"
          },
          "resolved": {
            "type": "boolean"
          },
          "version": {
            "type": "string"
          },
          "interfaceIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "providerId": {
            "type": "string"
          },
          "constraints": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean"
              ]
            }
          },
          "dependencies": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      }
    },
    "services": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "serviceId",
          "role"
        ],
        "properties": {
          "serviceId": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "dependencies": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "placementConstraints": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      }
    },
    "resources": {
      "type": "object",
      "required": [
        "evaluation"
      ],
      "properties": {
        "evaluation": {
          "enum": [
            "SATISFIED",
            "INSUFFICIENT",
            "UNKNOWN",
            "UNAVAILABLE"
          ]
        },
        "requests": {
          "type": "object",
          "additionalProperties": {
            "type": [
              "string",
              "number",
              "boolean"
            ]
          }
        },
        "projectionDigest": {
          "$ref": "#/$defs/Digest"
        }
      },
      "additionalProperties": false
    },
    "network": {
      "type": "object",
      "required": [
        "evaluation"
      ],
      "properties": {
        "evaluation": {
          "enum": [
            "SATISFIED",
            "UNSATISFIED",
            "UNKNOWN"
          ]
        },
        "connectivityIntent": {
          "type": "string"
        },
        "latencyConstraintMs": {
          "type": "number"
        },
        "timingRequirement": {
          "type": "string"
        },
        "isolation": {
          "type": "string"
        },
        "degradedOperation": {
          "type": "string"
        },
        "disconnectedOperation": {
          "type": "string"
        },
        "projectionDigest": {
          "$ref": "#/$defs/Digest"
        }
      },
      "additionalProperties": false
    },
    "data": {
      "type": "object",
      "required": [
        "evaluation"
      ],
      "properties": {
        "evaluation": {
          "enum": [
            "SATISFIED",
            "RIGHTS_MISSING",
            "LOCALITY_CONFLICT",
            "UNKNOWN"
          ]
        },
        "sources": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "locality": {
          "type": "string"
        },
        "retention": {
          "type": "string"
        },
        "egress": {
          "type": "string"
        },
        "computeToData": {
          "type": "boolean"
        },
        "projectionDigest": {
          "$ref": "#/$defs/Digest"
        }
      },
      "additionalProperties": false
    },
    "trust": {
      "type": "object",
      "required": [
        "evaluation",
        "prerequisites"
      ],
      "properties": {
        "evaluation": {
          "enum": [
            "SATISFIED",
            "MISSING",
            "UNKNOWN"
          ]
        },
        "prerequisites": {
          "type": "object",
          "required": [
            "identity",
            "attestation",
            "secrets",
            "updateAuthorization",
            "rollbackCapability",
            "evidence"
          ],
          "properties": {
            "identity": {
              "type": "boolean"
            },
            "attestation": {
              "type": "boolean"
            },
            "secrets": {
              "type": "boolean"
            },
            "updateAuthorization": {
              "type": "boolean"
            },
            "rollbackCapability": {
              "type": "boolean"
            },
            "evidence": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "placement": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "nodeRole",
          "services"
        ],
        "properties": {
          "nodeRole": {
            "type": "string"
          },
          "services": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rank": {
            "type": "integer",
            "minimum": 0
          }
        },
        "additionalProperties": false
      }
    },
    "lifecycle": {
      "type": "object",
      "required": [
        "updateConstraint",
        "rollbackRequired",
        "exitRequired"
      ],
      "properties": {
        "updateConstraint": {
          "type": "string"
        },
        "rollbackRequired": {
          "type": "boolean"
        },
        "exitRequired": {
          "type": "boolean"
        },
        "correctionLineage": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "diagnostics": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "code",
          "severity",
          "phase",
          "blocking",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "severity": {
            "enum": [
              "INFO",
              "WARNING",
              "ERROR"
            ]
          },
          "phase": {
            "type": "string"
          },
          "blocking": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "evidenceRefs": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/EvidenceRef"
            }
          }
        },
        "additionalProperties": false
      }
    },
    "proofObligations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "integrity": {
      "type": "object",
      "required": [
        "inputSetDigest",
        "planDigest"
      ],
      "properties": {
        "inputSetDigest": {
          "$ref": "#/$defs/Digest"
        },
        "policyDigest": {
          "$ref": "#/$defs/Digest"
        },
        "planDigest": {
          "$ref": "#/$defs/Digest"
        },
        "correctionOf": {
          "$ref": "#/$defs/Uni"
        },
        "supersedes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Uni"
          }
        }
      },
      "additionalProperties": false
    },
    "executionPermitted": {
      "const": false
    },
    "extensions": {
      "$ref": "#/$defs/Extensions"
    }
  },
  "$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-z0-9._-]{1,31}:[A-Fa-f0-9]{32,128}$",
      "description": "Algorithm-prefixed hexadecimal digest"
    },
    "NonEmptyString": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048
    },
    "EvidenceRef": {
      "type": "object",
      "required": [
        "uri",
        "digest"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096
        },
        "digest": {
          "$ref": "#/$defs/Digest"
        },
        "kind": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "recordedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "Extensions": {
      "type": "object",
      "propertyNames": {
        "pattern": "^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$"
      },
      "additionalProperties": true
    },
    "SchemaVersion": {
      "type": "string",
      "const": "3.1.0"
    }
  },
  "additionalProperties": false
}