{
  "captured": "2026-10-14T19:26:37.938939+00:00",
  "model": "jev-latest",
  "identity": {
    "fixed_sha256": "686ddf088fcc468eb966af91e715b4fcc14d8d39a4bd891233febff86ad610c2",
    "broken_sha256": "3f7678ec71088293bf554eeacfc2401d90be8dee89e279eb4098f7c14104aca8",
    "rule_sha256": "8ec1eae6b0ce10e20a22f73b811de730dc0e7b4d61b8df49a20ed50c8fa5f901"
  },
  "rule": "Both order.update and audit.create inside the transaction must use the database passed into the closure, not request.db for the audit.",
  "results": {
    "broken": {
      "command": [
        "perch",
        "check",
        "Sources/App/confirm.swift",
        "--rules",
        "audit-uses-transaction-database",
        "--json"
      ],
      "exit_code": 3,
      "stdout": "{\n  \"path\": \"Sources/App/confirm.swift\",\n  \"name\": \"Sources/App/confirm.swift\",\n  \"line\": 1,\n  \"checked\": 1,\n  \"broken\": [\n    {\n      \"rule\": \"audit-uses-transaction-database\",\n      \"said\": \"Both order.update and audit.create inside the transaction must use the database passed into the closure, not request.db for the audit.\",\n      \"broken\": 0.62,\n      \"floor\": 0.5\n    }\n  ],\n  \"issues\": null,\n  \"note\": null,\n  \"clean\": false\n}\n",
      "stderr": ""
    },
    "fixed": {
      "command": [
        "perch",
        "check",
        "Sources/App/confirm.swift",
        "--rules",
        "audit-uses-transaction-database",
        "--json"
      ],
      "exit_code": 0,
      "stdout": "{\n  \"path\": \"Sources/App/confirm.swift\",\n  \"name\": \"Sources/App/confirm.swift\",\n  \"line\": 1,\n  \"checked\": 1,\n  \"broken\": [],\n  \"issues\": null,\n  \"note\": null,\n  \"clean\": true\n}\n",
      "stderr": ""
    }
  }
}
