{
  "manifest": {
    "kind": "mdbase.type-pack",
    "id": "mdbase.runtime.standard",
    "version": "0.2.0",
    "name": "mdbase durable runtime standard library",
    "description": "Runtime record implementations and inspectable built-in event/action contracts.",
    "resources": [
      {
        "kind": "schema",
        "source": "schemas/mdbase.runtime.workflow/1.0.0.schema.json",
        "target": "schemas/mdbase.runtime.workflow/1.0.0.schema.json",
        "digest": "sha256:e8f413663a2911be5a51b1f7aefae80e9e42ea5c729f04d6ccfd0bc4eb1965ea"
      },
      {
        "kind": "contract",
        "source": "contracts/mdbase.runtime.workflow/1.0.0.md",
        "target": "_contracts/mdbase.runtime.workflow/1.0.0.md",
        "digest": "sha256:7cf8ed016bf6232d9c1abc8d8bb9bb25fd2af1ffa6c6094317aa65baf3c31049"
      },
      {
        "kind": "type",
        "source": "types/mdbase-runtime/workflow.md",
        "target": "_types/workflow.md",
        "digest": "sha256:15e80fe618bfa4bf430225377d9aae50ec1e1531be217b0c2ba74da3dee747e7"
      },
      {
        "kind": "schema",
        "source": "schemas/mdbase.runtime.policy/1.0.0.schema.json",
        "target": "schemas/mdbase.runtime.policy/1.0.0.schema.json",
        "digest": "sha256:4d1d2cb59df9991dcc47e269b21dab9e71c1628b99f71e5d9ff5948ba6f7bc45"
      },
      {
        "kind": "contract",
        "source": "contracts/mdbase.runtime.policy/1.0.0.md",
        "target": "_contracts/mdbase.runtime.policy/1.0.0.md",
        "digest": "sha256:319a9bd4ca62a246871ee52e0ef0250a82c240cb14a95f88e4a505ad04450300"
      },
      {
        "kind": "type",
        "source": "types/mdbase-runtime/policy.md",
        "target": "_types/policy.md",
        "digest": "sha256:5cd588138916c792068bfa6ec43ceada81b14921d68cfaa582be8938e27b9cdb"
      },
      {
        "kind": "schema",
        "source": "schemas/mdbase.runtime.provider-registration/1.0.0.schema.json",
        "target": "schemas/mdbase.runtime.provider-registration/1.0.0.schema.json",
        "digest": "sha256:4cfd9649863835163baee7542b601991c18b21b75c63b48324383da674a1f797"
      },
      {
        "kind": "contract",
        "source": "contracts/mdbase.runtime.provider-registration/1.0.0.md",
        "target": "_contracts/mdbase.runtime.provider-registration/1.0.0.md",
        "digest": "sha256:97d157efaeb311745fc84e2cbe01e8147aaf44109384090c154527b68838d766"
      },
      {
        "kind": "type",
        "source": "types/mdbase-runtime/provider-registration.md",
        "target": "_types/provider-registration.md",
        "digest": "sha256:f5f8189553abfbb947d6bec17cfc3d5c6e3ab22a07e7a1b657a92efbe65eefb7"
      },
      {
        "kind": "schema",
        "source": "schemas/mdbase.runtime.capability-grant/1.0.0.schema.json",
        "target": "schemas/mdbase.runtime.capability-grant/1.0.0.schema.json",
        "digest": "sha256:14fcd3ad1fbe3d3c360024e869d8a52ec047aa8b2dd37755c63e2412535f50ca"
      },
      {
        "kind": "contract",
        "source": "contracts/mdbase.runtime.capability-grant/1.0.0.md",
        "target": "_contracts/mdbase.runtime.capability-grant/1.0.0.md",
        "digest": "sha256:1cd3a2ff5fdc9294f766e538c371ed278ad4c54452480ba6fcc2870be08b47a1"
      },
      {
        "kind": "type",
        "source": "types/mdbase-runtime/capability-grant.md",
        "target": "_types/capability-grant.md",
        "digest": "sha256:8856057d1329e2fdd715d6b8ca3083e29f3c1c9fe3265cd47694d92effffd344"
      },
      {
        "kind": "schema",
        "source": "schemas/mdbase.runtime.run/1.0.0.schema.json",
        "target": "schemas/mdbase.runtime.run/1.0.0.schema.json",
        "digest": "sha256:0add08b601ebd15b80dc14812fc7fbf9c1b5bd8415daed7b7d566e33741d91c3"
      },
      {
        "kind": "contract",
        "source": "contracts/mdbase.runtime.run/1.0.0.md",
        "target": "_contracts/mdbase.runtime.run/1.0.0.md",
        "digest": "sha256:7e46270c951e6634fe25519dff10523652365f8adf30b034f01e29e1ca48cadb"
      },
      {
        "kind": "type",
        "source": "types/mdbase-runtime/run.md",
        "target": "_types/run.md",
        "digest": "sha256:493c29c92701e733822cc3b3a0acecd845242c1e62c233b6cbe2a847c9b063ed"
      },
      {
        "kind": "schema",
        "source": "schemas/mdbase.runtime.action-attempt/1.0.0.schema.json",
        "target": "schemas/mdbase.runtime.action-attempt/1.0.0.schema.json",
        "digest": "sha256:71c8cb274daa63ed8b428f474ec07d0053e65e06f42354cb7f36072cb136506c"
      },
      {
        "kind": "contract",
        "source": "contracts/mdbase.runtime.action-attempt/1.0.0.md",
        "target": "_contracts/mdbase.runtime.action-attempt/1.0.0.md",
        "digest": "sha256:04c1bf55580d0d280d2be645c56177da25c2d0129f8fa71def7d5f96cf0ea629"
      },
      {
        "kind": "type",
        "source": "types/mdbase-runtime/action-attempt.md",
        "target": "_types/action-attempt.md",
        "digest": "sha256:2439c819f16f599c6859eaf3f2052ca85856d7a032b1f211e8183eb44c7247d0"
      },
      {
        "kind": "schema",
        "source": "schemas/mdbase.runtime.checkpoint/1.0.0.schema.json",
        "target": "schemas/mdbase.runtime.checkpoint/1.0.0.schema.json",
        "digest": "sha256:0c4a550356b974814690bb2e5db1902c6c3cff13be1ea69a139e2e43781ecf2c"
      },
      {
        "kind": "contract",
        "source": "contracts/mdbase.runtime.checkpoint/1.0.0.md",
        "target": "_contracts/mdbase.runtime.checkpoint/1.0.0.md",
        "digest": "sha256:6413676d7482a71b31cbe4abf8c5a543a54a530ef62f669f8ef8e21bcc6bc237"
      },
      {
        "kind": "type",
        "source": "types/mdbase-runtime/checkpoint.md",
        "target": "_types/checkpoint.md",
        "digest": "sha256:3800feba41ce4d729703e8cd92c3e7bc4a826cccd37063c1ba62b7a9790bee76"
      },
      {
        "kind": "schema",
        "source": "schemas/mdbase.runtime.timer/1.0.0.schema.json",
        "target": "schemas/mdbase.runtime.timer/1.0.0.schema.json",
        "digest": "sha256:fd6fa1b8fa7a3e782160d1b0e1399f15392230d1560393e840e7869c7d407aac"
      },
      {
        "kind": "contract",
        "source": "contracts/mdbase.runtime.timer/1.0.0.md",
        "target": "_contracts/mdbase.runtime.timer/1.0.0.md",
        "digest": "sha256:0500a421e81eef09c37bc4ef559e3805843e87a6e1b2cf2a393da4d76d4384fc"
      },
      {
        "kind": "type",
        "source": "types/mdbase-runtime/timer.md",
        "target": "_types/timer.md",
        "digest": "sha256:eb6ac4d28f3fe5c5f507652dda76cf7bb6eb99e38eb1d6d87cdd7418ac594cde"
      },
      {
        "kind": "schema",
        "source": "schemas/mdbase.runtime.diagnostic/1.0.0.schema.json",
        "target": "schemas/mdbase.runtime.diagnostic/1.0.0.schema.json",
        "digest": "sha256:b4d78f97b4feadc6c1e79b214fac20f0c305609e20f152f878d23d5d4e370935"
      },
      {
        "kind": "contract",
        "source": "contracts/mdbase.runtime.diagnostic/1.0.0.md",
        "target": "_contracts/mdbase.runtime.diagnostic/1.0.0.md",
        "digest": "sha256:2e7379de9ceefa6435e9c66a71f4292e4805e8038ed6496c83dad946900267f6"
      },
      {
        "kind": "type",
        "source": "types/mdbase-runtime/diagnostic.md",
        "target": "_types/diagnostic.md",
        "digest": "sha256:728996e9b0ab2803ab81a856e2c3af7c08202765fc263c536c037b1e586ab055"
      },
      {
        "kind": "schema",
        "source": "schemas/mdbase.runtime.dead-letter/1.0.0.schema.json",
        "target": "schemas/mdbase.runtime.dead-letter/1.0.0.schema.json",
        "digest": "sha256:1f866b1dfca061571a8dc3a87748fd9deb6268a6674fe5eaf764e8701d32fee9"
      },
      {
        "kind": "contract",
        "source": "contracts/mdbase.runtime.dead-letter/1.0.0.md",
        "target": "_contracts/mdbase.runtime.dead-letter/1.0.0.md",
        "digest": "sha256:737d08bad6662e087c3393f6f17d24374f258d60b41112a3f864cb5138af8edd"
      },
      {
        "kind": "type",
        "source": "types/mdbase-runtime/dead-letter.md",
        "target": "_types/dead-letter.md",
        "digest": "sha256:46290341f04a369598a273f16275ee18d6e0a35c8e691b829d7b49ae920b5aab"
      },
      {
        "kind": "schema",
        "source": "schemas/mdbase.record.created/1.0.0.schema.json",
        "target": "schemas/mdbase.record.created/1.0.0.schema.json",
        "digest": "sha256:8d28a2a32083ab9a55f53ad1a619da47022fa3ef291191c6c2e5a9848ce59fcc"
      },
      {
        "kind": "contract",
        "source": "contracts/mdbase.record.created/1.0.0.md",
        "target": "_contracts/mdbase.record.created/1.0.0.md",
        "digest": "sha256:4c157f94e63d1f4fb1a74da640e03264ccb6c78cfa9f88ddb71b09c8bd6d1d44"
      },
      {
        "kind": "schema",
        "source": "schemas/mdbase.record.modified/1.0.0.schema.json",
        "target": "schemas/mdbase.record.modified/1.0.0.schema.json",
        "digest": "sha256:1ecda771bdeb4b6cea32b81ee344257005b49c4dcf71cdf95a1577a7459b74b0"
      },
      {
        "kind": "contract",
        "source": "contracts/mdbase.record.modified/1.0.0.md",
        "target": "_contracts/mdbase.record.modified/1.0.0.md",
        "digest": "sha256:2f670ef18bf7330fbba73861f41889ee946b33644074ca7366e88913f6e4d88a"
      },
      {
        "kind": "schema",
        "source": "schemas/mdbase.record.deleted/1.0.0.schema.json",
        "target": "schemas/mdbase.record.deleted/1.0.0.schema.json",
        "digest": "sha256:b5a1fa20b6526ea8d857e03a2eebfc8b2ed126b1c4e7ca2d9735c59ddbeb7206"
      },
      {
        "kind": "contract",
        "source": "contracts/mdbase.record.deleted/1.0.0.md",
        "target": "_contracts/mdbase.record.deleted/1.0.0.md",
        "digest": "sha256:cb4f4a09f9f9b1f7f5e2207de0074ce02fd89008c08386626fd964a29299f956"
      },
      {
        "kind": "schema",
        "source": "schemas/mdbase.record.renamed/1.0.0.schema.json",
        "target": "schemas/mdbase.record.renamed/1.0.0.schema.json",
        "digest": "sha256:11546c9497c9700ed48b2f634be8001a009b7cea92f19584ed8b8aafc783e990"
      },
      {
        "kind": "contract",
        "source": "contracts/mdbase.record.renamed/1.0.0.md",
        "target": "_contracts/mdbase.record.renamed/1.0.0.md",
        "digest": "sha256:b6c507198379ba48408c9b48161a1c22d46dad2d291691af449167618484bb4c"
      },
      {
        "kind": "schema",
        "source": "schemas/mdbase.runtime.timer.fired/1.0.0.schema.json",
        "target": "schemas/mdbase.runtime.timer.fired/1.0.0.schema.json",
        "digest": "sha256:986cdde8c88a6ff363062d056101141c436271608e565d2a02f250cd74853f74"
      },
      {
        "kind": "contract",
        "source": "contracts/mdbase.runtime.timer.fired/1.0.0.md",
        "target": "_contracts/mdbase.runtime.timer.fired/1.0.0.md",
        "digest": "sha256:9381a2c6778a3268758ac235e3c3b66991a769fa8e19f7303d4404b1e7e62bc6"
      },
      {
        "kind": "schema",
        "source": "schemas/mdbase.runtime.run.cancel/1.0.0.output.schema.json",
        "target": "schemas/mdbase.runtime.run.cancel/1.0.0.output.schema.json",
        "digest": "sha256:88cbccbfe0e4d087b67159a2cc36cc6ec92b1ea7e849a5c6a82e074f06b270bb"
      },
      {
        "kind": "schema",
        "source": "schemas/mdbase.runtime.run.cancel/1.0.0.schema.json",
        "target": "schemas/mdbase.runtime.run.cancel/1.0.0.schema.json",
        "digest": "sha256:21dce4d30fd9848e43610c26990fd208476cdb27c5b489439f632384b4a76675"
      },
      {
        "kind": "contract",
        "source": "contracts/mdbase.runtime.run.cancel/1.0.0.md",
        "target": "_contracts/mdbase.runtime.run.cancel/1.0.0.md",
        "digest": "sha256:949f039334cfc3f096beb870419baa08c3b40679b184e9849f9330a34a6f524d"
      }
    ]
  },
  "resources": [
    {
      "source": "schemas/mdbase.runtime.workflow/1.0.0.schema.json",
      "document": "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"title\": \"mdbase durable runtime workflow\",\n  \"type\": \"object\",\n  \"required\": [\n    \"type\",\n    \"id\",\n    \"version\",\n    \"name\",\n    \"enabled\",\n    \"triggers\",\n    \"steps\"\n  ],\n  \"properties\": {\n    \"type\": {\n      \"const\": \"runtime_workflow\"\n    },\n    \"id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"version\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"name\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"description\": {\n      \"type\": \"string\"\n    },\n    \"enabled\": {\n      \"type\": \"boolean\"\n    },\n    \"requires\": {\n      \"$ref\": \"#/$defs/requires\"\n    },\n    \"vars\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {}\n    },\n    \"triggers\": {\n      \"type\": \"array\",\n      \"minItems\": 1,\n      \"items\": {\n        \"$ref\": \"#/$defs/trigger\"\n      }\n    },\n    \"steps\": {\n      \"type\": \"array\",\n      \"minItems\": 1,\n      \"items\": {\n        \"$ref\": \"#/$defs/step\"\n      }\n    },\n    \"run\": {\n      \"$ref\": \"#/$defs/runPolicy\"\n    }\n  },\n  \"patternProperties\": {\n    \"^x-[A-Za-z0-9._:-]+$\": true\n  },\n  \"additionalProperties\": false,\n  \"$defs\": {\n    \"identifier\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"semanticVersion\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"dateTime\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"contractRequirement\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"exactContractReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\",\n        \"digest\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"identity\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"application\",\n        \"implementation\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"providerSelector\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false,\n      \"minProperties\": 1\n    },\n    \"expression\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$expr\"\n      ],\n      \"properties\": {\n        \"$expr\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"requires\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"capabilities\": {\n          \"type\": \"array\",\n          \"uniqueItems\": true,\n          \"items\": {\n            \"type\": \"string\",\n            \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"trigger\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"event\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"event\": {\n          \"$ref\": \"#/$defs/contractRequirement\"\n        },\n        \"if\": {\n          \"type\": \"object\",\n          \"required\": [\n            \"$expr\"\n          ],\n          \"properties\": {\n            \"$expr\": {\n              \"type\": \"string\",\n              \"minLength\": 1\n            }\n          },\n          \"additionalProperties\": false\n        },\n        \"debounce\": {\n          \"$ref\": \"#/$defs/duration\"\n        },\n        \"minimum_interval\": {\n          \"$ref\": \"#/$defs/duration\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"step\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"action\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"action\": {\n          \"$ref\": \"#/$defs/contractRequirement\"\n        },\n        \"provider\": {\n          \"$ref\": \"#/$defs/providerSelector\"\n        },\n        \"requires\": {\n          \"$ref\": \"#/$defs/requires\"\n        },\n        \"if\": {\n          \"type\": \"object\",\n          \"required\": [\n            \"$expr\"\n          ],\n          \"properties\": {\n            \"$expr\": {\n              \"type\": \"string\",\n              \"minLength\": 1\n            }\n          },\n          \"additionalProperties\": false\n        },\n        \"input\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {}\n        },\n        \"for_each\": {\n          \"type\": \"object\",\n          \"required\": [\n            \"items\"\n          ],\n          \"properties\": {\n            \"items\": {},\n            \"as\": {\n              \"type\": \"string\",\n              \"pattern\": \"^[A-Za-z_][A-Za-z0-9_]*$\"\n            }\n          },\n          \"patternProperties\": {\n            \"^x-[A-Za-z0-9._:-]+$\": true\n          },\n          \"additionalProperties\": false\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"duration\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)(ms|s|m|h|d)$\"\n    },\n    \"runPolicy\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"idempotency\": {\n          \"type\": \"object\",\n          \"required\": [\n            \"key\"\n          ],\n          \"properties\": {\n            \"key\": {}\n          },\n          \"patternProperties\": {\n            \"^x-[A-Za-z0-9._:-]+$\": true\n          },\n          \"additionalProperties\": false\n        },\n        \"concurrency\": {\n          \"type\": \"object\",\n          \"required\": [\n            \"policy\"\n          ],\n          \"properties\": {\n            \"group\": {},\n            \"policy\": {\n              \"enum\": [\n                \"skip\",\n                \"queue\",\n                \"replace\",\n                \"allow\"\n              ]\n            }\n          },\n          \"patternProperties\": {\n            \"^x-[A-Za-z0-9._:-]+$\": true\n          },\n          \"additionalProperties\": false\n        },\n        \"limits\": {\n          \"type\": \"object\",\n          \"required\": [],\n          \"properties\": {\n            \"timeout\": {\n              \"$ref\": \"#/$defs/duration\"\n            },\n            \"max_items\": {\n              \"type\": \"integer\",\n              \"minimum\": 1\n            }\n          },\n          \"patternProperties\": {\n            \"^x-[A-Za-z0-9._:-]+$\": true\n          },\n          \"additionalProperties\": false\n        },\n        \"on_error\": {\n          \"enum\": [\n            \"stop\",\n            \"continue\"\n          ]\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    }\n  },\n  \"$id\": \"https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.workflow/1.0.0.schema.json\"\n}\n"
    },
    {
      "source": "contracts/mdbase.runtime.workflow/1.0.0.md",
      "document": "---\nkind: mdbase.contract\ncontract_type: record\nid: mdbase.runtime.workflow\nversion: 1.0.0\nname: Durable workflow\ndescription: A portable workflow whose event and action references are resolved and pinned at admission.\nrecord_schema:\n  dialect: json-schema-2020-12\n  ref: ../../schemas/mdbase.runtime.workflow/1.0.0.schema.json\n---\n\n# Durable workflow\n\nA portable workflow whose event and action references are resolved and pinned at admission.\n\nThis artifact is passive. Installing it or a type that implements it grants no\nauthority to execute workflows or invoke providers.\n"
    },
    {
      "source": "types/mdbase-runtime/workflow.md",
      "document": "---\nkind: mdbase.type\nname: runtime_workflow\nversion: 1\ndescription: Canonical Markdown implementation of mdbase.runtime.workflow.\nmatch:\n  where:\n    type: runtime_workflow\nschema:\n  dialect: json-schema-2020-12\n  value:\n    $schema: https://json-schema.org/draft/2020-12/schema\n    title: mdbase durable runtime workflow\n    type: object\n    required:\n      - type\n      - id\n      - version\n      - name\n      - enabled\n      - triggers\n      - steps\n    properties:\n      type:\n        const: runtime_workflow\n      id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      version:\n        type: string\n        pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n      name:\n        type: string\n        minLength: 1\n      description:\n        type: string\n      enabled:\n        type: boolean\n      requires:\n        $ref: \"#/$defs/requires\"\n      vars:\n        type: object\n        additionalProperties: {}\n      triggers:\n        type: array\n        minItems: 1\n        items:\n          $ref: \"#/$defs/trigger\"\n      steps:\n        type: array\n        minItems: 1\n        items:\n          $ref: \"#/$defs/step\"\n      run:\n        $ref: \"#/$defs/runPolicy\"\n    patternProperties:\n      ^x-[A-Za-z0-9._:-]+$: true\n    additionalProperties: false\n    $defs:\n      identifier:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      semanticVersion:\n        type: string\n        pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n      digest:\n        type: string\n        pattern: ^sha256:[0-9a-f]{64}$\n      dateTime:\n        type: string\n        format: date-time\n      contractRequirement:\n        type: object\n        required:\n          - id\n          - version\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            minLength: 1\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      exactContractReference:\n        type: object\n        required:\n          - id\n          - version\n          - digest\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      identity:\n        type: object\n        required:\n          - application\n          - implementation\n          - version\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      providerSelector:\n        type: object\n        required: []\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n        minProperties: 1\n      expression:\n        type: object\n        required:\n          - $expr\n        properties:\n          $expr:\n            type: string\n            minLength: 1\n        additionalProperties: false\n      requires:\n        type: object\n        required: []\n        properties:\n          capabilities:\n            type: array\n            uniqueItems: true\n            items:\n              type: string\n              pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      trigger:\n        type: object\n        required:\n          - id\n          - event\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          event:\n            $ref: \"#/$defs/contractRequirement\"\n          if:\n            type: object\n            required:\n              - $expr\n            properties:\n              $expr:\n                type: string\n                minLength: 1\n            additionalProperties: false\n          debounce:\n            $ref: \"#/$defs/duration\"\n          minimum_interval:\n            $ref: \"#/$defs/duration\"\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      step:\n        type: object\n        required:\n          - id\n          - action\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          name:\n            type: string\n          action:\n            $ref: \"#/$defs/contractRequirement\"\n          provider:\n            $ref: \"#/$defs/providerSelector\"\n          requires:\n            $ref: \"#/$defs/requires\"\n          if:\n            type: object\n            required:\n              - $expr\n            properties:\n              $expr:\n                type: string\n                minLength: 1\n            additionalProperties: false\n          input:\n            type: object\n            additionalProperties: {}\n          for_each:\n            type: object\n            required:\n              - items\n            properties:\n              items: {}\n              as:\n                type: string\n                pattern: ^[A-Za-z_][A-Za-z0-9_]*$\n            patternProperties:\n              ^x-[A-Za-z0-9._:-]+$: true\n            additionalProperties: false\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      duration:\n        type: string\n        pattern: ^(0|[1-9][0-9]*)(ms|s|m|h|d)$\n      runPolicy:\n        type: object\n        required: []\n        properties:\n          idempotency:\n            type: object\n            required:\n              - key\n            properties:\n              key: {}\n            patternProperties:\n              ^x-[A-Za-z0-9._:-]+$: true\n            additionalProperties: false\n          concurrency:\n            type: object\n            required:\n              - policy\n            properties:\n              group: {}\n              policy:\n                enum:\n                  - skip\n                  - queue\n                  - replace\n                  - allow\n            patternProperties:\n              ^x-[A-Za-z0-9._:-]+$: true\n            additionalProperties: false\n          limits:\n            type: object\n            required: []\n            properties:\n              timeout:\n                $ref: \"#/$defs/duration\"\n              max_items:\n                type: integer\n                minimum: 1\n            patternProperties:\n              ^x-[A-Za-z0-9._:-]+$: true\n            additionalProperties: false\n          on_error:\n            enum:\n              - stop\n              - continue\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n    $id: https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.workflow/1.0.0.schema.json\nimplements:\n  - contract: mdbase.runtime.workflow\n    version: 1.0.0\n    fields:\n      type: type\n      id: id\n      version: version\n      name: name\n      description: description\n      enabled: enabled\n      requires: requires\n      vars: vars\n      triggers: triggers\n      steps: steps\n      run: run\n---\n\n# Durable workflow\n\nThis canonical type makes `runtime_workflow` records discoverable through\nthe ordinary mdbase record-contract registry.\n"
    },
    {
      "source": "schemas/mdbase.runtime.policy/1.0.0.schema.json",
      "document": "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"title\": \"mdbase durable runtime policy\",\n  \"type\": \"object\",\n  \"required\": [\n    \"type\",\n    \"id\",\n    \"version\",\n    \"enabled\",\n    \"grants\"\n  ],\n  \"properties\": {\n    \"type\": {\n      \"const\": \"runtime_policy\"\n    },\n    \"id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"version\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"name\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"enabled\": {\n      \"type\": \"boolean\"\n    },\n    \"executors\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"default\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"workflows\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"type\": \"string\",\n            \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"provider_selections\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"contract\",\n          \"selector\"\n        ],\n        \"properties\": {\n          \"contract\": {\n            \"$ref\": \"#/$defs/contractRequirement\"\n          },\n          \"selector\": {\n            \"$ref\": \"#/$defs/providerSelector\"\n          }\n        },\n        \"patternProperties\": {\n          \"^x-[A-Za-z0-9._:-]+$\": true\n        },\n        \"additionalProperties\": false\n      }\n    },\n    \"grants\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"capability\",\n          \"mode\"\n        ],\n        \"properties\": {\n          \"capability\": {\n            \"type\": \"string\",\n            \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n          },\n          \"mode\": {\n            \"enum\": [\n              \"allow\",\n              \"deny\"\n            ]\n          },\n          \"actions\": {\n            \"type\": \"array\",\n            \"uniqueItems\": true,\n            \"items\": {\n              \"$ref\": \"#/$defs/contractRequirement\"\n            }\n          },\n          \"providers\": {\n            \"type\": \"array\",\n            \"uniqueItems\": true,\n            \"items\": {\n              \"$ref\": \"#/$defs/providerSelector\"\n            }\n          },\n          \"max_calls_per_run\": {\n            \"type\": \"integer\",\n            \"minimum\": 1\n          },\n          \"max_records_per_run\": {\n            \"type\": \"integer\",\n            \"minimum\": 1\n          }\n        },\n        \"patternProperties\": {\n          \"^x-[A-Za-z0-9._:-]+$\": true\n        },\n        \"additionalProperties\": false\n      }\n    }\n  },\n  \"patternProperties\": {\n    \"^x-[A-Za-z0-9._:-]+$\": true\n  },\n  \"additionalProperties\": false,\n  \"$defs\": {\n    \"identifier\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"semanticVersion\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"dateTime\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"contractRequirement\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"exactContractReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\",\n        \"digest\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"identity\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"application\",\n        \"implementation\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"providerSelector\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false,\n      \"minProperties\": 1\n    },\n    \"expression\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$expr\"\n      ],\n      \"properties\": {\n        \"$expr\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"additionalProperties\": false\n    }\n  },\n  \"$id\": \"https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.policy/1.0.0.schema.json\"\n}\n"
    },
    {
      "source": "contracts/mdbase.runtime.policy/1.0.0.md",
      "document": "---\nkind: mdbase.contract\ncontract_type: record\nid: mdbase.runtime.policy\nversion: 1.0.0\nname: Runtime policy\ndescription: Local authorization, executor, limit, and provider-selection policy.\nrecord_schema:\n  dialect: json-schema-2020-12\n  ref: ../../schemas/mdbase.runtime.policy/1.0.0.schema.json\n---\n\n# Runtime policy\n\nLocal authorization, executor, limit, and provider-selection policy.\n\nThis artifact is passive. Installing it or a type that implements it grants no\nauthority to execute workflows or invoke providers.\n"
    },
    {
      "source": "types/mdbase-runtime/policy.md",
      "document": "---\nkind: mdbase.type\nname: runtime_policy\nversion: 1\ndescription: Canonical Markdown implementation of mdbase.runtime.policy.\nmatch:\n  where:\n    type: runtime_policy\nschema:\n  dialect: json-schema-2020-12\n  value:\n    $schema: https://json-schema.org/draft/2020-12/schema\n    title: mdbase durable runtime policy\n    type: object\n    required:\n      - type\n      - id\n      - version\n      - enabled\n      - grants\n    properties:\n      type:\n        const: runtime_policy\n      id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      version:\n        type: string\n        pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n      name:\n        type: string\n        minLength: 1\n      enabled:\n        type: boolean\n      executors:\n        type: object\n        required: []\n        properties:\n          default:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          workflows:\n            type: object\n            additionalProperties:\n              type: string\n              pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      provider_selections:\n        type: array\n        items:\n          type: object\n          required:\n            - contract\n            - selector\n          properties:\n            contract:\n              $ref: \"#/$defs/contractRequirement\"\n            selector:\n              $ref: \"#/$defs/providerSelector\"\n          patternProperties:\n            ^x-[A-Za-z0-9._:-]+$: true\n          additionalProperties: false\n      grants:\n        type: array\n        items:\n          type: object\n          required:\n            - capability\n            - mode\n          properties:\n            capability:\n              type: string\n              pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n            mode:\n              enum:\n                - allow\n                - deny\n            actions:\n              type: array\n              uniqueItems: true\n              items:\n                $ref: \"#/$defs/contractRequirement\"\n            providers:\n              type: array\n              uniqueItems: true\n              items:\n                $ref: \"#/$defs/providerSelector\"\n            max_calls_per_run:\n              type: integer\n              minimum: 1\n            max_records_per_run:\n              type: integer\n              minimum: 1\n          patternProperties:\n            ^x-[A-Za-z0-9._:-]+$: true\n          additionalProperties: false\n    patternProperties:\n      ^x-[A-Za-z0-9._:-]+$: true\n    additionalProperties: false\n    $defs:\n      identifier:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      semanticVersion:\n        type: string\n        pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n      digest:\n        type: string\n        pattern: ^sha256:[0-9a-f]{64}$\n      dateTime:\n        type: string\n        format: date-time\n      contractRequirement:\n        type: object\n        required:\n          - id\n          - version\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            minLength: 1\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      exactContractReference:\n        type: object\n        required:\n          - id\n          - version\n          - digest\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      identity:\n        type: object\n        required:\n          - application\n          - implementation\n          - version\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      providerSelector:\n        type: object\n        required: []\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n        minProperties: 1\n      expression:\n        type: object\n        required:\n          - $expr\n        properties:\n          $expr:\n            type: string\n            minLength: 1\n        additionalProperties: false\n    $id: https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.policy/1.0.0.schema.json\nimplements:\n  - contract: mdbase.runtime.policy\n    version: 1.0.0\n    fields:\n      type: type\n      id: id\n      version: version\n      name: name\n      enabled: enabled\n      executors: executors\n      provider_selections: provider_selections\n      grants: grants\n---\n\n# Runtime policy\n\nThis canonical type makes `runtime_policy` records discoverable through\nthe ordinary mdbase record-contract registry.\n"
    },
    {
      "source": "schemas/mdbase.runtime.provider-registration/1.0.0.schema.json",
      "document": "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"title\": \"mdbase runtime provider registration evidence\",\n  \"type\": \"object\",\n  \"required\": [\n    \"type\",\n    \"id\",\n    \"declaration_kind\",\n    \"declaration\",\n    \"verified_at\",\n    \"active\"\n  ],\n  \"properties\": {\n    \"type\": {\n      \"const\": \"runtime_provider_registration\"\n    },\n    \"id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"declaration_kind\": {\n      \"enum\": [\n        \"event_source\",\n        \"action_provider\"\n      ]\n    },\n    \"declaration\": {\n      \"type\": \"object\"\n    },\n    \"verified_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"active\": {\n      \"type\": \"boolean\"\n    }\n  },\n  \"patternProperties\": {\n    \"^x-[A-Za-z0-9._:-]+$\": true\n  },\n  \"additionalProperties\": false,\n  \"$defs\": {\n    \"identifier\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"semanticVersion\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"dateTime\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"contractRequirement\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"exactContractReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\",\n        \"digest\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"identity\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"application\",\n        \"implementation\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"providerSelector\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false,\n      \"minProperties\": 1\n    },\n    \"expression\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$expr\"\n      ],\n      \"properties\": {\n        \"$expr\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"additionalProperties\": false\n    }\n  },\n  \"$id\": \"https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.provider-registration/1.0.0.schema.json\"\n}\n"
    },
    {
      "source": "contracts/mdbase.runtime.provider-registration/1.0.0.md",
      "document": "---\nkind: mdbase.contract\ncontract_type: record\nid: mdbase.runtime.provider-registration\nversion: 1.0.0\nname: Provider registration evidence\ndescription: An optional audit snapshot of a verified interoperability declaration; it never activates code.\nrecord_schema:\n  dialect: json-schema-2020-12\n  ref: ../../schemas/mdbase.runtime.provider-registration/1.0.0.schema.json\n---\n\n# Provider registration evidence\n\nAn optional audit snapshot of a verified interoperability declaration; it never activates code.\n\nThis artifact is passive. Installing it or a type that implements it grants no\nauthority to execute workflows or invoke providers.\n"
    },
    {
      "source": "types/mdbase-runtime/provider-registration.md",
      "document": "---\nkind: mdbase.type\nname: runtime_provider_registration\nversion: 1\ndescription: Canonical Markdown implementation of mdbase.runtime.provider-registration.\nmatch:\n  where:\n    type: runtime_provider_registration\nschema:\n  dialect: json-schema-2020-12\n  value:\n    $schema: https://json-schema.org/draft/2020-12/schema\n    title: mdbase runtime provider registration evidence\n    type: object\n    required:\n      - type\n      - id\n      - declaration_kind\n      - declaration\n      - verified_at\n      - active\n    properties:\n      type:\n        const: runtime_provider_registration\n      id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      declaration_kind:\n        enum:\n          - event_source\n          - action_provider\n      declaration:\n        type: object\n      verified_at:\n        type: string\n        format: date-time\n      active:\n        type: boolean\n    patternProperties:\n      ^x-[A-Za-z0-9._:-]+$: true\n    additionalProperties: false\n    $defs:\n      identifier:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      semanticVersion:\n        type: string\n        pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n      digest:\n        type: string\n        pattern: ^sha256:[0-9a-f]{64}$\n      dateTime:\n        type: string\n        format: date-time\n      contractRequirement:\n        type: object\n        required:\n          - id\n          - version\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            minLength: 1\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      exactContractReference:\n        type: object\n        required:\n          - id\n          - version\n          - digest\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      identity:\n        type: object\n        required:\n          - application\n          - implementation\n          - version\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      providerSelector:\n        type: object\n        required: []\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n        minProperties: 1\n      expression:\n        type: object\n        required:\n          - $expr\n        properties:\n          $expr:\n            type: string\n            minLength: 1\n        additionalProperties: false\n    $id: https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.provider-registration/1.0.0.schema.json\nimplements:\n  - contract: mdbase.runtime.provider-registration\n    version: 1.0.0\n    fields:\n      type: type\n      id: id\n      declaration_kind: declaration_kind\n      declaration: declaration\n      verified_at: verified_at\n      active: active\n---\n\n# Provider registration evidence\n\nThis canonical type makes `runtime_provider_registration` records discoverable through\nthe ordinary mdbase record-contract registry.\n"
    },
    {
      "source": "schemas/mdbase.runtime.capability-grant/1.0.0.schema.json",
      "document": "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"title\": \"mdbase runtime capability grant\",\n  \"type\": \"object\",\n  \"required\": [\n    \"type\",\n    \"id\",\n    \"capability\",\n    \"principal\",\n    \"mode\",\n    \"granted_at\"\n  ],\n  \"properties\": {\n    \"type\": {\n      \"const\": \"runtime_capability_grant\"\n    },\n    \"id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"capability\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"principal\": {\n      \"$ref\": \"#/$defs/identity\"\n    },\n    \"mode\": {\n      \"enum\": [\n        \"allow\",\n        \"deny\"\n      ]\n    },\n    \"actions\": {\n      \"type\": \"array\",\n      \"uniqueItems\": true,\n      \"items\": {\n        \"$ref\": \"#/$defs/contractRequirement\"\n      }\n    },\n    \"providers\": {\n      \"type\": \"array\",\n      \"uniqueItems\": true,\n      \"items\": {\n        \"$ref\": \"#/$defs/providerSelector\"\n      }\n    },\n    \"granted_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"expires_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    }\n  },\n  \"patternProperties\": {\n    \"^x-[A-Za-z0-9._:-]+$\": true\n  },\n  \"additionalProperties\": false,\n  \"$defs\": {\n    \"identifier\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"semanticVersion\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"dateTime\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"contractRequirement\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"exactContractReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\",\n        \"digest\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"identity\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"application\",\n        \"implementation\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"providerSelector\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false,\n      \"minProperties\": 1\n    },\n    \"expression\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$expr\"\n      ],\n      \"properties\": {\n        \"$expr\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"additionalProperties\": false\n    }\n  },\n  \"$id\": \"https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.capability-grant/1.0.0.schema.json\"\n}\n"
    },
    {
      "source": "contracts/mdbase.runtime.capability-grant/1.0.0.md",
      "document": "---\nkind: mdbase.contract\ncontract_type: record\nid: mdbase.runtime.capability-grant\nversion: 1.0.0\nname: Capability grant evidence\ndescription: A materialized authorization grant scoped independently from contract conformance.\nrecord_schema:\n  dialect: json-schema-2020-12\n  ref: ../../schemas/mdbase.runtime.capability-grant/1.0.0.schema.json\n---\n\n# Capability grant evidence\n\nA materialized authorization grant scoped independently from contract conformance.\n\nThis artifact is passive. Installing it or a type that implements it grants no\nauthority to execute workflows or invoke providers.\n"
    },
    {
      "source": "types/mdbase-runtime/capability-grant.md",
      "document": "---\nkind: mdbase.type\nname: runtime_capability_grant\nversion: 1\ndescription: Canonical Markdown implementation of mdbase.runtime.capability-grant.\nmatch:\n  where:\n    type: runtime_capability_grant\nschema:\n  dialect: json-schema-2020-12\n  value:\n    $schema: https://json-schema.org/draft/2020-12/schema\n    title: mdbase runtime capability grant\n    type: object\n    required:\n      - type\n      - id\n      - capability\n      - principal\n      - mode\n      - granted_at\n    properties:\n      type:\n        const: runtime_capability_grant\n      id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      capability:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      principal:\n        $ref: \"#/$defs/identity\"\n      mode:\n        enum:\n          - allow\n          - deny\n      actions:\n        type: array\n        uniqueItems: true\n        items:\n          $ref: \"#/$defs/contractRequirement\"\n      providers:\n        type: array\n        uniqueItems: true\n        items:\n          $ref: \"#/$defs/providerSelector\"\n      granted_at:\n        type: string\n        format: date-time\n      expires_at:\n        type: string\n        format: date-time\n    patternProperties:\n      ^x-[A-Za-z0-9._:-]+$: true\n    additionalProperties: false\n    $defs:\n      identifier:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      semanticVersion:\n        type: string\n        pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n      digest:\n        type: string\n        pattern: ^sha256:[0-9a-f]{64}$\n      dateTime:\n        type: string\n        format: date-time\n      contractRequirement:\n        type: object\n        required:\n          - id\n          - version\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            minLength: 1\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      exactContractReference:\n        type: object\n        required:\n          - id\n          - version\n          - digest\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      identity:\n        type: object\n        required:\n          - application\n          - implementation\n          - version\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      providerSelector:\n        type: object\n        required: []\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n        minProperties: 1\n      expression:\n        type: object\n        required:\n          - $expr\n        properties:\n          $expr:\n            type: string\n            minLength: 1\n        additionalProperties: false\n    $id: https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.capability-grant/1.0.0.schema.json\nimplements:\n  - contract: mdbase.runtime.capability-grant\n    version: 1.0.0\n    fields:\n      type: type\n      id: id\n      capability: capability\n      principal: principal\n      mode: mode\n      actions: actions\n      providers: providers\n      granted_at: granted_at\n      expires_at: expires_at\n---\n\n# Capability grant evidence\n\nThis canonical type makes `runtime_capability_grant` records discoverable through\nthe ordinary mdbase record-contract registry.\n"
    },
    {
      "source": "schemas/mdbase.runtime.run/1.0.0.schema.json",
      "document": "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"title\": \"mdbase durable runtime run\",\n  \"type\": \"object\",\n  \"required\": [\n    \"type\",\n    \"id\",\n    \"workflow_id\",\n    \"workflow_version\",\n    \"workflow_revision\",\n    \"event_id\",\n    \"event_contract\",\n    \"admitted_plan\",\n    \"status\",\n    \"created_at\",\n    \"updated_at\"\n  ],\n  \"properties\": {\n    \"type\": {\n      \"const\": \"runtime_run\"\n    },\n    \"id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"workflow_id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"workflow_version\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"workflow_revision\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"event_id\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"event_contract\": {\n      \"$ref\": \"#/$defs/exactContractReference\"\n    },\n    \"event_source\": {\n      \"$ref\": \"#/$defs/identity\"\n    },\n    \"admitted_plan\": {\n      \"$ref\": \"#/$defs/admittedPlan\"\n    },\n    \"policy_id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"policy_revision\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"trigger_id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"event_cursor\": {\n      \"type\": \"integer\",\n      \"minimum\": 1\n    },\n    \"executor\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"idempotency_key\": {\n      \"type\": \"string\"\n    },\n    \"concurrency_group\": {\n      \"type\": \"string\"\n    },\n    \"status\": {\n      \"enum\": [\n        \"queued\",\n        \"running\",\n        \"waiting\",\n        \"succeeded\",\n        \"failed\",\n        \"cancelled\",\n        \"indeterminate\"\n      ]\n    },\n    \"created_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"updated_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"started_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"finished_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"lease\": {\n      \"$ref\": \"#/$defs/lease\"\n    }\n  },\n  \"patternProperties\": {\n    \"^x-[A-Za-z0-9._:-]+$\": true\n  },\n  \"additionalProperties\": false,\n  \"$defs\": {\n    \"identifier\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"semanticVersion\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"dateTime\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"contractRequirement\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"exactContractReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\",\n        \"digest\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"identity\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"application\",\n        \"implementation\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"providerSelector\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false,\n      \"minProperties\": 1\n    },\n    \"expression\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$expr\"\n      ],\n      \"properties\": {\n        \"$expr\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"admittedPlan\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"profile_version\",\n        \"workflow_revision\",\n        \"event\",\n        \"steps\"\n      ],\n      \"properties\": {\n        \"profile_version\": {\n          \"const\": \"0.2\"\n        },\n        \"workflow_revision\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        },\n        \"event\": {\n          \"type\": \"object\",\n          \"required\": [\n            \"contract\",\n            \"source\"\n          ],\n          \"properties\": {\n            \"contract\": {\n              \"$ref\": \"#/$defs/exactContractReference\"\n            },\n            \"source\": {\n              \"$ref\": \"#/$defs/identity\"\n            },\n            \"source_declaration_digest\": {\n              \"type\": \"string\",\n              \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n            }\n          },\n          \"patternProperties\": {\n            \"^x-[A-Za-z0-9._:-]+$\": true\n          },\n          \"additionalProperties\": false\n        },\n        \"steps\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"object\",\n            \"required\": [\n              \"id\",\n              \"contract\",\n              \"provider\",\n              \"provider_declaration_digest\",\n              \"handler_id\"\n            ],\n            \"properties\": {\n              \"id\": {\n                \"type\": \"string\",\n                \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n              },\n              \"contract\": {\n                \"$ref\": \"#/$defs/exactContractReference\"\n              },\n              \"provider\": {\n                \"$ref\": \"#/$defs/identity\"\n              },\n              \"provider_declaration_digest\": {\n                \"type\": \"string\",\n                \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n              },\n              \"handler_id\": {\n                \"type\": \"string\",\n                \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n              }\n            },\n            \"patternProperties\": {\n              \"^x-[A-Za-z0-9._:-]+$\": true\n            },\n            \"additionalProperties\": false\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"lease\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"owner\",\n        \"token\",\n        \"expires_at\"\n      ],\n      \"properties\": {\n        \"owner\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"token\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"expires_at\": {\n          \"type\": \"string\",\n          \"format\": \"date-time\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    }\n  },\n  \"$id\": \"https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.run/1.0.0.schema.json\"\n}\n"
    },
    {
      "source": "contracts/mdbase.runtime.run/1.0.0.md",
      "document": "---\nkind: mdbase.contract\ncontract_type: record\nid: mdbase.runtime.run\nversion: 1.0.0\nname: Durable run\ndescription: The durable state and immutable admitted plan for one workflow execution.\nrecord_schema:\n  dialect: json-schema-2020-12\n  ref: ../../schemas/mdbase.runtime.run/1.0.0.schema.json\n---\n\n# Durable run\n\nThe durable state and immutable admitted plan for one workflow execution.\n\nThis artifact is passive. Installing it or a type that implements it grants no\nauthority to execute workflows or invoke providers.\n"
    },
    {
      "source": "types/mdbase-runtime/run.md",
      "document": "---\nkind: mdbase.type\nname: runtime_run\nversion: 1\ndescription: Canonical Markdown implementation of mdbase.runtime.run.\nmatch:\n  where:\n    type: runtime_run\nschema:\n  dialect: json-schema-2020-12\n  value:\n    $schema: https://json-schema.org/draft/2020-12/schema\n    title: mdbase durable runtime run\n    type: object\n    required:\n      - type\n      - id\n      - workflow_id\n      - workflow_version\n      - workflow_revision\n      - event_id\n      - event_contract\n      - admitted_plan\n      - status\n      - created_at\n      - updated_at\n    properties:\n      type:\n        const: runtime_run\n      id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      workflow_id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      workflow_version:\n        type: string\n        pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n      workflow_revision:\n        type: string\n        pattern: ^sha256:[0-9a-f]{64}$\n      event_id:\n        type: string\n        minLength: 1\n      event_contract:\n        $ref: \"#/$defs/exactContractReference\"\n      event_source:\n        $ref: \"#/$defs/identity\"\n      admitted_plan:\n        $ref: \"#/$defs/admittedPlan\"\n      policy_id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      policy_revision:\n        type: string\n        pattern: ^sha256:[0-9a-f]{64}$\n      trigger_id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      event_cursor:\n        type: integer\n        minimum: 1\n      executor:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      idempotency_key:\n        type: string\n      concurrency_group:\n        type: string\n      status:\n        enum:\n          - queued\n          - running\n          - waiting\n          - succeeded\n          - failed\n          - cancelled\n          - indeterminate\n      created_at:\n        type: string\n        format: date-time\n      updated_at:\n        type: string\n        format: date-time\n      started_at:\n        type: string\n        format: date-time\n      finished_at:\n        type: string\n        format: date-time\n      lease:\n        $ref: \"#/$defs/lease\"\n    patternProperties:\n      ^x-[A-Za-z0-9._:-]+$: true\n    additionalProperties: false\n    $defs:\n      identifier:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      semanticVersion:\n        type: string\n        pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n      digest:\n        type: string\n        pattern: ^sha256:[0-9a-f]{64}$\n      dateTime:\n        type: string\n        format: date-time\n      contractRequirement:\n        type: object\n        required:\n          - id\n          - version\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            minLength: 1\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      exactContractReference:\n        type: object\n        required:\n          - id\n          - version\n          - digest\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      identity:\n        type: object\n        required:\n          - application\n          - implementation\n          - version\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      providerSelector:\n        type: object\n        required: []\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n        minProperties: 1\n      expression:\n        type: object\n        required:\n          - $expr\n        properties:\n          $expr:\n            type: string\n            minLength: 1\n        additionalProperties: false\n      admittedPlan:\n        type: object\n        required:\n          - profile_version\n          - workflow_revision\n          - event\n          - steps\n        properties:\n          profile_version:\n            const: \"0.2\"\n          workflow_revision:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n          event:\n            type: object\n            required:\n              - contract\n              - source\n            properties:\n              contract:\n                $ref: \"#/$defs/exactContractReference\"\n              source:\n                $ref: \"#/$defs/identity\"\n              source_declaration_digest:\n                type: string\n                pattern: ^sha256:[0-9a-f]{64}$\n            patternProperties:\n              ^x-[A-Za-z0-9._:-]+$: true\n            additionalProperties: false\n          steps:\n            type: array\n            items:\n              type: object\n              required:\n                - id\n                - contract\n                - provider\n                - provider_declaration_digest\n                - handler_id\n              properties:\n                id:\n                  type: string\n                  pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n                contract:\n                  $ref: \"#/$defs/exactContractReference\"\n                provider:\n                  $ref: \"#/$defs/identity\"\n                provider_declaration_digest:\n                  type: string\n                  pattern: ^sha256:[0-9a-f]{64}$\n                handler_id:\n                  type: string\n                  pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n              patternProperties:\n                ^x-[A-Za-z0-9._:-]+$: true\n              additionalProperties: false\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      lease:\n        type: object\n        required:\n          - owner\n          - token\n          - expires_at\n        properties:\n          owner:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          token:\n            type: string\n            minLength: 1\n          expires_at:\n            type: string\n            format: date-time\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n    $id: https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.run/1.0.0.schema.json\nimplements:\n  - contract: mdbase.runtime.run\n    version: 1.0.0\n    fields:\n      type: type\n      id: id\n      workflow_id: workflow_id\n      workflow_version: workflow_version\n      workflow_revision: workflow_revision\n      event_id: event_id\n      event_contract: event_contract\n      event_source: event_source\n      admitted_plan: admitted_plan\n      policy_id: policy_id\n      policy_revision: policy_revision\n      trigger_id: trigger_id\n      event_cursor: event_cursor\n      executor: executor\n      idempotency_key: idempotency_key\n      concurrency_group: concurrency_group\n      status: status\n      created_at: created_at\n      updated_at: updated_at\n      started_at: started_at\n      finished_at: finished_at\n      lease: lease\n---\n\n# Durable run\n\nThis canonical type makes `runtime_run` records discoverable through\nthe ordinary mdbase record-contract registry.\n"
    },
    {
      "source": "schemas/mdbase.runtime.action-attempt/1.0.0.schema.json",
      "document": "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"title\": \"mdbase durable runtime action attempt\",\n  \"type\": \"object\",\n  \"required\": [\n    \"type\",\n    \"id\",\n    \"run_id\",\n    \"step_id\",\n    \"request_id\",\n    \"invocation_id\",\n    \"attempt_id\",\n    \"contract\",\n    \"provider\",\n    \"provider_declaration_digest\",\n    \"status\",\n    \"created_at\",\n    \"updated_at\"\n  ],\n  \"properties\": {\n    \"type\": {\n      \"const\": \"runtime_action_attempt\"\n    },\n    \"id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"run_id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"step_id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"request_id\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"invocation_id\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"attempt_id\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"contract\": {\n      \"$ref\": \"#/$defs/exactContractReference\"\n    },\n    \"provider\": {\n      \"$ref\": \"#/$defs/identity\"\n    },\n    \"provider_declaration_digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"handler_id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"idempotency_key\": {\n      \"type\": \"string\"\n    },\n    \"status\": {\n      \"enum\": [\n        \"admitted\",\n        \"dispatching\",\n        \"succeeded\",\n        \"rejected\",\n        \"failed\",\n        \"cancelled\",\n        \"indeterminate\"\n      ]\n    },\n    \"request\": {\n      \"type\": \"object\"\n    },\n    \"invocation\": {\n      \"type\": \"object\"\n    },\n    \"outcome\": {\n      \"type\": \"object\"\n    },\n    \"created_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"updated_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"completed_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    }\n  },\n  \"patternProperties\": {\n    \"^x-[A-Za-z0-9._:-]+$\": true\n  },\n  \"additionalProperties\": false,\n  \"$defs\": {\n    \"identifier\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"semanticVersion\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"dateTime\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"contractRequirement\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"exactContractReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\",\n        \"digest\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"identity\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"application\",\n        \"implementation\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"providerSelector\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false,\n      \"minProperties\": 1\n    },\n    \"expression\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$expr\"\n      ],\n      \"properties\": {\n        \"$expr\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"additionalProperties\": false\n    }\n  },\n  \"$id\": \"https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.action-attempt/1.0.0.schema.json\"\n}\n"
    },
    {
      "source": "contracts/mdbase.runtime.action-attempt/1.0.0.md",
      "document": "---\nkind: mdbase.contract\ncontract_type: record\nid: mdbase.runtime.action-attempt\nversion: 1.0.0\nname: Durable action attempt\ndescription: Durable invocation intent and outcome evidence using the shared interoperability envelope.\nrecord_schema:\n  dialect: json-schema-2020-12\n  ref: ../../schemas/mdbase.runtime.action-attempt/1.0.0.schema.json\n---\n\n# Durable action attempt\n\nDurable invocation intent and outcome evidence using the shared interoperability envelope.\n\nThis artifact is passive. Installing it or a type that implements it grants no\nauthority to execute workflows or invoke providers.\n"
    },
    {
      "source": "types/mdbase-runtime/action-attempt.md",
      "document": "---\nkind: mdbase.type\nname: runtime_action_attempt\nversion: 1\ndescription: Canonical Markdown implementation of mdbase.runtime.action-attempt.\nmatch:\n  where:\n    type: runtime_action_attempt\nschema:\n  dialect: json-schema-2020-12\n  value:\n    $schema: https://json-schema.org/draft/2020-12/schema\n    title: mdbase durable runtime action attempt\n    type: object\n    required:\n      - type\n      - id\n      - run_id\n      - step_id\n      - request_id\n      - invocation_id\n      - attempt_id\n      - contract\n      - provider\n      - provider_declaration_digest\n      - status\n      - created_at\n      - updated_at\n    properties:\n      type:\n        const: runtime_action_attempt\n      id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      run_id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      step_id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      request_id:\n        type: string\n        minLength: 1\n      invocation_id:\n        type: string\n        minLength: 1\n      attempt_id:\n        type: string\n        minLength: 1\n      contract:\n        $ref: \"#/$defs/exactContractReference\"\n      provider:\n        $ref: \"#/$defs/identity\"\n      provider_declaration_digest:\n        type: string\n        pattern: ^sha256:[0-9a-f]{64}$\n      handler_id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      idempotency_key:\n        type: string\n      status:\n        enum:\n          - admitted\n          - dispatching\n          - succeeded\n          - rejected\n          - failed\n          - cancelled\n          - indeterminate\n      request:\n        type: object\n      invocation:\n        type: object\n      outcome:\n        type: object\n      created_at:\n        type: string\n        format: date-time\n      updated_at:\n        type: string\n        format: date-time\n      completed_at:\n        type: string\n        format: date-time\n    patternProperties:\n      ^x-[A-Za-z0-9._:-]+$: true\n    additionalProperties: false\n    $defs:\n      identifier:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      semanticVersion:\n        type: string\n        pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n      digest:\n        type: string\n        pattern: ^sha256:[0-9a-f]{64}$\n      dateTime:\n        type: string\n        format: date-time\n      contractRequirement:\n        type: object\n        required:\n          - id\n          - version\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            minLength: 1\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      exactContractReference:\n        type: object\n        required:\n          - id\n          - version\n          - digest\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      identity:\n        type: object\n        required:\n          - application\n          - implementation\n          - version\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      providerSelector:\n        type: object\n        required: []\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n        minProperties: 1\n      expression:\n        type: object\n        required:\n          - $expr\n        properties:\n          $expr:\n            type: string\n            minLength: 1\n        additionalProperties: false\n    $id: https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.action-attempt/1.0.0.schema.json\nimplements:\n  - contract: mdbase.runtime.action-attempt\n    version: 1.0.0\n    fields:\n      type: type\n      id: id\n      run_id: run_id\n      step_id: step_id\n      request_id: request_id\n      invocation_id: invocation_id\n      attempt_id: attempt_id\n      contract: contract\n      provider: provider\n      provider_declaration_digest: provider_declaration_digest\n      handler_id: handler_id\n      idempotency_key: idempotency_key\n      status: status\n      request: request\n      invocation: invocation\n      outcome: outcome\n      created_at: created_at\n      updated_at: updated_at\n      completed_at: completed_at\n---\n\n# Durable action attempt\n\nThis canonical type makes `runtime_action_attempt` records discoverable through\nthe ordinary mdbase record-contract registry.\n"
    },
    {
      "source": "schemas/mdbase.runtime.checkpoint/1.0.0.schema.json",
      "document": "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"title\": \"mdbase durable runtime checkpoint\",\n  \"type\": \"object\",\n  \"required\": [\n    \"type\",\n    \"id\",\n    \"run_id\",\n    \"generation\",\n    \"status\",\n    \"state\",\n    \"updated_at\"\n  ],\n  \"properties\": {\n    \"type\": {\n      \"const\": \"runtime_checkpoint\"\n    },\n    \"id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"run_id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"generation\": {\n      \"type\": \"integer\",\n      \"minimum\": 1\n    },\n    \"status\": {\n      \"enum\": [\n        \"open\",\n        \"waiting\",\n        \"ready\",\n        \"completed\",\n        \"failed\",\n        \"cancelled\"\n      ]\n    },\n    \"state\": {\n      \"type\": \"object\"\n    },\n    \"updated_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    }\n  },\n  \"patternProperties\": {\n    \"^x-[A-Za-z0-9._:-]+$\": true\n  },\n  \"additionalProperties\": false,\n  \"$defs\": {\n    \"identifier\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"semanticVersion\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"dateTime\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"contractRequirement\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"exactContractReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\",\n        \"digest\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"identity\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"application\",\n        \"implementation\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"providerSelector\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false,\n      \"minProperties\": 1\n    },\n    \"expression\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$expr\"\n      ],\n      \"properties\": {\n        \"$expr\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"additionalProperties\": false\n    }\n  },\n  \"$id\": \"https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.checkpoint/1.0.0.schema.json\"\n}\n"
    },
    {
      "source": "contracts/mdbase.runtime.checkpoint/1.0.0.md",
      "document": "---\nkind: mdbase.contract\ncontract_type: record\nid: mdbase.runtime.checkpoint\nversion: 1.0.0\nname: Runtime checkpoint\ndescription: A durable, lease-safe workflow continuation.\nrecord_schema:\n  dialect: json-schema-2020-12\n  ref: ../../schemas/mdbase.runtime.checkpoint/1.0.0.schema.json\n---\n\n# Runtime checkpoint\n\nA durable, lease-safe workflow continuation.\n\nThis artifact is passive. Installing it or a type that implements it grants no\nauthority to execute workflows or invoke providers.\n"
    },
    {
      "source": "types/mdbase-runtime/checkpoint.md",
      "document": "---\nkind: mdbase.type\nname: runtime_checkpoint\nversion: 1\ndescription: Canonical Markdown implementation of mdbase.runtime.checkpoint.\nmatch:\n  where:\n    type: runtime_checkpoint\nschema:\n  dialect: json-schema-2020-12\n  value:\n    $schema: https://json-schema.org/draft/2020-12/schema\n    title: mdbase durable runtime checkpoint\n    type: object\n    required:\n      - type\n      - id\n      - run_id\n      - generation\n      - status\n      - state\n      - updated_at\n    properties:\n      type:\n        const: runtime_checkpoint\n      id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      run_id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      generation:\n        type: integer\n        minimum: 1\n      status:\n        enum:\n          - open\n          - waiting\n          - ready\n          - completed\n          - failed\n          - cancelled\n      state:\n        type: object\n      updated_at:\n        type: string\n        format: date-time\n    patternProperties:\n      ^x-[A-Za-z0-9._:-]+$: true\n    additionalProperties: false\n    $defs:\n      identifier:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      semanticVersion:\n        type: string\n        pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n      digest:\n        type: string\n        pattern: ^sha256:[0-9a-f]{64}$\n      dateTime:\n        type: string\n        format: date-time\n      contractRequirement:\n        type: object\n        required:\n          - id\n          - version\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            minLength: 1\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      exactContractReference:\n        type: object\n        required:\n          - id\n          - version\n          - digest\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      identity:\n        type: object\n        required:\n          - application\n          - implementation\n          - version\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      providerSelector:\n        type: object\n        required: []\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n        minProperties: 1\n      expression:\n        type: object\n        required:\n          - $expr\n        properties:\n          $expr:\n            type: string\n            minLength: 1\n        additionalProperties: false\n    $id: https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.checkpoint/1.0.0.schema.json\nimplements:\n  - contract: mdbase.runtime.checkpoint\n    version: 1.0.0\n    fields:\n      type: type\n      id: id\n      run_id: run_id\n      generation: generation\n      status: status\n      state: state\n      updated_at: updated_at\n---\n\n# Runtime checkpoint\n\nThis canonical type makes `runtime_checkpoint` records discoverable through\nthe ordinary mdbase record-contract registry.\n"
    },
    {
      "source": "schemas/mdbase.runtime.timer/1.0.0.schema.json",
      "document": "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"title\": \"mdbase durable runtime timer\",\n  \"type\": \"object\",\n  \"required\": [\n    \"type\",\n    \"id\",\n    \"generation\",\n    \"status\",\n    \"fire_at\",\n    \"event\",\n    \"created_at\",\n    \"updated_at\"\n  ],\n  \"properties\": {\n    \"type\": {\n      \"const\": \"runtime_timer\"\n    },\n    \"id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"generation\": {\n      \"type\": \"integer\",\n      \"minimum\": 1\n    },\n    \"status\": {\n      \"enum\": [\n        \"scheduled\",\n        \"firing\",\n        \"fired\",\n        \"cancelled\"\n      ]\n    },\n    \"fire_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"event\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"contract\",\n        \"data\"\n      ],\n      \"properties\": {\n        \"contract\": {\n          \"$ref\": \"#/$defs/contractRequirement\"\n        },\n        \"subject\": {\n          \"type\": \"string\"\n        },\n        \"correlation_id\": {\n          \"type\": \"string\"\n        },\n        \"causation_id\": {\n          \"type\": \"string\"\n        },\n        \"data\": {}\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"missed_run_policy\": {\n      \"const\": \"fire_once\"\n    },\n    \"created_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"updated_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"fired_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    }\n  },\n  \"patternProperties\": {\n    \"^x-[A-Za-z0-9._:-]+$\": true\n  },\n  \"additionalProperties\": false,\n  \"$defs\": {\n    \"identifier\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"semanticVersion\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"dateTime\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"contractRequirement\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"exactContractReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\",\n        \"digest\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"identity\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"application\",\n        \"implementation\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"providerSelector\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false,\n      \"minProperties\": 1\n    },\n    \"expression\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$expr\"\n      ],\n      \"properties\": {\n        \"$expr\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"additionalProperties\": false\n    }\n  },\n  \"$id\": \"https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.timer/1.0.0.schema.json\"\n}\n"
    },
    {
      "source": "contracts/mdbase.runtime.timer/1.0.0.md",
      "document": "---\nkind: mdbase.contract\ncontract_type: record\nid: mdbase.runtime.timer\nversion: 1.0.0\nname: Runtime timer\ndescription: A generation-safe one-shot timer that publishes through the interoperability profile.\nrecord_schema:\n  dialect: json-schema-2020-12\n  ref: ../../schemas/mdbase.runtime.timer/1.0.0.schema.json\n---\n\n# Runtime timer\n\nA generation-safe one-shot timer that publishes through the interoperability profile.\n\nThis artifact is passive. Installing it or a type that implements it grants no\nauthority to execute workflows or invoke providers.\n"
    },
    {
      "source": "types/mdbase-runtime/timer.md",
      "document": "---\nkind: mdbase.type\nname: runtime_timer\nversion: 1\ndescription: Canonical Markdown implementation of mdbase.runtime.timer.\nmatch:\n  where:\n    type: runtime_timer\nschema:\n  dialect: json-schema-2020-12\n  value:\n    $schema: https://json-schema.org/draft/2020-12/schema\n    title: mdbase durable runtime timer\n    type: object\n    required:\n      - type\n      - id\n      - generation\n      - status\n      - fire_at\n      - event\n      - created_at\n      - updated_at\n    properties:\n      type:\n        const: runtime_timer\n      id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      generation:\n        type: integer\n        minimum: 1\n      status:\n        enum:\n          - scheduled\n          - firing\n          - fired\n          - cancelled\n      fire_at:\n        type: string\n        format: date-time\n      event:\n        type: object\n        required:\n          - contract\n          - data\n        properties:\n          contract:\n            $ref: \"#/$defs/contractRequirement\"\n          subject:\n            type: string\n          correlation_id:\n            type: string\n          causation_id:\n            type: string\n          data: {}\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      missed_run_policy:\n        const: fire_once\n      created_at:\n        type: string\n        format: date-time\n      updated_at:\n        type: string\n        format: date-time\n      fired_at:\n        type: string\n        format: date-time\n    patternProperties:\n      ^x-[A-Za-z0-9._:-]+$: true\n    additionalProperties: false\n    $defs:\n      identifier:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      semanticVersion:\n        type: string\n        pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n      digest:\n        type: string\n        pattern: ^sha256:[0-9a-f]{64}$\n      dateTime:\n        type: string\n        format: date-time\n      contractRequirement:\n        type: object\n        required:\n          - id\n          - version\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            minLength: 1\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      exactContractReference:\n        type: object\n        required:\n          - id\n          - version\n          - digest\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      identity:\n        type: object\n        required:\n          - application\n          - implementation\n          - version\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      providerSelector:\n        type: object\n        required: []\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n        minProperties: 1\n      expression:\n        type: object\n        required:\n          - $expr\n        properties:\n          $expr:\n            type: string\n            minLength: 1\n        additionalProperties: false\n    $id: https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.timer/1.0.0.schema.json\nimplements:\n  - contract: mdbase.runtime.timer\n    version: 1.0.0\n    fields:\n      type: type\n      id: id\n      generation: generation\n      status: status\n      fire_at: fire_at\n      event: event\n      missed_run_policy: missed_run_policy\n      created_at: created_at\n      updated_at: updated_at\n      fired_at: fired_at\n---\n\n# Runtime timer\n\nThis canonical type makes `runtime_timer` records discoverable through\nthe ordinary mdbase record-contract registry.\n"
    },
    {
      "source": "schemas/mdbase.runtime.diagnostic/1.0.0.schema.json",
      "document": "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"title\": \"mdbase durable runtime diagnostic\",\n  \"type\": \"object\",\n  \"required\": [\n    \"type\",\n    \"id\",\n    \"severity\",\n    \"code\",\n    \"message\",\n    \"created_at\"\n  ],\n  \"properties\": {\n    \"type\": {\n      \"const\": \"runtime_diagnostic\"\n    },\n    \"id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"severity\": {\n      \"enum\": [\n        \"info\",\n        \"warning\",\n        \"error\"\n      ]\n    },\n    \"code\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"message\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"run_id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"attempt_id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"path\": {\n      \"type\": \"string\"\n    },\n    \"details\": {},\n    \"created_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    }\n  },\n  \"patternProperties\": {\n    \"^x-[A-Za-z0-9._:-]+$\": true\n  },\n  \"additionalProperties\": false,\n  \"$defs\": {\n    \"identifier\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"semanticVersion\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"dateTime\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"contractRequirement\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"exactContractReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\",\n        \"digest\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"identity\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"application\",\n        \"implementation\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"providerSelector\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false,\n      \"minProperties\": 1\n    },\n    \"expression\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$expr\"\n      ],\n      \"properties\": {\n        \"$expr\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"additionalProperties\": false\n    }\n  },\n  \"$id\": \"https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.diagnostic/1.0.0.schema.json\"\n}\n"
    },
    {
      "source": "contracts/mdbase.runtime.diagnostic/1.0.0.md",
      "document": "---\nkind: mdbase.contract\ncontract_type: record\nid: mdbase.runtime.diagnostic\nversion: 1.0.0\nname: Runtime diagnostic\ndescription: A machine-readable durable runtime diagnostic.\nrecord_schema:\n  dialect: json-schema-2020-12\n  ref: ../../schemas/mdbase.runtime.diagnostic/1.0.0.schema.json\n---\n\n# Runtime diagnostic\n\nA machine-readable durable runtime diagnostic.\n\nThis artifact is passive. Installing it or a type that implements it grants no\nauthority to execute workflows or invoke providers.\n"
    },
    {
      "source": "types/mdbase-runtime/diagnostic.md",
      "document": "---\nkind: mdbase.type\nname: runtime_diagnostic\nversion: 1\ndescription: Canonical Markdown implementation of mdbase.runtime.diagnostic.\nmatch:\n  where:\n    type: runtime_diagnostic\nschema:\n  dialect: json-schema-2020-12\n  value:\n    $schema: https://json-schema.org/draft/2020-12/schema\n    title: mdbase durable runtime diagnostic\n    type: object\n    required:\n      - type\n      - id\n      - severity\n      - code\n      - message\n      - created_at\n    properties:\n      type:\n        const: runtime_diagnostic\n      id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      severity:\n        enum:\n          - info\n          - warning\n          - error\n      code:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      message:\n        type: string\n        minLength: 1\n      run_id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      attempt_id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      path:\n        type: string\n      details: {}\n      created_at:\n        type: string\n        format: date-time\n    patternProperties:\n      ^x-[A-Za-z0-9._:-]+$: true\n    additionalProperties: false\n    $defs:\n      identifier:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      semanticVersion:\n        type: string\n        pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n      digest:\n        type: string\n        pattern: ^sha256:[0-9a-f]{64}$\n      dateTime:\n        type: string\n        format: date-time\n      contractRequirement:\n        type: object\n        required:\n          - id\n          - version\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            minLength: 1\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      exactContractReference:\n        type: object\n        required:\n          - id\n          - version\n          - digest\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      identity:\n        type: object\n        required:\n          - application\n          - implementation\n          - version\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      providerSelector:\n        type: object\n        required: []\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n        minProperties: 1\n      expression:\n        type: object\n        required:\n          - $expr\n        properties:\n          $expr:\n            type: string\n            minLength: 1\n        additionalProperties: false\n    $id: https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.diagnostic/1.0.0.schema.json\nimplements:\n  - contract: mdbase.runtime.diagnostic\n    version: 1.0.0\n    fields:\n      type: type\n      id: id\n      severity: severity\n      code: code\n      message: message\n      run_id: run_id\n      attempt_id: attempt_id\n      path: path\n      details: details\n      created_at: created_at\n---\n\n# Runtime diagnostic\n\nThis canonical type makes `runtime_diagnostic` records discoverable through\nthe ordinary mdbase record-contract registry.\n"
    },
    {
      "source": "schemas/mdbase.runtime.dead-letter/1.0.0.schema.json",
      "document": "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"title\": \"mdbase durable runtime dead letter\",\n  \"type\": \"object\",\n  \"required\": [\n    \"type\",\n    \"id\",\n    \"reason\",\n    \"status\",\n    \"evidence\",\n    \"created_at\"\n  ],\n  \"properties\": {\n    \"type\": {\n      \"const\": \"runtime_dead_letter\"\n    },\n    \"id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"reason\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"status\": {\n      \"enum\": [\n        \"unresolved\",\n        \"acknowledged\",\n        \"requeued\"\n      ]\n    },\n    \"evidence_kind\": {\n      \"enum\": [\n        \"event\",\n        \"action_request\",\n        \"action_outcome\"\n      ]\n    },\n    \"evidence\": {\n      \"type\": \"object\"\n    },\n    \"created_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"acknowledged_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    }\n  },\n  \"patternProperties\": {\n    \"^x-[A-Za-z0-9._:-]+$\": true\n  },\n  \"additionalProperties\": false,\n  \"$defs\": {\n    \"identifier\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"semanticVersion\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"dateTime\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"contractRequirement\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"exactContractReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\",\n        \"digest\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"identity\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"application\",\n        \"implementation\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"providerSelector\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false,\n      \"minProperties\": 1\n    },\n    \"expression\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$expr\"\n      ],\n      \"properties\": {\n        \"$expr\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"additionalProperties\": false\n    }\n  },\n  \"$id\": \"https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.dead-letter/1.0.0.schema.json\"\n}\n"
    },
    {
      "source": "contracts/mdbase.runtime.dead-letter/1.0.0.md",
      "document": "---\nkind: mdbase.contract\ncontract_type: record\nid: mdbase.runtime.dead-letter\nversion: 1.0.0\nname: Runtime dead letter\ndescription: Retained event or action evidence that cannot be processed safely.\nrecord_schema:\n  dialect: json-schema-2020-12\n  ref: ../../schemas/mdbase.runtime.dead-letter/1.0.0.schema.json\n---\n\n# Runtime dead letter\n\nRetained event or action evidence that cannot be processed safely.\n\nThis artifact is passive. Installing it or a type that implements it grants no\nauthority to execute workflows or invoke providers.\n"
    },
    {
      "source": "types/mdbase-runtime/dead-letter.md",
      "document": "---\nkind: mdbase.type\nname: runtime_dead_letter\nversion: 1\ndescription: Canonical Markdown implementation of mdbase.runtime.dead-letter.\nmatch:\n  where:\n    type: runtime_dead_letter\nschema:\n  dialect: json-schema-2020-12\n  value:\n    $schema: https://json-schema.org/draft/2020-12/schema\n    title: mdbase durable runtime dead letter\n    type: object\n    required:\n      - type\n      - id\n      - reason\n      - status\n      - evidence\n      - created_at\n    properties:\n      type:\n        const: runtime_dead_letter\n      id:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      reason:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      status:\n        enum:\n          - unresolved\n          - acknowledged\n          - requeued\n      evidence_kind:\n        enum:\n          - event\n          - action_request\n          - action_outcome\n      evidence:\n        type: object\n      created_at:\n        type: string\n        format: date-time\n      acknowledged_at:\n        type: string\n        format: date-time\n    patternProperties:\n      ^x-[A-Za-z0-9._:-]+$: true\n    additionalProperties: false\n    $defs:\n      identifier:\n        type: string\n        pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n      semanticVersion:\n        type: string\n        pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n      digest:\n        type: string\n        pattern: ^sha256:[0-9a-f]{64}$\n      dateTime:\n        type: string\n        format: date-time\n      contractRequirement:\n        type: object\n        required:\n          - id\n          - version\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            minLength: 1\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      exactContractReference:\n        type: object\n        required:\n          - id\n          - version\n          - digest\n        properties:\n          id:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          digest:\n            type: string\n            pattern: ^sha256:[0-9a-f]{64}$\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      identity:\n        type: object\n        required:\n          - application\n          - implementation\n          - version\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          version:\n            type: string\n            pattern: ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n      providerSelector:\n        type: object\n        required: []\n        properties:\n          application:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          implementation:\n            type: string\n            pattern: ^[A-Za-z][A-Za-z0-9._:-]*$\n          instance_id:\n            type: string\n            minLength: 1\n        patternProperties:\n          ^x-[A-Za-z0-9._:-]+$: true\n        additionalProperties: false\n        minProperties: 1\n      expression:\n        type: object\n        required:\n          - $expr\n        properties:\n          $expr:\n            type: string\n            minLength: 1\n        additionalProperties: false\n    $id: https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.dead-letter/1.0.0.schema.json\nimplements:\n  - contract: mdbase.runtime.dead-letter\n    version: 1.0.0\n    fields:\n      type: type\n      id: id\n      reason: reason\n      status: status\n      evidence_kind: evidence_kind\n      evidence: evidence\n      created_at: created_at\n      acknowledged_at: acknowledged_at\n---\n\n# Runtime dead letter\n\nThis canonical type makes `runtime_dead_letter` records discoverable through\nthe ordinary mdbase record-contract registry.\n"
    },
    {
      "source": "schemas/mdbase.record.created/1.0.0.schema.json",
      "document": "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"title\": \"mdbase record-created event data\",\n  \"type\": \"object\",\n  \"required\": [\n    \"path\",\n    \"after\",\n    \"changed_fields\",\n    \"revision\",\n    \"types\"\n  ],\n  \"properties\": {\n    \"path\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"after\": {\n      \"type\": \"object\"\n    },\n    \"changed_fields\": {\n      \"type\": \"array\",\n      \"uniqueItems\": true,\n      \"items\": {\n        \"type\": \"string\"\n      }\n    },\n    \"revision\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"types\": {\n      \"type\": \"array\",\n      \"uniqueItems\": true,\n      \"items\": {\n        \"type\": \"string\",\n        \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n      }\n    }\n  },\n  \"patternProperties\": {\n    \"^x-[A-Za-z0-9._:-]+$\": true\n  },\n  \"additionalProperties\": false,\n  \"$defs\": {\n    \"identifier\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"semanticVersion\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"dateTime\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"contractRequirement\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"exactContractReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\",\n        \"digest\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"identity\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"application\",\n        \"implementation\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"providerSelector\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false,\n      \"minProperties\": 1\n    },\n    \"expression\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$expr\"\n      ],\n      \"properties\": {\n        \"$expr\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"additionalProperties\": false\n    }\n  },\n  \"$id\": \"https://mdbase.dev/schemas/runtime/v0.2/mdbase.record.created/1.0.0.schema.json\"\n}\n"
    },
    {
      "source": "contracts/mdbase.record.created/1.0.0.md",
      "document": "---\nkind: mdbase.contract\ncontract_type: event\nid: mdbase.record.created\nversion: 1.0.0\nname: Record created\ndescription: Published after a record is created and derived collection state is consistent.\ndata_schema:\n  dialect: json-schema-2020-12\n  ref: ../../schemas/mdbase.record.created/1.0.0.schema.json\n---\n\n# Record created\n\nThis built-in is an ordinary, inspectable contract artifact. Runtime exchange\nuses the mdbase interoperability profile unchanged.\n"
    },
    {
      "source": "schemas/mdbase.record.modified/1.0.0.schema.json",
      "document": "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"title\": \"mdbase record-modified event data\",\n  \"type\": \"object\",\n  \"required\": [\n    \"path\",\n    \"before\",\n    \"after\",\n    \"changed_fields\",\n    \"previous_revision\",\n    \"revision\",\n    \"previous_types\",\n    \"types\"\n  ],\n  \"properties\": {\n    \"path\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"before\": {\n      \"type\": \"object\"\n    },\n    \"after\": {\n      \"type\": \"object\"\n    },\n    \"changed_fields\": {\n      \"type\": \"array\",\n      \"uniqueItems\": true,\n      \"items\": {\n        \"type\": \"string\"\n      }\n    },\n    \"previous_revision\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"revision\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"previous_types\": {\n      \"type\": \"array\",\n      \"uniqueItems\": true,\n      \"items\": {\n        \"type\": \"string\",\n        \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n      }\n    },\n    \"types\": {\n      \"type\": \"array\",\n      \"uniqueItems\": true,\n      \"items\": {\n        \"type\": \"string\",\n        \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n      }\n    }\n  },\n  \"patternProperties\": {\n    \"^x-[A-Za-z0-9._:-]+$\": true\n  },\n  \"additionalProperties\": false,\n  \"$defs\": {\n    \"identifier\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"semanticVersion\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"dateTime\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"contractRequirement\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"exactContractReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\",\n        \"digest\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"identity\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"application\",\n        \"implementation\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"providerSelector\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false,\n      \"minProperties\": 1\n    },\n    \"expression\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$expr\"\n      ],\n      \"properties\": {\n        \"$expr\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"additionalProperties\": false\n    }\n  },\n  \"$id\": \"https://mdbase.dev/schemas/runtime/v0.2/mdbase.record.modified/1.0.0.schema.json\"\n}\n"
    },
    {
      "source": "contracts/mdbase.record.modified/1.0.0.md",
      "document": "---\nkind: mdbase.contract\ncontract_type: event\nid: mdbase.record.modified\nversion: 1.0.0\nname: Record modified\ndescription: Published after a record is modified and derived collection state is consistent.\ndata_schema:\n  dialect: json-schema-2020-12\n  ref: ../../schemas/mdbase.record.modified/1.0.0.schema.json\n---\n\n# Record modified\n\nThis built-in is an ordinary, inspectable contract artifact. Runtime exchange\nuses the mdbase interoperability profile unchanged.\n"
    },
    {
      "source": "schemas/mdbase.record.deleted/1.0.0.schema.json",
      "document": "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"title\": \"mdbase record-deleted event data\",\n  \"type\": \"object\",\n  \"required\": [\n    \"path\",\n    \"before\",\n    \"previous_revision\",\n    \"types\"\n  ],\n  \"properties\": {\n    \"path\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"before\": {\n      \"type\": \"object\"\n    },\n    \"previous_revision\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"types\": {\n      \"type\": \"array\",\n      \"uniqueItems\": true,\n      \"items\": {\n        \"type\": \"string\",\n        \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n      }\n    }\n  },\n  \"patternProperties\": {\n    \"^x-[A-Za-z0-9._:-]+$\": true\n  },\n  \"additionalProperties\": false,\n  \"$defs\": {\n    \"identifier\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"semanticVersion\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"dateTime\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"contractRequirement\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"exactContractReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\",\n        \"digest\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"identity\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"application\",\n        \"implementation\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"providerSelector\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false,\n      \"minProperties\": 1\n    },\n    \"expression\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$expr\"\n      ],\n      \"properties\": {\n        \"$expr\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"additionalProperties\": false\n    }\n  },\n  \"$id\": \"https://mdbase.dev/schemas/runtime/v0.2/mdbase.record.deleted/1.0.0.schema.json\"\n}\n"
    },
    {
      "source": "contracts/mdbase.record.deleted/1.0.0.md",
      "document": "---\nkind: mdbase.contract\ncontract_type: event\nid: mdbase.record.deleted\nversion: 1.0.0\nname: Record deleted\ndescription: Published after a record is deleted and derived collection state is consistent.\ndata_schema:\n  dialect: json-schema-2020-12\n  ref: ../../schemas/mdbase.record.deleted/1.0.0.schema.json\n---\n\n# Record deleted\n\nThis built-in is an ordinary, inspectable contract artifact. Runtime exchange\nuses the mdbase interoperability profile unchanged.\n"
    },
    {
      "source": "schemas/mdbase.record.renamed/1.0.0.schema.json",
      "document": "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"title\": \"mdbase record-renamed event data\",\n  \"type\": \"object\",\n  \"required\": [\n    \"from\",\n    \"to\",\n    \"before\",\n    \"after\",\n    \"previous_revision\",\n    \"revision\",\n    \"previous_types\",\n    \"types\"\n  ],\n  \"properties\": {\n    \"from\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"to\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"before\": {\n      \"type\": \"object\"\n    },\n    \"after\": {\n      \"type\": \"object\"\n    },\n    \"previous_revision\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"revision\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"previous_types\": {\n      \"type\": \"array\",\n      \"uniqueItems\": true,\n      \"items\": {\n        \"type\": \"string\",\n        \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n      }\n    },\n    \"types\": {\n      \"type\": \"array\",\n      \"uniqueItems\": true,\n      \"items\": {\n        \"type\": \"string\",\n        \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n      }\n    }\n  },\n  \"patternProperties\": {\n    \"^x-[A-Za-z0-9._:-]+$\": true\n  },\n  \"additionalProperties\": false,\n  \"$defs\": {\n    \"identifier\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"semanticVersion\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"dateTime\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"contractRequirement\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"exactContractReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\",\n        \"digest\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"identity\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"application\",\n        \"implementation\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"providerSelector\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false,\n      \"minProperties\": 1\n    },\n    \"expression\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$expr\"\n      ],\n      \"properties\": {\n        \"$expr\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"additionalProperties\": false\n    }\n  },\n  \"$id\": \"https://mdbase.dev/schemas/runtime/v0.2/mdbase.record.renamed/1.0.0.schema.json\"\n}\n"
    },
    {
      "source": "contracts/mdbase.record.renamed/1.0.0.md",
      "document": "---\nkind: mdbase.contract\ncontract_type: event\nid: mdbase.record.renamed\nversion: 1.0.0\nname: Record renamed\ndescription: Published after a record is renamed and derived collection state is consistent.\ndata_schema:\n  dialect: json-schema-2020-12\n  ref: ../../schemas/mdbase.record.renamed/1.0.0.schema.json\n---\n\n# Record renamed\n\nThis built-in is an ordinary, inspectable contract artifact. Runtime exchange\nuses the mdbase interoperability profile unchanged.\n"
    },
    {
      "source": "schemas/mdbase.runtime.timer.fired/1.0.0.schema.json",
      "document": "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"title\": \"mdbase runtime timer-fired event data\",\n  \"type\": \"object\",\n  \"required\": [\n    \"timer_id\",\n    \"generation\",\n    \"scheduled_for\",\n    \"fired_at\",\n    \"late_by_ms\",\n    \"data\"\n  ],\n  \"properties\": {\n    \"timer_id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"generation\": {\n      \"type\": \"integer\",\n      \"minimum\": 1\n    },\n    \"scheduled_for\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"fired_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"late_by_ms\": {\n      \"type\": \"integer\",\n      \"minimum\": 0\n    },\n    \"data\": {\n      \"description\": \"Opaque application data supplied when the timer was scheduled.\"\n    }\n  },\n  \"patternProperties\": {\n    \"^x-[A-Za-z0-9._:-]+$\": true\n  },\n  \"additionalProperties\": false,\n  \"$defs\": {\n    \"identifier\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"semanticVersion\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"dateTime\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"contractRequirement\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"exactContractReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\",\n        \"digest\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"identity\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"application\",\n        \"implementation\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"providerSelector\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false,\n      \"minProperties\": 1\n    },\n    \"expression\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$expr\"\n      ],\n      \"properties\": {\n        \"$expr\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"additionalProperties\": false\n    }\n  },\n  \"$id\": \"https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.timer.fired/1.0.0.schema.json\"\n}\n"
    },
    {
      "source": "contracts/mdbase.runtime.timer.fired/1.0.0.md",
      "document": "---\nkind: mdbase.contract\ncontract_type: event\nid: mdbase.runtime.timer.fired\nversion: 1.0.0\nname: Runtime timer fired\ndescription: Published with scheduling evidence and opaque application data when the current generation of a durable timer fires.\ndata_schema:\n  dialect: json-schema-2020-12\n  ref: ../../schemas/mdbase.runtime.timer.fired/1.0.0.schema.json\n---\n\n# Runtime timer fired\n\nThis built-in is an ordinary, inspectable contract artifact. Runtime exchange\nuses the mdbase interoperability profile unchanged.\n"
    },
    {
      "source": "schemas/mdbase.runtime.run.cancel/1.0.0.output.schema.json",
      "document": "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"title\": \"mdbase runtime run-cancel action output\",\n  \"type\": \"object\",\n  \"required\": [\n    \"run_id\",\n    \"status\"\n  ],\n  \"properties\": {\n    \"run_id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"status\": {\n      \"enum\": [\n        \"cancellation_requested\",\n        \"already_terminal\"\n      ]\n    }\n  },\n  \"patternProperties\": {\n    \"^x-[A-Za-z0-9._:-]+$\": true\n  },\n  \"additionalProperties\": false,\n  \"$defs\": {\n    \"identifier\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"semanticVersion\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"dateTime\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"contractRequirement\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"exactContractReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\",\n        \"digest\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"identity\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"application\",\n        \"implementation\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"providerSelector\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false,\n      \"minProperties\": 1\n    },\n    \"expression\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$expr\"\n      ],\n      \"properties\": {\n        \"$expr\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"additionalProperties\": false\n    }\n  },\n  \"$id\": \"https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.run.cancel/1.0.0.output.schema.json\"\n}\n"
    },
    {
      "source": "schemas/mdbase.runtime.run.cancel/1.0.0.schema.json",
      "document": "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"title\": \"mdbase runtime run-cancel action input\",\n  \"type\": \"object\",\n  \"required\": [\n    \"run_id\"\n  ],\n  \"properties\": {\n    \"run_id\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"reason\": {\n      \"type\": \"string\"\n    }\n  },\n  \"patternProperties\": {\n    \"^x-[A-Za-z0-9._:-]+$\": true\n  },\n  \"additionalProperties\": false,\n  \"$defs\": {\n    \"identifier\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n    },\n    \"semanticVersion\": {\n      \"type\": \"string\",\n      \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n    },\n    \"digest\": {\n      \"type\": \"string\",\n      \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n    },\n    \"dateTime\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"contractRequirement\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"exactContractReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"id\",\n        \"version\",\n        \"digest\"\n      ],\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"digest\": {\n          \"type\": \"string\",\n          \"pattern\": \"^sha256:[0-9a-f]{64}$\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"identity\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"application\",\n        \"implementation\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"pattern\": \"^(0|[1-9][0-9]*)\\\\.(0|[1-9][0-9]*)\\\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?(?:\\\\+[0-9A-Za-z-]+(?:\\\\.[0-9A-Za-z-]+)*)?$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false\n    },\n    \"providerSelector\": {\n      \"type\": \"object\",\n      \"required\": [],\n      \"properties\": {\n        \"application\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"implementation\": {\n          \"type\": \"string\",\n          \"pattern\": \"^[A-Za-z][A-Za-z0-9._:-]*$\"\n        },\n        \"instance_id\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"patternProperties\": {\n        \"^x-[A-Za-z0-9._:-]+$\": true\n      },\n      \"additionalProperties\": false,\n      \"minProperties\": 1\n    },\n    \"expression\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$expr\"\n      ],\n      \"properties\": {\n        \"$expr\": {\n          \"type\": \"string\",\n          \"minLength\": 1\n        }\n      },\n      \"additionalProperties\": false\n    }\n  },\n  \"$id\": \"https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.run.cancel/1.0.0.schema.json\"\n}\n"
    },
    {
      "source": "contracts/mdbase.runtime.run.cancel/1.0.0.md",
      "document": "---\nkind: mdbase.contract\ncontract_type: action\nid: mdbase.runtime.run.cancel\nversion: 1.0.0\nname: Cancel durable runtime run\ndescription: Request cooperative cancellation of one durable runtime run.\ninput_schema:\n  dialect: json-schema-2020-12\n  ref: ../../schemas/mdbase.runtime.run.cancel/1.0.0.schema.json\noutput_schema:\n  dialect: json-schema-2020-12\n  ref: ../../schemas/mdbase.runtime.run.cancel/1.0.0.output.schema.json\nbehavior:\n  idempotency: required\n  cancellation: none\n---\n\n# Cancel durable runtime run\n\nThis built-in is an ordinary, inspectable contract artifact. Runtime exchange\nuses the mdbase interoperability profile unchanged.\n"
    }
  ],
  "provides": [
    {
      "id": "mdbase.runtime.action-attempt",
      "version": "1.0.0"
    },
    {
      "id": "mdbase.runtime.capability-grant",
      "version": "1.0.0"
    },
    {
      "id": "mdbase.runtime.checkpoint",
      "version": "1.0.0"
    },
    {
      "id": "mdbase.runtime.dead-letter",
      "version": "1.0.0"
    },
    {
      "id": "mdbase.runtime.diagnostic",
      "version": "1.0.0"
    },
    {
      "id": "mdbase.runtime.policy",
      "version": "1.0.0"
    },
    {
      "id": "mdbase.runtime.provider-registration",
      "version": "1.0.0"
    },
    {
      "id": "mdbase.runtime.run",
      "version": "1.0.0"
    },
    {
      "id": "mdbase.runtime.timer",
      "version": "1.0.0"
    },
    {
      "id": "mdbase.runtime.workflow",
      "version": "1.0.0"
    }
  ]
}
