Skip to content

docs: record the command layer and its decisions - #52

Merged
OriginDevIT merged 1 commit into
mainfrom
docs/session-handoff-command-layer
Aug 31, 2026
Merged

docs: record the command layer and its decisions#52
OriginDevIT merged 1 commit into
mainfrom
docs/session-handoff-command-layer

Conversation

@OriginDevIT

@OriginDevIT OriginDevIT commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Updates docs/decisions.md for the six PRs merged in the command layer session.

New settled decisions: persistence lives in packages/core behind a driver-isolated @osds/core/persist export path; packages/api is a request-handling library consumed by Next route handlers, not a second server; multi-event commands stamp idempotency_key on the first event only; an event the store cannot fully apply is not emitted.

Also records the command log's null-tenant exception to invariant 3, the owner column, and the lesson that a db-backed test connecting as the owner passes against a table osds_app cannot write.

Closes #40

Persistence in packages/core behind @osds/core/persist, packages/api as a
library rather than a server, the command log and its null-tenant exception,
and the owner column. Plus the lesson that a db-backed test connecting as the
owner will pass against a table osds_app cannot write.

Signed-off-by: Matthew Wren <info@origindev.com>
@OriginDevIT
OriginDevIT merged commit 0788472 into main Aug 31, 2026
1 check passed
@OriginDevIT
OriginDevIT deleted the docs/session-handoff-command-layer branch August 31, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

packages/api is a library, not a server

1 participant