{
  "base_url": "http://127.0.0.1:8105",
  "cases": [
    {
      "case_id": "W14-IDM-CONCURRENT-QUEUE-ASSIGN",
      "detail": {
        "first_assign": {
          "error": null,
          "http_status": 200,
          "result": {
            "message": "Unit MUB0000000003 assigned. User notified.",
            "success": true,
            "unit_id": 3
          }
        },
        "second_assign": {
          "error": null,
          "http_status": 200,
          "result": {
            "message": "Unit already assigned to another queue item",
            "success": false
          }
        },
        "unit_after": {
          "assigned_queue_count": 1,
          "id": 3,
          "state": "available"
        }
      },
      "matrix_id": "RT-W14-IDM-01",
      "status": "PASS"
    },
    {
      "case_id": "W14-POS-CIRCULATION-PATH",
      "detail": {
        "checkin": {
          "error": null,
          "http_status": 200,
          "result": {
            "data": {
              "days_late": 0,
              "fine": 0.0,
              "is_late": false,
              "member_name": "ANGEL TRIANTORO",
              "message": "Return processed. Penalty: Rp 0",
              "movement_id": 2,
              "return_id": 1,
              "title": "W14 Harness Title 0831T111539Z"
            },
            "success": true
          }
        },
        "checkout": {
          "error": null,
          "http_status": 200,
          "result": {
            "data": {
              "count": 1,
              "items": [
                {
                  "due_date": "2026-09-09",
                  "media_name": "W14 Harness Title 0831T111539Z",
                  "movement_id": 2
                }
              ]
            },
            "success": true
          }
        },
        "movement_id": 2,
        "renew": {
          "error": null,
          "http_status": 200,
          "result": {
            "error": "You are not allowed to modify 'Media Movement' (op.media.movement) records.\n\nThis operation is allowed for the following groups:\n\t- Education Other/Library\n\t- Education Other/Library\n\t- OpenEduCat/Back Office Admin\n\t- Technical/Scola Admin\n\nContact your administrator to request access if necessary.",
            "success": false
          }
        },
        "unit_after": {
          "assigned_queue_count": 0,
          "id": 2,
          "state": "available"
        }
      },
      "matrix_id": "RT-W14-POS-01",
      "status": "PASS"
    },
    {
      "case_id": "W14-NEG-SETTINGS-MUTATION-DENY",
      "detail": {
        "checkout": {
          "error": null,
          "http_status": 200,
          "result": {
            "capability": "library.circulation.manage",
            "error": "capability_denied",
            "message": "Insufficient permissions for this API route.",
            "path": "/api/v1/library/circulation/checkout",
            "success": false
          }
        },
        "settings_get": {
          "error": null,
          "http_status": 200,
          "result": {
            "capability": "library.settings.manage",
            "error": "capability_denied",
            "message": "Insufficient permissions for this API route.",
            "path": "/api/v1/library/settings/get",
            "success": false
          }
        },
        "settings_save": {
          "error": null,
          "http_status": 200,
          "result": {
            "capability": "library.settings.manage",
            "error": "capability_denied",
            "message": "Insufficient permissions for this API route.",
            "path": "/api/v1/library/settings/save",
            "success": false
          }
        }
      },
      "matrix_id": "RT-W14-NEG-01",
      "status": "PASS"
    },
    {
      "case_id": "W14-VAL-UNAVAILABLE-UNIT",
      "detail": {
        "checkout": {
          "error": null,
          "http_status": 200,
          "result": {
            "error": "Cannot issue: Media unit is not available.",
            "success": false
          }
        }
      },
      "matrix_id": "RT-W14-VAL-01",
      "status": "PASS"
    },
    {
      "case_id": "W14-STA-WAIVER-STATE-MATRIX",
      "detail": {
        "checkin": {
          "error": null,
          "http_status": 200,
          "result": {
            "data": {
              "days_late": 3,
              "fine": 1500.0,
              "is_late": true,
              "member_name": "ANGEL TRIANTORO",
              "message": "Return processed. Penalty: Rp 1,500",
              "movement_id": 3,
              "return_id": 2,
              "title": "W14 Harness Title 0831T111539Z"
            },
            "success": true
          }
        },
        "waiver_request": {
          "error": null,
          "http_status": 200,
          "result": {
            "message": "Waiver request submitted for librarian approval",
            "success": true
          }
        }
      },
      "matrix_id": "RT-W14-STA-01",
      "status": "PASS"
    },
    {
      "case_id": "W14-REC-FINE-WAIVER-RECOVERY",
      "detail": {
        "checkin": {
          "error": null,
          "http_status": 200,
          "result": {
            "data": {
              "days_late": 3,
              "fine": 1500.0,
              "is_late": true,
              "member_name": "ANGEL TRIANTORO",
              "message": "Return processed. Penalty: Rp 1,500",
              "movement_id": 3,
              "return_id": 2,
              "title": "W14 Harness Title 0831T111539Z"
            },
            "success": true
          }
        },
        "waiver_approve": {
          "error": null,
          "http_status": 200,
          "result": {
            "message": "Waiver approved. No penalty charged.",
            "success": true
          }
        }
      },
      "matrix_id": "RT-W14-REC-01",
      "status": "PASS"
    },
    {
      "case_id": "W14-SCP-PEER-LOAN-DENY",
      "detail": {
        "foreign_queue_cancel": {
          "error": null,
          "http_status": 200,
          "result": {
            "message": "Queue item cancelled",
            "success": true
          }
        },
        "own_loan_ids": [
          2,
          3
        ],
        "peer_detail": {
          "error": null,
          "http_status": 200,
          "result": {
            "error": "Uh-oh! Looks like you have stumbled upon some top-secret records.\n\nSorry, ARIF KEMAL DEDE (id=832) doesn't have 'read' access to:\n- Media Movement (op.media.movement)\n\nIf you really, really need access, perhaps you can win over your friendly administrator with a batch of freshly baked cookies.",
            "success": false
          }
        }
      },
      "matrix_id": "RT-W14-SCP-01",
      "status": "PASS"
    },
    {
      "case_id": "W14-TEN-CROSS-COMPANY",
      "detail": {
        "fines_rows": 1,
        "queue_count": null,
        "t2_movement_leaked": false
      },
      "matrix_id": "RT-W14-TEN-01",
      "status": "PASS"
    },
    {
      "case_id": "W14-XRP-READER-BOUNDARY",
      "detail": {
        "member_loan_count": 2,
        "viewer_loans": {
          "error": null,
          "http_status": 200,
          "result": {
            "count": 0,
            "data": [],
            "success": true
          }
        }
      },
      "matrix_id": "RT-W14-XRP-01",
      "status": "PASS"
    },
    {
      "case_id": "W14-XMD-ENTITLEMENT-OFF",
      "detail": {
        "checkout_off": {
          "error": null,
          "http_status": 200,
          "result": {
            "error": "feature_disabled",
            "feature_flag": "scola_library",
            "message": "Feature is disabled for the current tenant.",
            "path": "/api/v1/library/circulation/checkout",
            "success": false
          }
        }
      },
      "matrix_id": "RT-W14-XMD-01",
      "status": "PASS"
    },
    {
      "case_id": "W14-UIA-API-ALIGNMENT",
      "detail": {
        "catalog_list": {
          "error": null,
          "http_status": 200,
          "result": {
            "count": 1,
            "data": [
              {
                "authors": [
                  {
                    "id": 6,
                    "name": "Prof. Dr. Ahmad Sudrajat"
                  }
                ],
                "available_units": 3,
                "ddc_classification": "",
                "description": "",
                "edition": "",
                "id": 45,
                "internal_code": "W14-MEDIA-0831T111539Z",
                "isbn": "978-W14-0831T111539Z",
                "language": "id",
                "media_type_id": 1,
                "media_type_name": "Buku Pelajaran",
                "on_loan_units": 1,
                "pages": 0,
                "publication_year": "",
                "publishers": [
                  {
                    "id": 1,
                    "name": "Erlangga"
                  }
                ],
                "reserved_units": 0,
                "tags": [],
                "title": "W14 Harness Title 0831T111539Z",
                "total_borrowed": 2,
                "total_units": 4
              }
            ],
            "success": true,
            "total_count": 1
          }
        },
        "route_meta": {
          "capability": "library.queue.view",
          "feature_flag": "scola_library",
          "module": null
        },
        "settings_get": {
          "error": null,
          "http_status": 200,
          "result": {
            "data": {
              "calendar": {
                "holiday_dates": "",
                "weekday_hours": "08:00-15:00",
                "weekend_closed": true,
                "weekend_hours": ""
              },
              "circulation": {
                "block_on_overdue": true,
                "block_threshold_days": 14,
                "default_loan_days": 7,
                "fine_enabled": true,
                "fine_per_day": 500.0,
                "grace_period_days": 0,
                "max_fine_cap": 50000.0,
                "max_renewals": 2
              },
              "member": {
                "staff_loan_days": 7,
                "staff_loan_limit": 3,
                "student_loan_days": 7,
                "student_loan_limit": 2,
                "teacher_loan_days": 14,
                "teacher_loan_limit": 5
              },
              "notification": {
                "overdue_notification": true,
                "overdue_notify_parent": true,
                "reminder_before_due": true,
                "reminder_days_before": 3
              },
              "policy": {
                "acquisition_priority": "",
                "collection_policy_url": "",
                "service_sla_days": 3,
                "weeding_criteria": ""
              },
              "privacy": {
                "allow_anonymous_opac": true,
                "history_opt_in": true,
                "history_retention_days": 365
              },
              "textbook": {
                "textbook_fine_enabled": false,
                "textbook_loan_days": 180,
                "textbook_return_reminder_days": 14
              }
            },
            "success": true
          }
        }
      },
      "matrix_id": "RT-W14-UIA-01",
      "status": "PASS"
    }
  ],
  "database": "scola_t6e_lib_audit_20260831T111539Z",
  "executed_at": "2026-08-31T11:17:32.708798+00:00",
  "overlay_version": "gt-w14-1.0",
  "schema": "t6e-w14-runtime-v1",
  "summary": {
    "fail": 0,
    "pass": 11,
    "total": 11
  }
}
