{
  "jira_key": "AN-87",
  "passed": false,
  "cycle": 0,
  "findings": [
    {
      "severity": "high",
      "category": "requirements",
      "file": "force-app/main/default/classes/OpportunityContactRoleGuardHandler.cls",
      "line": 1,
      "message": "The requested behavior is not implemented: the handler is an empty stub, so it does not check for Opportunity Contact Roles, block a Closed Won save with the required message, or exclude applicable system integration users.",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/triggers/OpportunityTrigger.trigger",
      "line": 1,
      "message": "ARCH-02: The trigger does not delegate to the handler; its body is an empty stub.",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/OpportunityContactRoleGuardHandler.cls",
      "line": 1,
      "message": "APEX-01: The class uses 'without sharing' without the required authorization and justification. This validation does not appear to require elevated sharing access.",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/OpportunityContactRoleGuardTest.cls",
      "line": 1,
      "message": "APEX-01: The class uses 'without sharing' without a justification comment on the line above.",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/OpportunityContactRoleGuardTest.cls",
      "line": 1,
      "message": "APEX-02: The test class is missing @isTest and contains no test methods or meaningful assertions for the required behavior.",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/OpportunityContactRoleGuardHandler.cls",
      "line": 1,
      "message": "APEX-01: class OpportunityContactRoleGuardHandler uses 'without sharing' without a justification comment on the line above",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/OpportunityContactRoleGuardTest.cls",
      "line": 1,
      "message": "APEX-01: class OpportunityContactRoleGuardTest uses 'without sharing' without a justification comment on the line above",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/OpportunityContactRoleGuardTest.cls",
      "line": 1,
      "message": "APEX-02: test class OpportunityContactRoleGuardTest is missing @isTest",
      "fixable": true
    }
  ],
  "summary": "Review failed: the generated files are stubs and do not implement or test the requested validation.",
  "static_analysis_status": "failed",
  "notes": "No existing repository versions were provided for regression comparison. The generated files do not establish whether any existing Opportunity automation or project-specific validation commands were inspected or run."
}