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
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,30 @@

All notable changes to this specification and conformance suite are documented here.

## Runtime standard pack 0.2.1 and `@callumalpass/mdbase-runtime` 0.2.1 (2026-11-17)

The specification itself is unchanged.

- Runtime records leave the type declaration key to the collection. The ten
runtime record schemas required `type` and pinned it (`type:
runtime_workflow` and so on), and rejected any other top-level field. A
conforming engine writes a record's type under the collection's configured
`explicit_type_keys`, so in a collection that declares types with
`mdbase_type` every runtime record failed validation, and records carrying
both keys failed in every collection. The record contracts are now 1.1.0 and
the canonical types version 2: the schemas neither require nor declare
`type`, and they accept top-level fields outside the contract, while nested
structures stay closed. Every record valid under 1.0.0 is valid under 1.1.0.
Each type keeps its `match` rule for hand-written `type:` records.
- `standard-packs/mdbase-runtime/0.2.1` carries them, with the event and
action artifacts unchanged. It still installs the 1.0.0 record contracts,
byte-for-byte, so a collection type that implements 1.0.0 stays valid. Pack 0.2.0 stays published as it was, and the
generator now writes only the current pack.
- `@callumalpass/mdbase-runtime` 0.2.1 validates against the 1.1.0 schemas.
`validateRuntimeRecord(value, recordType?)` takes the record type for
records whose type is declared under another key, and the `type` field on
`RuntimeWorkflow` and `RuntimePolicy` is optional.

## 0.3.0 (2026-11-15)

The first stable specification freezes the rc.6 draft at
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ order_by:
| Reconcile concurrent edits | [Concurrent Edits Profile](./concurrent-edits/0.1.md) |
| Install and upgrade types | [Type Packs Profile](./type-packs/0.1.md) |
| Connect applications | [Event and Action Interoperability](./interop/0.1.md) |
| Define durable automation | [Durable Runtime Companion Profile](./runtime/0.2.md) and the [standard runtime pack](./standard-packs/mdbase-runtime/0.2.0/) |
| Define durable automation | [Durable Runtime Companion Profile](./runtime/0.2.md) and the [standard runtime pack](./standard-packs/mdbase-runtime/0.2.1/) |
| Migrate a v0.2 collection | [Migrations And Compatibility](./13-migrations-and-compatibility.md) |
| Use Obsidian Bases views | [Obsidian Bases adapter](./adapters/obsidian-bases.md) |
| Exchange typed events and actions | [Event/action interoperability profile 0.1](./interop/0.1.md) and [canonical interoperability schemas](./schemas/interop/v0.1/) |
Expand Down
2 changes: 1 addition & 1 deletion examples/v0.3/canvas-runtime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This collection demonstrates runtime companion profile 0.2:
workflow runs.

Install
[`mdbase.runtime.standard`](../../../standard-packs/mdbase-runtime/0.2.0/)
[`mdbase.runtime.standard`](../../../standard-packs/mdbase-runtime/0.2.1/)
before opening the workflow and policy as typed records. The pack supplies the
canonical `runtime_workflow` and `runtime_policy` type implementations. Pack
installation does not activate the workflow.
Expand Down
4 changes: 2 additions & 2 deletions packages/runtime-contracts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/runtime-contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@callumalpass/mdbase-runtime",
"version": "0.2.0",
"version": "0.2.1",
"type": "module",
"description": "Durable mdbase workflow admission and runtime record contracts built on mdbase interoperability.",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions packages/runtime-contracts/scripts/generate-schema-module.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";

const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..");
const packRoot = resolve(packageRoot, "../../standard-packs/mdbase-runtime/0.2.0");
const packRoot = resolve(packageRoot, "../../standard-packs/mdbase-runtime/0.2.1");
const outputPath = resolve(packageRoot, "src/generated-schemas.ts");
const runtimeRecords = {
runtime_workflow: "mdbase.runtime.workflow",
Expand All @@ -21,7 +21,7 @@ const runtimeRecords = {
const schemas = {};
for (const [type, contract] of Object.entries(runtimeRecords)) {
schemas[type] = JSON.parse(
await readFile(resolve(packRoot, `schemas/${contract}/1.0.0.schema.json`), "utf8")
await readFile(resolve(packRoot, `schemas/${contract}/1.1.0.schema.json`), "utf8")
);
}

Expand Down
Loading
Loading