@jetthai/cuora 1.1.485 → 1.1.487-otp.0

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 (96) hide show
  1. package/.github/copilot-instructions.md +61 -27
  2. package/AGENTS.md +61 -27
  3. package/AI_PROMPT_SOURCE.md +61 -27
  4. package/CHANGELOG.md +14 -0
  5. package/CLAUDE.md +61 -27
  6. package/GEMINI.md +61 -27
  7. package/e2e/feature-map.md +19 -0
  8. package/package.json +3 -3
  9. package/prepare-for-pr/JT-1776243420.md +85 -0
  10. package/prepare-for-pr/TI-16026/STATE.md +18 -0
  11. package/prepare-for-pr/TI-16026/after-prepare-authorization.md +3 -0
  12. package/prepare-for-pr/TI-16026/analysis.md +38 -0
  13. package/prepare-for-pr/TI-16026/answer-analyze-01.md +1 -0
  14. package/prepare-for-pr/TI-16026/answer-commit-01.md +2 -0
  15. package/prepare-for-pr/TI-16026/answer-commit-02.md +1 -0
  16. package/prepare-for-pr/TI-16026/bundle.json +18 -0
  17. package/prepare-for-pr/TI-16026/checklist.md +196 -0
  18. package/prepare-for-pr/TI-16026/checklist.unit-test-original.md +39 -0
  19. package/prepare-for-pr/TI-16026/claude-after-model +1 -0
  20. package/prepare-for-pr/TI-16026/claude-commit-session +1 -0
  21. package/prepare-for-pr/TI-16026/claude-harvest-session +1 -0
  22. package/prepare-for-pr/TI-16026/claude-hops/01-analyze.err +1 -0
  23. package/prepare-for-pr/TI-16026/claude-hops/01-analyze.out +2 -0
  24. package/prepare-for-pr/TI-16026/claude-hops/02-analyze.err +1 -0
  25. package/prepare-for-pr/TI-16026/claude-hops/02-analyze.out +4 -0
  26. package/prepare-for-pr/TI-16026/claude-hops/03-dev.err +1 -0
  27. package/prepare-for-pr/TI-16026/claude-hops/03-dev.out +4 -0
  28. package/prepare-for-pr/TI-16026/claude-hops/04-dev.err +1 -0
  29. package/prepare-for-pr/TI-16026/claude-hops/04-dev.out +4 -0
  30. package/prepare-for-pr/TI-16026/claude-hops/05-dev.err +1 -0
  31. package/prepare-for-pr/TI-16026/claude-hops/05-dev.out +3 -0
  32. package/prepare-for-pr/TI-16026/claude-hops/06-after.err +1 -0
  33. package/prepare-for-pr/TI-16026/claude-hops/06-after.out +2 -0
  34. package/prepare-for-pr/TI-16026/claude-hops/07-commit.err +1 -0
  35. package/prepare-for-pr/TI-16026/claude-hops/07-commit.out +2 -0
  36. package/prepare-for-pr/TI-16026/claude-hops/08-commit.err +1 -0
  37. package/prepare-for-pr/TI-16026/claude-hops/08-commit.out +2 -0
  38. package/prepare-for-pr/TI-16026/claude-hops/09-commit.err +1 -0
  39. package/prepare-for-pr/TI-16026/claude-hops/09-commit.out +8 -0
  40. package/prepare-for-pr/TI-16026/claude-hops/10-harvest.err +1 -0
  41. package/prepare-for-pr/TI-16026/claude-hops/10-harvest.out +3 -0
  42. package/prepare-for-pr/TI-16026/claude-hops/11-harvest.err +1 -0
  43. package/prepare-for-pr/TI-16026/claude-hops/11-harvest.out +3 -0
  44. package/prepare-for-pr/TI-16026/commit-note.md +5 -0
  45. package/prepare-for-pr/TI-16026/evidence-index.json +215 -0
  46. package/prepare-for-pr/TI-16026/feature-map.before.md +61 -0
  47. package/prepare-for-pr/TI-16026/harvest-redaction.json +34 -0
  48. package/prepare-for-pr/TI-16026/harvest-redaction.out +37 -0
  49. package/prepare-for-pr/TI-16026/harvest.md +46 -0
  50. package/prepare-for-pr/TI-16026/lessons.md +5 -0
  51. package/prepare-for-pr/TI-16026/note-harvest-redaction.md +1 -0
  52. package/prepare-for-pr/TI-16026/open-questions.md +6 -0
  53. package/prepare-for-pr/TI-16026/publish.md +32 -0
  54. package/prepare-for-pr/TI-16026/review-convergence-response.md +3 -0
  55. package/prepare-for-pr/TI-16026/review-input/scope.md +18 -0
  56. package/prepare-for-pr/TI-16026/review-log.md +57 -0
  57. package/prepare-for-pr/TI-16026/review-notes.md +97 -0
  58. package/prepare-for-pr/TI-16026/review-response-r1.md +7 -0
  59. package/prepare-for-pr/TI-16026/self-test-report.md +67 -0
  60. package/prepare-for-pr/TI-16026/spec-proposal.md +34 -0
  61. package/prepare-for-pr/TI-16026/spec-snapshot.md +291 -0
  62. package/prepare-for-pr/TI-16026/state-log.md +57 -0
  63. package/prepare-for-pr/TI-16026/user-messages/01.md +12 -0
  64. package/prepare-for-pr/TI-16026/user-messages/02.md +20 -0
  65. package/prepare-for-pr/TI-16026/user-messages/03.md +1 -0
  66. package/prepare-for-pr/TI-16026/user-messages/04.md +1 -0
  67. package/prepare-for-pr/TI-16026/user-messages/05.md +1 -0
  68. package/prepare-for-pr/TI-16026/user-messages/06.md +1 -0
  69. package/prepare-for-pr/TI-16026/user-messages/07.md +1 -0
  70. package/prepare-for-pr/TI-16026/user-messages/08.md +1 -0
  71. package/prepare-for-pr/TI-16026/user-messages/09.md +1 -0
  72. package/prepare-for-pr/TI-16026/user-messages/10.md +1 -0
  73. package/prepare-for-pr/TI-16026/user-messages/11.md +1 -0
  74. package/prepare-for-pr/TI-16026/user-messages/12.md +1 -0
  75. package/prepare-for-pr/TI-16026/user-messages/13.md +1 -0
  76. package/prepare-for-pr/TI-16026/user-messages/14.md +1 -0
  77. package/prepare-for-pr/TI-16026/user-messages/15.md +1 -0
  78. package/prepare-for-pr/TI-16026/user-messages/16.md +1 -0
  79. package/prepare-for-pr/TI-16026/user-messages/17.md +1 -0
  80. package/prepare-for-pr/TI-16026/user-messages/18.md +10 -0
  81. package/prepare-for-pr/TI-16026/user-messages/19.md +1 -0
  82. package/prepare-for-pr/TI-16026/user-messages/20.md +1 -0
  83. package/prepare-for-pr/TI-16026/user-messages/21.md +1 -0
  84. package/prepare-for-pr/TI-16026/user-messages/22.md +1 -0
  85. package/prepare-for-pr/TI-16026/user-messages/23.md +8 -0
  86. package/prepare-for-pr/TI-16026/user-messages/24.md +24 -0
  87. package/prepare-for-pr/TI-16026/user-question.md +24 -0
  88. package/prepare-for-pr/TI-16026/verify/metrics-check.json +13 -0
  89. package/prepare-for-pr/TI-16026/verify/redaction.json +38 -0
  90. package/prepare-for-pr/TI-16026/verify/row-closure.json +45 -0
  91. package/prepare-for-pr/TI-16026/verify/s04-ws-capture.md +23 -0
  92. package/prepare-for-pr/TI-16026/verify-after.md +23 -0
  93. package/prepare-for-pr/TI-16026/verify.json +80 -0
  94. package/prepare-for-pr/TI-16026.md +408 -0
  95. package/src/machine/withdraw/withdraw_manual_cash.js +10 -3
  96. package/src/util/constant.js +2 -1
