Skip to content

fix: check plan premises and bound workarounds in the implement skills - #19

Merged
feO2x merged 5 commits into
mainfrom
10-implementer-plan-premises
Nov 17, 2026
Merged

feO2x merged 5 commits into
mainfrom
10-implementer-plan-premises

Conversation

@feO2x

@feO2x feO2x commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

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

  • All three implement skills
    • Check the plan against the code before writing code: types, members, and files the plan describes as existing exist, and the current behavior it describes matches the code. Throwaway probes are used where reading is not enough and removed afterwards. Additions the plan asks for are not missing premises.
    • Discrepancies that change nothing, such as a moved file, are mentioned and do not block.
    • A workaround is allowed only when all four conditions hold: evidence shows the error; the Rationale and every other decision stay unchanged; no public API, scope, or dependency changes beyond the plan; no test is weakened or removed.
    • An Acceptance Criterion met only through a workaround stays unticked; the reviewer ticks it in the Guiding Phase or calls for a Follow-Up Plan.
    • Decisions are referenced as <plan-file-name> D3 when 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].
  • Regenerated Claude adapter.

guided-coding-write-deviations needs no change: an accepted workaround materially changes an explicit plan decision and is recorded already.

Verification

  • dotnet test: 157 passed
  • dotnet run --project tools/GuidedCoding.ClaudeGenerator -- --check: up to date
  • claude plugin validate . --strict: passed
  • Reviewed in four rounds by an independent Codex reviewer (GPT-6.1-Sol, high); the final round rated all six categories (fidelity to Implementers: check plan premises and bound workarounds #10, clarity for small models, workflow edge cases, cross-skill consistency, conciseness, repository compliance) 10.0 with no findings.

🤖 Generated with Claude Code

feO2x and others added 5 commits November 17, 2026 15:34
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>
@feO2x feO2x self-assigned this Nov 17, 2026
@feO2x feO2x added the enhancement New feature or request label Nov 17, 2026
@feO2x
feO2x merged commit 0936f47 into main Nov 17, 2026
1 check passed
@feO2x
feO2x deleted the 10-implementer-plan-premises branch November 17, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implementers: check plan premises and bound workarounds

1 participant