{
  "title": "Offline AI agent permission and review exercise",
  "scope": "A fictional task priority update in an in-memory Python model.",
  "fixture": {
    "record": "fictional-task-01",
    "action": "set priority to high",
    "review": "An explicit simulated reviewer decision, separate from the mock write grant.",
    "attempts": "Total attempted writes, including the initial denied attempt."
  },
  "checks_passed": 6,
  "checks": [
    {
      "case": "Denied update stops, leaves the record unchanged and cannot report success",
      "expected": {
        "status": "blocked_for_review",
        "reviewer_decision": null,
        "attempts": 1,
        "writes": 0,
        "before": "normal",
        "after": "normal",
        "readback": null
      },
      "observed": {
        "status": "blocked_for_review",
        "reviewer_decision": null,
        "attempts": 1,
        "writes": 0,
        "before": "normal",
        "after": "normal",
        "readback": null
      }
    },
    {
      "case": "Rejection blocks restart even if a write grant is supplied",
      "expected": {
        "status": "rejected",
        "reviewer_decision": "rejected",
        "attempts": 1,
        "writes": 0,
        "before": "normal",
        "after": "normal",
        "readback": null
      },
      "observed": {
        "status": "rejected",
        "reviewer_decision": "rejected",
        "attempts": 1,
        "writes": 0,
        "before": "normal",
        "after": "normal",
        "readback": null
      }
    },
    {
      "case": "Approval alone grants no write and the denied restart consumes the attempt",
      "expected": {
        "status": "restart_denied",
        "reviewer_decision": "approved",
        "attempts": 2,
        "writes": 0,
        "before": "normal",
        "after": "normal",
        "readback": null
      },
      "observed": {
        "status": "restart_denied",
        "reviewer_decision": "approved",
        "attempts": 2,
        "writes": 0,
        "before": "normal",
        "after": "normal",
        "readback": null
      }
    },
    {
      "case": "A grant for a different record cannot authorize the approved update",
      "expected": {
        "status": "restart_denied",
        "reviewer_decision": "approved",
        "attempts": 2,
        "writes": 0,
        "before": "normal",
        "after": "normal",
        "readback": null
      },
      "observed": {
        "status": "restart_denied",
        "reviewer_decision": "approved",
        "attempts": 2,
        "writes": 0,
        "before": "normal",
        "after": "normal",
        "readback": null
      }
    },
    {
      "case": "The matching grant allows one update and success follows the expected readback",
      "expected": {
        "status": "completed",
        "reviewer_decision": "approved",
        "attempts": 2,
        "writes": 1,
        "before": "normal",
        "after": "high",
        "readback": "high"
      },
      "observed": {
        "status": "completed",
        "reviewer_decision": "approved",
        "attempts": 2,
        "writes": 1,
        "before": "normal",
        "after": "high",
        "readback": "high"
      }
    },
    {
      "case": "An unexpected readback leaves the result unconfirmed without an automatic second write",
      "expected": {
        "status": "unconfirmed",
        "reviewer_decision": "approved",
        "attempts": 2,
        "writes": 1,
        "before": "normal",
        "after": "high",
        "readback": "normal"
      },
      "observed": {
        "status": "unconfirmed",
        "reviewer_decision": "approved",
        "attempts": 2,
        "writes": 1,
        "before": "normal",
        "after": "high",
        "readback": "normal"
      }
    }
  ],
  "source_sha256": "1e45bf8a22c08f926299f8d5c117cc1df2e53d6fb6b1ab612f5dacdcd0ae3a91",
  "limits": [
    "Fictional records, simulated authorization and simulated reviewer choices only.",
    "The exercise runs without an LLM, network, credentials, integrations or persistent storage.",
    "The results describe the tested fixture behavior and do not establish client delivery or production security."
  ]
}
