@jetthai/cuora 1.1.487-otp.0 → 1.1.487-otp.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/package.json +1 -1
  2. package/e2e/feature-map.md +0 -19
  3. package/prepare-for-pr/JT-1776243420.md +0 -85
  4. package/prepare-for-pr/TI-16026/STATE.md +0 -18
  5. package/prepare-for-pr/TI-16026/after-prepare-authorization.md +0 -3
  6. package/prepare-for-pr/TI-16026/analysis.md +0 -38
  7. package/prepare-for-pr/TI-16026/answer-analyze-01.md +0 -1
  8. package/prepare-for-pr/TI-16026/answer-commit-01.md +0 -2
  9. package/prepare-for-pr/TI-16026/answer-commit-02.md +0 -1
  10. package/prepare-for-pr/TI-16026/bundle.json +0 -18
  11. package/prepare-for-pr/TI-16026/checklist.md +0 -196
  12. package/prepare-for-pr/TI-16026/checklist.unit-test-original.md +0 -39
  13. package/prepare-for-pr/TI-16026/claude-after-model +0 -1
  14. package/prepare-for-pr/TI-16026/claude-commit-session +0 -1
  15. package/prepare-for-pr/TI-16026/claude-harvest-session +0 -1
  16. package/prepare-for-pr/TI-16026/claude-hops/01-analyze.err +0 -1
  17. package/prepare-for-pr/TI-16026/claude-hops/01-analyze.out +0 -2
  18. package/prepare-for-pr/TI-16026/claude-hops/02-analyze.err +0 -1
  19. package/prepare-for-pr/TI-16026/claude-hops/02-analyze.out +0 -4
  20. package/prepare-for-pr/TI-16026/claude-hops/03-dev.err +0 -1
  21. package/prepare-for-pr/TI-16026/claude-hops/03-dev.out +0 -4
  22. package/prepare-for-pr/TI-16026/claude-hops/04-dev.err +0 -1
  23. package/prepare-for-pr/TI-16026/claude-hops/04-dev.out +0 -4
  24. package/prepare-for-pr/TI-16026/claude-hops/05-dev.err +0 -1
  25. package/prepare-for-pr/TI-16026/claude-hops/05-dev.out +0 -3
  26. package/prepare-for-pr/TI-16026/claude-hops/06-after.err +0 -1
  27. package/prepare-for-pr/TI-16026/claude-hops/06-after.out +0 -2
  28. package/prepare-for-pr/TI-16026/claude-hops/07-commit.err +0 -1
  29. package/prepare-for-pr/TI-16026/claude-hops/07-commit.out +0 -2
  30. package/prepare-for-pr/TI-16026/claude-hops/08-commit.err +0 -1
  31. package/prepare-for-pr/TI-16026/claude-hops/08-commit.out +0 -2
  32. package/prepare-for-pr/TI-16026/claude-hops/09-commit.err +0 -1
  33. package/prepare-for-pr/TI-16026/claude-hops/09-commit.out +0 -8
  34. package/prepare-for-pr/TI-16026/claude-hops/10-harvest.err +0 -1
  35. package/prepare-for-pr/TI-16026/claude-hops/10-harvest.out +0 -3
  36. package/prepare-for-pr/TI-16026/claude-hops/11-harvest.err +0 -1
  37. package/prepare-for-pr/TI-16026/claude-hops/11-harvest.out +0 -3
  38. package/prepare-for-pr/TI-16026/commit-note.md +0 -5
  39. package/prepare-for-pr/TI-16026/evidence-index.json +0 -215
  40. package/prepare-for-pr/TI-16026/feature-map.before.md +0 -61
  41. package/prepare-for-pr/TI-16026/harvest-redaction.json +0 -34
  42. package/prepare-for-pr/TI-16026/harvest-redaction.out +0 -37
  43. package/prepare-for-pr/TI-16026/harvest.md +0 -46
  44. package/prepare-for-pr/TI-16026/lessons.md +0 -5
  45. package/prepare-for-pr/TI-16026/note-harvest-redaction.md +0 -1
  46. package/prepare-for-pr/TI-16026/open-questions.md +0 -6
  47. package/prepare-for-pr/TI-16026/publish.md +0 -32
  48. package/prepare-for-pr/TI-16026/review-convergence-response.md +0 -3
  49. package/prepare-for-pr/TI-16026/review-input/scope.md +0 -18
  50. package/prepare-for-pr/TI-16026/review-log.md +0 -57
  51. package/prepare-for-pr/TI-16026/review-notes.md +0 -97
  52. package/prepare-for-pr/TI-16026/review-response-r1.md +0 -7
  53. package/prepare-for-pr/TI-16026/self-test-report.md +0 -67
  54. package/prepare-for-pr/TI-16026/spec-proposal.md +0 -34
  55. package/prepare-for-pr/TI-16026/spec-snapshot.md +0 -291
  56. package/prepare-for-pr/TI-16026/state-log.md +0 -57
  57. package/prepare-for-pr/TI-16026/user-messages/01.md +0 -12
  58. package/prepare-for-pr/TI-16026/user-messages/02.md +0 -20
  59. package/prepare-for-pr/TI-16026/user-messages/03.md +0 -1
  60. package/prepare-for-pr/TI-16026/user-messages/04.md +0 -1
  61. package/prepare-for-pr/TI-16026/user-messages/05.md +0 -1
  62. package/prepare-for-pr/TI-16026/user-messages/06.md +0 -1
  63. package/prepare-for-pr/TI-16026/user-messages/07.md +0 -1
  64. package/prepare-for-pr/TI-16026/user-messages/08.md +0 -1
  65. package/prepare-for-pr/TI-16026/user-messages/09.md +0 -1
  66. package/prepare-for-pr/TI-16026/user-messages/10.md +0 -1
  67. package/prepare-for-pr/TI-16026/user-messages/11.md +0 -1
  68. package/prepare-for-pr/TI-16026/user-messages/12.md +0 -1
  69. package/prepare-for-pr/TI-16026/user-messages/13.md +0 -1
  70. package/prepare-for-pr/TI-16026/user-messages/14.md +0 -1
  71. package/prepare-for-pr/TI-16026/user-messages/15.md +0 -1
  72. package/prepare-for-pr/TI-16026/user-messages/16.md +0 -1
  73. package/prepare-for-pr/TI-16026/user-messages/17.md +0 -1
  74. package/prepare-for-pr/TI-16026/user-messages/18.md +0 -10
  75. package/prepare-for-pr/TI-16026/user-messages/19.md +0 -1
  76. package/prepare-for-pr/TI-16026/user-messages/20.md +0 -1
  77. package/prepare-for-pr/TI-16026/user-messages/21.md +0 -1
  78. package/prepare-for-pr/TI-16026/user-messages/22.md +0 -1
  79. package/prepare-for-pr/TI-16026/user-messages/23.md +0 -8
  80. package/prepare-for-pr/TI-16026/user-messages/24.md +0 -24
  81. package/prepare-for-pr/TI-16026/user-question.md +0 -24
  82. package/prepare-for-pr/TI-16026/verify/metrics-check.json +0 -13
  83. package/prepare-for-pr/TI-16026/verify/redaction.json +0 -38
  84. package/prepare-for-pr/TI-16026/verify/row-closure.json +0 -45
  85. package/prepare-for-pr/TI-16026/verify/s04-ws-capture.md +0 -23
  86. package/prepare-for-pr/TI-16026/verify-after.md +0 -23
  87. package/prepare-for-pr/TI-16026/verify.json +0 -80
  88. package/prepare-for-pr/TI-16026.md +0 -408
