{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.demiton.io/registers/compliance_state/v1.json",
  "title": "compliance_state contract v1",
  "type": "object",
  "required": [
    "as_of",
    "cadence",
    "declared",
    "fact_key",
    "is_active",
    "jurisdictions",
    "max_contract_value",
    "obligation_key",
    "record_kind",
    "requirement_id",
    "scheme_key",
    "shelf_type",
    "status",
    "subject_entity_id",
    "title"
  ],
  "properties": {
    "note": {
      "type": "string",
      "description": "free-text assessor note",
      "x-demiton-requiredness": "optional"
    },
    "as_of": {
      "type": "string",
      "description": "when the standing was last asserted by the org — the read-time clock for every derived status",
      "x-demiton-requiredness": "required",
      "format": "date-time",
      "x-demiton-type": "datetime"
    },
    "title": {
      "type": "string",
      "description": "the human name of the obligation/requirement (for a scheme, its catalog label)",
      "x-demiton-requiredness": "required"
    },
    "source": {
      "type": "string",
      "description": "provenance of the obligation row (`template` today)",
      "x-demiton-requiredness": "optional"
    },
    "status": {
      "type": "string",
      "description": "the standing's own state; today `scheme.status` defaults `\"active\"` (`:245`) and `requirement.status` is free-ish with `not_assessed` expressed as absence (`:1523-1528`)",
      "x-demiton-requiredness": "required"
    },
    "cadence": {
      "type": "string",
      "description": "`triennial` \\",
      "x-demiton-requiredness": "required",
      "x-demiton-unit": "`biennial` \\"
    },
    "declared": {
      "type": "boolean",
      "description": "self-declared by the org, as opposed to evidenced",
      "x-demiton-requiredness": "required"
    },
    "fact_key": {
      "type": "string",
      "description": "the per-record key inside the kind: `profile`, `scheme:{scheme_key}`, `obligation:{obligation_key}`, the requirement key",
      "x-demiton-requiredness": "required"
    },
    "next_due": {
      "type": "string",
      "description": "when the obligation next falls due",
      "x-demiton-requiredness": "optional",
      "format": "date",
      "x-demiton-type": "date"
    },
    "is_active": {
      "type": "boolean",
      "description": "whether the org still carries the obligation (inactive rows are kept visible, never retired)",
      "x-demiton-requiredness": "required"
    },
    "expires_at": {
      "type": "string",
      "description": "when the holding or the next evidence obligation lapses",
      "x-demiton-requiredness": "optional",
      "format": "date",
      "x-demiton-type": "date"
    },
    "scheme_key": {
      "type": "string",
      "description": "the catalog scheme/panel this row belongs to (`nps`, `iso45001`, …, or `panel:{key}`)",
      "x-demiton-requiredness": "required"
    },
    "shelf_type": {
      "type": "string",
      "description": "the concrete pattern instance `compliance_state:{record_kind}:{fact_key}`; today the **only** carrier of the record kind and the per-record key",
      "x-demiton-requiredness": "required"
    },
    "description": {
      "type": "string",
      "description": "what the obligation requires",
      "x-demiton-requiredness": "optional"
    },
    "evidence_id": {
      "type": "integer",
      "description": "the evidence artefact backing the adherence claim",
      "x-demiton-requiredness": "optional"
    },
    "record_kind": {
      "type": "string",
      "description": "`obligation` \\",
      "x-demiton-requiredness": "required",
      "x-demiton-unit": "`scheme` \\"
    },
    "valid_until": {
      "type": "string",
      "description": "supersession stamp; the live row is `valid_until IS NULL`",
      "x-demiton-requiredness": "optional",
      "format": "date-time",
      "x-demiton-type": "datetime"
    },
    "completed_at": {
      "type": "string",
      "description": "when the org finished the standing wizard",
      "x-demiton-requiredness": "optional",
      "format": "date-time",
      "x-demiton-type": "datetime"
    },
    "jurisdictions": {
      "type": "array",
      "description": "the jurisdictions the org declares it operates/contracts in",
      "x-demiton-requiredness": "required"
    },
    "effective_from": {
      "type": "string",
      "description": "the date the declared standing took effect",
      "x-demiton-requiredness": "optional",
      "format": "date",
      "x-demiton-type": "date"
    },
    "obligation_key": {
      "type": "string",
      "description": "stable key for a recurring obligation: catalog `id` for a template, `custom:{slug}` for a user-added one",
      "x-demiton-requiredness": "required"
    },
    "requirement_id": {
      "type": "string",
      "description": "the clause/scheme-requirement identifier being adhered to",
      "x-demiton-requiredness": "required"
    },
    "classifications": {
      "type": "object",
      "description": "the declared levels on one scheme, e.g. the NPS `A`/`B`/`F`/`R` level set",
      "x-demiton-requiredness": "optional"
    },
    "last_completed_at": {
      "type": "string",
      "description": "when it was last satisfied",
      "x-demiton-requiredness": "optional",
      "format": "date",
      "x-demiton-type": "date"
    },
    "subject_entity_id": {
      "type": "integer",
      "description": "the org the standing belongs to; the shared subject of all four kinds",
      "x-demiton-requiredness": "required"
    },
    "max_contract_value": {
      "type": "string",
      "description": "the largest contract value the org declares it can take",
      "x-demiton-requiredness": "required"
    },
    "contract_value_range": {
      "type": "string",
      "description": "the org's declared typical contract value range",
      "x-demiton-requiredness": "optional"
    }
  },
  "x-demiton-register-type": "compliance_state",
  "x-demiton-contract-version": "1.0.3",
  "x-demiton-store": "tenant",
  "x-demiton-axes": [
    {
      "axis": "legal_entity",
      "requirement": "optional",
      "role": "context"
    }
  ],
  "x-demiton-measures": [],
  "x-demiton-provenance": {
    "standards": [
      {
        "code": "AS/NZS ISO 14001:2016",
        "title": "Environmental management systems - Requirements with guidance for use",
        "access": "paywalled_secondary",
        "region": "Australia",
        "edition": "2016 (international 2015 superseded; 2026 adoption unverified)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "AS/NZS ISO 45001:2018",
        "title": "Occupational health and safety management systems - Requirements with guidance for use",
        "access": "paywalled_secondary",
        "clause": "6.1.2, 7.2, 8.1, 10.2 (per digest)",
        "region": "Australia",
        "edition": "2018 incorporating Amd 1:2024 (listing)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "AS/NZS ISO 9001:2016",
        "title": "Quality management systems - Requirements",
        "access": "paywalled_secondary",
        "clause": "7.5, 7.1.5, 7.2, 8.7, 10.2",
        "region": "Australia",
        "edition": "2016",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Austroads NPS",
        "title": "National Prequalification System for Civil (Road and Bridge) Construction",
        "access": "public_summary",
        "region": "Australia",
        "edition": "2025 Edition",
        "checked_on": "2026-09-14"
      },
      {
        "code": "CAL (NT)",
        "title": "Contractor Accreditation Limited accreditation",
        "access": "public_summary",
        "region": "Australia",
        "edition": "current",
        "checked_on": "2026-09-14"
      },
      {
        "code": "JAS-ANZ accreditation",
        "title": "Joint Accreditation System of Australia and New Zealand",
        "access": "public_summary",
        "region": "Australia",
        "edition": "current",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Occupational Health and Safety Act 2004 (Vic)",
        "title": "Occupational Health and Safety Act 2004 (Vic)",
        "access": "public_summary",
        "region": "Australia",
        "edition": "current",
        "checked_on": "2026-09-14"
      },
      {
        "code": "ISO 14001:2026",
        "title": "Environmental management systems - Requirements with guidance for use",
        "access": "paywalled_secondary",
        "region": "International",
        "edition": "2026",
        "checked_on": "2026-09-14"
      },
      {
        "code": "ISO 45001:2018",
        "title": "Occupational health and safety management systems - Requirements with guidance for use",
        "access": "paywalled_secondary",
        "region": "International",
        "edition": "2018 (Amd 1:2024)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "ISO 9001:2015",
        "title": "Quality management systems - Requirements",
        "access": "paywalled_secondary",
        "region": "International",
        "edition": "2015 (2026 expected)",
        "checked_on": "2026-09-14"
      }
    ]
  },
  "description": "Current compliance status for one area of a legal entity: a scheme, obligation or requirement.",
  "x-demiton-contract-url": "https://docs.demiton.io/registers/compliance_state/",
  "x-demiton-register-catalog": "https://docs.demiton.io/concepts/register-catalog"
}