feat: add object coordination and stateless runtime lifecycle - #113
arvindh123 wants to merge 6 commits into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 681f37d233
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
atom-docs | bac8d6c | Commit Preview URL Branch Preview URL |
Sep 18 2026, 10:55 AM |
Keep main's refresh-token migration at version 002 and move the new coordination migration to 003. Preserve the frozen launch manifest while checking all forward migration names and versions. Validate the merged GraphQL contract and add regression coverage for the refresh-token worker's shutdown and runtime failure handling. Account for both refresh-token and coordination events in the catalog regression assertion.
e26d0a0 to
bac8d6c
Compare
Object coordination lets clients commit related entity/resource changes atomically with revision checks, replay protection, and fenced leases. The runtime lifecycle changes let operators replace an Atom process while its durable state remains in PostgreSQL, with a bounded drain on termination.
The combined branch preserves transactional coordination, migration 002, tenant lock ordering, canonical lease keys, API contracts, and audit/event semantics. Runtime startup is extracted into the library, HTTP/gRPC/enrollment and background tasks share cancellation, and shutdown drains tracked work before closing the database pool. Workspace provisioning and idle policy remain outside Atom.
Validation on the combined implementation:
cargo fmt --checkandcargo clippy -- -D warningspassed.The original stateless work is preserved as snapshot commit
8cc29ddbc. Integration preserves the published branch history; the PR remains unmerged.