Repository navigation
feat(repo): agent sessions on a partial clone (P37d, ADR-0050) - #194
Merged
Merged
Conversation
sc ws fork/run/harvest/abandon and sc work work on a partial clone. A workspace or agent sees the host's sparse view only (sc work no longer gets a complete tree there); the view closure is filled (lazy, online) or refused with the gap error before anything is written; a workspace commit grafts the out-of-view subtrees from the base without reading them; and harvest lands through the ADR-0049 merge, with any conflict falling back to a work-<i> branch as on a full clone. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b262184406
ℹ️ 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".
…nd drop a failed harvest's candidate Sol review: fork and sc work relied on materialize's preflight, which a workspace layout (not a partial clone) skips, so a view gap surfaced mid-write as a raw NotFound; they now run preflight_view against the host layout first. A harvest whose probe or landing fails before any write left its candidate work-<i> branch behind, and a retry minted another; it is deleted on that path (a real conflict keeps it). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
tonibergholm-codento
approved these changes
Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
sc ws fork/run/harvest/abandonandsc workwere refused on a partial clone. ADR-0049 removed the blocking reason (merge), and this closes the last open piece of the partial-clone arc by deciding the product question: yes, with the host's view as the agent's world.sc wsalready did).sc workused to give each agent the complete tree; on a partial clone there is none, so agents get the view too. Widen it withsc sparse setorsc backfill --all.sc workcallensure_viewon the base: a lazy, online clone fetches the view closure by id; any other clone fails withGapInViewand thesc backfillhint before a checkout, manifest or branch exists.snapshot_files); the tracked-path walk is now bounded by the view on a partial clone (full clones are unchanged). Landing usesmerge_with_identity(the ADR-0049 engine), and the clean-or-fallback probe is answered bytree_merge_filled(would_merge_cleanly_partial): any conflict falls back to awork-<i>branch as on a full clone.partial_sessions.rs.ADR-0050 records the decision. ADR-0049, ROADMAP and CLAUDE.md are updated (the refusal list shrinks; capability row P37d).
Verification
docs/unread and unfetched; a same-line conflict falls back towork-1and leavesmainalone; an untouched workspace isUnchanged;sc workagents cannot seedocs/, commit toagent-1, leavedocs/carried, and leave no session residue.cargo fmt,cargo clippy --workspace --all-targets -D warnings,cargo test --workspace,demo/run_ws_demo.shanddemo/run_lazy_fetch_demo.shpass.🤖 Generated with Claude Code