docs(rules): unify remote write approval and sharpen cross-cutting rules
The microsoft rule now covers every connected remote system: Azure DevOps, Teams, SharePoint and Microsoft 365, SQL Server, Confluence, Grafana, and other connectors. A direct request that names the action, target, and content counts as confirmation. Deletions, irreversible and bulk changes, and access changes always need confirmation. Database writes show the statement and expected row count first. Definition of Done now defers to this rule instead of contradicting it. The decision rule adds how to ask, what to do when no one can answer, and naming a concrete risk once before following a user decision. Refactoring guidance is language neutral, Definition of Done accepts documented shortcut: comments, and both point to the proportional verification rule that actually exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b8b4438275
commit
b74357b586
5 files changed
+47
-141
No files matched your search
@@ -1,10 +1,25 @@
|
||||
# Decision Rule
|
||||
|
||||
* Gather evidence from the repository, available tooling, and current technical sources before making technical decisions.
|
||||
* Make technical implementation and code-style decisions independently when existing code, reliable documentation, or established standards provide sufficient evidence and the decision is reversible.
|
||||
* Ask the user when technical uncertainty remains material, multiple meaningful options remain, or the decision has a high-impact or difficult-to-reverse effect.
|
||||
* Ask the user before deciding business behavior, domain rules, validation rules, status transitions, permissions, database rules, error behavior, UI, UX, or other user-visible behavior when the requested behavior is missing or contradictory and the choice materially affects users, safety, or compatibility. Make minor reversible UI choices independently.
|
||||
* Implement explicitly specified behavior without asking again.
|
||||
* Ask the user when changing or choosing an API, database model, configuration format, external contract, or compatibility behavior remains ambiguous or has multiple meaningful interpretations.
|
||||
* Do not invent business requirements or silently resolve contradictions.
|
||||
## Decide or ask
|
||||
|
||||
* Gather evidence from the repository, available tooling, and current technical sources before deciding, in proportion to the decision's impact.
|
||||
* Decide technical implementation and code-style questions yourself when existing code, reliable documentation, or established standards give sufficient evidence and the choice is reversible. Make minor reversible UI choices yourself.
|
||||
* Ask the user when a choice is missing, contradictory, or has several meaningful options and it materially affects any of these: business behavior, domain, validation or permission rules, status transitions, error behavior, user-visible UI or UX, APIs, database models, configuration formats, external contracts, compatibility, or anything high impact or hard to reverse.
|
||||
* Implement explicitly specified behavior without asking again. Do not invent business requirements or silently resolve contradictions.
|
||||
|
||||
## How to ask
|
||||
|
||||
* Ask only what changes the work, and batch open questions into one message.
|
||||
* Give each question two to four concrete options with their trade-offs, and put your recommendation first.
|
||||
* Continue with work the question does not block while you wait.
|
||||
|
||||
## When no one can answer
|
||||
|
||||
* In background runs, scheduled tasks, or delegated work without user access, finish the unblocked work first.
|
||||
* For a remaining reversible choice, take the safest option, record the assumption where the result is reported, and name it in the final report.
|
||||
* Never make an irreversible, destructive, or business-rule decision on the user's behalf; stop at that point and report what is needed.
|
||||
|
||||
## User decisions
|
||||
|
||||
* Treat direct user input as the final decision for behavior and requirements.
|
||||
* If a decision carries a concrete defect, security, or data-loss risk, name the risk once with evidence, then follow the decision.
|
||||
Reference in new issue
Block a user