Skip to content

🧷 feat: Stage a Managed Worktree Creation Baseline - #427

Merged
danny-avila merged 2 commits into
mainfrom
danny-avila/managed-worktree-baseline
Dec 4, 2026
Merged

danny-avila merged 2 commits into
mainfrom
danny-avila/managed-worktree-baseline

Conversation

@danny-avila

Copy link
Copy Markdown
Collaborator

What changes

Follow-up to #426. Owner scope on the durable creation lease does not prove that the created lane belongs to that lease or that creation reached durable finalization. When supplied a trusted creation lease under the target reservation, the lifecycle can now stage an in-memory candidate: owner and lease identity, detached commit, and inode identities for the authorized checkout, common Git directory, lane, and registration.

Capture starts only after explicit creation of a previously absent target. After checkout it revalidates the linked registration and exact detached HEAD. Existing/manual paths, invalid or absent scope, replacements, and failed or interrupted checkouts cannot yield a candidate. Capture reads no overlay or index contents, runs no additional Git command, and does not modify the source.

Deliberately not wired

No production caller supplies the lease yet. The existing cleanup ACK can release the slot and is not proof that the durable request finalizer committed. Publication needs a matching settlement/cleanup epoch proof; no capability advertisement, persistence, overlay capture, availability, or restore is added here.

Verification

  • Real Git tests cover scoped creation, manual exclusion, stale/replaced metadata, unsafe HEAD, interrupted checkout and source/sibling preservation.
  • Worker TypeScript build and no-emit typecheck passed.

@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review 3d768d3 — pass 1: review the creation provenance, reservation assumptions, and fail-closed capture only.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 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-04T23:16:08.836340Z 27668b2 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.

@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review 4a4b965 — review this exact head. In particular, audit incarnation replacement, metadata reads, and cancellation. The earlier request was for a different head.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 4a4b965a81

ℹ️ 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 3 of 4 on head 4a4b965.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 4a4b965a81

ℹ️ 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 4 of 4) of head 4a4b965. Please flag only blocking issues: correctness, security, or data loss.

@danny-avila
danny-avila merged commit 27668b2 into main Dec 4, 2026
31 checks passed
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 27668b2da4

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

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