@@ -0,0 +1,196 @@
1
+ # Checklist — TI-16026 (cuora-module)
2
+
3
+ Mode: SDK unit-test proof (user choice A, 2026-11-17). The package has no UI adapter or screen, so this bundle intentionally has no BEFORE/AFTER captures. One-time exception approved by the user on 2026-11-18: screenshot-only checks are listed as not applicable in `self-test-report.md`; unit tests and independent code review remain the evidence for this repo. Screen evidence is in the client-pwa-cash and client-pwa-ssr TI-16026 bundles.
4
+
5
+ Cascade sweep: skipped — the diff changes an XState machine and unit tests only; it adds no CSS, class, style, DOM or stacking code.
6
+
7
+ ## Spec trace
8
+
9
+ | Spec ref | Location | Spec content | IDs |
10
+ | -------- | ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -------------- |
11
+ | B01 | 正文 › 現行問題說明 <https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907> | 出款被拒後仍停留於 Pending 的問題背景 | U1 |
12
+ | B02 | 正文 › 優化內容 › 流程 1–2 <https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907> | payment-info 推送及訂單 ID 比對;ticket 將 consumer matching 指派給 client-pwa-cash | U6 |
13
+ | B03 | 正文 › 優化內容 › 流程 3 <https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907> | 重抓提款狀態;無 pending order 回到表單,有 pending order 則更新 | U1, U2, U3 |
14
+ | B04 | 正文 › 前端需調整 › @jetthai/cuora bullet 1 <https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907> | submitted 接受 REFRESH 並重新進入 loading | U1, U2, U3, U4 |
15
+ | B05 | 正文 › 前端需調整 › @jetthai/cuora bullet 2 <https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907> | payment-info 的 windowType 條件 | U5 |
16
+ | B06 | 正文 › 前端需調整 › client-pwa-cash <https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907> | socket event 與 strict ID match 由 cash consumer 實作 | U6 |
17
+ | B07 | 正文 › 翻譯 <https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907> | 翻譯表為空,沒有新增文案 | — |
18
+
19
+ ## Items
20
+
21
+ ### U1 — submitted 收到 REFRESH 後重新載入提款狀態
22
+
23
+ - origin: spec
24
+ - spec ref: B01, B03, B04
25
+ - kind: CHANGE
26
+ - states:
27
+ - submitted-refresh — proof: measure
28
+ - frame: —
29
+ - showcase: —
30
+ - captures: —
31
+ - recipes: —
32
+ - expected: 從 submitted 傳入 REFRESH 後進入 loading,並再次呼叫 getPendingOrder。
33
+ - test command: `node --test test/withdraw_manual_cash.test.js`
34
+ - evidence: `test/withdraw_manual_cash.test.js`;完整結果見 `verify-after.md`。
35
+ - D01: N/A — SDK machine 無畫面或 layout,見 `src/machine/withdraw/withdraw_manual_cash.js`。
36
+ - D02: N/A — SDK machine 不使用 viewport 或 orientation。
37
+ - D03: N/A — SDK machine 不繪製文字或方向樣式。
38
+ - D04: N/A — acceptance 不涉及顯示文字長度。
39
+ - D05: N/A — diff 不涉及字型或文字排版。
40
+ - D06: N/A — diff 不涉及畫面幾何尺寸。
41
+ - D07: N/A — diff 不涉及畫面 overflow。
42
+ - D08: applies — unit test stubs the second pending-order request.
43
+ - D09: applies — test asserts submitted → loading and the second request.
44
+ - D10: N/A — public factory and entry point are unchanged; `src/machine/withdraw/index.js`.
45
+ - D11: N/A — spec accepts no visual or shared-copy side effect.
46
+ - D12: N/A — unchanged root REFRESH behavior is separately covered by U4.
47
+ - D13: N/A — acceptance defines no data-type variants.
48
+ - result:
49
+ - r1: PASS — test asserts the state and request-count transition.
50
+
51
+ ### U2 — 刷新回應沒有 pending order 時回到提款表單狀態
52
+
53
+ - origin: spec
54
+ - spec ref: B03, B04
55
+ - kind: CHANGE
56
+ - states:
57
+ - empty-pending-order — proof: measure
58
+ - frame: —
59
+ - showcase: —
60
+ - captures: —
61
+ - recipes: —
62
+ - expected: 第二次 getPendingOrder 回傳空陣列後進入 loaded,processing 為 undefined。
63
+ - test command: `node --test test/withdraw_manual_cash.test.js`
64
+ - evidence: `test/withdraw_manual_cash.test.js`;完整結果見 `verify-after.md`。
65
+ - D01: N/A — SDK machine 無畫面或 layout,見 `src/machine/withdraw/withdraw_manual_cash.js`。
66
+ - D02: N/A — SDK machine 不使用 viewport 或 orientation。
67
+ - D03: N/A — SDK machine 不繪製文字或方向樣式。
68
+ - D04: N/A — acceptance 不涉及顯示文字長度。
69
+ - D05: N/A — diff 不涉及字型或文字排版。
70
+ - D06: N/A — diff 不涉及畫面幾何尺寸。
71
+ - D07: N/A — diff 不涉及畫面 overflow。
72
+ - D08: applies — test returns an empty pending-order list from the local request stub.
73
+ - D09: applies — test asserts checking → loaded and cleared processing.
74
+ - D10: N/A — public factory and entry point are unchanged; `src/machine/withdraw/index.js`.
75
+ - D11: N/A — spec accepts no visual or shared-copy side effect.
76
+ - D12: N/A — unchanged root REFRESH behavior is separately covered by U4.
77
+ - D13: N/A — acceptance defines no data-type variants.
78
+ - result:
79
+ - r1: PASS — empty-order response clears the pending order and returns to loaded.
80
+
81
+ ### U3 — 刷新回應仍有 pending order 時更新目前訂單
82
+
83
+ - origin: spec
84
+ - spec ref: B03, B04
85
+ - kind: CHANGE
86
+ - states:
87
+ - replacement-pending-order — proof: measure
88
+ - frame: —
89
+ - showcase: —
90
+ - captures: —
91
+ - recipes: —
92
+ - expected: 第二次 getPendingOrder 回傳另一筆訂單後仍為 submitted,processing 指向新訂單。
93
+ - test command: `node --test test/withdraw_manual_cash.test.js`
94
+ - evidence: `test/withdraw_manual_cash.test.js`;完整結果見 `verify-after.md`。
95
+ - D01: N/A — SDK machine 無畫面或 layout,見 `src/machine/withdraw/withdraw_manual_cash.js`。
96
+ - D02: N/A — SDK machine 不使用 viewport 或 orientation。
97
+ - D03: N/A — SDK machine 不繪製文字或方向樣式。
98
+ - D04: N/A — acceptance 不涉及顯示文字長度。
99
+ - D05: N/A — diff 不涉及字型或文字排版。
100
+ - D06: N/A — diff 不涉及畫面幾何尺寸。
101
+ - D07: N/A — diff 不涉及畫面 overflow。
102
+ - D08: applies — test returns a distinct second pending order from the local request stub.
103
+ - D09: applies — test asserts submitted remains active with the new processing object.
104
+ - D10: N/A — public factory and entry point are unchanged; `src/machine/withdraw/index.js`.
105
+ - D11: N/A — spec accepts no visual or shared-copy side effect.
106
+ - D12: N/A — unchanged root REFRESH behavior is separately covered by U4.
107
+ - D13: N/A — acceptance defines no data-type variants.
108
+ - result:
109
+ - r1: PASS — the new pending order replaces the original processing object.
110
+
111
+ ### U4 — submitted 以外的 REFRESH 保留既有 bank 條件
112
+
113
+ - origin: ripple
114
+ - spec ref: B04
115
+ - via: `src/machine/withdraw/withdraw_manual_cash.js:159-160` — root REFRESH handler remains guarded by hasNoBank; the submitted-local handler does not replace it elsewhere.
116
+ - kind: SAME
117
+ - states:
118
+ - loaded-with-bound-bank — proof: measure
119
+ - frame: —
120
+ - showcase: —
121
+ - captures: —
122
+ - recipes: —
123
+ - expected: loaded 且已有綁定 bank 時,REFRESH 不會觸發第二次 getPendingOrder,state 保持 loaded。
124
+ - test command: `node --test test/withdraw_manual_cash.test.js`
125
+ - evidence: `test/withdraw_manual_cash.test.js`;完整結果見 `verify-after.md`。
126
+ - D01: N/A — SDK machine 無畫面或 layout,見 `src/machine/withdraw/withdraw_manual_cash.js`。
127
+ - D02: N/A — SDK machine 不使用 viewport 或 orientation。
128
+ - D03: N/A — SDK machine 不繪製文字或方向樣式。
129
+ - D04: N/A — acceptance 不涉及顯示文字長度。
130
+ - D05: N/A — diff 不涉及字型或文字排版。
131
+ - D06: N/A — diff 不涉及畫面幾何尺寸。
132
+ - D07: N/A — diff 不涉及畫面 overflow。
133
+ - D08: applies — test uses a bound bank and asserts no extra request.
134
+ - D09: applies — test asserts the loaded state ignores REFRESH.
135
+ - D10: N/A — public factory and entry point are unchanged; `src/machine/withdraw/index.js`.
136
+ - D11: N/A — spec accepts no visual or shared-copy side effect.
137
+ - D12: applies — this is the unchanged neighboring branch protected by the new submitted handler.
138
+ - D13: N/A — acceptance defines no data-type variants.
139
+ - result:
140
+ - r1: PASS — loaded with a bound bank remains loaded and does not issue another request.
141
+
142
+ ### U5 — payment-info 不因 windowType 而被丟棄
143
+
144
+ - origin: spec
145
+ - spec ref: B05
146
+ - kind: CHANGE
147
+ - states: —
148
+ - frame: —
149
+ - showcase: —
150
+ - captures: —
151
+ - recipes: —
152
+ - expected: payment-info event is forwarded without a toast-only windowType gate.
153
+ - evidence: `src/machine/websocket.js:296-302` already forwards payment-info at the base commit; review-log.md independently confirms no windowType condition in this path.
154
+ - D01: N/A — this is an SDK event-forwarding path with no UI layout.
155
+ - D02: N/A — event forwarding does not depend on viewport or orientation.
156
+ - D03: N/A — event forwarding does not depend on locale direction.
157
+ - D04: N/A — acceptance does not vary by text length.
158
+ - D05: N/A — no typography code is involved.
159
+ - D06: N/A — no geometry code is involved.
160
+ - D07: N/A — no overflow code is involved.
161
+ - D08: N/A — the criterion is event forwarding, not a value range.
162
+ - D09: N/A — the current code already satisfies this criterion at the base commit.
163
+ - D10: N/A — the websocket event export path is shared and unchanged; `src/machine/websocket.js:296-302`.
164
+ - D11: N/A — no side effect is specified.
165
+ - D12: N/A — the criterion is already met at the base commit.
166
+ - D13: N/A — no data-type variants are specified.
167
+ - result:
168
+ - r1: N/A — current base code already forwards payment-info without a windowType filter.
169
+
170
+ ### U6 — socket-to-order matching stays in client-pwa-cash
171
+
172
+ - origin: spec
173
+ - spec ref: B02, B06
174
+ - kind: CHANGE
175
+ - states: —
176
+ - frame: —
177
+ - showcase: —
178
+ - captures: —
179
+ - recipes: —
180
+ - expected: cash owns the socket order-ID match and sends REFRESH to this SDK machine only for its matching pending order.
181
+ - evidence: the ticket assigns socket subscription / strict ID matching to client-pwa-cash; see the corresponding cash and SSR self-test pages in `self-test-report.md`.
182
+ - D01: N/A — the consumer matching logic is outside this SDK package, as assigned in B06.
183
+ - D02: N/A — the consumer's viewport handling is outside this SDK package.
184
+ - D03: N/A — the consumer's locale handling is outside this SDK package.
185
+ - D04: N/A — text length is outside the SDK machine contract.
186
+ - D05: N/A — typography is outside the SDK machine contract.
187
+ - D06: N/A — geometry is outside the SDK machine contract.
188
+ - D07: N/A — overflow is outside the SDK machine contract.
189
+ - D08: N/A — event payload value matching is implemented by the cash consumer, as assigned in B06.
190
+ - D09: N/A — the SDK receives REFRESH; the socket-to-order decision belongs to the consumer.
191
+ - D10: N/A — no second SDK entry point is specified.
192
+ - D11: N/A — no side effect is specified.
193
+ - D12: N/A — no neighboring UI variant exists in this SDK package.
194
+ - D13: N/A — no data-type variants are specified for this package.
195
+ - result:
196
+ - r1: N/A — the spec assigns socket-to-order matching to client-pwa-cash; this package provides the REFRESH transition.
@@ -0,0 +1,39 @@
1
+ # Checklist — TI-16026 (cuora-module)
2
+
3
+ Mode: unit-test proof (user choice A). No captures, no showcase, no frame. Cascade sweep: skipped — the diff is one XState transition in `src/machine/withdraw/withdraw_manual_cash.js`; no CSS, class, style, DOM or stacking code exists in this repo.
4
+
5
+ ## Spec trace
6
+
7
+ | Spec row | Location | Items |
8
+ | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | --------------------------------------------------------- |
9
+ | 現行問題說明 › 問題描述 / 原因分析 | notion https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907 § 現行問題說明 | — (no acceptance statement; cause 2 is fixed by U1) |
10
+ | 優化內容 › 流程 1–2 (socket push, applyId match) | notion … § 優化內容 › 流程 | — (client-pwa-cash) |
11
+ | 優化內容 › 流程 3「重新抓取狀態…無處理中訂單則回到出款表單,有則更新畫面」 | notion … § 優化內容 › 流程 step 3 | U1, U2, U3 |
12
+ | 前端需調整 › cuora「`submitted` 需可接受 `REFRESH` 回到 `loading`」 | notion … § 前端需調整 › @jetthai/cuora bullet 1 | U1, U4 |
13
+ | 前端需調整 › cuora「`websocket.js`…放寬此條件」 | notion … § 前端需調整 › @jetthai/cuora bullet 2 | — (already satisfied: `src/machine/websocket.js:296-302`) |
14
+ | 前端需調整 › client-pwa-cash | notion … § 前端需調整 › client-pwa-cash | — (client-pwa-cash) |
15
+ | 翻譯 | notion … § 翻譯 | — (empty) |
16
+
17
+ ## Items
18
+
19
+ - U1 — `submitted` + `REFRESH` re-runs loading
20
+ - origin: spec
21
+ - proof: measure (unit test)
22
+ - expected: from `submitted`, sending `REFRESH` enters `loading` and calls `getPendingOrder` a second time.
23
+ - files: src/machine/withdraw/withdraw_manual_cash.js, test/withdraw_manual_cash.test.js
24
+ - result: unit pass — `node --test test/withdraw_manual_cash.test.js`, 2026-11-17
25
+ - U2 — refresh with no pending order returns to the form
26
+ - origin: spec
27
+ - proof: measure
28
+ - expected: second `getPendingOrder` returns `[]` → state `loaded`, `context.processing` is `undefined`.
29
+ - result: unit pass — `node --test test/withdraw_manual_cash.test.js`, 2026-11-17
30
+ - U3 — refresh with an order still pending updates it
31
+ - origin: spec
32
+ - proof: measure
33
+ - expected: second `getPendingOrder` returns a different order object → state `submitted`, `context.processing` equals the new object (distinct `applyId` from the first).
34
+ - result: unit pass — `node --test test/withdraw_manual_cash.test.js`, 2026-11-17
35
+ - U4 — REFRESH elsewhere unchanged
36
+ - origin: ripple, via: root `on.REFRESH` `cond: 'hasNoBank'` (`withdraw_manual_cash.js:156`)
37
+ - proof: measure
38
+ - expected: in `loaded` with a bound bank, `REFRESH` is ignored (no new `getPendingOrder` call, state stays `loaded`).
39
+ - result: unit pass — `node --test test/withdraw_manual_cash.test.js`, 2026-11-17
@@ -0,0 +1 @@
1
+ sonnet medium
@@ -0,0 +1 @@
1
+ 5B674676-0F2B-458D-9F34-0F31F96DB57C
@@ -0,0 +1 @@
1
+ DEF3BB30-4448-4945-BBF8-8BEFC1747D43
@@ -0,0 +1 @@
1
+ Ignoring 17 permissions.allow entries from .claude/settings.local.json: this workspace has not been trusted. Run Claude Code interactively here once and accept the trust dialog, or set projects["/Users/agentstone/Desktop/workspace/JT/cuora-module"].hasTrustDialogAccepted: true in /Users/agentstone/.claude.json.
@@ -0,0 +1,2 @@
1
+ BLOCKED-ON-USER: 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?
2
+ prepare-for-pr/TI-16026/user-question.md
@@ -0,0 +1 @@
1
+ Ignoring 17 permissions.allow entries from .claude/settings.local.json: this workspace has not been trusted. Run Claude Code interactively here once and accept the trust dialog, or set projects["/Users/agentstone/Desktop/workspace/JT/cuora-module"].hasTrustDialogAccepted: true in /Users/agentstone/.claude.json.
@@ -0,0 +1,4 @@
1
+ NEXT: implement
2
+ prepare-for-pr/TI-16026/analysis.md
3
+ prepare-for-pr/TI-16026/checklist.md
4
+ prepare-for-pr/TI-16026/publish.md
@@ -0,0 +1 @@
1
+ Ignoring 17 permissions.allow entries from .claude/settings.local.json: this workspace has not been trusted. Run Claude Code interactively here once and accept the trust dialog, or set projects["/Users/agentstone/Desktop/workspace/JT/cuora-module"].hasTrustDialogAccepted: true in /Users/agentstone/.claude.json.
@@ -0,0 +1,4 @@
1
+ NEXT: review
2
+ prepare-for-pr/TI-16026/review-input/scope.md
3
+ prepare-for-pr/TI-16026/STATE.md
4
+ test/withdraw_manual_cash.test.js
@@ -0,0 +1 @@
1
+ Ignoring 17 permissions.allow entries from .claude/settings.local.json: this workspace has not been trusted. Run Claude Code interactively here once and accept the trust dialog, or set projects["/Users/agentstone/Desktop/workspace/JT/cuora-module"].hasTrustDialogAccepted: true in /Users/agentstone/.claude.json.
@@ -0,0 +1,4 @@
1
+ NEXT: review
2
+ prepare-for-pr/TI-16026/review-log.md
3
+ src/machine/withdraw/withdraw_manual_cash.js
4
+ test/withdraw_manual_cash.test.js
@@ -0,0 +1 @@
1
+ Ignoring 17 permissions.allow entries from .claude/settings.local.json: this workspace has not been trusted. Run Claude Code interactively here once and accept the trust dialog, or set projects["/Users/agentstone/Desktop/workspace/JT/cuora-module"].hasTrustDialogAccepted: true in /Users/agentstone/.claude.json.
@@ -0,0 +1,3 @@
1
+ NEXT: prepare after
2
+ prepare-for-pr/TI-16026/review-log.md
3
+ prepare-for-pr/TI-16026/STATE.md
@@ -0,0 +1 @@
1
+ Ignoring 17 permissions.allow entries from .claude/settings.local.json: this workspace has not been trusted. Run Claude Code interactively here once and accept the trust dialog, or set projects["/Users/agentstone/Desktop/workspace/JT/cuora-module"].hasTrustDialogAccepted: true in /Users/agentstone/.claude.json.
@@ -0,0 +1,2 @@
1
+ NEXT: deliver
2
+ prepare-for-pr/TI-16026/verify-after.md
@@ -0,0 +1 @@
1
+ Ignoring 17 permissions.allow entries from .claude/settings.local.json: this workspace has not been trusted. Run Claude Code interactively here once and accept the trust dialog, or set projects["/Users/agentstone/Desktop/workspace/JT/cuora-module"].hasTrustDialogAccepted: true in /Users/agentstone/.claude.json.
@@ -0,0 +1,2 @@
1
+ BLOCKED-ON-USER: the commit was denied by the permission layer (`HUSKY=0 git commit` needs approval), so nothing was committed; allow `git add`/`git commit` for this repo and resume.
2
+ prepare-for-pr/TI-16026/user-question.md
@@ -0,0 +1 @@
1
+ Ignoring 17 permissions.allow entries from .claude/settings.local.json: this workspace has not been trusted. Run Claude Code interactively here once and accept the trust dialog, or set projects["/Users/agentstone/Desktop/workspace/JT/cuora-module"].hasTrustDialogAccepted: true in /Users/agentstone/.claude.json.
@@ -0,0 +1,2 @@
1
+ BLOCKED-ON-USER: Claude needs Bash(git add:*) and Bash(HUSKY=0 git commit:*) in --allowedTools for the TI-16026 commit; add them and resume
2
+ prepare-for-pr/TI-16026/user-question.md
@@ -0,0 +1 @@
1
+ Ignoring 17 permissions.allow entries from .claude/settings.local.json: this workspace has not been trusted. Run Claude Code interactively here once and accept the trust dialog, or set projects["/Users/agentstone/Desktop/workspace/JT/cuora-module"].hasTrustDialogAccepted: true in /Users/agentstone/.claude.json.
@@ -0,0 +1,8 @@
1
+ NEXT: committed
2
+ 219a415070e8c9ee23615b60a9942d6c4dc1b02c
3
+
4
+ I committed only `src/machine/withdraw/withdraw_manual_cash.js` and `test/withdraw_manual_cash.test.js`, with `[TI-16026]` in the message. The tracked tree is clean afterwards. I did not push, merge, publish, or run any npm command.
5
+
6
+ `HUSKY=0` did not stop the pre-commit hook. `npm run format` (`prettier --write .`) still ran over the whole tree, including the ignored `prepare-for-pr/` files. That includes the protected review reports `prepare-for-pr/TI-16026.md` and `prepare-for-pr/JT-1776243420.md`. Any change prettier made to them is formatting only, but check the TI-16026 report before relying on it.
7
+
8
+ I rewrote `STATE.md` (`phase: done`) and appended this hop to `state-log.md`.
@@ -0,0 +1 @@
1
+ Ignoring 17 permissions.allow entries from .claude/settings.local.json: this workspace has not been trusted. Run Claude Code interactively here once and accept the trust dialog, or set projects["/Users/agentstone/Desktop/workspace/JT/cuora-module"].hasTrustDialogAccepted: true in /Users/agentstone/.claude.json.
@@ -0,0 +1,3 @@
1
+ NEXT: harvested
2
+ prepare-for-pr/TI-16026/harvest.md
3
+ e2e/feature-map.md
@@ -0,0 +1 @@
1
+ Ignoring 19 permissions.allow entries from .claude/settings.local.json: this workspace has not been trusted. Run Claude Code interactively here once and accept the trust dialog, or set projects["/Users/agentstone/Desktop/workspace/JT/cuora-module"].hasTrustDialogAccepted: true in /Users/agentstone/.claude.json.
@@ -0,0 +1,3 @@
1
+ NEXT: harvested
2
+ prepare-for-pr/TI-16026/harvest.md
3
+ e2e/feature-map.md
@@ -0,0 +1,5 @@
1
+ The answer file records the user's exact prior authorization and their 「完成」 after the token setup instructions. Treat it as authorization to commit this reviewed change and complete the documented shared-dev release flow after npm authentication succeeds.
2
+
3
+ Commit only these current product paths: `src/machine/withdraw/withdraw_manual_cash.js` and `test/withdraw_manual_cash.test.js`, with task key `TI-16026` in the commit message. Do not push, merge, publish, or run npm commands in this hop: npm whoami returned E401 and the token needs correction first.
4
+
5
+ Pre-commit evidence: `node --test test/*.test.js` passed 22/22; `git diff --check` is clean. Full-tree `prettier --list-different .` reported only files inside the globally ignored `prepare-for-pr/` task bundle (verified by `git check-ignore`); it reported no product source or test files. The repo's pre-commit hook runs `npm run format` (`prettier --write .`) and would rewrite the ignored task artifacts, including the protected review report. `HUSKY=0` is set for this commit hop only to preserve those task files; the non-mutating full-tree format check is the formatting evidence. Do not edit product code or any review report.
@@ -0,0 +1,215 @@
1
+ {
2
+ "taskId": "TI-16026",
3
+ "formatVersion": 2,
4
+ "generatedAt": "2026-11-18T09:19:41.360Z",
5
+ "generator": "runner/evidence-index.mjs",
6
+ "afterCommit": null,
7
+ "result": "ok",
8
+ "problems": [],
9
+ "rows": [
10
+ {
11
+ "id": "U1",
12
+ "title": "submitted 收到 REFRESH 後重新載入提款狀態",
13
+ "kind": "CHANGE",
14
+ "status": "PASS",
15
+ "origin": "spec",
16
+ "sources": [
17
+ {
18
+ "ref": "B01",
19
+ "location": "正文 › 現行問題說明",
20
+ "url": "https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907"
21
+ },
22
+ {
23
+ "ref": "B03",
24
+ "location": "正文 › 優化內容 › 流程 3",
25
+ "url": "https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907"
26
+ },
27
+ {
28
+ "ref": "B04",
29
+ "location": "正文 › 前端需調整 › @jetthai/cuora bullet 1",
30
+ "url": "https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907"
31
+ }
32
+ ],
33
+ "via": null,
34
+ "qualifiedBy": [],
35
+ "found": null,
36
+ "fix": null,
37
+ "qa": null,
38
+ "observation": "test asserts the state and request-count transition.",
39
+ "states": {
40
+ "submitted-refresh": {
41
+ "proof": "measure"
42
+ }
43
+ },
44
+ "showcase": [],
45
+ "variantSummary": {
46
+ "required": 0,
47
+ "captured": 0
48
+ },
49
+ "problems": []
50
+ },
51
+ {
52
+ "id": "U2",
53
+ "title": "刷新回應沒有 pending order 時回到提款表單狀態",
54
+ "kind": "CHANGE",
55
+ "status": "PASS",
56
+ "origin": "spec",
57
+ "sources": [
58
+ {
59
+ "ref": "B03",
60
+ "location": "正文 › 優化內容 › 流程 3",
61
+ "url": "https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907"
62
+ },
63
+ {
64
+ "ref": "B04",
65
+ "location": "正文 › 前端需調整 › @jetthai/cuora bullet 1",
66
+ "url": "https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907"
67
+ }
68
+ ],
69
+ "via": null,
70
+ "qualifiedBy": [],
71
+ "found": null,
72
+ "fix": null,
73
+ "qa": null,
74
+ "observation": "empty-order response clears the pending order and returns to loaded.",
75
+ "states": {
76
+ "empty-pending-order": {
77
+ "proof": "measure"
78
+ }
79
+ },
80
+ "showcase": [],
81
+ "variantSummary": {
82
+ "required": 0,
83
+ "captured": 0
84
+ },
85
+ "problems": []
86
+ },
87
+ {
88
+ "id": "U3",
89
+ "title": "刷新回應仍有 pending order 時更新目前訂單",
90
+ "kind": "CHANGE",
91
+ "status": "PASS",
92
+ "origin": "spec",
93
+ "sources": [
94
+ {
95
+ "ref": "B03",
96
+ "location": "正文 › 優化內容 › 流程 3",
97
+ "url": "https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907"
98
+ },
99
+ {
100
+ "ref": "B04",
101
+ "location": "正文 › 前端需調整 › @jetthai/cuora bullet 1",
102
+ "url": "https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907"
103
+ }
104
+ ],
105
+ "via": null,
106
+ "qualifiedBy": [],
107
+ "found": null,
108
+ "fix": null,
109
+ "qa": null,
110
+ "observation": "the new pending order replaces the original processing object.",
111
+ "states": {
112
+ "replacement-pending-order": {
113
+ "proof": "measure"
114
+ }
115
+ },
116
+ "showcase": [],
117
+ "variantSummary": {
118
+ "required": 0,
119
+ "captured": 0
120
+ },
121
+ "problems": []
122
+ },
123
+ {
124
+ "id": "U4",
125
+ "title": "submitted 以外的 REFRESH 保留既有 bank 條件",
126
+ "kind": "SAME",
127
+ "status": "PASS",
128
+ "origin": "ripple",
129
+ "sources": [
130
+ {
131
+ "ref": "B04",
132
+ "location": "正文 › 前端需調整 › @jetthai/cuora bullet 1",
133
+ "url": "https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907"
134
+ }
135
+ ],
136
+ "via": "`src/machine/withdraw/withdraw_manual_cash.js:159-160` — root REFRESH handler remains guarded by hasNoBank; the submitted-local handler does not replace it elsewhere.",
137
+ "qualifiedBy": [],
138
+ "found": null,
139
+ "fix": null,
140
+ "qa": null,
141
+ "observation": "loaded with a bound bank remains loaded and does not issue another request.",
142
+ "states": {
143
+ "loaded-with-bound-bank": {
144
+ "proof": "measure"
145
+ }
146
+ },
147
+ "showcase": [],
148
+ "variantSummary": {
149
+ "required": 0,
150
+ "captured": 0
151
+ },
152
+ "problems": []
153
+ },
154
+ {
155
+ "id": "U5",
156
+ "title": "payment-info 不因 windowType 而被丟棄",
157
+ "kind": "CHANGE",
158
+ "status": "N/A",
159
+ "origin": "spec",
160
+ "sources": [
161
+ {
162
+ "ref": "B05",
163
+ "location": "正文 › 前端需調整 › @jetthai/cuora bullet 2",
164
+ "url": "https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907"
165
+ }
166
+ ],
167
+ "via": null,
168
+ "qualifiedBy": [],
169
+ "found": null,
170
+ "fix": null,
171
+ "qa": null,
172
+ "observation": "current base code already forwards payment-info without a windowType filter.",
173
+ "states": {},
174
+ "showcase": [],
175
+ "variantSummary": {
176
+ "required": 0,
177
+ "captured": 0
178
+ },
179
+ "problems": []
180
+ },
181
+ {
182
+ "id": "U6",
183
+ "title": "socket-to-order matching stays in client-pwa-cash",
184
+ "kind": "CHANGE",
185
+ "status": "N/A",
186
+ "origin": "spec",
187
+ "sources": [
188
+ {
189
+ "ref": "B02",
190
+ "location": "正文 › 優化內容 › 流程 1–2",
191
+ "url": "https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907"
192
+ },
193
+ {
194
+ "ref": "B06",
195
+ "location": "正文 › 前端需調整 › client-pwa-cash",
196
+ "url": "https://app.notion.com/p/3f8b399ad8b5801d81e9fb0675e50907"
197
+ }
198
+ ],
199
+ "via": null,
200
+ "qualifiedBy": [],
201
+ "found": null,
202
+ "fix": null,
203
+ "qa": null,
204
+ "observation": "the spec assigns socket-to-order matching to client-pwa-cash; this package provides the REFRESH transition.",
205
+ "states": {},
206
+ "showcase": [],
207
+ "variantSummary": {
208
+ "required": 0,
209
+ "captured": 0
210
+ },
211
+ "problems": []
212
+ }
213
+ ],
214
+ "keep": []
215
+ }
@@ -0,0 +1,61 @@
1
+ # Feature map — per-repo scenario knowledge that outlives a bundle
2
+
3
+ A task bundle is removed after delivery and commit (bundle-contract.md "Retention"), and with it everything the task learned about reaching its screens: routes, preconditions, selectors that held, states a site can or cannot show, and the methods that wasted runs. The feature map keeps that knowledge, per repo, for the next task. Model: pstack create-verification-skill "feature map" / control adapter.
4
+
5
+ ## Where
6
+
7
+ `<repoRoot>/e2e/feature-map.md`, beside `e2e/review-playbook.md`. Local only, never tracked: the repo's `.gitignore` or the global excludes file must ignore it. `call-claude.sh --stage harvest` refuses to run when `git check-ignore` does not report it ignored.
8
+
9
+ The map holds per-feature knowledge. Repo-wide rules the review relies on stay in `e2e/review-playbook.md`, which the harvest never edits; a harvest finding that contradicts the playbook is reported, not written there.
10
+
11
+ ## Format
12
+
13
+ ```markdown
14
+ # Feature map — <repo>
15
+
16
+ Hints, not facts: verify any line you rely on with this task's own BEFORE capture.
17
+ Each line ends with (observed YYYY-MM-DD <TASK-id>) = the last task that confirmed it.
18
+
19
+ ## Repo-wide
20
+
21
+ - <runtime gotcha that affects every feature: cause → workaround> (observed …)
22
+
23
+ ## <screen or route> e.g. `/main` lobby — game cards
24
+
25
+ - Entry: <route or menu path>; site <CONFIG_NAME>; viewport <w×h> (observed …)
26
+ - Preconditions: <guest | logged-in, account kind only>; backend <dev|qa>; data <API path or fixture boundary> (observed …)
27
+ - Selectors: <stable anchor> — `<file:line>` (observed …)
28
+ - States: <state> — <how it is reached (fixture, fault, menu)> | unreachable on <site>: <evidence> (observed …)
29
+ - Gotchas: <what failed, its proven cause> → <what works>; see measurement-recipes.md "<row>" when it applies (observed …)
30
+ ```
31
+
32
+ - One `##` section per screen or route; `## Repo-wide` first. Section keys use the screen names `repos.md` uses, so the analyze hop can find them.
33
+ - Size cap: about 300 lines for the file, 25 lines per section.
34
+ - Only what a capture, a measurement or the code showed. A guess, a plan not run, or "not found" without saying how far the search went (e.g. sub-menus not expanded) is either written with that limit or left out.
35
+
36
+ ## Credentials (README hard rule 5a, text rule)
37
+
38
+ The map is text evidence: no account value, password, token, test display name, or any value from `e2e/test-accounts.local.json`. Name an account by its kind ("logged-in member with a wallet", "the site's test account via `--auth accounts`"). The harvest stage runs `runner/redaction-check.mjs` on the map after Claude writes it and restores the previous map on any hit.
39
+
40
+ ## Who reads it
41
+
42
+ | Reader | When | How |
43
+ | ------------------------------------------------ | ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
44
+ | Claude analyze hop (`/ui-baseline-codex` Step 1) | before writing `scenarios.mjs`, fixtures and selectors | read `## Repo-wide` and the sections for the screens in this repo's `repos.md` row; list the lines used under `## Feature map lines used` in `analysis.md` (section + line text) |
45
+ | Claude verify-before hop (Step 2) | a capture failed | check the matching Gotchas before writing a Retake basis; a known cause with a known workaround is the Retake basis |
46
+ | `/qa-fix` | writing "How to verify" | entry, site and preconditions for the screen; read only, never written (no runtime observation happens there) |
47
+
48
+ ## Who writes it — the harvest hop
49
+
50
+ Driver: after `NEXT: committed` (and after a supplement's delivery), **before** the bundle removal, Codex runs `call-claude.sh --stage harvest`. Always a new Claude session. Claude reads the bundle's text files and updates the map; the script backs the map up into the bundle, allows only the map to change, and runs the redaction check. Claude command "Harvest" holds the procedure. The same hop routes the run's other lessons (Codex's `lessons.md`) to a script check, `measurement-recipes.md` or a flow-file line — as proposals in `harvest.md` `## Lesson routing` for the user to approve; it writes nothing but the map. The bundle stays until the user has answered each proposal (bundle-contract.md Retention "When the removal runs").
51
+
52
+ ## Pruning
53
+
54
+ In this order, on every harvest, within the sections this task touched (and `## Repo-wide`):
55
+
56
+ 1. **Invalidated by evidence** — a line this task's capture or code contradicts is replaced by the new observation (never kept beside it); a `file:line` that no longer exists is fixed or the line removed; a screen the code no longer has loses its section.
57
+ 2. **Confirmed** — a line listed under `## Feature map lines used` in `analysis.md` that this task's BEFORE capture bore out gets this task's date and ID.
58
+ 3. **Merged** — duplicates and lines that say the same thing are merged into one.
59
+ 4. **Over the cap** — only then, remove the lines unconfirmed for longest (oldest `observed`). Age alone is a weak signal, so this is the last step, not the first.
60
+
61
+ Claude writes `prepare-for-pr/{TASK-id}/harvest.md`: lines added, lines confirmed, every line removed with its reason (1, 3 or 4), and any contradiction with `e2e/review-playbook.md`. Codex copies it into the final report before the bundle is removed, so a removal stays visible.