Skip to content

feat(worker): Capture bounded managed worktree checkpoints - #430

Merged
danny-avila merged 2 commits into
mainfrom
danny-avila/worker-checkpoint-capture
Dec 4, 2026
Merged

danny-avila merged 2 commits into
mainfrom
danny-avila/worker-checkpoint-capture

Conversation

@danny-avila

@danny-avila danny-avila commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add a read-only capture primitive for explicitly managed linked worktrees. Match the authenticated owner and checkout, common Git directory, registration, and lane identities before reading.
  • Capture bounded HEAD → index → working-copy overlays with separate bytes, executable modes, and deletions. Exclude ignored and credential-like paths; fail closed for ambiguous indexes and unsupported tracked entries.
  • Require an existing direct retention ref for the exact HEAD before and after capture. The caller must own and retain that pin; this code does not create one.

No runtime callers, fence or Git permission changes, persistence, publication, or restore API. Exclusion applies to the overlay, not retained Git history, and is not content scanning.

Verification

  • Worker TypeScript check and build pass; ten synthetic capture tests pass, including staged/working replay and detached commit pruning.
  • The full local worker suite had 284 failures and two cancellations, identical by test name and count with the nine new tests excluded. The sandbox reports / as owned by UID 65534, which triggers the private-storage ancestry guard. CI will run the package suite independently.

Follows #426.

@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review — pass 1 for exact head 198f0280abe66d4cdc7a4ca486167571502b525d. Focus on capture eligibility, read-only Git assumptions, and overlay boundaries.

@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:11:09.724208Z 1e8a5f4 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. What shall we delve into next?

Reviewed commit: 198f0280ab

ℹ️ 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 for exact head 198f0280abe66d4cdc7a4ca486167571502b525d. Please independently check baseline lifetime, ignored staged deletions, and unsupported index states.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 198f0280ab

ℹ️ 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 — final review (pass 3) for exact head 1e8a5f419be7688d9ae24e215c7088e07cb22ce0. The tracked intent-to-add case now compares raw records; please check for remaining correctness or safety blockers.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 1e8a5f419b

ℹ️ 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 9d6ab00 into main Dec 4, 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