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
20 changes: 12 additions & 8 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/infrastructure/RUST-ORM-ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading