feat(storage): add SQLite and Postgres control planes#221
Conversation
Cut production consumers over to activated SQLite/Postgres authority with atomic snapshot publication, leases and fencing, protected key rotation, migration gates, degraded read-only behavior, and dashboard recovery UX.\n\nAdd real PostgreSQL convergence and bounded cold/hot envelope qualification for the distributed Current Host contract.
|
Too many files changed for review. ( Bypass the limit by tagging |
|
Important Review skippedToo many files! This PR contains 339 files, which is 239 over the limit of 100. To get a review, narrow the scope: Upgrade to a paid plan to raise the limit. Usage-priced reviews support at most 300 files. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (339)
You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Preview DeployedLanding: https://pr-221.preview.caplets.dev Built from commit 0f87cc9 |
81b216e to
03b0047
Compare
cce464c to
0db4611
Compare
0db4611 to
cae79ec
Compare
Summary
Caplets can now run a complete mutable Current Host control plane on zero-config SQLite for single-node installs or Postgres for multi-node deployments. Container images and project repositories remain portable filesystem bootstrap sources, while dashboard and global CLI mutations persist transactionally in SQL.
This closes the gap where container replacement lost mutable host state and multiple nodes could not safely share installs, credentials, approvals, or runtime generations.
Design decisions
What is now possible
Operational boundaries
caplets storage migrate --global --offline.Validation
pnpm verifypassed in the pre-push hook: formatting, lint, generated APIs/schema/docs, paired migration checks, typechecking, 2,956 workspace tests, benchmark freshness, build, and packaged runtime smoke.