Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions public/connect/schemas/connect-protocol.v1.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,6 @@
"version": { "$ref": "#/$defs/semanticVersion" }
}
},
"runtimeContractRequirement": {
"type": "object",
"additionalProperties": false,
"required": ["id", "version"],
"properties": {
"id": { "type": "string", "minLength": 1, "maxLength": 100 },
"version": { "type": "integer", "minimum": 1 }
}
},
"semanticVersion": {
"type": "string",
"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-]+)*)?$"
Expand Down Expand Up @@ -348,7 +339,7 @@
"required": ["id", "event", "presentation"],
"properties": {
"id": { "type": "string", "minLength": 1, "maxLength": 100, "pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*$" },
"event": { "$ref": "#/$defs/runtimeContractRequirement" },
"event": { "$ref": "#/$defs/contractRequirement" },
"if": {
"type": "object",
"additionalProperties": false,
Expand Down
11 changes: 1 addition & 10 deletions public/connect/schemas/mdbase-app.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,6 @@
}
}
},
"runtimeContract": {
"type": "object",
"additionalProperties": false,
"required": ["id", "version"],
"properties": {
"id": { "$ref": "#/$defs/identifier" },
"version": { "type": "integer", "minimum": 1 }
}
},
"requirements": {
"type": "object",
"additionalProperties": false,
Expand Down Expand Up @@ -197,7 +188,7 @@
"required": ["id", "event", "presentation"],
"properties": {
"id": { "$ref": "#/$defs/identifier" },
"event": { "$ref": "#/$defs/runtimeContract" },
"event": { "$ref": "#/$defs/contract" },
"if": {
"type": "object",
"additionalProperties": false,
Expand Down
11 changes: 1 addition & 10 deletions public/connect/schemas/mdbase-app.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,6 @@
}
}
},
"runtimeContract": {
"type": "object",
"additionalProperties": false,
"required": ["id", "version"],
"properties": {
"id": { "$ref": "#/$defs/identifier" },
"version": { "type": "integer", "minimum": 1 }
}
},
"requirements": {
"type": "object",
"additionalProperties": false,
Expand Down Expand Up @@ -197,7 +188,7 @@
"required": ["id", "event", "presentation"],
"properties": {
"id": { "$ref": "#/$defs/identifier" },
"event": { "$ref": "#/$defs/runtimeContract" },
"event": { "$ref": "#/$defs/contract" },
"if": {
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
kind: mdbase.contract
contract_type: event
id: mdbase.record.created
version: 1.0.0
name: Record created
description: Published after a record is created and derived collection state is consistent.
data_schema:
dialect: json-schema-2020-12
ref: ../../schemas/mdbase.record.created/1.0.0.schema.json
---

# Record created

This built-in is an ordinary, inspectable contract artifact. Runtime exchange
uses the mdbase interoperability profile unchanged.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
kind: mdbase.contract
contract_type: event
id: mdbase.record.deleted
version: 1.0.0
name: Record deleted
description: Published after a record is deleted and derived collection state is consistent.
data_schema:
dialect: json-schema-2020-12
ref: ../../schemas/mdbase.record.deleted/1.0.0.schema.json
---

# Record deleted

This built-in is an ordinary, inspectable contract artifact. Runtime exchange
uses the mdbase interoperability profile unchanged.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
kind: mdbase.contract
contract_type: event
id: mdbase.record.modified
version: 1.0.0
name: Record modified
description: Published after a record is modified and derived collection state is consistent.
data_schema:
dialect: json-schema-2020-12
ref: ../../schemas/mdbase.record.modified/1.0.0.schema.json
---

# Record modified

This built-in is an ordinary, inspectable contract artifact. Runtime exchange
uses the mdbase interoperability profile unchanged.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
kind: mdbase.contract
contract_type: event
id: mdbase.record.renamed
version: 1.0.0
name: Record renamed
description: Published after a record is renamed and derived collection state is consistent.
data_schema:
dialect: json-schema-2020-12
ref: ../../schemas/mdbase.record.renamed/1.0.0.schema.json
---

# Record renamed

This built-in is an ordinary, inspectable contract artifact. Runtime exchange
uses the mdbase interoperability profile unchanged.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
kind: mdbase.contract
contract_type: record
id: mdbase.runtime.action-attempt
version: 1.0.0
name: Durable action attempt
description: Durable invocation intent and outcome evidence using the shared interoperability envelope.
record_schema:
dialect: json-schema-2020-12
ref: ../../schemas/mdbase.runtime.action-attempt/1.0.0.schema.json
---

# Durable action attempt

Durable invocation intent and outcome evidence using the shared interoperability envelope.

This artifact is passive. Installing it or a type that implements it grants no
authority to execute workflows or invoke providers.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
kind: mdbase.contract
contract_type: record
id: mdbase.runtime.capability-grant
version: 1.0.0
name: Capability grant evidence
description: A materialized authorization grant scoped independently from contract conformance.
record_schema:
dialect: json-schema-2020-12
ref: ../../schemas/mdbase.runtime.capability-grant/1.0.0.schema.json
---

# Capability grant evidence

A materialized authorization grant scoped independently from contract conformance.

This artifact is passive. Installing it or a type that implements it grants no
authority to execute workflows or invoke providers.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
kind: mdbase.contract
contract_type: record
id: mdbase.runtime.checkpoint
version: 1.0.0
name: Runtime checkpoint
description: A durable, lease-safe workflow continuation.
record_schema:
dialect: json-schema-2020-12
ref: ../../schemas/mdbase.runtime.checkpoint/1.0.0.schema.json
---

# Runtime checkpoint

A durable, lease-safe workflow continuation.

This artifact is passive. Installing it or a type that implements it grants no
authority to execute workflows or invoke providers.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
kind: mdbase.contract
contract_type: record
id: mdbase.runtime.dead-letter
version: 1.0.0
name: Runtime dead letter
description: Retained event or action evidence that cannot be processed safely.
record_schema:
dialect: json-schema-2020-12
ref: ../../schemas/mdbase.runtime.dead-letter/1.0.0.schema.json
---

# Runtime dead letter

Retained event or action evidence that cannot be processed safely.

This artifact is passive. Installing it or a type that implements it grants no
authority to execute workflows or invoke providers.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
kind: mdbase.contract
contract_type: record
id: mdbase.runtime.diagnostic
version: 1.0.0
name: Runtime diagnostic
description: A machine-readable durable runtime diagnostic.
record_schema:
dialect: json-schema-2020-12
ref: ../../schemas/mdbase.runtime.diagnostic/1.0.0.schema.json
---

# Runtime diagnostic

A machine-readable durable runtime diagnostic.

This artifact is passive. Installing it or a type that implements it grants no
authority to execute workflows or invoke providers.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
kind: mdbase.contract
contract_type: record
id: mdbase.runtime.policy
version: 1.0.0
name: Runtime policy
description: Local authorization, executor, limit, and provider-selection policy.
record_schema:
dialect: json-schema-2020-12
ref: ../../schemas/mdbase.runtime.policy/1.0.0.schema.json
---

# Runtime policy

Local authorization, executor, limit, and provider-selection policy.

This artifact is passive. Installing it or a type that implements it grants no
authority to execute workflows or invoke providers.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
kind: mdbase.contract
contract_type: record
id: mdbase.runtime.provider-registration
version: 1.0.0
name: Provider registration evidence
description: An optional audit snapshot of a verified interoperability declaration; it never activates code.
record_schema:
dialect: json-schema-2020-12
ref: ../../schemas/mdbase.runtime.provider-registration/1.0.0.schema.json
---

# Provider registration evidence

An optional audit snapshot of a verified interoperability declaration; it never activates code.

This artifact is passive. Installing it or a type that implements it grants no
authority to execute workflows or invoke providers.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
kind: mdbase.contract
contract_type: action
id: mdbase.runtime.run.cancel
version: 1.0.0
name: Cancel durable runtime run
description: Request cooperative cancellation of one durable runtime run.
input_schema:
dialect: json-schema-2020-12
ref: ../../schemas/mdbase.runtime.run.cancel/1.0.0.schema.json
output_schema:
dialect: json-schema-2020-12
ref: ../../schemas/mdbase.runtime.run.cancel/1.0.0.output.schema.json
behavior:
idempotency: required
cancellation: none
---

# Cancel durable runtime run

This built-in is an ordinary, inspectable contract artifact. Runtime exchange
uses the mdbase interoperability profile unchanged.
18 changes: 18 additions & 0 deletions public/contracts/artifacts/contracts/mdbase.runtime.run/1.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
kind: mdbase.contract
contract_type: record
id: mdbase.runtime.run
version: 1.0.0
name: Durable run
description: The durable state and immutable admitted plan for one workflow execution.
record_schema:
dialect: json-schema-2020-12
ref: ../../schemas/mdbase.runtime.run/1.0.0.schema.json
---

# Durable run

The durable state and immutable admitted plan for one workflow execution.

This artifact is passive. Installing it or a type that implements it grants no
authority to execute workflows or invoke providers.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
kind: mdbase.contract
contract_type: event
id: mdbase.runtime.timer.fired
version: 1.0.0
name: Runtime timer fired
description: Published with scheduling evidence and opaque application data when the current generation of a durable timer fires.
data_schema:
dialect: json-schema-2020-12
ref: ../../schemas/mdbase.runtime.timer.fired/1.0.0.schema.json
---

# Runtime timer fired

This built-in is an ordinary, inspectable contract artifact. Runtime exchange
uses the mdbase interoperability profile unchanged.
18 changes: 18 additions & 0 deletions public/contracts/artifacts/contracts/mdbase.runtime.timer/1.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
kind: mdbase.contract
contract_type: record
id: mdbase.runtime.timer
version: 1.0.0
name: Runtime timer
description: A generation-safe one-shot timer that publishes through the interoperability profile.
record_schema:
dialect: json-schema-2020-12
ref: ../../schemas/mdbase.runtime.timer/1.0.0.schema.json
---

# Runtime timer

A generation-safe one-shot timer that publishes through the interoperability profile.

This artifact is passive. Installing it or a type that implements it grants no
authority to execute workflows or invoke providers.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
kind: mdbase.contract
contract_type: record
id: mdbase.runtime.workflow
version: 1.0.0
name: Durable workflow
description: A portable workflow whose event and action references are resolved and pinned at admission.
record_schema:
dialect: json-schema-2020-12
ref: ../../schemas/mdbase.runtime.workflow/1.0.0.schema.json
---

# Durable workflow

A portable workflow whose event and action references are resolved and pinned at admission.

This artifact is passive. Installing it or a type that implements it grants no
authority to execute workflows or invoke providers.
Loading