Skip to content

feat(generate): the plan warns when sources are uncommitted - #66

Merged
rldyourmnd merged 1 commit into
mainfrom
feat/plan-warns-on-dirty-sources
Sep 1, 2026
Merged

feat(generate): the plan warns when sources are uncommitted#66
rldyourmnd merged 1 commit into
mainfrom
feat/plan-warns-on-dirty-sources

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

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 --plan now 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

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
@rldyourmnd
rldyourmnd merged commit 842722f into main Sep 1, 2026
7 checks passed
@rldyourmnd
rldyourmnd deleted the feat/plan-warns-on-dirty-sources branch September 1, 2026 15:05
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