Repository navigation
fix: check plan premises and bound workarounds in the implement skills - #19
Merged
Merged
Conversation
The implement skills now check a plan's premises against the code before implementing it and allow workarounds for wrong plan decisions only under a closed list of conditions. Otherwise, implement stops the dependent work and reports the problem, and the Guided Learning skills ask the user. Refs #10 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…kills Distinguish premises from planned additions, read the AGENTS.md of directories the work actually reaches, let the Guided Learning skills ask the user and pause affected work instead of escalating on their own, and list Acceptance Criteria left unticked because of workarounds. Refs #10 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Guided Learning skills create and remove throwaway probes during the premise check, so their opening instructions now reserve every lasting change for the user instead of every change. Refs #10 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Harnesses load AGENTS.md on their own, and a root AGENTS.md references nested ones. The instruction not to crawl referenced documents could make an implementer skip the documents that define the feedback loops. Refs #10 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Kenny Pflug <kenny.pflug@live.de>
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 #10
Problem
The implement skills handled plan errors with "try to solve it or find a workaround, and report it". Whether a workaround is acceptable was a judgment call, which an implementer, from Claude Haiku 5.5 to Claude Opus 5.5, could use to justify not doing the right thing. Implementers also discovered false plan premises only during the work instead of checking them up front.
Changes
<plan-file-name> D3when the plan has Decision IDs, otherwise by file name, section, and quote, so default-structure plans work too.guided-coding-implement: when a workaround is not allowed, it stops the dependent work, finishes the rest, and reports what the plan says, what it observed and how, and the options it sees, without asking mid-run. The final report lists workarounds, unresolved problems, and discrepancies.guided-coding-implement-show-me/guided-coding-implement-coach-me: run the premise check before creating the roadmap, discuss a workaround with the user before it goes into the code, and otherwise ask the user and pause the affected work. The final summary lists workarounds, the criteria they leave unticked, and unresolved problems. The user makes every lasting change, since the agent creates and removes probes.CHANGELOG.md: entry under[Unreleased].guided-coding-write-deviationsneeds no change: an accepted workaround materially changes an explicit plan decision and is recorded already.Verification
dotnet test: 157 passeddotnet run --project tools/GuidedCoding.ClaudeGenerator -- --check: up to dateclaude plugin validate . --strict: passed🤖 Generated with Claude Code