From e9b046f763761c8f1f753b65731873942befafd0 Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Thu, 19 Nov 2026 09:50:41 -0600 Subject: [PATCH] Route runtime design questions to the chapters that own them --- docs/README.md | 20 ++++++++++++-------- docs/infrastructure/RUST-ORM-ARCHITECTURE.md | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/docs/README.md b/docs/README.md index 1e49bd42c8..5cbd555006 100644 --- a/docs/README.md +++ b/docs/README.md @@ -17,14 +17,18 @@ How the whole thing composes. Read these first; on architecture questions they w --- -## Runtime and storage design authorities - -| For a change to | Start with | Design owner | -|---|---|---| -| Runtime workers, subscriptions, serving, GPU scheduling, streaming, KV and mind-state caches, or mind swaps | [Continuum Engine](architecture/CONTINUUM-ENGINE.md) | Fable | -| Rust persistence, entity schemas, migrations, typed queries or native data storage | [Rust ORM Architecture](infrastructure/RUST-ORM-ARCHITECTURE.md) | Codex | - -The engine chapter tracks merged design. [Engine design review #6092](https://github.com/CambrianTech/continuum/pull/6092) covers proposed swap and transfer contracts. Disk cache retention belongs to the [disk resource reporters](../core/continuum-kernel/src/system_resources/disk_reporters.rs). +## Runtime architecture + +| Design question | Chapter | +|---|---| +| How do modules compose, expose commands and run across nodes? | [Module architecture](architecture/MODULE-ARCHITECTURE.md) | +| How do the parts of one mind run independently and respond to events? | [Concurrent mind and governor](architecture/CONCURRENT-MIND-AND-GOVERNOR.md). The [stage contract](architecture/STAGE-CONTRACT.md) specifies proposed inputs, outputs, wakeups and completion. | +| How does a governor share capacity among consumers? | [Shared resources](architecture/SHARED-RESOURCES.md) describes the common owner and resource-specific adapters. | +| How do minds take turns decoding while transfers and preparation proceed? | [Continuum Engine](architecture/CONTINUUM-ENGINE.md), owned by Fable. [Review #6092](https://github.com/CambrianTech/continuum/pull/6092) tracks proposed changes. | +| How does a resident learn on the serving engine? | [In-process learning](architecture/IN-PROCESS-LEARNING.md) describes the design and migration dependencies. | +| How are native data, entity schemas, typed queries and migrations represented? | [Rust ORM architecture](infrastructure/RUST-ORM-ARCHITECTURE.md), owned by Codex. The engine chapter owns serving caches. [Disk resource reporters](../core/continuum-kernel/src/system_resources/disk_reporters.rs) implement retention accounting. | + +Revise the chapter that owns the contract and link to it from its callers. When a failure changes the design, link the fixing change and its evidence from the affected rule. Mark proposed behavior until the implementation and live result establish it. ## Where things live — EVERY directory, with counts diff --git a/docs/infrastructure/RUST-ORM-ARCHITECTURE.md b/docs/infrastructure/RUST-ORM-ARCHITECTURE.md index 9e739ddca7..476a2eed7e 100644 --- a/docs/infrastructure/RUST-ORM-ARCHITECTURE.md +++ b/docs/infrastructure/RUST-ORM-ARCHITECTURE.md @@ -18,7 +18,7 @@ External callers pass an opaque database handle to a data or vector command. The Declare the field representation on the entity. A JSON string scalar includes its JSON quotes. The staged-credit role `Owner` is stored as `"Owner"`. Native binary data stays in its declared binary representation. A worker refers to a large native artifact through a typed descriptor. -Readers use `DataRecord::decode` to interpret stored rows. A strict decode runs first. Older rows may have NULL in columns added after the row was written; the shared decoder allows declared defaults to supply missing fields. A required field without a valid value still fails. A schema change must distinguish intentional nullability from a migration default. [Row decoding](../../core/continuum-kernel/src/orm/record_decode.rs) +Readers use `DataRecord::decode` to interpret stored rows. A strict decode runs first. Older rows may have NULL in columns added after the row was written; the shared decoder allows declared defaults to supply missing fields. Use a decoding default only for a migrated column whose historical value is defined. Adding a required field needs a migration that supplies its value. Preserve NULL when absence is part of the schema. [Row decoding](../../core/continuum-kernel/src/orm/record_decode.rs) ## Database concurrency