{
  "status": "passed",
  "exitCode": 0,
  "passed": 48,
  "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.SupplierSetupFlowHttpIntegrationTest --tests com.sit.spay4.AccountSetupFlowHttpIntegrationTest --tests com.sit.spay4.ReceiveFlowHttpIntegrationTest --tests com.sit.spay4.PayFlowHttpIntegrationTest --tests com.sit.spay4.CommissionReadingFlowHttpIntegrationTest --tests com.sit.spay4.CredentialRecoveryFlowHttpIntegrationTest --tests com.sit.spay4.SystemDiagnosticsFlowHttpIntegrationTest --rerun --offline --console=plain",
  "commandNote": "#951 Gateway limits 倒置回方向欄位與 WARN（SupplyGatewayServiceImpl／SupplyGatewayController Swagger 描述變更）後，於乾淨 HEAD 3f2c98d84 依 G27 常設授權以 scripts/rerun-evidence.mjs --apply 重跑同一 command（stdin /dev/null，exit 0）：48 tests，0 failures／errors／skipped；status 與 scope 不變。",
  "sourceVersion": "2a77dac1f9214a96108e52f9d80d9b5b212b7242",
  "issue": "#430",
  "scope": [
    "supplier-setup"
  ],
  "coverage": [
    "normal",
    "denied",
    "failure",
    "boundary"
  ],
  "coverageNotes": {
    "normal": "Superadmin 正式 login／me → Agent／Prefix 建立 → Supplier＋DEFAULT Gateway atomic create（雙 credentials 一次交付、無 allocation）→ Gateway Currency／limits／owner 核對（0/0 合法、Supplier 無 quota）→ 跨 Supplier allocation 啟用，五步以前步輸出串接（superadminBuildsAgentSupplierGatewayAndCrossSupplierAllocationInOneChain）",
    "denied": "Prefix／Supplier／Gateway 403/40001，跨 owner 與不存在 Gateway 404/40002，匿名與登出後 token 401，重新登入可續（everyStepRevalidatesSessionActionAndOwnerChain）",
    "failure": "步驟 2–5 各以 domain_audit_log trigger 注入失敗：500 整步 rollback、前步保留、移除後同請求續跑（auditFaultRollsBackOnlyTheFailingStepAndTheFlowResumes）",
    "boundary": "重複 prefix／loginId／gateway code 409/40003 不回放 secret、idempotencyKey 欄位 strict 400、stale 409/40051 reload 同值 no-op；offset／Bank／Currency／limits／changeReason／帶 priority／缺 reason／INACTIVE Gateway 400、缺 Agent 404（duplicatesConflictWithoutReplayAndStaleVersionsRequireReload、boundariesRejectInvalidInputWithoutPartialWrites）"
  },
  "classes": [
    {
      "class": "com.sit.spay4.SupplierSetupFlowHttpIntegrationTest",
      "tests": 5,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.AccountSetupFlowHttpIntegrationTest",
      "tests": 5,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.CommissionReadingFlowHttpIntegrationTest",
      "tests": 4,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.CredentialRecoveryFlowHttpIntegrationTest",
      "tests": 15,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.PayFlowHttpIntegrationTest",
      "tests": 7,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.ReceiveFlowHttpIntegrationTest",
      "tests": 8,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    },
    {
      "class": "com.sit.spay4.SystemDiagnosticsFlowHttpIntegrationTest",
      "tests": 4,
      "failures": 0,
      "errors": 0,
      "skipped": 0
    }
  ],
  "limitations": "本機 isolated MySQL focused 驗收（含 slow），非 fixed-SHA 全套回歸；批次統一回歸由 coordinator 執行。routing 順序只斷言 eligible scope 依 binding id 排序。Gateway summary 的 usedByAgents 自 #520 起回傳已啟用分配的 [{agentId,agentPrefix}]，本 flow 斷言其 wire 形狀。target 環境與部署屬 Operator，未驗證。",
  "inputs": {
    "spay4-bo/src/test/java/com/sit/spay4/SupplierSetupFlowHttpIntegrationTest.java": "13d09332a367f2be137c4e85cd198597478a78d63f8dff0d7bf0b1f23236f75c",
    "spay4-bo/src/main/java/com/sit/spay4/agent/controller/AgentController.java": "bf85ba21bc1c60eb613afd3280aed95a9129017512a0f8ff23f03c97a50b1592",
    "spay4-bo/src/main/java/com/sit/spay4/auth/controller/AuthController.java": "121c746ee6996969e20c1cdaa028932719fddf51e615da529ebc2b7d0abe73ca",
    "spay4-bo/src/main/java/com/sit/spay4/supply/controller/SupplierController.java": "30409df22c5432278541afe90e5e2aacec96f12cd9611f898f3c681acb9947c2",
    "spay4-bo/src/main/java/com/sit/spay4/supply/controller/SupplyGatewayAllocationController.java": "4465720738b1d4ed8147f023e0165d603b7e493e0c93b90928a04118b237c460",
    "spay4-bo/src/main/java/com/sit/spay4/supply/controller/SupplyGatewayController.java": "a33880a69cae28a3a7cedb78fde805697a99a5abf0da41c47714897a411b95fd"
  },
  "drift": "2026-10-23 #519（Supplier delete blockers，改 SupplierController）於 #519 card 乾淨 HEAD cbf38d464 依 G27 常設授權原樣重跑同一 command（exit 0，列名 classes 5 passed），inputs 依該 HEAD 重算；status／scope／coverage 不變。 2026-10-24 #519 card 同步整合分支 feature/ron/#24846（c930f2ef0，含 #520 對本報告 inputs 的變更）後，兩側變更合併，依 G27 常設授權於乾淨 HEAD 0314bbc2f 原樣重跑同一 command（exit 0，列名 classes 5 passed，計數不變），inputs 依該 HEAD 重算；status／scope／coverage 不變。",
  "artifacts": "/var/tmp/deliver-720/rerun-1104-2/issue430-supplier-setup-flow"
}
