feat(generate): the plan warns when sources are uncommitted - #66
Merged
Conversation
A lock generated over uncommitted sources binds worktree content, and the moment those files land the canonical digest moves and the fresh lock reads as a source-digest mismatch -- that cost two regenerate round-trips in one day before it had a name. The plan now says so at the one moment an operator reads findings, as a medium warning rather than a refusal, because a deliberate worktree materialization remains legitimate. The clean-tree half is pinned in the CLI test; the dirty half was proven live against the estate before this commit. Claude-Session: https://claude.ai/code/session_01LsGid6U5RrQdFvJmvYdGCF
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.
Systemic closure of the twice-hit ordering trap: a lock generated over uncommitted sources mismatches the canonical digest the moment they land (
GDS_CONTEXT_POLICY_SOURCE_DIGEST_MISMATCH), costing a regenerate round-trip each time.generate repository --plannow appends a medium warning (GDS_PROJECTION_SOURCES_UNCOMMITTED) when tracked staged/unstaged/conflicted changes exist — a warning, not a refusal, since deliberate worktree materialization stays legitimate.Clean-tree half pinned in the CLI test; dirty half proven live against the estate (one finding, then reverted) before commit. Own bundle regenerated post-commit through the ceremony this feature guards.
https://claude.ai/code/session_01LsGid6U5RrQdFvJmvYdGCF