Skip to content

fix: avoid partial-clone hydration during worktree admission - #1003

Merged
chubes4 merged 1 commit into
mainfrom
fix/1002-partial-clone-capacity
Aug 5, 2026
Merged

fix: avoid partial-clone hydration during worktree admission#1003
chubes4 merged 1 commit into
mainfrom
fix/1002-partial-clone-capacity

Conversation

@chubes4

@chubes4 chubes4 commented Aug 4, 2026

Copy link
Copy Markdown
Member

Summary

  • detect blob:none promisor repositories before target-tree capacity planning
  • inspect partial-clone trees without requesting blob sizes
  • retain exact blob-size accounting for full clones
  • expose a filterable, reviewer-visible conservative byte estimate while preserving package, Composer, submodule, and inode detection

Closes #1002.

Verification

  • php tests/worktree-bootstrap-demand.php
  • php tests/worktree-add-lifecycle.php
  • php -l inc/Workspace/WorktreeBootstrapper.php
  • php -l tests/worktree-bootstrap-demand.php
  • git diff --check

The regression coverage asserts the exact Git command shape for full and blobless clones and verifies equivalent dependency-root detection.

AI assistance

OpenAI GPT-5.6 Sol via OpenCode reproduced and traced the partial-clone hydration behavior, implemented the initial repair, and helped validate the final capacity contract under Chris Huber's direction. Chris remains responsible for every line.

Use metadata-only target-tree inspection for blob:none promisor clones and reserve a filterable conservative byte estimate while preserving exact accounting for full clones.

AI assistance: OpenAI GPT-5.6 Sol via OpenCode identified the hydration path, implemented the initial repair, and helped validate the final capacity contract under Chris Huber's direction. Chris remains responsible for every line.
@chubes4
chubes4 merged commit 7ec0ac1 into main Aug 5, 2026
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.

Avoid blob hydration during worktree capacity admission

1 participant