{
  "jira_key": "AN-93",
  "passed": false,
  "cycle": 0,
  "findings": [
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/PaymentReceiptService.cls",
      "line": 1,
      "message": "APEX-01: Class uses `without sharing`; it must declare `with sharing` or `inherited sharing`.",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "requirements",
      "file": "force-app/main/default/classes/PaymentReceiptService.cls",
      "line": 2,
      "message": "Acceptance criteria: The required public `receiptStatus()` method is missing. The generated `run()` method takes no arguments but returns void instead of returning `ready`.",
      "fixable": true
    },
    {
      "severity": "medium",
      "category": "standards",
      "file": "force-app/main/default/classes/PaymentReceiptService.cls",
      "line": 1,
      "message": "APEX-09: The public class and its public method lack ApexDoc comments.",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/PaymentReceiptServiceTest.cls",
      "line": 1,
      "message": "APEX-01: Test class uses `without sharing`; it must declare `with sharing` or `inherited sharing`.",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/PaymentReceiptServiceTest.cls",
      "line": 1,
      "message": "APEX-02: Test class is missing the `@isTest` annotation and has no test method with a meaningful assertion verifying `receiptStatus()` returns `ready`.",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/PaymentReceiptService.cls",
      "line": 1,
      "message": "APEX-01: class PaymentReceiptService uses 'without sharing' without a justification comment on the line above",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/PaymentReceiptServiceTest.cls",
      "line": 1,
      "message": "APEX-01: class PaymentReceiptServiceTest uses 'without sharing' without a justification comment on the line above",
      "fixable": true
    },
    {
      "severity": "high",
      "category": "standards",
      "file": "force-app/main/default/classes/PaymentReceiptServiceTest.cls",
      "line": 1,
      "message": "APEX-02: test class PaymentReceiptServiceTest is missing @isTest",
      "fixable": true
    }
  ],
  "summary": "Review failed: both classes violate the sharing requirement, and the generated service and test do not implement the required behavior or test.",
  "static_analysis_status": "failed",
  "notes": "The two metadata XML files specify API version 59.0. The target project API version and repository validation commands were not provided, so their compatibility and the appropriate checks could not be verified."
}