From 1232031fb950ee5b693611cee48dd197f4a7c8d3 Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 16 Sep 2026 21:20:00 +0200 Subject: [PATCH] =?UTF-8?q?Correct=20store=20phrasing=20=E2=80=94=20a=20mo?= =?UTF-8?q?dule=20gets=20a=20database=20only=20if=20it=20asks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not "every module's database"; a module requests one via requires postgres-database. The one server holds the controller's contexts and the database of each module that asks for one. Claude-Session: https://claude.ai/code/session_01D6qtiYU3P9jk3pnAXyAFyx --- internal/bootstrap/bootstrap.go | 3 ++- internal/bootstrap/phase3.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/bootstrap/bootstrap.go b/internal/bootstrap/bootstrap.go index 3b7013f..a640b5f 100644 --- a/internal/bootstrap/bootstrap.go +++ b/internal/bootstrap/bootstrap.go @@ -589,7 +589,8 @@ func Run(ctx context.Context, o Options, d Deps, say func(string)) (Result, erro // ---- 14. store ------------------------------------------------------------------------ // The foundation's own store, ADOPTED as the `postgres` module (novox/hq issue 051): one - // server holds the control plane's contexts and every module's database, rather than the + // server holds the control plane's contexts and the database of each module that asks for one, + // rather than the // foundation's store beside a second one a module raised. Adopted in place — the module names // the container the foundation is already running, and the applier leaves it be (phase3.go). say("store — the foundation's store, adopted as the postgres module: one server, not two") diff --git a/internal/bootstrap/phase3.go b/internal/bootstrap/phase3.go index 6ccc82a..a74ce76 100644 --- a/internal/bootstrap/phase3.go +++ b/internal/bootstrap/phase3.go @@ -16,7 +16,7 @@ import ( // (novox/hq ADR 0006). That leaves two servers behind: the foundation's, and a second one the // `postgres`/`lavinmq` modules used to raise for other modules to use. This turns the foundation's // own servers into those modules, so a mesh runs ONE postgres and ONE lavinmq — the control plane's -// contexts and every module's database in the same server (WBS 3.1/3.2). +// contexts and the database of each module that asks for one, in the same server (WBS 3.1/3.2). // // **Adopted in place, not replaced.** The control plane is stateless and is swapped for a fresh // container (control.go); the store and broker hold the mesh's memory and its bus, so they are kept.