Skip to content

docs: prevent over-engineering at plan and implementation time - #48

Merged
cristim merged 1 commit into
mainfrom
docs/yagni-plan-implement
Aug 5, 2026
Merged

docs: prevent over-engineering at plan and implementation time#48
cristim merged 1 commit into
mainfrom
docs/yagni-plan-implement

Conversation

@cristim

@cristim cristim commented Aug 5, 2026

Copy link
Copy Markdown
Member

What

Two additions to CLAUDE.md, closing the loop opened by #44 and #46:

  • §1 Plan Mode Default — plan the smallest thing that satisfies the request. Name the caller for every parameter, option and abstraction the plan introduces; if that caller is hypothetical, cut the item.
  • §1c step 1 — build the plan's task, not a generalised version of it. If the task appears to need machinery the plan didn't call for, re-plan rather than improvise it.

Why

#44 gave the YAGNI standard, #46 made over-engineering the sixth review dimension. Both are detection: they catch speculative machinery after it has been designed and written. Nothing stopped it being produced.

A plan is where speculative machinery gets legitimised. Once "add a --strategy flag" is a numbered task in an approved plan, it stops reading as a guess and starts reading as a requirement — the implementer builds it, the reviewer sees it matches the plan, and it ships. The review dimension then has to argue against an approved decision rather than a stray idea.

It's also the cheapest point to catch it. Deleting a line from a plan costs nothing; pruning the same thing later costs an implementation, a review round, a refactor, and the behaviour-preservation proof #46 now requires.

Evidence

In the batch that prompted #44, a Puppet profile shipped at 343 lines and was later pruned to 100 with no behaviour change. What came out: a parameter no caller overrode, a parameter whose one caller always took the default, ~15 lines of idempotence machinery guarding a state the calling system cannot reach, and validation heavier than the risk.

None of that was a coding mistake. Each item was correct, reasoned and tested. They were planning decisions made before a line was written, and every later gate accepted them precisely because they matched the plan.

Scope

2 changed lines in one file. The rules already exist in coding-standards.md; this just applies them at the two phases that were producing the problem.

Closes #47

The YAGNI standard and the sixth review dimension both detect speculative
machinery after it has been designed and written. Nothing stopped it being
produced.

Adds a plan-scope rule to section 1 (name the caller for every parameter,
option and abstraction the plan introduces; cut the item if that caller is
hypothetical) and a sentence to the section 1c implementer step (build the
task, not a generalised version of it; re-plan rather than improvise
machinery the plan didn't call for).

Plan time is the cheapest point to catch this: deleting a line from a plan
costs nothing, while pruning the same thing later costs an implementation,
a review round, a refactor and a re-verification.
@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 10 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8c2bd126-6b30-4996-8d5b-fedde7003033

📥 Commits

Reviewing files that changed from the base of the PR and between 9a76055 and a7c23d0.

📒 Files selected for processing (1)
  • CLAUDE.md

Comment @coderabbitai help to get the list of available commands.

@cristim
cristim merged commit d6bb786 into main Aug 5, 2026
1 check passed
@cristim
cristim deleted the docs/yagni-plan-implement branch August 5, 2026 09:39
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.

docs: YAGNI is only enforced at review time, not at plan or implementation time

1 participant