{
  "base_url": "http://127.0.0.1:8106",
  "cases": [
    {
      "case_id": "W07-POS-GRADE-TO-PUBLISH",
      "detail": {
        "approve_ks": {
          "error": null,
          "http_status": 200,
          "result": {
            "message": "Raport berhasil diproses.",
            "message_key": "api.report_card.workflow_processed",
            "success": true
          }
        },
        "approve_wk": {
          "error": null,
          "http_status": 200,
          "result": {
            "message": "Raport berhasil diproses.",
            "message_key": "api.report_card.workflow_processed",
            "success": true
          }
        },
        "parent_read": {
          "error": null,
          "http_status": 200,
          "result": {
            "data": {
              "absent_days": 0,
              "academic_term_id": {
                "id": 33,
                "name": "W07 Term 0831T124322Z"
              },
              "academic_year_id": {
                "id": 14,
                "name": "W07 Year 0831T124322Z"
              },
              "average_score": 85.0,
              "batch_id": {
                "display_name": "W07 Batch 0831T124322Z",
                "id": 115,
                "name": "W07 Batch 0831T124322Z"
              },
              "class_rank": 0,
              "extracurricular_component": {
                "complete_count": 0,
                "expected_count": 0,
                "items": [],
                "status": "not_applicable"
              },
              "final_grade": "A",
              "has_principal_signature": false,
              "homeroom_teacher_id": {
                "display_name": null,
                "id": null,
                "name": null
              },
              "id": 169,
              "kepala_sekolah_approved_by": {
                "display_name": "w07.principal.0831T124322Z",
                "id": 1165,
                "name": "w07.principal.0831T124322Z"
              },
              "kepala_sekolah_approved_date": "2026-08-31T12:44:22+00:00",
              "line_ids": [
                {
                  "achievement_description": "Capaian baik untuk POS",
                  "batch_id": 115,
                  "batch_name": "W07 Batch 0831T124322Z",
                  "component_summary": {
                    "completion_rate": 100.0,
                    "exempt": 0,
                    "filled": 1,
                    "missing": 0,
                    "overridden": 0,
                    "total": 1,
                    "weighted_completion_rate": 100.0
                  },
                  "components": [
                    {
                      "assessment_component_id": {
                        "effective_weight": 100.0,
                        "id": 14,
                        "name": "Penilaian Manual",
                        "weight": 100.0
                      },
                      "description": false,
                      "grade": false,
                      "id": 6297,
                      "is_manual_override": false,
                      "last_sync_at": null,
                      "override_reason": false,
                      "score": 85.0,
                      "score_status": "filled",
                      "score_status_label": "Nilai Terisi",
                      "source": "manual",
                      "source_meta": {
                        "configured_source": "manual",
                        "configured_source_label": "Input Manual",
                        "detail": "",
                        "source": "manual",
                        "source_label": "Input Manual"
                      },
                      "source_ref": false
                    }
                  ],
                  "edit_disabled_reason": "Anda tidak memiliki akses untuk mengubah nilai mapel ini.",
                  "editable": false,
                  "final_grade": "A",
                  "final_score": 85.0,
                  "grade_description": "Sangat Baik",
                  "id": 1449,
                  "is_remedial": false,
                  "notes": false,
                  "remedial_summary": {
                    "is_remedial": false,
                    "original_score": 0.0,
                    "remedial_date": null,
                    "remedial_notes": "",
                    "remedial_score": 0.0
                  },
                  "report_id": 169,
                  "report_state": "published",
                  "student_id": 796,
                  "student_name": "W07 Student A 0831T124322Z",
                  "subject_id": {
                    "id": 66,
                    "name": "W07 Matematika 0831T124322Z"
                  },
                  "teacher_id": {
                    "id": 187,
                    "name": "Guru W07"
                  },
                  "term_id": 33,
                  "term_name": "W07 Term 0831T124322Z"
                }
              ],
              "name": "W07 Student A 0831T124322Z - W07 Batch 0831T124322Z - W07 Term 0831T124322Z",
              "official_artifacts": {
                "has_principal_notes": false,
                "has_principal_signature": false,
                "has_qr": true,
                "has_teacher_notes": true
              },
              "permission_days": 0,
              "present_days": 0,
              "principal_notes": "",
              "principal_signature": false,
              "published_by": {
                "display_name": "w07.principal.0831T124322Z",
                "id": 1165,
                "name": "w07.principal.0831T124322Z"
              },
              "published_date": "2026-08-31T12:44:22+00:00",
              "qr_generated_date": "2026-08-31T12:44:22+00:00",
              "qr_verification_code": "8E1C8B368EEF3031",
              "rejected_by": {
                "display_name": null,
                "id": null,
                "name": null
              },
              "rejected_date": null,
              "rejection_reason": "",
              "sick_days": 0,
              "state": "published",
              "student_id": {
                "display_name": "W07 Student A 0831T124322Z",
                "id": 796,
                "name": "W07 Student A 0831T124322Z"
              },
              "submitted_by": {
                "display_name": "Wali W07",
                "id": 1163,
                "name": "Wali W07"
              },
              "submitted_date": "2026-08-31T12:44:22+00:00",
              "teacher_notes": "<p>Catatan wali kelas harness POS</p>",
              "total_days": 0,
              "total_students": 3,
              "validation_label": "Raport Final",
              "validation_status": "final",
              "wali_kelas_approved_by": {
                "display_name": "Wali W07",
                "id": 1163,
                "name": "Wali W07"
              },
              "wali_kelas_approved_date": "2026-08-31T12:44:22+00:00",
              "workflow_blockers": [],
              "workflow_blockers_by_action": {
                "publish": [
                  {
                    "code": "missing_attendance_summary",
                    "message": "Rekap kehadiran belum tersedia.",
                    "severity": "warning"
                  }
                ],
                "submit": []
              }
            },
            "success": true
          }
        },
        "publish": {
          "error": null,
          "http_status": 200,
          "result": {
            "message": "Raport berhasil diproses.",
            "message_key": "api.report_card.workflow_processed",
            "success": true
          }
        },
        "snapshot": {
          "id": 169,
          "qr": true,
          "state": "published"
        },
        "student_read": {
          "error": null,
          "http_status": 200,
          "result": {
            "data": {
              "absent_days": 0,
              "academic_term_id": {
                "id": 33,
                "name": "W07 Term 0831T124322Z"
              },
              "academic_year_id": {
                "id": 14,
                "name": "W07 Year 0831T124322Z"
              },
              "average_score": 85.0,
              "batch_id": {
                "display_name": "W07 Batch 0831T124322Z",
                "id": 115,
                "name": "W07 Batch 0831T124322Z"
              },
              "class_rank": 0,
              "extracurricular_component": {
                "complete_count": 0,
                "expected_count": 0,
                "items": [],
                "status": "not_applicable"
              },
              "final_grade": "A",
              "has_principal_signature": false,
              "homeroom_teacher_id": {
                "display_name": null,
                "id": null,
                "name": null
              },
              "id": 169,
              "kepala_sekolah_approved_by": {
                "display_name": "w07.principal.0831T124322Z",
                "id": 1165,
                "name": "w07.principal.0831T124322Z"
              },
              "kepala_sekolah_approved_date": "2026-08-31T12:44:22+00:00",
              "line_ids": [
                {
                  "achievement_description": "Capaian baik untuk POS",
                  "batch_id": 115,
                  "batch_name": "W07 Batch 0831T124322Z",
                  "component_summary": {
                    "completion_rate": 100.0,
                    "exempt": 0,
                    "filled": 1,
                    "missing": 0,
                    "overridden": 0,
                    "total": 1,
                    "weighted_completion_rate": 100.0
                  },
                  "components": [
                    {
                      "assessment_component_id": {
                        "effective_weight": 100.0,
                        "id": 14,
                        "name": "Penilaian Manual",
                        "weight": 100.0
                      },
                      "description": false,
                      "grade": false,
                      "id": 6297,
                      "is_manual_override": false,
                      "last_sync_at": null,
                      "override_reason": false,
                      "score": 85.0,
                      "score_status": "filled",
                      "score_status_label": "Nilai Terisi",
                      "source": "manual",
                      "source_meta": {
                        "configured_source": "manual",
                        "configured_source_label": "Input Manual",
                        "detail": "",
                        "source": "manual",
                        "source_label": "Input Manual"
                      },
                      "source_ref": false
                    }
                  ],
                  "edit_disabled_reason": "Anda tidak memiliki akses untuk mengubah nilai mapel ini.",
                  "editable": false,
                  "final_grade": "A",
                  "final_score": 85.0,
                  "grade_description": "Sangat Baik",
                  "id": 1449,
                  "is_remedial": false,
                  "notes": false,
                  "remedial_summary": {
                    "is_remedial": false,
                    "original_score": 0.0,
                    "remedial_date": null,
                    "remedial_notes": "",
                    "remedial_score": 0.0
                  },
                  "report_id": 169,
                  "report_state": "published",
                  "student_id": 796,
                  "student_name": "W07 Student A 0831T124322Z",
                  "subject_id": {
                    "id": 66,
                    "name": "W07 Matematika 0831T124322Z"
                  },
                  "teacher_id": {
                    "id": 187,
                    "name": "Guru W07"
                  },
                  "term_id": 33,
                  "term_name": "W07 Term 0831T124322Z"
                }
              ],
              "name": "W07 Student A 0831T124322Z - W07 Batch 0831T124322Z - W07 Term 0831T124322Z",
              "official_artifacts": {
                "has_principal_notes": false,
                "has_principal_signature": false,
                "has_qr": true,
                "has_teacher_notes": true
              },
              "permission_days": 0,
              "present_days": 0,
              "principal_notes": "",
              "principal_signature": false,
              "published_by": {
                "display_name": "w07.principal.0831T124322Z",
                "id": 1165,
                "name": "w07.principal.0831T124322Z"
              },
              "published_date": "2026-08-31T12:44:22+00:00",
              "qr_generated_date": "2026-08-31T12:44:22+00:00",
              "qr_verification_code": "8E1C8B368EEF3031",
              "rejected_by": {
                "display_name": null,
                "id": null,
                "name": null
              },
              "rejected_date": null,
              "rejection_reason": "",
              "sick_days": 0,
              "state": "published",
              "student_id": {
                "display_name": "W07 Student A 0831T124322Z",
                "id": 796,
                "name": "W07 Student A 0831T124322Z"
              },
              "submitted_by": {
                "display_name": "Wali W07",
                "id": 1163,
                "name": "Wali W07"
              },
              "submitted_date": "2026-08-31T12:44:22+00:00",
              "teacher_notes": "<p>Catatan wali kelas harness POS</p>",
              "total_days": 0,
              "total_students": 3,
              "validation_label": "Raport Final",
              "validation_status": "final",
              "wali_kelas_approved_by": {
                "display_name": "Wali W07",
                "id": 1163,
                "name": "Wali W07"
              },
              "wali_kelas_approved_date": "2026-08-31T12:44:22+00:00",
              "workflow_blockers": [],
              "workflow_blockers_by_action": {
                "publish": [
                  {
                    "code": "missing_attendance_summary",
                    "message": "Rekap kehadiran belum tersedia.",
                    "severity": "warning"
                  }
                ],
                "submit": []
              }
            },
            "success": true
          }
        },
        "submit": {
          "error": null,
          "http_status": 200,
          "result": {
            "message": "Raport berhasil diproses.",
            "message_key": "api.report_card.workflow_processed",
            "success": true
          }
        }
      },
      "matrix_id": "RT-W07-POS-01",
      "status": "PASS"
    },
    {
      "case_id": "W07-IDM-DOUBLE-SUBMIT",
      "detail": {
        "first": {
          "error": null,
          "http_status": 200,
          "result": {
            "message": "Raport berhasil diproses.",
            "message_key": "api.report_card.workflow_processed",
            "success": true
          }
        },
        "second": {
          "error": null,
          "http_status": 200,
          "result": {
            "error": "workflow_failed",
            "message": "Report card can only be submitted from draft or rejected state!",
            "message_key": "api.report_card.workflow_failed",
            "success": false
          }
        },
        "snapshot": {
          "id": 170,
          "qr": false,
          "state": "submitted"
        }
      },
      "matrix_id": "RT-W07-IDM-01",
      "status": "PASS"
    },
    {
      "case_id": "W07-STA-INVALID-PUBLISH",
      "detail": {
        "publish_from_submitted": {
          "error": null,
          "http_status": 200,
          "result": {
            "error": "workflow_failed",
            "message": "Report card must be approved by kepala sekolah before publishing!",
            "message_key": "api.report_card.workflow_failed",
            "success": false
          }
        },
        "snapshot": {
          "id": 170,
          "qr": false,
          "state": "submitted"
        }
      },
      "matrix_id": "RT-W07-STA-01",
      "status": "PASS"
    },
    {
      "case_id": "W07-REC-REJECT-DRAFT-RESUME",
      "detail": {
        "draft": {
          "error": null,
          "http_status": 200,
          "result": {
            "message": "Raport berhasil diproses.",
            "message_key": "api.report_card.workflow_processed",
            "success": true
          }
        },
        "reject": {
          "error": null,
          "http_status": 200,
          "result": {
            "message": "Raport berhasil diproses.",
            "message_key": "api.report_card.workflow_processed",
            "success": true
          }
        },
        "resubmit": {
          "error": null,
          "http_status": 200,
          "result": {
            "message": "Raport berhasil diproses.",
            "message_key": "api.report_card.workflow_processed",
            "success": true
          }
        },
        "snapshot": {
          "id": 170,
          "qr": false,
          "state": "submitted"
        }
      },
      "matrix_id": "RT-W07-REC-01",
      "status": "PASS"
    },
    {
      "case_id": "W07-NEG-UNAUTHORIZED-MUTATION",
      "detail": {
        "homeroom_approve_ks": {
          "error": null,
          "http_status": 200,
          "result": {
            "error": "access_denied",
            "message": "Persetujuan final dan publikasi raport hanya dapat dilakukan kepala sekolah.",
            "message_key": "api.report_card.workflow_principal_only",
            "success": false
          }
        },
        "viewer_save": {
          "error": null,
          "http_status": 200,
          "result": {
            "error": "save_failed",
            "message": "Uh-oh! Looks like you have stumbled upon some top-secret records.\n\nSorry, Viewer W07 (id=1166) doesn't have 'read' access to:\n- Report Card Line (Per Subject) (scola.student.report.line)\n\nIf you really, really need access, perhaps you can win over your friendly administrator with a batch of freshly baked cookies.",
            "message_key": "api.report_card.save_failed",
            "success": false
          }
        },
        "viewer_submit": {
          "error": null,
          "http_status": 200,
          "result": {
            "capability": "report_cards.list.view",
            "error": "capability_denied",
            "message": "Insufficient permissions for this API route.",
            "path": "/api/v1/report-card/reports/169/workflow",
            "success": false
          }
        }
      },
      "matrix_id": "RT-W07-NEG-01",
      "status": "PASS"
    },
    {
      "case_id": "W07-VAL-MISSING-SCORES",
      "detail": {
        "submit": {
          "error": null,
          "http_status": 200,
          "result": {
            "error": "workflow_failed",
            "message": "Raport belum siap diproses:\n- W07 Matematika 0831T124322Z masih memiliki 1 komponen yang belum dinilai.",
            "message_key": "api.report_card.workflow_failed",
            "success": false
          }
        }
      },
      "matrix_id": "RT-W07-VAL-01",
      "status": "PASS"
    },
    {
      "case_id": "W07-SCP-ASSIGNMENT-BOUNDARY",
      "detail": {
        "peer_read": {
          "error": null,
          "http_status": 200,
          "result": {
            "error": "report_not_found",
            "message": "Raport tidak ditemukan.",
            "success": false
          }
        },
        "teacher_save": {
          "error": null,
          "http_status": 200,
          "result": {
            "data": {
              "updated_count": 1
            },
            "message": "1 nilai berhasil disimpan.",
            "message_key": "api.report_card.batch_scores_saved",
            "message_params": {
              "count": 1
            },
            "success": true
          }
        },
        "viewer_save": {
          "error": null,
          "http_status": 200,
          "result": {
            "error": "save_failed",
            "message": "Uh-oh! Looks like you have stumbled upon some top-secret records.\n\nSorry, Viewer W07 (id=1166) doesn't have 'read' access to:\n- Report Card Line (Per Subject) (scola.student.report.line)\n\nIf you really, really need access, perhaps you can win over your friendly administrator with a batch of freshly baked cookies.",
            "message_key": "api.report_card.save_failed",
            "success": false
          }
        }
      },
      "matrix_id": "RT-W07-SCP-01",
      "status": "PASS"
    },
    {
      "case_id": "W07-TEN-CROSS-COMPANY",
      "detail": {
        "item_count": 3,
        "t2_report_leaked": false
      },
      "matrix_id": "RT-W07-TEN-01",
      "status": "PASS"
    },
    {
      "case_id": "W07-XRP-STUDENT-VISIBILITY",
      "detail": {
        "draft_list_count": 0,
        "published_items": 1
      },
      "matrix_id": "RT-W07-XRP-01",
      "status": "PASS"
    },
    {
      "case_id": "W07-XMD-ENTITLEMENT-OFF",
      "detail": {
        "reports_off": {
          "error": null,
          "http_status": 200,
          "result": {
            "error": "feature_disabled",
            "feature_flag": "scola_report_card",
            "message": "Feature is disabled for the current tenant.",
            "path": "/api/v1/report-card/reports",
            "success": false
          }
        }
      },
      "matrix_id": "RT-W07-XMD-01",
      "status": "PASS"
    },
    {
      "case_id": "W07-UIA-API-ALIGNMENT",
      "detail": {
        "filters": {
          "error": null,
          "http_status": 200,
          "result": {
            "data": {
              "academic_terms": [],
              "academic_years": [
                {
                  "active": true,
                  "end_date": "2026-12-31",
                  "id": 14,
                  "name": "W07 Year 0831T124322Z",
                  "start_date": "2026-01-01"
                }
              ],
              "batches": [
                {
                  "course_name": "W07 Kelas 0831T124322Z",
                  "display_name": "W07 Batch 0831T124322Z",
                  "id": 115,
                  "name": "W07 Batch 0831T124322Z",
                  "student_count": 3
                }
              ],
              "defaults": {
                "academic_year_id": 14,
                "academic_year_source": "calendar_active"
              },
              "faculty": [
                {
                  "id": 186,
                  "name": "Wali W07"
                }
              ],
              "module_status": {
                "cbt_active": true,
                "lms_active": true
              },
              "subjects": []
            },
            "success": true
          }
        },
        "route_meta": {
          "capability": "report_cards.list.view",
          "feature_flag": "scola_report_card",
          "module": null
        }
      },
      "matrix_id": "RT-W07-UIA-01",
      "status": "PASS"
    }
  ],
  "database": "scola_t6c_report_audit_20260831T124322Z",
  "executed_at": "2026-08-31T12:45:30.738099+00:00",
  "overlay_version": "gt-w07-1.0",
  "schema": "t6c-w07-runtime-v1",
  "summary": {
    "fail": 0,
    "pass": 11,
    "total": 11
  }
}
