feat: persist workspace state and unify database publication - #1
Merged
Merged
Conversation
Store service-owned database configuration, effective limits and recovery blockers in TOML under a fixed workspace layout. Restore healthy APIs on startup without registration replay, isolate failed databases, and never recreate missing registered Turso files. Replace public register/migrate/reload with publish and unregister. Validate target changes before adoption, drain requests before migration, apply one migration batch deadline, and atomically publish interfaces with their limits. Preserve configuration through shutdown and retain typed base36 operation IDs only in memory. Cover both backends, restart, configuration persistence faults, target switching and request cleanup. Group PostgreSQL-dependent library tests in postgres_tests modules so the verification script discovers both registry and diagnostic contracts without individual test names. Update HTTP/CLI documentation, runtime guidance and generated SDK examples. Download the pinned openapi-nexus 0.2.3 release binary rather than building it from source. The complete locked check script passes, including PostgreSQL and Turso SDK/restart contracts.
adamcavendish
force-pushed
the
feat/workspace-publish-recovery
branch
from
September 15, 2026 15:42
68ee2f5 to
773126e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Compatibility
This changes the pre-release management API: use a workspace and POST publish rather than external paths and separate registration/migration/reload calls. The CLI now requires
--workspace.No authentication, address binding restriction, filesystem watcher, distributed PostgreSQL migration lock, or durable operation queue is introduced. Migration commits are not rolled back when a later publication step fails.
Review
Reviewed lifecycle state transitions, durable configuration adoption, migration history, request/resource ownership, restart isolation, and consumer contracts against the agreed W1–W4 design.
Fixed during review:
Added regression coverage for these cases plus unregister removal/sync failures and target-switch persistence uncertainty.
Test plan
cargo build --lockedcargo fmt --checkcargo clippy --locked --all-targets -- -D warningsscripts/check.shon the final codegit diff --checkLocal tests used disposable PostgreSQL data and the downloaded openapi-nexus binary. Hosted CI and release/container verification are separate checks, not claimed by the local results.
Documentation
Updated getting-started, workspace/registry, HTTP, migration and delivery references, examples, and runtime integration guidance. Public lifecycle changes have reference documentation, a walkthrough, and recovery guidance.