Skip to content

tree repair - #329

Merged
davidabram merged 3 commits into
mainfrom
tree-repair
Oct 17, 2026
Merged

davidabram merged 3 commits into
mainfrom
tree-repair

Conversation

@davidabram

Copy link
Copy Markdown
Member

No description provided.

davidabram and others added 3 commits October 16, 2026 17:07
Restore missing local snapshot pins when their trees remain available, prune
mutation events that reference absent snapshot trees, and fail closed when the
worktree cursor is unrecoverable. Add CAS-guarded maintenance transactions,
reporting, tests, and documentation for the repair behavior.

Co-authored-by: SCE <sce@crocoder.dev>
Document the heuristic and recovery workflow for sequential re-clones that inherit durable Agent Trace state while losing their Git objects. Specify non-cursor pruning, cursor recovery, read-only doctor reporting, invariants, constraints, and staged implementation tasks.
Plan: missing-history-recovery
Tasks: T01, T02, T03, T04

Co-authored-by: SCE <sce@crocoder.dev>
Keep mutation reconciliation fail-closed when the cursor tree is absent, and guide operators to run one agent tool before rerunning `sce doctor --fix`; cover the guidance with focused assertions and keep the doctor renderer clippy-clean. Rename internal checkout-identity failure variants and status keys to worktree identity, and update runtime and durable context to describe topology-derived worktree IDs without implying per-clone identity. Document the missing-history heuristic, its three cases, and its operational boundaries.

Plan: missing-history-recovery (T01, T02)

Co-authored-by: SCE <sce@crocoder.dev>
@davidabram
davidabram merged commit 44d31ce into main Oct 17, 2026
11 checks passed
@davidabram
davidabram deleted the tree-repair branch October 17, 2026 11:23
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