{
  "status": "passed",
  "exitCode": 0,
  "passed": 44,
  "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.DepositManualVerificationIntegrationTest --tests com.sit.spay4.DepositMenuAuthorizationHttpIntegrationTest --tests com.sit.spay4.NativeCardholderDepositHttpIntegrationTest --tests com.sit.spay4.ReceiveFlowHttpIntegrationTest --rerun --offline --console=plain",
  "commandNote": "#992 Prefix 檢視與人工配對 AGENT_ACCOUNT 單（OrderWorkspaceScope／DepositWorkspace 投影、HouseCardTransactionServiceImpl 無卡交易人工配對、SupplyDepositOrderDao 候選與鎖單查詢、DepositFinancialKernelImpl 逾期單人工結算、TransactionWorkspaceRejections WARN 加 orderId）後，於 #992 卡乾淨 HEAD aefdad76b 依 G27 以 rerun-evidence.mjs --apply 單獨重跑同一 command（stdin /dev/null）：44 tests，0 failures／errors／skipped，exit 0，status／scope 不變，approved-by #992；#991 LINE 無卡交易與 AGENT_ACCOUNT 訂單雙向配對（DepositFinancialKernelImpl 新增 AGENT_ACCOUNT 結算分支 commitAgentAccountSettlement，不寫 HOUSE 日計數／ledger／eligible fact）並同步整合分支 41edda46e 後，於 #991 卡乾淨 HEAD 9473eb7ce 依 Issue Pin 授權與 G27 常設授權以 scripts/rerun-evidence.mjs --apply 重跑同一 command（stdin /dev/null，exit 0）：44 tests，0 failures／errors／skipped；更新 sourceVersion／inputs（approved-by #991），status／scope 不變；#1020 outbox actualAmount 斷言改用共用 AgentCallbackOutboxFacts helper（ReceiveFlowHttpIntegrationTest 兩處斷言改呼叫 helper，SQL 與期望 STRING:0 不變，純測試重構）後，於 #1020 卡乾淨 HEAD 4a6768565 依 G27 以 rerun-evidence.mjs --apply 單獨重跑同一 command（stdin /dev/null）：44 tests，0 failures／errors／skipped，exit 0，status／scope 不變，approved-by #1020；#1012 非成功終態 callback actualAmount 改送 \"0\"（ReceiveFlow／PayFlow outbox 斷言改為 STRING:0／\"0\"）後，於 #1012 卡乾淨 HEAD 3c724d985 依 G27 以 rerun-evidence.mjs 單獨重跑同一 command：44 tests，0 failures／errors／skipped，exit 0，更新 sourceVersion／inputs（approved-by #1012）；#912 Deposit 拒絕 WARN 收斂（DepositScopeRejections factory＋單一 DepositRejectionExceptionHandler，移除逐層 actor／orderId 參數，只改 log 位置與例外建構，對外回應與 WARN 內容不變）並同步整合分支 daefb1bc0 後，於 #912 卡乾淨 HEAD 5eb4c3617 依 G27 以 rerun-evidence.mjs --apply 單獨重跑同一 command（stdin /dev/null）：44 tests，0 failures／errors／skipped，exit 0，status／scope 不變，approved-by #912；#894 以 DepositRejectionActor 合併 actor（review r1）並同步整合分支 fef9ae43d 後，於 #894 卡乾淨 HEAD 91081bef1 依 G27 以 rerun-evidence.mjs --apply 單獨重跑同一 command（stdin /dev/null；同 HEAD 前一次 cd9c53a78 的重跑因 Testcontainers 連不上 Ryuk 4 個 initializationError，屬環境失敗）：44 tests，0 failures／errors／skipped，exit 0，status／scope 不變，approved-by #894；#894 Deposit replay 不符 409 改記含 orderId 的專屬 WARN（DepositOperationReplay 與 8 個呼叫點，只改 log 與例外建構，對外不變）後，於 #894 卡乾淨 HEAD a7ab2bca6 依 G27 以 rerun-evidence.mjs --apply 單獨重跑同一 command（stdin /dev/null）：44 tests，0 failures／errors／skipped，exit 0，status／scope 不變，approved-by #894；#895 Deposit evidence／absence writer 拒絕改記含 orderId 的專屬 WARN（DepositEvidenceWriterImpl，只改 log 與例外建構，對外不變）後，於 #895 卡乾淨 HEAD 686f64a0e 依 G27 以 rerun-evidence.mjs --apply 單獨重跑同一 command（stdin /dev/null）：4 classes 44 tests，0 failures／errors／skipped，exit 0，status／scope 不變，approved-by #895；#892 同步整合分支 feature/ron/#24846 6a5c94271（含 #889 Deposit 寫入拒絕 WARN）後，於 #892 卡乾淨 HEAD d2727ea14 依 G27 以 rerun-evidence.mjs 單獨重跑同一 command：44 tests，0 failures／errors／skipped，exit 0，更新 sourceVersion／inputs（approved-by #892）；#892 Transaction Records 成功回應改包單層 ResponseVo（HouseCardTransactionController 類別層 @Envelope 與整合測試 JSON path 改讀 data）後，於 #892 卡乾淨 HEAD e694c6ae7 依 G27 以 rerun-evidence.mjs 單獨重跑同一 command：44 tests，0 failures／errors／skipped，exit 0，更新 sourceVersion／inputs（approved-by #892）；#871 抽出 DepositReportEligibility 並讓工作台遮罩列回 REPORT 後，於 #871 卡乾淨 HEAD dc9fb2f78 依 G27 單獨重跑同一 command：4 classes 44 tests，0 failures／errors／skipped，exit 0，更新 sourceVersion／inputs（approved-by #871）；#841 NativeCardholderDepositHttpIntegrationTest 的 #851 案例補斷言對帳 WARN 帶 cardholderId（followups 566、G120），同步整合分支 94cb738ce（含 #863）後於 #841 卡乾淨 HEAD fef462151 以 rerun-evidence.mjs --apply 單獨重跑同一 command（stdin /dev/null），exit 0、44 tests 0 failures，status／scope 不變，approved-by #841。#863 NativeCardholderDepositHttpIntegrationTest 補他卡殘留 reservation 不影響本卡入款列表、本卡歸屬缺口仍略過、他卡 reservation 指向本人另一卡當日 attempt 回 500＋WARN 三案例後，於乾淨 HEAD 單獨重跑本命令（44 tests，0 failures）。；#914 分頁驗證改用 BackofficePagePolicy.toPageable（純重構）後，於 #914 卡乾淨 HEAD c985d5a12 依 Issue Pin 授權與 G27 常設授權以 scripts/rerun-evidence.mjs 重跑同一 command：44 tests，0 failures／errors／skipped，status 與 scope 不變（approved-by #914）；#920 projection gap 容錯抽為共用 CardholderProjectionTolerance（純重構，WARN 內容與列表略過／明細 404 不變）後，於 #920 卡乾淨 HEAD 1b83aafd6 依 Issue Pin 授權與 G27 常設授權以 scripts/rerun-evidence.mjs 重跑同一 command（stdin /dev/null）：44 tests，0 failures／errors／skipped，status 與 scope 不變（approved-by #920）；#921 Native Cardholder service 直接回傳 Internal* 契約 record、刪除 BO 鏡像 record（純重構，internal API JSON 不變）後，於 #921 卡乾淨 HEAD 89f12f95a 依 Issue Pin 授權與 G27 常設授權以 scripts/rerun-evidence.mjs 重跑同一 command（stdin /dev/null）：44 tests，0 failures／errors／skipped，status 與 scope 不變（approved-by #921）；#933 移除 StrictJsonBody PARSER 模式與 StrictJsonBodyReader、request VO 去除 mode = DIRECT、Deposit／Agent controller Javadoc 改寫（ADR-0478）後，依 Issue Pin 授權於 #933 卡同步整合分支 b4560e311 後乾淨 HEAD 6e5d9070d 以 scripts/rerun-evidence.mjs --apply 重跑同一 command（stdin /dev/null，exit 0）：44 tests，0 failures／errors／skipped；更新 sourceVersion／inputs（approved-by #933），status／scope 不變",
  "sourceVersion": "23a1d32e22edb0567c7b1d66b104b41010a714a3",
  "issue": "#613",
  "scope": [
    "deposit-receipt"
  ],
  "coverage": [
    "normal",
    "denied",
    "failure",
    "boundary"
  ],
  "coverageNotes": {
    "normal": "BO 人工核實 receipt 寫入 BO_MANUAL_RECEIPT typed source、加密 reference 與一筆 REGISTER_DEPOSIT_EVIDENCE audit，可由 BO settle 或 CH confirm 引用（DepositManualVerificationIntegrationTest#manualReceiptPersistsTypedSourceReplaysExactlyAndConflictsOnDifferentPayload、#manualReceiptCanBeSettledByBackoffice、#manualReceiptCanBeConfirmedByCardholder）；own-scope Supplier／Gateway 經 HTTP 登錄差額 receipt（actual 9）再 settle（DepositMenuAuthorizationHttpIntegrationTest#ownScopeSupplierAndGatewaySettleCloseRedispatchAndRegisterEvidenceButCannotAssign）；CH receipt 登記 → CH confirm 結算，CH 申報等額即 CH_DECLARED 結算（ReceiveFlowHttpIntegrationTest#cardholderReceiptThenConfirmSettlesAndTransportFailureKeepsSettlement、#cardholderDeclaredEqualAmountAutoSettlesAndDifferenceGoesToBoReview）",
    "denied": "缺 reference、缺 proof、未核實 proof、他 Gateway scope 拒絕且不寫 operation（DepositManualVerificationIntegrationTest#manualReceiptRequiresReferenceVerifiedProofAndOwnScope）；跨 owner Supplier／Gateway POST evidence 404、跨 Agent Prefix 403、缺 UPDATE 的 Prefix 拒絕、無 session 401（DepositMenuAuthorizationHttpIntegrationTest#crossOwnerSupplierGatewayAndCrossAgentPrefixCannotSeeOrActOnTheOrder、#prefixWithoutUpdateOrRoleMethodIsDeniedWithoutEffects、#everyBoAndCardholderRouteRequiresASession）；跨 owner 寫入寫一行 deposit workspace WARN（status、OUT_OF_SCOPE、actor、orderId，不含 reference）（#613 新增 DepositMenuAuthorizationHttpIntegrationTest#boReceiptOutOfScopeIsWarnedAndAuditFaultRollsBackThenRegistersOnce）；CH foreign／missing 訂單同一拒絕、舊 attempt 拒絕（NativeCardholderDepositHttpIntegrationTest#foreignAndMissingOrdersShareTheSameRejectionWithoutWrites、#redispatchedOldAttemptIsRejectedAndTheNewAttemptIsCurrent）",
    "failure": "BO receipt 登錄時 domain audit 寫入失敗 500、整筆 rollback（無 evidence、無 audit、版本不變），ERROR 只記 requestId 與例外分類，移除 fault 後同 request 成功一次並 exact replay（#613 新增 DepositMenuAuthorizationHttpIntegrationTest#boReceiptOutOfScopeIsWarnedAndAuditFaultRollsBackThenRegistersOnce）；callback transport 失敗不回滾已提交結算（ReceiveFlowHttpIntegrationTest#cardholderReceiptThenConfirmSettlesAndTransportFailureKeepsSettlement）；CH confirm 無 receipt 只轉 review、不入帳不釋放（NativeCardholderDepositHttpIntegrationTest#confirmWithoutReceiptOnlyMovesToReviewWithoutCreditOrRelease）",
    "boundary": "CH 申報差額轉 BO review 不結算並跨版本 replay（ReceiveFlowHttpIntegrationTest#cardholderDeclaredEqualAmountAutoSettlesAndDifferenceGoesToBoReview；NativeCardholderDepositHttpIntegrationTest#confirmKeepsTheDeclaredAmountForReviewWithoutSettlingAndReplaysAcrossVersions）；同 key 同內容（含全形 alias）回同一 evidence、不同 actual／proof 409 不改版本（DepositManualVerificationIntegrationTest#manualReceiptPersistsTypedSourceReplaysExactlyAndConflictsOnDifferentPayload）；重派後需其他 attempt 皆有 absence 才可結算、過時 absence 可在後到 receipt 後重核（#redispatchedOrderSettlesOnlyAfterEveryOtherAttemptHasManualAbsence、#staleManualAbsenceCanBeRecheckedAfterLaterReceipt）；stale version 409（NativeCardholderDepositHttpIntegrationTest#staleVersionIsAConflictAndBearerIsRequired）；Frozen receiver 保留 trusted receipt 直到解凍（ReceiveFlowHttpIntegrationTest#frozenReceiverKeepsTrustedReceiptAndObligationUntilLegalUnfreezeThenSettlesOnce）"
  },
  "classes": [
    {
      "class": "com.sit.spay4.DepositManualVerificationIntegrationTest",
      "tests": 7,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.DepositMenuAuthorizationHttpIntegrationTest",
      "tests": 9,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.NativeCardholderDepositHttpIntegrationTest",
      "tests": 20,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.ReceiveFlowHttpIntegrationTest",
      "tests": 8,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    }
  ],
  "artifacts": "/var/tmp/deliver-892/rerun-evidence-sync1112/deposit-receipt-verification",
  "limitations": "本機 isolated Docker MySQL focused 驗收（含 slow），非 fixed-SHA 全套回歸。DepositManualVerificationIntegrationTest 以 service 呼叫且 mock AuthService，BO 授權以 DepositMenuAuthorizationHttpIntegrationTest 的正式 HTTP 與真 login 覆蓋。CH 自動銀行 receipt verifier 依 #396 決策不做；App rollout 由 #606 回報；HOUSE handler 不在本 feature。",
  "inputs": {
    "spay4-bo/src/test/java/com/sit/spay4/DepositManualVerificationIntegrationTest.java": "0e18c72a8bf2ac13f74332055cdbf697477e067a1652b43447f018afdeb24418",
    "spay4-bo/src/test/java/com/sit/spay4/DepositMenuAuthorizationHttpIntegrationTest.java": "a510ebd3223ee253f6f575caa0a1996ce3e6b671a98a73b5693fe3b6879540a4",
    "spay4-bo/src/test/java/com/sit/spay4/NativeCardholderDepositHttpIntegrationTest.java": "4514cb07549d75fa616b71aee81d3302b64cb4e45559e52450afe9527536c582",
    "spay4-bo/src/test/java/com/sit/spay4/ReceiveFlowHttpIntegrationTest.java": "c7b69d56215f9f14c251771b106882357830e5c9fd0156acbb1ab380273d38f9",
    "spay4-bo/src/main/java/com/sit/spay4/supply/service/impl/DepositEvidenceServiceImpl.java": "3f1346ef7970cd310a15caed3ace5f661f80dab242dccf949eb5675d905d6f91",
    "spay4-bo/src/main/java/com/sit/spay4/supply/service/impl/DepositEvidenceWriterImpl.java": "06f4c9eaf492e06eaf6136fb098a1da66138e01c88a44a6b3ff1c915b2ad01c6",
    "spay4-bo/src/main/java/com/sit/spay4/supply/service/impl/NativeCardholderDepositServiceImpl.java": "950700b3639bd93c124d804f04e8e994cd4fa8ce00d595b94e12fff50adc75dc",
    "spay4-bo/src/main/java/com/sit/spay4/supply/service/impl/DepositFinancialKernelImpl.java": "0a72f95651f3fd7419eb284c417f55bec67aaf802050f8ef96842e33fbc82fdf",
    "spay4-bo/src/main/java/com/sit/spay4/supply/controller/DepositOrderActionController.java": "0f9b092d0b7b7ac0473ef72ae6e0efb63b978c94fcd6a3a7ef7b41c0dfd0c5c3",
    "spay4-bo/src/main/java/com/sit/spay4/supply/service/impl/DepositScopeRejections.java": "fdf01cefc5d71cf1e172d0b49535f34468bfb192897117b593c87a779d794e96"
  }
}
