Skip to content

feat: add the opt-in RDAT plan structure - #16

Merged
feO2x merged 9 commits into
mainfrom
9-rdat-plan-structure
Nov 17, 2026
Merged

feO2x merged 9 commits into
mainfrom
9-rdat-plan-structure

Conversation

@feO2x

@feO2x feO2x commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Closes #9.

What this adds

skills/guided-coding-write-plan/assets/rdat-plan-structure.md: RDAT (Rationale, Decisions, Acceptance Criteria, Technical Details), an opt-in plan structure next to the default one. The file is self-contained: write-plan stays independent of the plan structure.

  • Decisions are numbered (D1, D2, …) and work as a management summary. A Decision is a point where another choice was possible and would change the behavior, a public contract, the scope or the dependencies. Only the ticket's or the discussion's exclusions go into the Out-of-Scope Decision.
  • Premise checks: the planner checks each Decision's premises, the ticket's claims and the behavior of code it plans to reuse, with throwaway probes where reading is not enough. A simulated probe confirms nothing. A material unverified premise goes into its Decision, with its consequence and what would resolve it. The planner never changes a Decision the user made without asking.
  • Acceptance Criteria cover every Decision (except Out-of-Scope), name test cases including negative and failure cases, and use Feedback Loops that actually verify the outcome. No criteria for building or running the whole test suite; slow loops are weighed against their benefit; human checks state what is checked and who verifies it.
  • Technical Details hold only what the implementer cannot quickly find in the code, and never add behavior, contracts or exclusions.
  • Add, don't repeat: each fact is stated once; sections refer to Decisions by ID and to repository rules by link or rule ID.

Choosing a structure

write-plan uses the first plan structure that applies, without knowing what a structure contains:

  1. one the user names when invoking the skill, as a path to a Markdown file or the name of a bundled structure (/guided-coding:write-plan rdat-plan-structure.md, $guided-coding-write-plan rdat-plan-structure.md);
  2. one that ai-plans/AGENTS.md names the same way or describes;
  3. the default structure.

A bare file name refers to the bundled assets/; other relative paths resolve from the repository root. A selected file that does not exist stops the skill instead of falling back. Follow-Up Plans use the selected structure. The setup customization tip, a new README section and CHANGELOG.md explain both ways to choose a structure. The generated Claude adapter is updated.

How it was evaluated

The user's initial version (197c8a5) was revised in several rounds:

  1. Pre-evaluation: three real tickets (Light.PortableResults #74 URI assertions, Takt Implementers: check plan premises and bound workarounds #10, Light.DatabaseAccess.EntityFrameworkCore Plan Deviation Files must not be immutable until PR/MR is merged #15), each planned with the 2.0.0 default, the user's draft and an agent draft, by GPT-6-Luna and Claude Haiku 5.5; judged by Claude Opus 5.5 and GPT-6.1-Sol.
  2. Fresh start: Haiku planned the tickets without any Guided Coding context and with full context; six Haiku implementers assessed the plans; judged by Claude Fable 5.2 and GPT-6.1-Sol. Haiku writes a Decisions section on its own, so the structure was refined around the content of decisions rather than more sections.
  3. Review iterations by GPT-6.1-Sol, one commit per iteration, until every category (including tone match with the other skills) was rated 10/10.
  4. Re-run with the revised structure: Haiku planned the three tickets again, three Haiku implementers assessed the plans, Fable 5.2 and GPT-6.1-Sol judged them. Routine criteria disappeared, invented exclusions dropped, contested choices moved into Decisions and unverified premises were disclosed. Plans did not get shorter than with the earlier drafts, and implementer scores stayed at 7–8: the remaining defects were technical and were caught by implementer-style reviews, which is the job of New skill: plan with independent review rounds #11. 4cd4950 applies the two findings of this run.
  5. Structure selection (b1c5738, fa12390), reviewed by GPT-6.1-Sol until every category was rated 10/10.

Not in this PR

Validation

  • dotnet test
  • dotnet run --project tools/GuidedCoding.ClaudeGenerator -- --check
  • claude plugin validate . --strict

🤖 Generated with Claude Code

feO2x and others added 9 commits November 16, 2026 06:13
Signed-off-by: Kenny Pflug <kenny.pflug@live.de>
Define a Decision by its alternatives, drop the decision-to-criterion
reference format, and tighten the Acceptance Criteria and Technical
Details rules based on the pre-evaluation and the fresh-start study.
Also add the RDAT structure to the generated Claude adapter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apply the first review by GPT-6.1-Sol: check the premises of a Decision
instead of the Decision itself and state unverified premises, keep ACs
from introducing undecided behavior, name who verifies human-review ACs,
stop without Feedback Loops, keep Decision IDs stable, and narrow the
rule about leaving out what the code shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apply the second review by GPT-6.1-Sol: drop explanations that repeat
instructions, while keeping the user's principle and the list of
typical Feedback Loops.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apply the third review by GPT-6.1-Sol: show the Decision ID format by
example, smooth the slow-loop example, give the Guided Learning section
a clear subject, and drop a redundant explanation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ocs in RDAT ACs

Apply the findings of the structure-3 evaluation: check the behavior of
existing code a plan reuses, state a material unverified premise in the
affected Decision with its consequence and resolution, and let tests and
routine documentation refer to a Decision instead of needing their own.
Also add the RDAT structure to the changelog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The user can name a plan structure when invoking write-plan, as a path
to a Markdown file or as the name of a bundled structure such as
rdat-plan-structure.md. ai-plans/AGENTS.md can name one the same way;
the default structure stays the fallback. Setup and the README explain
how to choose a structure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apply the review by GPT-6.1-Sol: resolve bare file names against the
bundled assets and other relative paths against the repository root,
never fall back when the selected structure is missing, let Follow-Up
Plans use the selected structure, and use the namespaced Claude command
in the README.

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 added this to the 2.1.0 milestone Nov 17, 2026
@feO2x
feO2x merged commit 12789ea into main Nov 17, 2026
1 check passed
@feO2x
feO2x deleted the 9-rdat-plan-structure branch November 17, 2026 06:12
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.

Opt-in RDAT plan structure (Rationale, Decisions, Acceptance Criteria, Technical Details)

1 participant