{
  "jira_key": "AN-88",
  "passed": false,
  "cycle": 0,
  "findings": [
    {
      "severity": "high",
      "category": "functionality",
      "file": "force-app/main/default/classes/OpportunityContactRoleCloseWonHandler.cls",
      "line": 3,
      "message": "The handler is an unimplemented stub. It does not check for related OpportunityContactRole records or prevent saving a Closed Won Opportunity without one, so the acceptance criteria and specified error message are not implemented.",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/triggers/OpportunityTrigger.trigger",
      "line": 2,
      "message": "ARCH-02: The trigger does not delegate to the handler, leaving the required trigger routing and validation unimplemented.",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/OpportunityContactRoleCloseWonHandler.cls",
      "line": 1,
      "message": "APEX-01: The class uses `without sharing` without an explicitly authorized need and justification comment. Use `with sharing` or `inherited sharing` and define the database access mode independently.",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/OpportunityContactRoleCloseWonHandlerTest.cls",
      "line": 1,
      "message": "APEX-01: The class uses `without sharing` without an explicitly authorized need and justification comment. Use `with sharing` or `inherited sharing`.",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/OpportunityContactRoleCloseWonHandlerTest.cls",
      "line": 1,
      "message": "APEX-02: The test class is missing `@isTest` and contains no test methods or meaningful assertions verifying the expected behavior.",
      "fixable": true
    },
    {
      "severity": "medium",
      "category": "standards",
      "file": "force-app/main/default/classes/OpportunityContactRoleCloseWonHandler.cls",
      "line": 1,
      "message": "APEX-09: The public class and `run` method lack ApexDoc describing their purpose and behavior.",
      "fixable": true
    },
    {
      "severity": "medium",
      "category": "standards",
      "file": "force-app/main/default/classes/OpportunityContactRoleCloseWonHandlerTest.cls",
      "line": 1,
      "message": "APEX-09: The public test class and `run` method lack ApexDoc describing their purpose and behavior.",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/OpportunityContactRoleCloseWonHandler.cls",
      "line": 1,
      "message": "APEX-01: class OpportunityContactRoleCloseWonHandler uses 'without sharing' without a justification comment on the line above",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/OpportunityContactRoleCloseWonHandlerTest.cls",
      "line": 1,
      "message": "APEX-01: class OpportunityContactRoleCloseWonHandlerTest uses 'without sharing' without a justification comment on the line above",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/OpportunityContactRoleCloseWonHandlerTest.cls",
      "line": 1,
      "message": "APEX-02: test class OpportunityContactRoleCloseWonHandlerTest is missing @isTest",
      "fixable": true
    }
  ],
  "summary": "Review failed: the generated metadata is stub-only and does not implement the Closed Won Contact Role validation or its tests.",
  "static_analysis_status": "failed",
  "notes": "The supplied static analysis also reports the APEX-01 violations for both classes and the APEX-02 violation for the test class. No repository implementation was provided for comparison."
}