@@ -1,97 +0,0 @@
1
- # TI-16026 review notes
2
-
3
- ## Round r1 — 2026-11-17
4
-
5
- ### Spec Proposal and Validation Plan
6
-
7
- Target: `feat/stone/JT-1791856380-ws-refresh`, HEAD/base `c9186b6b3f424d74a9fe1363e64b17eb63809b58`; compare base to working tree, including the untracked test. The driver already presented and saved `spec-proposal.md`; this round uses that plan and independently derives behavior from the raw ticket snapshot and code.
8
-
9
- - Confirmed: submitted accepts REFRESH, enters loading and calls getPendingOrder again. Source: `spec-snapshot.md:76`.
10
- - Confirmed: successful empty response yields loaded; a remaining pending order replaces processing and yields submitted. Source: `spec-snapshot.md:71`.
11
- - Inferred regression expectation: non-submitted REFRESH retains the root hasNoBank condition; the ticket adds a submitted-only handler and does not request changing other states. Source: `spec-snapshot.md:55`, `spec-snapshot.md:76`, base diff and root handler.
12
- - Excluded: cash frontend strict ID matching, websocket payload windowType classification, visible form/pending screen rendering and published package integration. The driver confirms adapter=none and no SDK screenshots by user choice A; the client-pwa-cash bundle owns UI evidence.
13
-
14
- Checks: submitted + pending→empty; submitted + pending→distinct pending; loaded + bound bank (existing unit suite); loaded + no bank (pure-transition boundary probe); memory-only forced hasNoBank=true (negative control proving the existing regression test can fail). The last two bounded probes directly support the requested root-guard regression check; no repository files or remote state were changed.
15
-
16
- ### Traced paths
17
-
18
- - `src/machine/withdraw/withdraw_manual_cash.js:99`: submitted-local REFRESH targets sibling loading without hasNoBank; XState selects this handler before the root handler.
19
- - `src/machine/withdraw/withdraw_manual_cash.js:32`: loading invokes fetchInitData; onDone assigns data and enters checking; onError keeps the existing loaded fallback.
20
- - `src/machine/withdraw/withdraw_manual_cash.js:45`: checking selects submitted if processing is truthy, otherwise loaded.
21
- - `src/machine/withdraw/withdraw_manual_cash.js:160`: root REFRESH retains external loading transition and hasNoBank; local change cannot override this handler outside submitted.
22
- - `src/machine/withdraw/withdraw_manual_cash.js:173`: setInitData assigns the new processing value, including undefined for an empty order list; it also refreshes bank/rule data via the existing initializer.
23
- - `src/machine/withdraw/withdraw_manual_cash.js:227`: hasNoBank checks userBanks.length; userBanks combines bank, ewallet and crypto bindings at line 175.
24
- - `src/machine/withdraw/withdraw_manual_cash.js:247`: existing initialization and both double-wallet branches remain unchanged; pending order requests occur at lines 264/277 with transferType WITHDRAW; orders[0] is assigned at lines 270/284.
25
- - `src/api/payment.js:195`: getPendingOrder retains its descriptor contract.
26
- - `src/machine/withdraw/index.js:4`: unchanged exported factory consumer; `rg -n 'withdraw_manual_cash' src` found no other non-target direct named consumer.
27
- - `test/withdraw_manual_cash.test.js:54`, `:68`, `:82`, `:98`: test observable loading, query count, empty result, replacement order and bound-bank ignore behavior; every interpreter stops in finally.
28
-
29
- ### Executed evidence and limits
30
-
31
- See `prepare-for-pr/TI-16026.md` E1–E4 for full commands and raw results. Target suite: 4/4 passed. Bank/no-bank pure transitions: passed. Memory-only guard mutation: expected 1/4 failure at the bound-bank state assertion. git diff --check: exit 0.
32
-
33
- No product-code findings. No evidence/checklist coverage findings were raised. No full-suite, real requests, transactions, browser, package publishing or cash runtime execution. Non-submitted states other than loaded were inspected through unchanged root/state definitions, not individually executed. OTP, both other wallet gate configurations and API rejection paths were not exercised. The SDK bundle exists; it has no UI runtime/BEFORE baseline. Process listing was denied (`ps: operation not permitted`); no server or background process was started, and all test/probe commands exited.
34
-
35
- This is the fresh independent review of the author's change. The additional review-loop convergence pass is the driver's next step, not claimed by this r1 report. No author analysis, checklist, STATE, publish or user-question file was read.
36
-
37
- ## Independent convergence check — 2026-11-17
38
-
39
- The fresh reviewer first read the raw spec snapshot, review-input/scope.md, the base-to-working-tree diff, the complete untracked test and relevant source. Before opening the earlier log/notes/STATE, the reviewer recorded independent observations to the driver: normal refresh paths look correct; the complete internal export chain needs impact coverage; the new loading error path can enter loaded with stale processing and prevent retry. The reviewer then read STATE.md, review-log.md and review-notes.md in full and found that r1 explicitly excluded API-error execution. Author analysis, checklist, publish and user-question files were not opened. No product files were edited.
40
-
41
- ### Additional traced paths
42
-
43
- - `src/machine/withdraw/withdraw_manual_cash.js:101` newly makes loading.onError at :39–40 reachable from a known pending order, including a user with a bound bank. The failure skips setInitData (:173), so processing remains stale. Root REFRESH (:160) then fails hasNoBank (:227).
44
- - `src/request/request.js:337` rethrows ERR_998 without errorHandler, so this counterexample does not depend on a global error handler navigating away.
45
- - `src/machine/withdraw/index.js:1/:4` directly exports the factory; `src/machine/index.js:18/:54` aggregates it; `src/index.js:2/:7` exports the public machine object. All three unchanged consumer files are now in r1 Impact.
46
- - `src/machine/websocket.js:296–301` already forwards payment-info without a windowType toast condition at this base. The raw ticket's conditional websocket change therefore does not require an additional patch here; real payloads and downstream handling remain unverified.
47
- - External scope names client-pwa-cash without a concrete current consumer path. The raw spec :79 names two possible integration locations; no other repo was read, and candidate paths were not represented as confirmed consumers. The report records the external contract and F-r1-01 risk without claiming a complete downstream file inventory.
48
-
49
- ### Additional execution and result
50
-
51
- - E5, exact command and output in the report: local request stub + real XState interpreter reproduced pendingOrder ERR_998 → loaded with stale W-1; a further REFRESH stayed loaded and pendingOrder calls stayed 2. Assertions passed, exit 0, interpreter stopped in finally. This is a reproduced defect, not a passing acceptance check.
52
- - `node --test test/withdraw_manual_cash.test.js`: 4 passed, 0 failed, exit 0. The existing suite does not exercise E5's failure state.
53
- - Added `F-r1-01 [medium]` to the same r1 and updated its counts-only result. No re-raise, product fix, transaction, browser, publish or Notion write. The driver owns the next check-review.sh call and loop state; this reviewer does not declare convergence.
54
- - `ps -eo pid,rss,command` was denied (`operation not permitted`). No persistent process was started; both Node commands exited. Pre-edit backups were supplied by the driver at `/var/folders/s8/rjb4nddx2f1c_nl7p_wwz8kh0000gn/T/TI-16026-cuora-r1-convergence.alMsEv2Bjy/`.
55
-
56
- ## Round r2 — 2026-11-17 — ACCEPT fix verification
57
-
58
- Read the complete log, notes and STATE first. Only review-input/scope.md was read from author review inputs; no analysis/checklist/other repo was read. The driver ran the initial check-review.sh and supplied its open F-r1-01 result. Do not recalculate or declare loop convergence in this reviewer hop; driver owns the next check.
59
-
60
- ### Delta and traces
61
-
62
- - r1 snapshot is the recorded working tree, not HEAD (HEAD remains c9186b6). The accepted response identifies onError -> loaded as old behavior. The new guarded onError at src/machine/withdraw/withdraw_manual_cash.js:40 is the only product delta after r1; the submitted handler at :98-101 is the prior reviewed addition.
63
- - Error path :34 -> fetchInitData :246/:273-276 reject -> :40 -> isProcessing :229-230 -> submitted. onError has no assignment; :172-184 is onDone only, so W-1 is preserved. submitted :100 accepts REFRESH without root hasNoBank :159/:226-227; the third request can succeed and assign undefined processing, then checking :44 goes loaded.
64
- - First initialization starts processing=null (:21); onError's first guard is false and fallback remains loaded. Success still uses onDone setInitData (:35-38), checking (:43-44), and orders[0] (:283). No success action/guard/service changed.
65
- - test/withdraw_manual_cash.test.js:31 binds a bank; :106-121 rejects the second pendingOrder with ERR_998, asserts retained firstOrder then call 3 and loaded. :123-133 asserts first-load failure -> loaded with null processing. Existing :58-100 and :135-149 cover successful reload, empty/new order and bound-bank root ignore.
66
- - Impact inventory rerun: rg -n 'withdraw_manual_cash|withdraw/index|\.\.\.withdraw|machine/index' src. Internal unchanged consumers are withdraw/index.js:4, machine/index.js:18/:54, index.js:2/:7. No additional internal consumer found. External cash filenames remain unconfirmed; no other repo was accessed.
67
-
68
- ### Execution
69
-
70
- - node --test test/withdraw_manual_cash.test.js: 6 passed, 0 failed, exit 0 (real factory/initializer, injected local responses, no network).
71
- - Negative control: recreate factory config in memory with loading.invoke.onError={target:'loaded'} and execute the same suite. Exactly the new failed-refresh retry case times out waiting for submitted: 5 passed, 1 failed, exit 1 expected. No repository file edited/restored. This validates the rejection regression assertion against the original defect.
72
- - Pure transition root boundary: loaded + empty userBanks -> loading; loaded + bank -> loaded; assertions passed, exit 0; request stub throws if called, no requests occurred.
73
- - git diff --check: empty output, exit 0. Product SHA256 13cfd851560c1b60c1bdf206d1c67d1db04d2f2db6652dde698659a34ec391f9; untracked test SHA256 fecacc81d718bc118f791d125768c0ee0204d89b9d3762d0ca15c45725c29268. Only assigned review files written.
74
-
75
- F-r1-01 verified in r2: yes. New findings: 0. Impact block includes all three internal consumers. No full suite, real transport/backend, cash UI/WebSocket, package publish, OTP or alternate wallet-gate execution. Other non-submitted states were traced through unchanged definitions, not separately interpreted. ps -eo pid,rss,command denied (operation not permitted); no persistent process started and all Node commands exited. Backups supplied by driver: /var/folders/s8/rjb4nddx2f1c_nl7p_wwz8kh0000gn/T/TI-16026-cuora-r2-review.SAXN9BgVO3/.
76
-
77
- ## Independent r2 convergence check — 2026-11-17
78
-
79
- The fresh reviewer read spec-snapshot.md, the sole review-input/scope.md, the entire base-to-working-tree product diff, the complete untracked test and relevant source before reading any prior reviewer record. Independent observations were written to the driver first: submitted REFRESH now precedes the root bank guard; success reuses setInitData/checking to replace or clear processing; failure conservatively preserves submitted when processing exists; the unchanged three-layer export chain needs no adaptation. No new defect was identified. Only then were STATE.md, review-log.md and review-notes.md read in full. No author analysis, checklist, publish or user-question file, other repository or Notion page was read.
80
-
81
- ### Whole-change trace and Impact inventory
82
-
83
- - Comparison remains c9186b6b3f424d74a9fe1363e64b17eb63809b58 to the working tree, including test/withdraw_manual_cash.test.js; HEAD equals base and does not represent the product changes.
84
- - src/machine/withdraw/withdraw_manual_cash.js:98-101 adds submitted-local REFRESH -> loading; :32-44 invokes initialization, assigns only on success and selects submitted/loaded. :172-184 assigns the new order, including undefined after an empty order list. :246-284 retains the existing CASH/ACTIVITY initialization services and getPendingOrder parameters.
85
- - Failure at :40 uses isProcessing (:229-230), with no assignment, preserving W-1; the next submitted REFRESH bypasses root hasNoBank (:159/:226-227). Initial processing is null (:21), so initial failure still reaches loaded. This independently supports F-r1-01 verified yes.
86
- - src/request/request.js:337-338 rethrows ERR_998 without calling errorHandler. Local rejection stubs therefore match the relevant Request failure path; no real transport was exercised.
87
- - src/machine/websocket.js:296-301 already forwards payment-info without a windowType toast restriction. No conditional websocket patch is needed on that static criterion; deduplication, real payload delivery and cash ID matching were not executed.
88
- - Searches: rg -n 'withdraw_manual_cash|withdrawManualCash|withdrawManual|REFRESH|isProcessing' src/machine/withdraw src/machine/index.js src/index.js; rg -n 'withdraw|machine/index|machine/withdraw|\.\.\/src\/machine\/withdraw|\bmachine\b' src --glob '\*.js'. Followed imports and spreads explicitly. Whole-change unchanged consumers: src/machine/withdraw/index.js:1/:4, src/machine/index.js:18/:54, src/index.js:2/:7. Rewrote r2 Impact with one line per consumer covering both the original submitted handler and failure fix. No external filename was inferred as confirmed.
89
-
90
- ### Independent execution and boundaries
91
-
92
- - C2-E1: node --test test/withdraw_manual_cash.test.js; 6 passed, 0 failed, exit 0. Covers entered loading/query 2, empty/updated order, retained Pending and retry after ERR_998, initial error and bound-bank root ignore.
93
- - C2-E2: independently reran the R2-E2 command with only loading.onError restored to unconditional loaded in memory. Expected exit 1: 5 passed, 1 failed; only the new retry test timed out waiting for submitted. Product/test files were never mutated.
94
- - C2-E3: independently reran the R2-E3 pure-transition probe; empty userBanks -> loading, bound bank -> loaded; exit 0, no requests.
95
- - C2-E4: git diff --check produced no output; product SHA256 13cfd851560c1b60c1bdf206d1c67d1db04d2f2db6652dde698659a34ec391f9 and test SHA256 fecacc81d718bc118f791d125768c0ee0204d89b9d3762d0ca15c45725c29268 match the r2 artifacts. ps -eo pid,rss,command was denied (operation not permitted); no persistent process was started and all test/probe processes exited.
96
-
97
- No new finding or re-raise; F-r1-01 remains ACCEPT + verified in r2 yes. No full suite, alternate wallet gate, OTP, other error-code execution, browser, real backend, transaction, external consumer, package release or Notion verification. Non-submitted states beyond loaded were inspected through their unchanged root/state definitions. The driver owns loop status and STATE. Before editing, all three assigned review files were backed up with preserved permissions in /var/folders/s8/rjb4nddx2f1c_nl7p_wwz8kh0000gn/T/TI-16026-cuora-r2-convergence.iivyDMK8Pm/.
@@ -1,7 +0,0 @@
1
- Review r1 is not converged. `check-review.sh` output: `not-converged: F-r1-01:no-decision r1:1-new-findings`.
2
-
3
- Finding F-r1-01 [medium], recorded in `prepare-for-pr/TI-16026/review-log.md` and reproduced as E5 in the report: when `submitted` accepts `REFRESH`, the real initializer re-enters `loading`; if the second `getPendingOrder` rejects with ERR_998, existing `loading.onError` enters `loaded` without a confirmed empty result. The old processing object remains in context, and a user with a bound bank cannot retry REFRESH because the unchanged root guard requires `hasNoBank`.
4
-
5
- Expected behavior: do not present the form as if the pending order ended unless the refresh response confirms an empty list; preserve Pending or provide a recoverable error/retry state. Add an error-path regression test. Review evidence traces the new path at `src/machine/withdraw/withdraw_manual_cash.js:101` to the existing handler at `:39-40`, then retry to `:160/:227`; see report E5 for the local stub reproduction and exact results.
6
-
7
- Please inspect the full finding and review protocol yourself, implement a safe fix within the accepted SDK scope, run the targeted unit suite, update STATE.md, and reply according to the dev-stage protocol. User choice A still applies: no screenshots or Notion page for this SDK; visual behavior remains in the client-pwa-cash flow. No publish or shared-branch action is authorized by this note.
@@ -1,67 +0,0 @@
1
- # TI-16026 自測報告 — 存出款 Pending 畫面依 WebSocket 即時刷新狀態(cuora-module)
2
-
3
- > 環境:cuora-module @ `v1.1.485-dev.0`(checkout `ebb47db`,包含 task commit `219a415070e8c9ee23615b60a9942d6c4dc1b02c`;修改前 base `c9186b6b3f424d74a9fe1363e64b17eb63809b58`)| SDK unit tests,無 UI runtime |資料來源:本機 request stub
4
- > 規格:[TI-16026](https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907)
5
- > 安全:未送出交易、交易類請求未轉發;Node 測試只使用本機 stub |最後更新:2026-11-18 第 1 輪
6
-
7
- ## 結論
8
-
9
- **整體結果:PASS。** cuora 的提款 machine 轉場由單元測試與獨立程式審查驗證。共 6 列:PASS 4、PARTIAL 0、UNVERIFIED 0、FAIL 0、N/A 2;來源 規格 5、連動 1、需求外 0。
10
-
11
- 未結項目:無。
12
-
13
- 本 repo 是沒有 UI 的 SDK。依使用者 2026-11-18 核准的一次性例外,本報告以 22/22 單元測試與獨立 review 作為 cuora 證據,並明列畫面截圖檢查不適用;沒有製作或宣稱任何 cuora 畫面截圖。前端畫面證據另見 [client-pwa-cash 自測頁](https://app.notion.com/p/41bb399ad8b581489c14f8de3f933a8b) 與 [client-pwa-ssr 自測頁](https://app.notion.com/p/41bb399ad8b581d9bcc3f6fc67f6c9b8)。
14
-
15
- ## 測試前核對
16
-
17
- | 項目 | 本次內容 |
18
- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
19
- | 需求 | [TI-16026](https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907)([優化][前台] 存出款 Pending 畫面依 WebSocket 即時刷新狀態) |
20
- | Repo / branch | `cuora-module` / `dev`;工作分支 `feat/stone/JT-1791856380-ws-refresh` |
21
- | 被測版本 | `v1.1.485-dev.0` at `ebb47dbcc757cc59c9a9d7f9c5f5eeb150eedf9b`;含 task commit `219a415070e8c9ee23615b60a9942d6c4dc1b02c` |
22
- | 修改前 base | `c9186b6b3f424d74a9fe1363e64b17eb63809b58` |
23
- | 環境與 layout | SDK 狀態機;無瀏覽器、畫面或 UI adapter。資料透過 `node:test` 的本機 request stub 提供。 |
24
- | Viewport | 不適用:本 repo 沒有畫面;依一次性 no-UI 例外不拍 BEFORE / AFTER。 |
25
-
26
- ## 需求範圍與情境結果
27
-
28
- 本表涵蓋 cuora 的 machine 行為與 repo 邊界。畫面截圖列為不適用;consumer 畫面由 cash 與 SSR 自測頁驗證。
29
-
30
- | ID | 需求情境 | Verdict 與實際觀察 | 證據 |
31
- | --- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
32
- | U1 | submitted 收到 REFRESH 後重新載入提款狀態<br>**規格**|[正文](https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907) › 現行問題說明、優化內容流程 3、cuora 前端調整 | **PASS** — 進入 loading,並再次呼叫 `getPendingOrder`。 | [單元測試與 review 摘要](verify-after.md) |
33
- | U2 | 刷新回應沒有 pending order 時回到表單狀態<br>**規格**|[正文](https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907) › 優化內容流程 3、cuora 前端調整 | **PASS** — 空清單回應後進入 loaded,`processing` 清除。 | [單元測試與 review 摘要](verify-after.md) |
34
- | U3 | 刷新回應仍有 pending order 時更新目前訂單<br>**規格**|[正文](https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907) › 優化內容流程 3、cuora 前端調整 | **PASS** — 新訂單取代原 processing,狀態保持 submitted。 | [單元測試與 review 摘要](verify-after.md) |
35
- | U4 | submitted 以外的 REFRESH 保留既有 bank 條件<br>**連動**|因 [正文](https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907) › cuora 前端調整;root handler `src/machine/withdraw/withdraw_manual_cash.js:159-160` 保留 `hasNoBank` 條件 | **PASS** — 已綁定 bank 的 loaded 狀態忽略 REFRESH,沒有新增請求。 | [單元測試與 review 摘要](verify-after.md) |
36
- | U5 | payment-info 不因 windowType 而被丟棄<br>**規格**|[正文](https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907) › cuora 前端調整 bullet 2 | **N/A** — base code 的 `src/machine/websocket.js:296-302` 已轉送 payment-info,沒有 toast-only windowType gate。 | 程式碼檢視與 review-log |
37
- | U6 | socket-to-order matching 維持在 client-pwa-cash<br>**規格**|[正文](https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907) › 優化內容流程 1–2、client-pwa-cash 前端調整 | **N/A** — 規格將 socket 訂閱與 strict order-ID match 指派給 cash consumer;cuora 提供 REFRESH transition。 | [cash 自測頁](https://app.notion.com/p/41bb399ad8b581489c14f8de3f933a8b);[SSR 自測頁](https://app.notion.com/p/41bb399ad8b581d9bcc3f6fc67f6c9b8) |
38
-
39
- ## 逐列證據
40
-
41
- U1–U4 都是 measure / unit-test proof,U5–U6 是由程式碼或規格 repo 分工判定的 N/A 列。依已核准的一次性例外,cuora 不產生畫面媒體;因此本節沒有圖片或影片。
42
-
43
- ## 需求外異動
44
-
45
- 無。
46
-
47
- ## 資料準備與注入紀錄
48
-
49
- | 欄位 | 本次內容 |
50
- | -------- | --------------------------------------------------------------------------------------------- |
51
- | 資料來源 | 本機 `node:test` request stub;沒有呼叫真實後端。 |
52
- | 注入範圍 | 測試以本機 request stub 回傳 pending order、空清單、新訂單與錯誤回應;只驗證 SDK 狀態機行為。 |
53
- | 寫入操作 | 未送出提款;未修改帳戶或付款資料;沒有交易請求轉發。 |
54
-
55
- ## 限制與未驗證
56
-
57
- - **截圖檢查不適用(使用者核准的一次性例外)**:cuora 是無 UI SDK,沒有 BEFORE / AFTER capture。V04、V05、V06/V07 的畫面 metrics 部分、V10L 媒體連結與 V18 frame pair 不適用;本報告不把單元測試說成畫面證據。consumer 畫面見上方 cash / SSR 自測頁。
58
- - **後端推播契約未驗證**:真實 backend 的 event 名稱、`subType` 與 payload 未由 live push 核對。cash 與 SSR 自測頁透過 injected push 驗證前端處理,並將後端契約列為 UNVERIFIED。
59
- - **Review 未採納建議**:無。F-r1-01 已接受、修正並由 r2 確認。
60
-
61
- ## 附錄:量測與環境
62
-
63
- - 完整測試:`node --test test/*.test.js` — 22/22 passed、0 failed;測試輸出與條件記錄見 [verify-after.md](verify-after.md)。
64
- - U1–U4 assertions:[`test/withdraw_manual_cash.test.js`](../../test/withdraw_manual_cash.test.js)。
65
- - 獨立 review:[`review-log.md`](review-log.md) 記錄 F-r1-01 的重現、修正驗證、負向控制及 `REVIEW CONVERGED`。review 限制與未執行範圍見 [`review-notes.md`](review-notes.md)。
66
- - Package `1.1.485-dev.0` 已由使用者發布並安裝;Codex 沒有執行 publish 或 push。
67
- - 這是本機交付;本報告連結的 bundle 文字與 evidence index 保留供 QA 查閱。
@@ -1,34 +0,0 @@
1
- # Spec Proposal and Validation Plan — TI-16026 (cuora-module)
2
-
3
- ## Target
4
-
5
- Branch: `feat/stone/JT-1791856380-ws-refresh`
6
- Base: `c9186b6b3f424d74a9fe1363e64b17eb63809b58`
7
- Spec snapshot: `prepare-for-pr/TI-16026/spec-snapshot.md`
8
-
9
- ## Confirmed spec
10
-
11
- 1. In the `withdraw_manual_cash` state machine, `submitted` accepts `REFRESH` and returns to `loading` to fetch the pending-order state again. Source: ticket, 「優化內容」 flow step 3 and 「前端需調整」 → `@jetthai/cuora`.
12
- 2. If the refreshed order list has no processing order, the withdraw form is shown; if one remains, the processing order is updated. Source: ticket, 「優化內容」 flow step 3. The visible screen behavior is verified in the `client-pwa-cash` task bundle.
13
- 3. The `applyId` / `transactionId` match belongs to the cash frontend event handling, as the ticket assigns that work to `client-pwa-cash`; this SDK review checks the machine's `REFRESH` behavior only.
14
-
15
- ## Inferred regression expectation
16
-
17
- Outside `submitted`, preserve the existing root-level `REFRESH` behavior, including its `hasNoBank` condition. The ticket adds refresh handling to `submitted` and does not request a broader change to other machine states.
18
-
19
- ## Material alternative
20
-
21
- Moving the socket ID match into cuora or removing the root-level `hasNoBank` guard would widen this SDK change beyond the ticket's stated ownership and acceptance behavior; those alternatives are out of scope for this review.
22
-
23
- ## Validation plan
24
-
25
- | Risk/spec | Input or state | Expected result | Evidence |
26
- | ---------------------------------------------------------- | -------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
27
- | Confirmed: refresh re-fetches the order | Machine starts with a pending withdrawal, reaches `submitted`, then receives `REFRESH` | Enters `loading` and makes a second `getPendingOrder` request | `node --test test/withdraw_manual_cash.test.js`; inspect machine transition and test assertions |
28
- | Confirmed: no pending withdrawal returns to form | The second pending-order response is empty | State becomes `loaded` | Unit test result and state assertion |
29
- | Confirmed: pending withdrawal is refreshed | The second response contains a distinct pending order | State stays `submitted` and `context.processing` is the new order | Unit test result and object assertion |
30
- | Inferred regression: other states retain existing behavior | A bound bank exists; send `REFRESH` while outside `submitted` | Root guard remains in effect; no extra pending-order request | Unit test plus review of the state-level and root-level handlers |
31
-
32
- ## Exclusions and limits
33
-
34
- This SDK has no UI, dev server, screenshot, or BEFORE baseline. No browser capture or Notion self-test page will be created for this repo, per the user's choice. The published cuora version and the cash frontend's visible behavior will be validated in the `client-pwa-cash` task flow.
@@ -1,291 +0,0 @@
1
- # 🆙 [優化][前台] 存出款 Pending 畫面依 WebSocket 即時刷新狀態
2
-
3
- Source: https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907?pvs=204
4
- Last edited: 2026-11-13T06:30:41.828Z
5
- Snapshot date: 2026-11-17
6
-
7
- <table-of-contents color="orange_bg" />
8
-
9
- ## 規格紀錄
10
-
11
- <table header-row="true">
12
- <colgroup>
13
- <col width="156.00003051757812" />
14
- <col width="384.990234375" />
15
- <col width="220.994140625" />
16
- </colgroup>
17
- <tr>
18
- <td>
19
- 更新時間
20
- </td>
21
- <td>
22
- 更新內容<br />(內容後面標記要同步的夥伴)
23
- </td>
24
- <td>
25
- 更新者<br />(這邊標記有參與討論的夥伴)
26
- </td>
27
- </tr>
28
- <tr>
29
- <td></td>
30
- <td></td>
31
- <td></td>
32
- </tr>
33
- <tr>
34
- <td></td>
35
- <td></td>
36
- <td></td>
37
- </tr>
38
- </table>
39
-
40
- ## 現行問題說明
41
-
42
- ### 問題描述
43
-
44
- <image source="notion-file-block://3f8b399a-d8b5-809c-9e1b-d44fe8943605/c48c7770-b1c7-4394-ad05-a02db13b28f1?space_id=d083afa5-c813-4543-bb7a-d8cbbb4c4065&name=photo_2026-10-13_09.55.00.jpeg" />
45
-
46
- 送出出款後,若停留在出款結果畫面(Pending)上,此時出款被拒絕,再次點擊 Withdraw 按鈕(ProfileHeader 橘色 Withdraw 按鈕或左側選單 Withdraw)畫面完全沒有反應,需離開再重新進入 withdraw 頁才能得知出款結果。
47
-
48
- ### 原因分析
49
-
50
- 1. <b>點擊同一路由不會重新載入</b>
51
- - ProfileHeader 的 Withdraw 為 <code>this.$router.push('/user/withdraw')</code>,側邊選單為 <code>nuxt-link to="/user/withdraw"</code>。
52
- - 已在 <code>/user/withdraw</code> 時,vue-router 判定為 <code>NavigationDuplicated</code> 而中止導航(錯誤被刻意吞掉),元件不會重新掛載、不會重新呼叫 API。
53
- 2. <b>出款狀態機進入 </b><b><code>submitted</code></b><b> 後即停住</b>
54
- - cuora 的 <code>withdraw_manual_cash</code> 狀態機只在 <code>loading</code> 階段呼叫一次 <code>getPendingOrder</code>,有處理中訂單即進入 <code>submitted</code>。
55
- - <code>submitted</code> 沒有任何離開的 transition,<code>REFRESH</code> 也僅在未綁卡(<code>hasNoBank</code>)時才生效。
56
- 3. <b>前端沒有輪詢,也沒有依 WebSocket 更新出款狀態</b>
57
- - WebSocket <code>payment-info</code> 目前只處理存款事件(<code>purchase</code> / <code>purchase_rejected</code> / <code>purchase_expired</code>),且僅用於清除存款浮動按鈕,未處理出款事件。
58
-
59
- ## 優化內容
60
-
61
- <callout icon="💡" color="gray_bg">
62
- <mention url="https://app.notion.com/p/17ab399ad8b580d9ac11d70c04e6e5f2">基本規格要求</mention>
63
- </callout>
64
-
65
- ### WebSocket 推送出款狀態時,出款畫面即時刷新
66
-
67
- <b>流程</b>
68
-
69
- 1. 出款狀態改變(核准/拒絕)時,後端透過 WebSocket <code>payment-info</code> 推送事件。
70
- 2. 前端收到後比對事件的 <code>applyId</code> / <code>transactionId</code> 是否為目前 Pending 畫面的訂單(沿用存款浮動按鈕的 strict id match 規則)。
71
- 3. 比對一致時,出款畫面重新抓取狀態(狀態機重新呼叫 <code>getPendingOrder</code>):無處理中訂單則回到出款表單,有則更新畫面。
72
-
73
- <b>前端需調整</b>
74
-
75
- - <b><code>@jetthai/cuora</code></b>
76
- - <code>withdraw_manual_cash</code> 狀態機的 <code>submitted</code> 需可接受 <code>REFRESH</code> 回到 <code>loading</code> 重新抓取資料。
77
- - <code>websocket.js</code> 目前只將 <code>windowType === 'toast'</code> 的 <code>payment-info</code> 傳給前端,若出款事件非 toast 類型需放寬此條件。
78
- - <b>client-pwa-cash</b>
79
- - 於 <code>layouts/default.vue</code> 的 socket 訂閱或 <code>components/withdraw/Integrate.vue</code> 接收出款事件。
80
- - 停在 <code>submitted</code> 狀態且 <code>applyId</code> 相符時送出 <code>REFRESH</code>。
81
-
82
- ## 翻譯
83
-
84
- <table header-row="true">
85
- <colgroup>
86
- <col />
87
- <col width="96" />
88
- <col />
89
- <col />
90
- <col />
91
- <col />
92
- <col />
93
- <col />
94
- <col />
95
- <col />
96
- <col />
97
- <col />
98
- <col />
99
- <col />
100
- <col />
101
- <col />
102
- <col />
103
- <col />
104
- <col />
105
- <col />
106
- <col />
107
- <col />
108
- <col />
109
- </colgroup>
110
- <tr>
111
- <td>
112
- 原文案 / zh-TW
113
- </td>
114
- <td>
115
- en-US
116
- </td>
117
- <td>
118
- zh-CN
119
- </td>
120
- <td>
121
- ko-KR
122
- </td>
123
- <td>
124
- th-TH
125
- </td>
126
- <td>
127
- vi-VN
128
- </td>
129
- <td>
130
- pt-BR
131
- </td>
132
- <td>
133
- ja-JP
134
- </td>
135
- <td>
136
- id-ID
137
- </td>
138
- <td>
139
- ms-MY
140
- </td>
141
- <td>
142
- hi-IN
143
- </td>
144
- <td>
145
- tl-PH
146
- </td>
147
- <td>
148
- es-ES
149
- </td>
150
- <td>
151
- bn-BD
152
- </td>
153
- <td>
154
- tr-TR
155
- </td>
156
- <td>
157
- es-MX
158
- </td>
159
- <td>
160
- ru-RU
161
- </td>
162
- <td>
163
- ur-PK
164
- </td>
165
- <td>
166
- ar-EG
167
- </td>
168
- <td>
169
- en-ZA
170
- </td>
171
- <td>
172
- km-KH
173
- </td>
174
- <td>
175
- pl-PL
176
- </td>
177
- <td>
178
- fr-FR
179
- </td>
180
- </tr>
181
- <tr>
182
- <td></td>
183
- <td></td>
184
- <td></td>
185
- <td></td>
186
- <td></td>
187
- <td></td>
188
- <td></td>
189
- <td></td>
190
- <td></td>
191
- <td></td>
192
- <td></td>
193
- <td></td>
194
- <td></td>
195
- <td></td>
196
- <td></td>
197
- <td></td>
198
- <td></td>
199
- <td></td>
200
- <td></td>
201
- <td></td>
202
- <td></td>
203
- <td></td>
204
- <td></td>
205
- </tr>
206
- <tr>
207
- <td></td>
208
- <td></td>
209
- <td></td>
210
- <td></td>
211
- <td></td>
212
- <td></td>
213
- <td></td>
214
- <td></td>
215
- <td></td>
216
- <td></td>
217
- <td></td>
218
- <td></td>
219
- <td></td>
220
- <td></td>
221
- <td></td>
222
- <td></td>
223
- <td></td>
224
- <td></td>
225
- <td></td>
226
- <td></td>
227
- <td></td>
228
- <td></td>
229
- <td></td>
230
- </tr>
231
- <tr>
232
- <td></td>
233
- <td></td>
234
- <td></td>
235
- <td></td>
236
- <td></td>
237
- <td></td>
238
- <td></td>
239
- <td></td>
240
- <td></td>
241
- <td></td>
242
- <td></td>
243
- <td></td>
244
- <td></td>
245
- <td></td>
246
- <td></td>
247
- <td></td>
248
- <td></td>
249
- <td></td>
250
- <td></td>
251
- <td></td>
252
- <td></td>
253
- <td></td>
254
- <td></td>
255
- </tr>
256
- <tr>
257
- <td></td>
258
- <td></td>
259
- <td></td>
260
- <td></td>
261
- <td></td>
262
- <td></td>
263
- <td></td>
264
- <td></td>
265
- <td></td>
266
- <td></td>
267
- <td></td>
268
- <td></td>
269
- <td></td>
270
- <td></td>
271
- <td></td>
272
- <td></td>
273
- <td></td>
274
- <td></td>
275
- <td></td>
276
- <td></td>
277
- <td></td>
278
- <td></td>
279
- <td></td>
280
- </tr>
281
- </table>
282
-
283
- <p />
284
-
285
- ## 測試項目
286
-
287
- <database url="https://app.notion.com/p/317b399ad8b582eb802c81cd50fb681c" data-source-url="collection://919b399a-d8b5-8327-9df1-8798a56f08bc" inline="true">
288
- 前台測試
289
- </database>
290
-
291
- <p />
@@ -1,57 +0,0 @@
1
- ## 2026-11-17 — analyze (claude)
2
-
3
- - Fresh entry. Precondition 1 failed: no `e2e/` folder in cuora-module (SDK without UI). No bundle written. BLOCKED-ON-USER with `user-question.md` (recommendation: unit test + review, screen evidence from client-pwa-cash).
4
-
5
- ## 2026-11-17 — analyze resume (claude)
6
-
7
- - User chose A (verbatim in STATE.md). Spec fetched; websocket.js part of L3 already satisfied. Wrote bundle.json (delivery local, no runtime), analysis.md, checklist.md (U1–U4 unit-test items, 0 captures), open-questions.md (none open), publish.md (token env var `NPM_TOKEN_WRITE`, dev-branch release). Removed user-question.md (answered). phase → implement.
8
-
9
- ## 2026-11-17 — implement (claude)
10
-
11
- - Added `submitted.on.REFRESH → loading` in `withdraw_manual_cash.js`; new `test/withdraw_manual_cash.test.js` (U1–U4). `node --test test/*.test.js` 20/20 pass. prettier check not run (denied). Wrote `review-input/scope.md`, guardHash. phase → review.
12
-
13
- ## 2026-11-17 — review response r1 (claude)
14
-
15
- - F-r1-01 (failed submitted refresh exits Pending) ACCEPT: `loading.onError` → `submitted` when `isProcessing`, else `loaded`. Two regression tests added; `node --test test/*.test.js` 22/22 pass. check-review.sh and prettier not run (denied). New guardHash. phase → review.
16
-
17
- ## 2026-11-17 — review closure (claude)
18
-
19
- - Wrote REVIEW CONVERGED in review-log.md. check-review.sh was denied in this hop; convergence rests on the driver's `converged` run plus a manual read of r2 (0 new, Impact present, F-r1-01 verified yes). guardHash unchanged (re-hashed). phase → after-prepare.
20
-
21
- ## 2026-11-17 — after-prepare (claude)
22
-
23
- - Mode A: no AFTER capture request. Wrote verify-after.md (Pre-commit checks, TABLE READY). guardHash unchanged. phase → deliver.
24
-
25
- ## 2026-11-17 commit hop
26
-
27
- Guard hashes equal STATE.md. git add / HUSKY=0 git commit denied by tool permissions; nothing staged. Replied BLOCKED-ON-USER (add allowedTools and resume).
28
-
29
- ## 2026-11-17 commit hop
30
-
31
- - Guard equal (tracked diff and untracked test hashes matched STATE.md). Staged the two product paths by name; committed 219a415 with `[TI-16026]`. HUSKY=0 did not stop the hook: prettier --write ran over the tree (ignored prepare-for-pr/ files included). Tracked tree clean afterwards. No push/publish/npm.
32
-
33
- ## 2026-11-17 harvest (claude)
34
-
35
- - Replaced `e2e/feature-map.md` (was a copy of the shared contract text) with a real map: 3 Repo-wide lines + `withdraw_manual_cash machine` section. Wrote harvest.md with 3 lessons routed (1 proposal). No STATE.md field changes.
36
-
37
- ## 2026-11-18 harvest retry (claude)
38
-
39
- - Redo after redaction-check restored the old map (test-accounts file was missing). Rewrote e2e/feature-map.md (Repo-wide x4 + withdraw_manual_cash machine) and harvest.md; no account values; did not open test-accounts.local.json. No STATE.md field changes.
40
-
41
- ## 2026-11-18 — harvest retry and redaction pass (Codex)
42
-
43
- - The prior harvest failure was limited to missing local test-account configuration. For this local check, a temporary ignored symlink pointed to the existing cash test-account file; the harvest note prohibited Claude from reading it, and the wrapper redaction checker was the only process using it. The symlink was removed immediately after the hop.
44
- - `call-claude.sh --stage harvest` exited 0 with `NEXT: harvested`; redaction result `ok`. `harvest.md` records the retained map lines and one open shared allowlist proposal.
45
- - Updated `STATE.md.blockedOn` to `lesson routing 2`. No product files changed; no push/publish occurred.
46
-
47
- ## 2026-11-18 — resumed delivery audit (Codex)
48
-
49
- - Confirmed the checkout is `dev` at `v1.1.485-dev.0`, and the committed task change `219a415070e8c9ee23615b60a9942d6c4dc1b02c` is an ancestor. Re-ran `node --test test/*.test.js`: 22/22 passed.
50
- - Found the local SDK bundle has no `evidence-index.json`, `verify.json`, or `self-test-report.md`. The chosen mode A intentionally has no capture rows, but the shared V04 gate requires an AFTER capture for every PASS row; `v2-change-spec.md` documents no fallback for SDK/unit-test-only proof. Keep the bundle and report this contract gap instead of creating a passing verification record unsupported by the runner.
51
-
52
- ## 2026-11-18 — user decisions and local SDK delivery (Codex)
53
-
54
- - User declined harvest proposal 2 verbatim: 「不核准,維持現有設定」. Recorded in `harvest.md`; no shared call-script change was made.
55
- - User approved the one-time local exception verbatim: 「採一次性例外:報告列出 22/22 測試與獨立 review,明列截圖檢查不適用」.
56
- - Rebuilt `checklist.md` in format 2 while preserving the original as `checklist.unit-test-original.md`. Generated `evidence-index.json` (6 rows, 0 showcase, result ok); `--check` exited 0; row closure passed (4 PASS, 2 N/A); capture metrics scope found 0 entries and V06/V07 had no metadata failures.
57
- - Wrote `self-test-report.md` and `verify.json` (result ok), explicitly listing screenshot-specific checks as not applicable by the user's exception. Redaction passed after the final report changes; temporary ignored symlink was removed immediately.
@@ -1,12 +0,0 @@
1
- **目前進度**:第 2 步/共 9 步「需求分析與驗收情境清單」。第一個納入的 cuora 狀態機套件(`cuora-module`)停在分析前置檢查,尚未建立任務 bundle。
2
- **發生了什麼**:這個 repo 是沒有畫面、沒有可啟動測試站的 SDK;需求涉及的可見結果只出現在現金版前台。流程要求每個前端 repo 都有測試矩陣文件(`e2e/review-playbook.md`),但這個 repo 沒有。要怎麼驗證並交付這一段 SDK 修改,需要你決定。
3
- **需要你決定**:cuora 狀態機套件這部分要用哪種驗證與交付方式?
4
- **選項**:
5
-
6
- - A:cuora 不走截圖流程 → Claude 修改狀態機並新增單元測試,確認 `submitted` 收到 `REFRESH` 後重新抓取訂單,依結果回到正確狀態;我再做程式碼審查。畫面上的即時刷新則由現金版前台的自測截圖驗證。代價:cuora repo 本身沒有截圖,因為它沒有 UI。
7
- - B:先補測試矩陣 → 先為 cuora repo 建立 `e2e/review-playbook.md`,再按截圖流程處理。代價:這個沒有 UI 的 repo 仍無法獨立展示畫面,每個情境最後都要靠現金版前台,會重複一份驗收設定。
8
- - C:併入現金版前台的自測流程 → 只跑現金版前台的流程,將 cuora 狀態機修改視為同一項工作的一部分。代價:變成跨兩個 repo 的交付,兩邊仍需分開 commit,且要在流程外處理其中一邊的 commit。
9
- - 建議:A,因為單元測試能直接驗證 SDK 狀態轉移,現金版截圖再驗證使用者看得到的結果。
10
- **你回覆之後**:我會把你的選擇原文交回 Claude,按選定方式處理 cuora;之後繼續現金版前台與 SSR 版前台的截圖、實作、審查與驗收。後續約還有 8 個流程步驟,會依 SSR 分析結果調整。
11
-
12
- > 原始問題(Claude):cuora-module is a UI-less SDK with no e2e/review-playbook.md; should it skip the screenshot flow (unit test + review, screen evidence from client-pwa-cash), get a playbook first, or be folded into the client-pwa-cash bundle?
@@ -1,20 +0,0 @@
1
- ### cuora 程式碼審查:規格提案與驗證計畫
2
-
3
- **審查版本**:功能分支 `feat/stone/JT-1791856380-ws-refresh`,修改前版本 `c9186b6b3f424d74a9fe1363e64b17eb63809b58`。規格快照取自需求單「存出款 Pending 畫面依 WebSocket 即時刷新狀態」(TI-16026)。
4
-
5
- **需求明確要求**:出款狀態機(`withdraw_manual_cash`)停在 `submitted` 時收到 `REFRESH`,要回到 `loading` 並重新查詢處理中的訂單;沒有待處理訂單就回到出款表單,有的話就更新處理中訂單。訂單 ID 比對由現金版前台處理,本 repo 只負責狀態機重新查詢。
6
-
7
- **回歸假設**:其他狀態收到 `REFRESH` 時仍保留原有行為,包括既有的 `hasNoBank` 條件;這是由現有程式行為推得,需求沒有要求擴大修改。
8
-
9
- **有實質差異的做法**:移除根層級的 `hasNoBank` 條件會讓其他狀態也改變;把 socket 訂單 ID 比對搬進 cuora 也會改變需求指定的責任邊界。這兩種做法都不在本次 cuora 審查範圍。
10
-
11
- **驗證計畫**:
12
-
13
- | 風險/需求 | 輸入狀態 | 預期結果 | 證據方式 |
14
- | ------------------------------------------------- | ----------------------------------------------------- | ------------------------------------------ | -------------------------------------------------------------------------------- |
15
- | `submitted` 收到 `REFRESH` 會重新查詢 | 起始時有處理中出款,進入 `submitted` 後送出 `REFRESH` | 回到 `loading`,再次呼叫 `getPendingOrder` | 執行 `node --test test/withdraw_manual_cash.test.js`,並檢查狀態機轉移與測試斷言 |
16
- | 查無處理中出款時回到表單 | 第二次查詢回傳空清單 | 狀態進入 `loaded` | 單元測試的狀態與資料斷言 |
17
- | 出款仍處理中時更新資料 | 第二次查詢回傳不同的訂單 | 留在 `submitted`,處理中訂單更新為新資料 | 單元測試的狀態與物件斷言 |
18
- | 修改不得改變其他狀態的既有 `REFRESH` 行為(推論) | 已綁定銀行且不在 `submitted` 時送出 `REFRESH` | 原有根層級條件仍生效,不多查一次訂單 | 單元測試及狀態層、根層處理器的程式碼審查 |
19
-
20
- 這個 SDK repo 沒有 UI、測試站或修改前截圖;依你的選擇,本 repo 不做截圖,也不建立 Notion 自測頁。畫面上的即時刷新會在現金版前台流程中驗證;那項驗證需要安裝發布後的 cuora 版本。
@@ -1 +0,0 @@
1
- 補充目前流程狀態:cuora repo 有一份本機自測任務資料包,設定為本機交付;這和你選擇不截圖一致,沒有建立 Notion 自測頁或截圖要求。審查會依這份任務資料包的審查紀錄規則執行,畫面驗證仍留在現金版前台流程。獨立審查已確認新加的狀態機測試 4 項通過;目前正在完成程式差異審查。
@@ -1 +0,0 @@
1
- 程式碼審查仍在進行。已執行的 cuora 狀態機單元測試 4 項全數通過;審查員正在核對變更對其他狀態與下游使用位置的影響,目前沒有產品程式碼被修改。
@@ -1 +0,0 @@
1
- 第一輪獨立程式審查沒有發現產品程式錯誤;cuora 狀態機單元測試 4 項通過。現金版畫面與發布後整合不在本 repo 的審查範圍,會在現金版流程驗證。流程還要求另一位全新審查員再做一次收斂核對,我現在開始這一步。
@@ -1 +0,0 @@
1
- 全新收斂審查發現一個待確認的失敗路徑:如果刷新訂單的 API 請求失敗,狀態機可能回到出款表單,但原訂單仍可能處於處理中。這會影響能否安全重新提交;審查員正在對照狀態轉移與既有審查紀錄確認,尚未修改程式碼。
@@ -1 +0,0 @@
1
- 失敗路徑已重現:刷新訂單的請求被拒絕後,畫面狀態回到出款表單,但舊訂單仍留在處理中;使用者再次刷新也會被既有狀態條件擋住。現有 4 項單元測試全數通過,但沒有涵蓋這個 API 失敗情境,因此獨立審查正把它列為中度程式問題,交由 Claude 修正。
@@ -1 +0,0 @@
1
- 收斂審查員已確認待處理的中度問題,正在補齊根層狀態轉移與 repo 內匯出路徑的審查紀錄,並更新審查報告。這段工作仍是唯讀,產品程式碼尚未修改。