Skip to content

feat(bridge): Bind dark checkpoint tickets to paired leases - #443

Merged
danny-avila merged 1 commit into
mainfrom
danny-avila/dark-lease-ticket
Dec 5, 2026
Merged

danny-avila merged 1 commit into
mainfrom
danny-avila/dark-lease-ticket

Conversation

@danny-avila

Copy link
Copy Markdown
Collaborator

Summary

Checkpoint publication needs to identify the exact lane epoch assigned to an authenticated creation lease. The owner scope alone does not opt a worker into tickets. An explicit paired registration capability plus a signed lease-poll opt-in negotiate the extension; old peers still receive normal leases.

  • Enqueue binds the ticket to the exact Redis epoch in the durable admission CAS, only for slotted, tenant-bound create_worktree with a trusted owner scope.
  • Lease delivery checks current claim, slot, epoch, registration and paired authority atomically. Duplicate live leases get the same ticket; stale leases do not get one.
  • The binding is separate from proof-vote admission. No worker opt-in, production config, forwarding or storage is added. This does not stack on fix(bridge): Isolate Checkpoint Candidates from Settlement Payloads #440 or fix(bridge): Bind checkpoint votes to paired authority #441. Both are needed before wiring ticket consumption into checkpoint publication.

Verification

  • 82 focused protocol/bridge tests, including 17 dark-ticket cases and Redis AOF proof tests.
  • 113 durable workspace/fleet tests against disposable Redis.
  • Worker package TypeScript and git diff --check passed. Service-wide TypeScript still reports errors outside the changed files.

@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review exact head 56be588392ebfce126e49c06056d723de0471871. First pass: please check negotiated opt-in, authentication and epoch fencing, duplicate/stale lease behavior, and isolation from proof-vote admission.

@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-05T03:20:04.261049Z 56be588 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. You're on a roll.

Reviewed commit: 56be588392

ℹ️ 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 56be588.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 56be588392

ℹ️ 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 56be588. 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. You're on a roll.

Reviewed commit: 56be588392

ℹ️ 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 66f0179 into main Dec 5, 2026
31 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