Repository navigation
fix: keep Plan Deviations documents editable until merged - #18
Merged
Merged
Conversation
Plan Deviations documents were frozen once committed, so Follow-Up Plans from PR/MR reviews could not be recorded. write-deviations now updates the work item's existing document under a fresh timestamp until the document is merged into the target branch, and the ai-plans/AGENTS.md template documents the new rule. Refs #15 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… timestamps Stop instead of falling back to a stale local target branch when fetching fails, verify that the target branch resolves, and require the deviations timestamp to be strictly later than all plans of the work item. Refs #15 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e check A plain fetch leaves the remote-tracking branch stale when the remote's fetch mappings do not cover the target branch, so a merged Plan Deviations document could be treated as editable. Refs #15 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #15
Problem
Plan Deviations documents were frozen once committed. PR/MR review is still part of the Guiding Phase and can lead to further Follow-Up Plans for the same work item, but the frozen document could not be extended; the only workaround was deleting and recreating it.
Changes
guided-coding-write-deviationsgit fetch origin +refs/heads/main:refs/remotes/origin/main) and checks the path, so squash and rebase merges count. If the fetch fails or the target branch doesn't resolve, it stops without changing anything; the local target branch is used only when the repository has no remote.git mvwhen tracked) and rewrites it completely from all plans and the implementation. The timestamp must be strictly later than every plan of the work item and the existing document, so the document always sorts last.ai-plans/AGENTS.mdtemplate: Plan Deviations documents are frozen once merged into the target branch, and a work item has at most one. Version marker raised to2.1.0, so re-runningguided-coding-setupupgrades existing repositories.CHANGELOG.md: entry under[Unreleased], including the hint to re-runguided-coding-setup.AGENTS.md: note that the template'sguided-coding-versionmarker is maintained by hand, because the release tool does not update it.Verification
dotnet test: 157 passeddotnet run --project tools/GuidedCoding.ClaudeGenerator -- --check: up to dateclaude plugin validate . --strict: passed🤖 Generated with Claude Code