Skip to content

feat(bridge): Persist dark managed restore reservations - #453

Merged
danny-avila merged 2 commits into
mainfrom
danny-avila/durable-restore-reservations
Dec 5, 2026
Merged

danny-avila merged 2 commits into
mainfrom
danny-avila/durable-restore-reservations

Conversation

@danny-avila

Copy link
Copy Markdown
Collaborator

A process-local lock cannot preserve a provisional restore destination or distinguish an ended writer from an abandoned claim after restart. Add a dark Redis store that binds the paired worker and tenant, physical checkout enrollment, exact owner and source guard incarnation, restore ID and deterministic destination.

Checkout state Writer claim Restore reservation
Enrolled, idle Atomically claims a new revision Atomically records the operation and fences the checkout
Writer held Denied until exact revision is explicitly finished Denied
Restore held Denied Exact retry reads the existing reservation; all others denied

Transitions use one Lua gate; there is no TTL, auto-release or restore-release path. Missing or mismatched enrollment never admits work. The store is intentionally not wired into dispatch or #451 and is not worker-local quiet proof, a binding commit, or authorization to execute. Durable non-evicting Redis and verified new enrollment are prerequisites, not asserted by this module. The PR is independent of #451 and #452.

Four committed real-Redis tests and focused strict TypeScript check passed. Also verified both fences after SIGKILL/AOF replay locally with #452's helper, without including that pending helper in this branch. The full service typecheck has pre-existing diagnostics on main.

@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review exact head 7dd55ac

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T14:25:45.646145Z 7dd55ac Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 7dd55ac857

ℹ️ 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".

@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review

Pass 2 of 3 on head 7dd55ac.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 7dd55ac857

ℹ️ 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".

@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review

This is the final review for this PR (pass 3 of 3) of head 7dd55ac. Please flag only blocking issues: correctness, security, or data loss.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 7dd55ac857

ℹ️ 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".

@danny-avila
danny-avila merged commit 47051ef into main Dec 5, 2026
24 checks 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