{
  "jira_key": "AN-88",
  "summary": "Prevent an Opportunity from being saved with Stage set to Closed Won when it has no related Opportunity Contact Role, and display the specified error message. The rule is intended for UI edits, excluding standard system integration users where applicable. The comments explicitly direct the team to proceed despite the duplicate and existing-documentation notices.",
  "acceptance_criteria": [
    "When a user attempts to change an Opportunity's Stage to Closed Won, check whether it has at least one related OpportunityContactRole record.",
    "If no related Contact Role exists, block the save and display: \"Validation Error: You cannot close-win this Opportunity without assigning at least one Contact Role. Please add a contact to the Opportunity Contact Roles related list and try again.\"",
    "Apply the rule to users editing via the UI; exclude standard system integration users if applicable."
  ],
  "clarification_questions": [],
  "is_clear": true,
  "confidence": 0.94,
  "referenced_documentation": [
    "Technical Design \u2014 Opportunity Contact Role Close-Won Guard (AN-87)"
  ],
  "out_of_scope_items": [
    "Production deployment, merge, sharing/OWD redesign, and destructive deletes are outside the repository's stated scope."
  ],
  "notes": "The requirement identifies the target object, trigger condition, validation behavior, and error message. The comments' instruction to continue resolves the duplicate and existing-documentation prompts; they do not establish that the functionality is already implemented."
}