Skip to content

[codex] add runtime config and database foundation#4

Merged
dbtlr merged 5 commits into
mainfrom
sga-14-runtime-config-database
Jun 19, 2026
Merged

[codex] add runtime config and database foundation#4
dbtlr merged 5 commits into
mainfrom
sga-14-runtime-config-database

Conversation

@dbtlr

@dbtlr dbtlr commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Summary

Adds the runtime config and database foundation phase: Effect-backed config loading, Drizzle/Postgres wiring, workspace registration schema, and an opt-in real Postgres integration harness.

Changes

  • Added @saga/runtime config loading with local .env support, validation issues, secret redaction, and an Effect RuntimeConfigLive layer.
  • Added .env ignore rules while preserving .env.example for future checked-in examples.
  • Added @saga/db Drizzle/Postgres dependencies, Drizzle config/scripts, migration runner, and an Effect DatabaseLive service boundary.
  • Added workspace persistence tables for workspaces, workspace profiles, and source bindings.
  • Added generated Drizzle migrations and schema metadata.
  • Added an opt-in real Postgres integration test that creates a temporary database, runs migrations, writes rows, and drops the database.
  • Approved esbuild build scripts in pnpm workspace policy for drizzle-kit tooling.

Validation

  • pnpm run verify
  • pnpm run build
  • SAGA_TEST_DATABASE_URL="postgres://postgres:postgres@<homelab-postgres-ip>:5432/postgres" pnpm --filter @saga/db run test:postgres

Mimir

Completed phase SGA-14 with tasks SGA-15, SGA-16, SGA-17, and SGA-18.

@dbtlr dbtlr marked this pull request as ready for review June 19, 2026 19:54
@dbtlr dbtlr merged commit 2bc29c1 into main Jun 19, 2026
1 check passed
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.

1 participant