{
  "status": "passed",
  "exitCode": 0,
  "passed": 49,
  "skipped": 0,
  "failures": 0,
  "errors": 0,
  "command": "SPAY4_TESTCONTAINERS_ENABLED=true SPAY4_SLOW_TESTS_ENABLED=true bash scripts/run-docker-tests.sh :spay4-bo:test --tests com.sit.spay4.OrderEscalationIntegrationTest --tests com.sit.spay4.OrderEscalationConfigConcurrencyIntegrationTest --tests com.sit.spay4.supply.service.impl.OrderEscalationScanServiceImplTest --tests com.sit.spay4.config.service.impl.OrderEscalationConfigSaveTest --rerun --offline --console=plain",
  "commandNote": "4 classes 46 cases 0 failures／errors／skipped（#615 卡乾淨 HEAD c8b00dc25 以 scripts/rerun-evidence.mjs 執行同一 command，JUnit XML 保留於 card 的 .scratch/rerun-evidence/issue615-order-escalation/，並由 deliver-archive 同步至 /var/tmp/deliver-615/）；#671 已記專屬 WARN 的 ApiException 建構點改用 opt-out（不再重複記通用 4xx WARN）後，於 #671 卡乾淨 HEAD 074e1866a 以同一 command 重跑 4 classes 49 cases（0 failures／errors，skipped 0），更新 sourceVersion／inputs（approved-by #671）；#689 將 rejectionLogsActorKeyScopeAndReasonButNeverTheValue 改以 FailureLogCapture(ConfigServiceImpl.class) 斷言（不讀 console）後，於 #689 卡乾淨 HEAD 92f6893b6 以 scripts/rerun-evidence.mjs 執行同一 command，4 classes 49 cases（0 failures／errors，skipped 0），更新 sourceVersion／inputs（approved-by #689）",
  "sourceVersion": "92f6893b64083d1a089695edbea336aeb106b61c",
  "issue": "#615",
  "scope": [
    "order-escalation"
  ],
  "coverage": [
    "normal",
    "denied",
    "failure",
    "boundary"
  ],
  "coverageNotes": {
    "normal": "Cardholder 路徑 Deposit PENDING_REVIEW 剛好 15／30／60 分鐘逐層通知 Supply Gateway→Supplier→Superadmin，已讀不停止、重複掃描不重複；Withdraw ACCEPTED／PROOF_SUBMITTED／PENDING_REVIEW 重啟後第一次掃描各層恰一筆；Prefix 回報自回報時間起算升級（cardholderDepositEscalatesTierByTierAtExactThresholdsAndReadDoesNotStopIt、firstScanAfterRestartWritesEveryDueTierOnceForEachWithdrawalState、prefixReportEscalatesFromTheReportTimeUntilTheOrderLeavesItsState；單元：allDueTiersAreWrittenLowestFirstAndEachCarriesOnlyItsOwnRecipient）",
    "denied": "三個門檻 key 為 Global-only：Prefix 寫入／刪除 403 且不寫 Agent override（keysAreGlobalOnly）；非正整數與破壞遞增的值 400，拒絕 log 帶 actor／key／scope／原因、不含值（rejectsNonPositiveIntegerMinutes、rejectsValuesThatBreakStrictlyIncreasingTiers、rejectionLogsActorKeyScopeAndReasonButNeverTheValue）；HOUSE、Supply Channel 指派、ASSIGNED、ROUTING_FAILED 不升級（otherPathsAndStatesAreOutOfScope）",
    "failure": "真 MySQL 上單筆 Supplier 層寫入被拒：同筆已寫的 Supply Gateway 層一併 rollback、他單照常、一行 WARN（orderType／orderId／attemptId／status／tier／原因類別，不含 DB 訊息與付款人），下一次掃描補齊（alertWriteFailureRollsBackOnlyThatOrderLogsAWarnAndTheNextScanCatchesUp）；讀 Supply Gateway 失敗 WARN 帶到期層級（scanFailureBeforeWritingLogsTheDueTier）",
    "boundary": "門檻前 1 µs 不通知、剛好門檻通知；離開狀態停止、重新進入為新一輪；收件 Supply Gateway 停用改通知 Supplier 且 30 分鐘不重複；無 Supplier 歸屬 15 分鐘直送 Superadmin；舊資料以第一次掃描時間起算；改設定下一次掃描生效；已送完的單不占批次名額；超大門檻 clamp 到 DATETIME 下限；兩 key 並行寫入不提交非遞增組合（leavingTheStateStopsEscalationAndReenteringStartsAgain、inactiveGatewayNotifiesSupplierAtFirstTierWithoutRepeatingAtSecond、ordersWithoutSupplierGoStraightToSuperadminAtFirstTier、legacyNullEnteredTimeStartsAtFirstScan、changedThresholdsApplyOnTheNextScan、ordersWhoseDueTiersAreAlreadySentDoNotHoldTheBatch、hugeThresholdClampsTheSqlDueTimeToTheDatetimeMinimumSoOldOrdersAreNotReselected、concurrentWritesOfDifferentMissingKeysNeverCommitANonIncreasingPair）"
  },
  "classes": [
    {
      "class": "com.sit.spay4.OrderEscalationConfigConcurrencyIntegrationTest",
      "tests": 1,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.OrderEscalationIntegrationTest",
      "tests": 12,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.config.service.impl.OrderEscalationConfigSaveTest",
      "tests": 30,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.supply.service.impl.OrderEscalationScanServiceImplTest",
      "tests": 6,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    }
  ],
  "limitations": "本機 isolated MySQL focused 驗收（含 slow），非 fixed-SHA 全套回歸。掃描由 service 直接呼叫；scheduler 每 15 秒觸發與 internal trigger 交付由 SchedulerApplicationTest、InternalTaskTriggerEndToEndTest 另行覆蓋，不在本報告。收件匣 Supply Gateway／Supplier 可見範圍屬 #540，未在本報告重驗。Supply Channel 交易未匹配告警（#512）由 SupplyChannelDepositSettlementIntegrationTest 覆蓋，不在本報告。目標 DB 的 status_entered_time／bo_alert 分級欄位（#536 SQL）與部署屬 Operator，未驗證。",
  "inputs": {
    "spay4-bo/src/main/java/com/sit/spay4/supply/service/impl/OrderEscalationScanServiceImpl.java": "34c23c930b90c594a56f8cb2691277f627a67211022c9c8107112bbf43c655ef",
    "spay4-bo/src/test/java/com/sit/spay4/OrderEscalationIntegrationTest.java": "064e5f0aeb9ced38d5a362b453fe24a4fc3014615afb16e4a3373a0327e6209b",
    "spay4-bo/src/test/java/com/sit/spay4/OrderEscalationConfigConcurrencyIntegrationTest.java": "12f23ab5fef61ee2da8f1ae6f7bcbcfbe78f89b37306aeb52ce4ae3a040a0849",
    "spay4-bo/src/test/java/com/sit/spay4/supply/service/impl/OrderEscalationScanServiceImplTest.java": "5dbe8f0393ae3efeb9f1cf89f7e578ebfaa75a5449e64323d8bf5b63dc43b726",
    "spay4-bo/src/test/java/com/sit/spay4/config/service/impl/OrderEscalationConfigSaveTest.java": "a0f233ac470cd6449e0542002a6c6984ba9f4fa6b82de0a6488e6160550df1ae"
  }
}
