{
  "status": "passed",
  "exitCode": 0,
  "passed": 64,
  "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.SupplyChannelIntegrationTest --tests com.sit.spay4.SupplyChannelAllocationIntegrationTest --tests com.sit.spay4.SupplierLineCredentialIntegrationTest --tests com.sit.spay4.SupplierExternalProviderIntegrationTest --tests com.sit.spay4.SupplyChannelPostLockHttpIntegrationTest --tests com.sit.spay4.SupplierDeleteIntegrationTest --tests com.sit.spay4.supply.service.impl.SupplyChannelReceivingSnapshotTest --tests com.sit.spay4.supply.model.db.SupplyChannelDepositReceiverTest --rerun --offline --console=plain",
  "commandNote": "#726 於乾淨 HEAD 67e0bca5f 依 Issue Pin 授權與 G27 常設授權重跑同一 command：8 classes 64 tests 0 failures／errors／skipped，BUILD SUCCESSFUL；依 JUnit XML 更新 classes 計數、sourceVersion／inputs，status 與 scope 不變；#729 card 同步整合分支 5d6b6f158 後乾淨 HEAD a99c08f3f 依 Issue Pin 授權（G27）重跑同一 command：8 classes 64 tests 0 failures／errors／skipped，BUILD SUCCESSFUL；#613 任務分支乾淨 HEAD de1b87361 以同一 command 執行：8 classes 61 cases，0 failures／0 errors／0 skipped；JUnit XML 保留於 artifacts。#635 補 4xx 拒絕專屬 WARN 後，於任務分支乾淨 HEAD 873192cfe 依 G27 常設授權以 scripts/rerun-evidence.mjs 重跑同一 command：8 classes 64 cases，0 failures／0 errors／0 skipped，狀態與 scope 不變；#671 已記專屬 WARN 的 ApiException 建構點改用 opt-out（不再重複記通用 4xx WARN）後，於 #671 卡乾淨 HEAD 074e1866a 以同一 command 重跑 8 classes 64 cases（0 failures／errors，skipped 0），更新 sourceVersion／inputs（approved-by #671）；#914 分頁驗證改用 BackofficePagePolicy.toPageable（純重構）後，於 #914 卡乾淨 HEAD c985d5a12 依 Issue Pin 授權與 G27 常設授權以 scripts/rerun-evidence.mjs 重跑同一 command：64 tests，0 failures／errors／skipped，status 與 scope 不變（approved-by #914）；#942 SupplierDeleteIntegrationTest 過時註解（僅註解／註記，行為不變）後，於乾淨 HEAD 12bc25faa 依 Issue Pin 與 G27 常設授權以 scripts/rerun-evidence.mjs 重跑同一 command（stdin /dev/null，exit 0）：8 classes 64 tests，0 failures／errors／skipped；依實際結果更新 inputs／sourceVersion（approved-by #942），status 與 scope 不變 #958（ADR-0482，Supplier 可查詢與修改 own Supplier Setting）於乾淨 HEAD b74a08f12 依 Issue Pin 授權與 G27 常設授權以 scripts/rerun-evidence.mjs --apply 重跑同一 command（stdin /dev/null，exit 0）：64 tests，0 failures／errors／skipped；更新 sourceVersion／inputs（approved-by #958）；status／scope 不變。；#990（ADR-0485，新增 /public/agentOrder 與 EXTERNAL_ORDER_API 密鑰指紋）同步整合分支 f68c26113 後於乾淨 HEAD cd0572158 依 Issue Pin 授權與 G27 常設授權以 scripts/rerun-evidence.mjs --apply 重跑同一 command（stdin /dev/null，exit 0）：64 tests，0 failures／errors／skipped；更新 sourceVersion／inputs（approved-by #990）；status／scope 不變。",
  "sourceVersion": "cd0572158b34156ba72f80be6189e1610ec259cc",
  "issue": "#613",
  "scope": [
    "supply-channel-config"
  ],
  "coverage": [
    "normal",
    "denied",
    "failure",
    "boundary"
  ],
  "coverageNotes": {
    "normal": "Supply Channel 建立保存帳號 cipher 與一筆 secret-safe audit（owner scope null）、更新與狀態／刪除各 audit 一次（SupplyChannelIntegrationTest#createPersistsCipherAndOneSecretSafeAuditWithNullOwnerScope、#updateNoOpStaleConflictAndAuditedChange、#statusNoOpAndDeleteAreAuditedOnceAndDeletedIsInvisible）；分配建立與候選清單（SupplyChannelAllocationIntegrationTest#createPersistsAllocationAndOneAuditWithNullOwnerScope、#candidatesListSameCurrencyUndeletedChannelsWithAllocationFlag）；LINE credential 簽發只揭露一次 secret、rotate／revoke／reissue（SupplierLineCredentialIntegrationTest#issueDisclosesSecretOnceStoresCipherAndWritesSecretSafeAuditWithNullOwnerScope、#rotateReplacesKeyImmediatelyAndRejectsStaleOrForeignTargets、#revokeRemovesSecretAndReissueReactivatesSameReference）；外部支付商設定加密 secret 並 audit（SupplierExternalProviderIntegrationTest#updateEncryptsSecretsAndWritesOneSecretSafeAuditWithNullOwnerScope）；Supplier 刪除成功時同交易清除外部支付商密鑰、撤銷 session 並寫 owner scope null 的 audit（SupplierDeleteIntegrationTest#successClearsExternalSecretKeepsHistoryRevokesSessionsAndWritesUnscopedSecretSafeAudit）；#444 Deposit Receiving 模型：Supply Channel attempt 只帶 Channel 與 owning Supplier，收款 snapshot 取 owning Supplier offset 並於指派時凍結帳號／戶名／Bank（SupplyChannelDepositReceiverTest#supplyChannelAttemptCarriesOnlyChannelAndOwningSupplier；SupplyChannelReceivingSnapshotTest#usesOwningSupplierOffsetAndFreezesChannelReceivingFacts）",
    "denied": "HTTP 只限 Superadmin、跨 Supplier 404，拒絕不寫入（SupplyChannelIntegrationTest#httpOnlySuperadminWithCrossSupplierNotFound；SupplyChannelAllocationIntegrationTest#httpOnlySuperadminAndDeniedActorsWriteNothing；SupplierLineCredentialIntegrationTest#httpOnlySuperadminAndSecretNeverReadBackOrLogged；SupplierExternalProviderIntegrationTest#httpIsWriteOnlyAndOnlySuperadminMayReadOrWrite）；等 Supplier／Channel／Allocation lock 期間停用 Superadmin、bump epoch 或停用 Role，取得鎖後拒絕且寫 WARN（SupplyChannelPostLockHttpIntegrationTest 5 個 rejected 案例）；#519 Supplier 刪除被 Gateway／Supply Channel（含 INACTIVE）／CURRENT LINE credential 擋下時依固定順序列出 blocker 類型與數量、不改資料並寫 WARN，stale 與越權不改資料（SupplierDeleteIntegrationTest#blockersListEachLiveDependencyInFixedOrderWithoutMutationAndWarnLog、#staleAndUnauthorizedRequestsChangeNothing）",
    "failure": "audit 寫入失敗整筆回滾（Channel 含 active identity、Allocation 建立／更新、credential 各 mutation、外部支付商 supplier 與 secret）（SupplyChannelIntegrationTest#auditFailureRollsBackEveryMutationIncludingActiveIdentity；SupplyChannelAllocationIntegrationTest#auditFailureRollsBackCreateAndUpdate；SupplierLineCredentialIntegrationTest#auditFailureRollsBackEveryMutation；SupplierExternalProviderIntegrationTest#auditFailureRollsBackSupplierAndSecret）；驗證與 reference 失敗不寫入（SupplyChannelIntegrationTest#validationAndReferenceFailuresWriteNothing、SupplierLineCredentialIntegrationTest#validationAndReferenceFailuresWriteNothing）；Supplier 刪除 audit 失敗時 Supplier、session 與外部支付商密鑰整筆回滾（SupplierDeleteIntegrationTest#auditFailureRollsBackSupplierSessionsAndExternalSecret）",
    "boundary": "Deposit 上下限倒置於建立與更新皆 400 並寫一行 WARN（actor、Supplier、Channel id、DEPOSIT_RANGE_INVERTED，不含金額與帳號），相等與 0（不限）成功（#613 補 WARN 斷言：SupplyChannelIntegrationTest#depositMinAboveMaxIsRejectedOnCreateAndUpdateWhileEqualOrUnlimitedBoundsSucceed）；代碼 Supplier 內唯一不可變且刪除後不重用、active identity 跨 Supplier 唯一、並發同帳號只成一筆（#codeIsUniquePerSupplierImmutableAndNeverReusedAfterDelete、#activeIdentityIsUniqueAcrossSuppliersOnlyWhileActive、#concurrentCreateOfSameActiveAccountAdmitsExactlyOne）；credential 每 Supplier／Currency／Provider source 至多一把 current、並發首簽一把、被引用的 provider source 不能停用或刪除（SupplierLineCredentialIntegrationTest#atMostOneCurrentPerSupplierCurrencyAndProviderSource、#concurrentFirstIssueAdmitsOnePerScopeAndDoesNotBlockOtherSuppliers、#providerSourceReferencedBySupplierCredentialCannotBeDeletedEvenAfterRevoke、#providerSourceCannotBeDeactivatedOrDeletedWhileFirstIssueIsInFlight）；幣別不符、重複與已刪 Channel 分配拒絕（SupplyChannelAllocationIntegrationTest#rejectsCurrencyMismatchDuplicateAndDeletedChannelWithoutWriting）；刪除與 Channel 建立、LINE credential 核發、外部支付商更新併發時結果一致（SupplierDeleteIntegrationTest#writesStartedAfterInFlightDeleteWaitForItAndSeeDeletedSupplier、#deleteStartedDuringInFlightChannelCreateWaitsAndIsBlockedByIt）；三種 receiver 至多一個非 NULL、混合 receiver 於建構與 persistence 前拒絕，之後的 Channel 編輯不改已凍結 snapshot，不合格 Supplier 或 Bank 不符 fail closed（SupplyChannelDepositReceiverTest#paymentAndHouseTogetherAreRejectedAtConstruction、#mixedReceiversAreRejectedBeforePersistence；SupplyChannelReceivingSnapshotTest#laterChannelEditsDoNotRewriteTheCapturedSnapshot、#ineligibleSupplierOrMismatchedBankFailsClosed）"
  },
  "classes": [
    {
      "class": "com.sit.spay4.SupplyChannelIntegrationTest",
      "tests": 11,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.SupplyChannelAllocationIntegrationTest",
      "tests": 8,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.SupplierLineCredentialIntegrationTest",
      "tests": 11,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.SupplierExternalProviderIntegrationTest",
      "tests": 8,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.SupplyChannelPostLockHttpIntegrationTest",
      "tests": 10,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.SupplierDeleteIntegrationTest",
      "tests": 6,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.supply.service.impl.SupplyChannelReceivingSnapshotTest",
      "tests": 3,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.supply.model.db.SupplyChannelDepositReceiverTest",
      "tests": 7,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    }
  ],
  "artifacts": "/var/tmp/deliver-635/rerun/supply-channel-config-verification/spay4-bo/test",
  "limitations": "本機 isolated Docker MySQL focused 驗收（含 slow），非 fixed-SHA 全套回歸。audit 失敗回滾測試以 service 呼叫斷言資料不變，未斷言 log（HTTP 500 依 ApiExceptionHandler 記 ERROR）；Allocation／credential／外部支付商的 4xx 拒絕已由 #635 補一行專屬 WARN（操作、status、原因類別、數字 ids），各拒絕點由 DB-free 參數化測試逐一觸發，HTTP 層每 service 抽一個拒絕點驗證。#444 Deposit Receiving 只納入 DB-free 模型與 snapshot 測試；Supply Channel Deposit 分派與結算屬 supply-transaction 與收款路由，不在本報告。真實外部支付商與 LINE 廠商聯測未驗證（#465）。",
  "inputs": {
    "spay4-bo/src/test/java/com/sit/spay4/SupplyChannelIntegrationTest.java": "d5ac5f9961f0dcf6a614a86530a537fc0cdfda7a067e9fc414e108618a20294b",
    "spay4-bo/src/test/java/com/sit/spay4/SupplyChannelAllocationIntegrationTest.java": "58e461164d7843fdabc954509ef895078ce3e704f9caa72cb4d3c4bed57068bc",
    "spay4-bo/src/test/java/com/sit/spay4/SupplierLineCredentialIntegrationTest.java": "635fbe4035b61be417ac8b0b94b56c9714805f9462f4e14154b116040d4e5cf2",
    "spay4-bo/src/test/java/com/sit/spay4/SupplierExternalProviderIntegrationTest.java": "57e876fdb026b060cdfc89646d1167da94f2d70c1c24d49479622ae77fffc3de",
    "spay4-bo/src/test/java/com/sit/spay4/SupplyChannelPostLockHttpIntegrationTest.java": "5dc258710a88b69effc62d9f689ea00d5573b380e296f7faa6dad6d8918df0bc",
    "spay4-bo/src/test/java/com/sit/spay4/SupplierDeleteIntegrationTest.java": "2cde539917f50e992d90e181bf0cd42cbdabbf6f76d1779c29268457d4b04888",
    "spay4-bo/src/test/java/com/sit/spay4/supply/service/impl/SupplyChannelReceivingSnapshotTest.java": "6d2d87b6e8636c5e109d593118284b321cab65b728e78d2a1640fe4f7edec17b",
    "spay4-bo/src/test/java/com/sit/spay4/supply/model/db/SupplyChannelDepositReceiverTest.java": "772bd741322db2716996a68e4d6a59c803cd23f51fc84db994f562c7c8ae6e44",
    "spay4-bo/src/main/java/com/sit/spay4/supply/controller/SupplyChannelController.java": "ad852dbd7bca6b525d49d8f72e36b3398050efa57c6a21831c87a69cdd19fd13",
    "spay4-bo/src/main/java/com/sit/spay4/supply/controller/SupplyChannelAllocationController.java": "0215da1a701ad1e284d2d45d52fe0615c9f696c0cdbc3e2fabfdefba2b13af15",
    "spay4-bo/src/main/java/com/sit/spay4/supply/controller/SupplierLineCredentialController.java": "b8fbb00e7a4ce4a8ecf748d31d63692d6ad5e5db854a3b73ee17d5373613d851",
    "spay4-bo/src/main/java/com/sit/spay4/supply/controller/SupplierExternalProviderController.java": "7ff7fdebceba6abc4cec8aa44ae17b7293effb2214e287ec9205635423520d6e",
    "spay4-bo/src/main/java/com/sit/spay4/supply/service/impl/SupplyChannelServiceImpl.java": "732d83f006f1e4254c0cbeb0c3803489bcb19f13857faeba90aa264183fb6d50",
    "spay4-bo/src/main/java/com/sit/spay4/supply/service/impl/SupplyChannelAllocationServiceImpl.java": "ee1bce3c826a57c5362be36efe13e4b922fe9ac084c54fb23c567863759c5260",
    "spay4-bo/src/main/java/com/sit/spay4/supply/service/impl/SupplierLineCredentialServiceImpl.java": "44a01af4a9054fdf8e2c0889ca38226f6e95ab09aa34a99ed399e242fdde4f59",
    "spay4-bo/src/main/java/com/sit/spay4/supply/service/impl/SupplierExternalProviderServiceImpl.java": "e3cedb86059531e3600b1bc628908ad6e24bdc7fe70ab6da2c0e6118a6356f72",
    "spay4-bo/src/main/java/com/sit/spay4/supply/service/impl/SupplierServiceImpl.java": "506e302f79d034c7b98e46d18a8ab74e449ace6bab50f77032bc5f39d7e45812",
    "spay4-bo/src/main/java/com/sit/spay4/supply/service/impl/DepositReceivingSnapshotServiceImpl.java": "04c01f101d319d82f07e75fe7b9a5924980dbd4a79c5e7654aa5508370171782",
    "spay4-bo/src/main/java/com/sit/spay4/supply/model/db/SupplyOrderAssignmentAttempt.java": "23787dce2ada9d133cd90571f25299cc13879b25192dbdaa1bd13deed402cad2"
  }
}
