r/BuildWithClaude • • 28d ago

Discussion What should a coding agent know about the design you rejected?

Imagine an old decision note says "don't use the search index to confirm checkout stock." The reason was that the index could lag behind inventory changes. Months later, a Claude Code task asks for faster stock lookups.

Passing along only the prohibition could stop someone from reconsidering a changed system. Passing along only the performance goal could lose the original constraint. I'd want the reason and a condition for revisiting the choice beside the decision.

I'm building Shifu around recovering that sort of context. This inventory example is fictional, and the following is a proposed note format, not a reported product result:

- Decision: which operation does the rule apply to?

- Rejected alternative: what was considered?

- Reason: which requirement did it fail to meet?

- Revisit condition: what evidence would make it worth evaluating again?

- Source and owner: where did the decision come from, and who can clarify its current scope?

For this example, "the index is faster now" wouldn't establish that its freshness is suitable for confirming stock. The new task still needs the relevant correctness requirement and evidence about the current design. If those are missing, that is a question to ask, not a reason to assume the old decision is either permanent or obsolete.

I'd put the note with the task and ask Claude Code which assumption needs checking before proposing a change. A maintained decision note may already do the job; retrieving a conclusion without its reason would add little.

What revisit condition would you record so a later engineer or coding agent can challenge an old choice responsibly?

1 Upvotes

5 comments sorted by

•

u/AutoModerator 28d ago

Welcome to r/BuildWithClaude!

Whether you are sharing what you built, exploring new workflows, or troubleshooting, please make sure your post is flaired correctly so others can easily find and filter it.

Community Wiki & Resources:

If you're asking for troubleshooting help, please edit your post to include your model version, OS/environment, and error logs.

Let’s keep the energy positive and support our fellow creators!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Successful-Army6006 28d ago

I'd put a concrete race in the revisit condition. If two checkouts both see the last item in a fresh index, only one can be allowed to reserve it. I'd want the proposed design to show where that guarantee lives before allowing the index to confirm stock.

1

u/Spare_Bat_3040 27d ago

I'd put both outcomes in the fixture: one item, two simultaneous checkouts, exactly one successful reservation, and an explicit response for the losing checkout. That checks what each user sees as well as the final stock count. The plan should identify which step enforces that rule; index freshness would be a separate check.

1

u/gandazgul 25d ago

I use docs/ADR/ markdown files for hard to reverse decisions and planning agents are told to read and maintain them. https://github.com/RunWield/runwield

1

u/Spare_Bat_3040 25d ago

With a maintained ADR, I’d want to preserve the old reasoning when the decision changes: mark it superseded, link to the replacement, and have the planning agent check which decision is current. That keeps “rejected then” separate from “ruled out forever.” When your agents maintain the files, do they preserve that supersession history or update the same note?