Account — Requirement Traceability Matrix
A. Document controlA. Kiểm soát tài liệu
| Doc ID | CPG-RTM-ACC |
|---|---|
| VersionPhiên bản | 1.3 |
| StatusTrạng thái | Draft |
| Owner | CPG BA / Architecture |
| AudienceĐối tượng | QA, Product, Backend, Frontend |
| ClassificationPhân loại | Internal |
| Effective dateNgày hiệu lực | 01/12/2026 |
| Related docs | 02A Account SPECs · BR/NFR Catalog · Test Cases · MP Account FSD v2.3 · CRM Account FSD v1.2 |
B. Version historyB. Lịch sử phiên bản
| Version | Date | Author | ChangesThay đổi |
|---|---|---|---|
| 1.3 | 01/12/2026 | Khoa Trinh | Version 1.3 |
C. Table of contentsC. Mục lục
- 1. Purpose, sources, ID legend, coverage rules
- 1.1 Sources
- 1.2 ID legend
- 1.3 Coverage status
- 1.4 Coverage rule (HARD BRs)
- 1.5 Round A Feature Specs (Open Q vs URD)
- 1.6 Round A code anchors (SPEC deep-link targets)
- 2. Merchant matrix
- 2.1 Merchant UC → tests (quick lookup)
- 2.2 CRM matrix (v1.2)
- 3. Core matrix
- 3.1 Core UC → tests (quick lookup)
- 4. Portal ↔ Core mapping
- 5. Orphans
- 6. Deferred
- 7. Coverage summary
D. ContentD. Nội dung
Account Module — Requirement Traceability Matrix
Document: CPG-Account/RTM
Version: 1.3
Date: 30/11/2026
Audience: QA, Product, Backend, Frontend
1. Purpose, sources, ID legend, coverage rules
This matrix traces Account-module business requirements to use cases and test cases for Merchant Portal, Admin CRM, and Core. It is the coverage gate for Account QA: every in-scope HARD requirement must have at least one happy-path test and one negative or security test.
1.1 Sources
| Artifact | Path | Version |
|---|---|---|
| Merchant Portal FSD | CPG-MP_FSD_Account | v2.3 |
| Admin CRM FSD | CPG-CRM_FSD_Account | v1.2 |
| Core Account FSD | CPG-Core_FSD_Account | v1.3 |
| Fund-flow OUT1 | docs/RnD/CPG-FLOW-OUT1.docx |
v1.0 |
| 01_BR catalog | docs/html/01_BR/data/CPG-BR-NFR-REQ_v1.xlsx |
BR-MP-WLT-008…015 |
| Merchant test cases | CPG-MP_Account_TestCases | 30/11/2026 |
| Core test cases | CPG-Core_Account_TestCases | 20/08/2026 |
1.2 ID legend
| Artifact | Pattern | Example |
|---|---|---|
| Merchant BR | BR-MP-ACC-nn |
BR-MP-ACC-01 |
| Catalog WLT BR | BR-MP-WLT-nnn |
BR-MP-WLT-008 (Note=New for Payout) |
| Core BR | ACC-01 … ACC-12 |
ACC-01 |
| Merchant feature | F1 … F18 |
F14 |
| CRM feature | F-CRM-ACC-nn |
F-CRM-ACC-03 |
| Core feature | FEAT-* |
FEAT-VA-01 |
| Merchant UC | UC-ACC-01 … UC-ACC-23 (+ role A/F/P/Y/S) |
UC-ACC-18 |
| Core UC | UC-VA-01, UC-HW-01, … |
UC-IDM-01 |
| Merchant test | TC-MP-ACC-nnn |
TC-MP-ACC-137 |
| CRM test | TC-CRM-ACC-nnn |
TC-CRM-ACC-014 |
| Core test | TC-CORE-ACC-nnn |
TC-CORE-ACC-001 |
1.3 Coverage status
| Status | Meaning |
|---|---|
| Covered | In-scope HARD rule has ≥1 happy-path and ≥1 negative/security test. |
| Partial | Tests exist but a subset is Phase-gated or not yet executable. |
| Gap | In-scope requirement with missing happy or negative coverage. Must be empty after this work. |
| OutOfScope | Explicitly deferred (optional audit, Phase 2 execution, Warm/Cold ops APIs, on-chain SET_BENEFICIARY). |
1.4 Coverage rule (HARD BRs)
Every in-scope HARD BR (ACC-01…ACC-11, all BR-MP-ACC-* except optional copy/explorer audit) must have:
- at least one happy-path test, and
- at least one negative or security test.
ACC-03 is HARD for Phase 2; tests are specified and marked Partial until Phase 2 lands. ACC-12 is IMPORTANT and OutOfScope for transfer APIs.
1.5 Round A Feature Specs (Open Q vs URD)
Round A HTML SPECs live under docs/html/02A_SPEC/ (sidebar 02A). Until FlyPay formally accepts Inactive / dual-approve / ticket activation vs older URD “Active on create”, treat the following as Open Q in coverage reviews:
| Topic | Spec path | Notes |
|---|---|---|
| MP Account index / trace | 02A_SPEC/Merchant_Portal/Account/index.html |
Master map SPEC ↔ UC ↔ BR ↔ TC |
| Shared UI (step-up 2FA) | …/CPG-SPEC-ACC-SHARED-UI.html |
APPSEC-ACC-STEPUP-2FA |
| Create / Approve BW | …/CPG-SPEC-ACC-BW-CREATE.html, …/CPG-SPEC-ACC-BW-APPROVE.html |
Diverges from URD Active-on-create |
| Create / Activate HW | …/CPG-SPEC-ACC-HW-CREATE.html, …/CPG-SPEC-ACC-HW-ACTIVATE.html |
Merchant ticket; CRM activate |
| CRM Activate / Reject HW | 02A_SPEC/Admin_CRM/Account/ |
FlyPay Support outcome |
1.6 Round A code anchors (SPEC deep-link targets)
Changelog 16/11/2026 (v1.1 → v1.2): added anchor HTML for code used in Feature Specs Round A (bổ sung anchor HTML cho mã dùng trong Feature Specs vòng A (
docs/html/02A_SPEC). Codes). Các mãBR-05-*is a sample FlyPay RTM code —là mã FlyPay RTM mẫu — out of scopengoài scope catalogBR-MP-ACC-*/BR-MP-WLT-*; keep for reference of the sample GUIDE/SPEC, wait for map.; giữ để đối chiếu GUIDE/SPEC mẫu, chờ map.
BR-MP-ACC (FSD native)
BR-MP-ACC-01 — see Merchant matrix §2; FSD MP Account v2.2.— xem ma trận Merchant §2; FSD MP Account v2.2.
BR-MP-ACC-02 — see Merchant matrix §2; FSD MP Account v2.2.— xem ma trận Merchant §2; FSD MP Account v2.2.
BR-MP-ACC-03 — see Merchant matrix §2; FSD MP Account v2.2.— xem ma trận Merchant §2; FSD MP Account v2.2.
BR-MP-ACC-04 — see Merchant matrix §2; FSD MP Account v2.2.— xem ma trận Merchant §2; FSD MP Account v2.2.
BR-MP-ACC-05 — see Merchant matrix §2; FSD MP Account v2.2.— xem ma trận Merchant §2; FSD MP Account v2.2.
BR-MP-ACC-06 — see Merchant matrix §2; FSD MP Account v2.2.— xem ma trận Merchant §2; FSD MP Account v2.2.
BR-MP-ACC-07 — see Merchant matrix §2; FSD MP Account v2.2.— xem ma trận Merchant §2; FSD MP Account v2.2.
BR-MP-ACC-08 — see Merchant matrix §2; FSD MP Account v2.2.— xem ma trận Merchant §2; FSD MP Account v2.2.
BR-MP-ACC-09 — see Merchant matrix §2; FSD MP Account v2.2.— xem ma trận Merchant §2; FSD MP Account v2.2.
BR-MP-ACC-10 — see Merchant matrix §2; FSD MP Account v2.2.— xem ma trận Merchant §2; FSD MP Account v2.2.
BR-MP-ACC-11 — see Merchant matrix §2; FSD MP Account v2.2.— xem ma trận Merchant §2; FSD MP Account v2.2.
BR-MP-ACC-12 — see Merchant matrix §2; FSD MP Account v2.3.— xem ma trận Merchant §2; FSD MP Account v2.3.
BR-MP-ACC-13 — Payout Account list (catalog BR-MP-WLT-008 New); FSD MP Account v2.3.
BR-MP-ACC-14 — Create Payout Account (BR-MP-WLT-009 New); FSD MP Account v2.3.
BR-MP-ACC-15 — Configure payout_cap (BR-MP-WLT-010 New); FSD MP Account v2.3.
BR-MP-ACC-16 — Refund Account list (BR-MP-WLT-012); FSD MP Account v2.3.
BR-MP-ACC-17 — Create Refund Account (BR-MP-WLT-013); FSD MP Account v2.3.
BR-MP-ACC-18 — Configure refund_cap (BR-MP-WLT-014); FSD MP Account v2.3.
BR-MP-WLT-008 — Catalog Note=New — Payout Account tab/list/balances.
BR-MP-WLT-009 — Catalog Note=New — Create Payout Account.
BR-MP-WLT-010 — Catalog Note=New — Configure payout_cap dual-approve.
BR-MP-WLT-011 — Catalog Note=New — Payout activate/deactivate; trader outbound only.
BR-MP-WLT-012 — Refund Account tab/list/balances.
BR-MP-WLT-013 — Create Refund Account.
BR-MP-WLT-014 — Configure refund_cap dual-approve.
BR-MP-WLT-015 — Refund activate/deactivate; refund outbound only.
Changelog 30/11/2026 (v1.2 → v1.3): MP FSD v2.3 Payout/Refund Accounts; CRM FSD v1.2 list/status; catalog BR-MP-WLT-008…015 (Payout Note=New); TC-MP-ACC-135…151; TC-CRM-ACC-014…020.
BR-05 / RL-05 (FlyPay sample — outside BR-MP catalog)BR-05 / RL-05 (FlyPay sample — ngoài catalog BR-MP)
BR-05-1 — FlyPay sample code (GUIDE/SPEC HW-CREATE). Outside the scope of BR-MP-ACC; highlight in yellow on the SPEC until mapped.— mã mẫu FlyPay (GUIDE/SPEC HW-CREATE). Ngoài scope BR-MP-ACC; highlight vàng trên SPEC đến khi map.
BR-05-2 — FlyPay sample code (GUIDE/SPEC HW-CREATE). Outside the scope of BR-MP-ACC; highlight in yellow on the SPEC until mapped.— mã mẫu FlyPay (GUIDE/SPEC HW-CREATE). Ngoài scope BR-MP-ACC; highlight vàng trên SPEC đến khi map.
BR-05-3 — FlyPay sample code (GUIDE/SPEC HW-CREATE). Outside the scope of BR-MP-ACC; highlight in yellow on the SPEC until mapped.— mã mẫu FlyPay (GUIDE/SPEC HW-CREATE). Ngoài scope BR-MP-ACC; highlight vàng trên SPEC đến khi map.
BR-05-4 — FlyPay sample code (GUIDE/SPEC HW-CREATE). Outside the scope of BR-MP-ACC; highlight in yellow on the SPEC until mapped.— mã mẫu FlyPay (GUIDE/SPEC HW-CREATE). Ngoài scope BR-MP-ACC; highlight vàng trên SPEC đến khi map.
BR-05-5 — FlyPay sample code (GUIDE/SPEC HW-CREATE). Outside the scope of BR-MP-ACC; highlight in yellow on the SPEC until mapped.— mã mẫu FlyPay (GUIDE/SPEC HW-CREATE). Ngoài scope BR-MP-ACC; highlight vàng trên SPEC đến khi map.
RL-05-01 — FlyPay / URD Wallet sample business rule; cross-check with FSD MP §F* and Open Q RTM §1.5.— Business Rule mẫu FlyPay / URD Wallet; đối chiếu FSD MP §F* và Open Q RTM §1.5.
RL-05-03 — FlyPay / URD Wallet sample business rule; cross-check with FSD MP §F* and Open Q RTM §1.5.— Business Rule mẫu FlyPay / URD Wallet; đối chiếu FSD MP §F* và Open Q RTM §1.5.
RL-05-06 — FlyPay / URD Wallet sample business rule; cross-check with FSD MP §F* and Open Q RTM §1.5.— Business Rule mẫu FlyPay / URD Wallet; đối chiếu FSD MP §F* và Open Q RTM §1.5.
RL-05-08 — FlyPay / URD Wallet sample business rule; cross-check with FSD MP §F* and Open Q RTM §1.5.— Business Rule mẫu FlyPay / URD Wallet; đối chiếu FSD MP §F* và Open Q RTM §1.5.
RL-05-09 — FlyPay / URD Wallet sample business rule; cross-check with FSD MP §F* and Open Q RTM §1.5.— Business Rule mẫu FlyPay / URD Wallet; đối chiếu FSD MP §F* và Open Q RTM §1.5.
RL-05-10 — FlyPay / URD Wallet sample business rule; cross-check with FSD MP §F* and Open Q RTM §1.5.— Business Rule mẫu FlyPay / URD Wallet; đối chiếu FSD MP §F* và Open Q RTM §1.5.
RL-05-12 — FlyPay / URD Wallet sample business rule; cross-check with FSD MP §F* and Open Q RTM §1.5.— Business Rule mẫu FlyPay / URD Wallet; đối chiếu FSD MP §F* và Open Q RTM §1.5.
RL-05-15 — FlyPay / URD Wallet sample business rule; cross-check with FSD MP §F* and Open Q RTM §1.5.— Business Rule mẫu FlyPay / URD Wallet; đối chiếu FSD MP §F* và Open Q RTM §1.5.
RL-05-16 — FlyPay / URD Wallet sample business rule; cross-check with FSD MP §F* and Open Q RTM §1.5.— Business Rule mẫu FlyPay / URD Wallet; đối chiếu FSD MP §F* và Open Q RTM §1.5.
RL-05-17 — FlyPay / URD Wallet sample business rule; cross-check with FSD MP §F* and Open Q RTM §1.5.— Business Rule mẫu FlyPay / URD Wallet; đối chiếu FSD MP §F* và Open Q RTM §1.5.
RL-05-19 — FlyPay / URD Wallet sample business rule; cross-check with FSD MP §F* and Open Q RTM §1.5.— Business Rule mẫu FlyPay / URD Wallet; đối chiếu FSD MP §F* và Open Q RTM §1.5.
RL-05-20 — FlyPay / URD Wallet sample business rule; cross-check with FSD MP §F* and Open Q RTM §1.5.— Business Rule mẫu FlyPay / URD Wallet; đối chiếu FSD MP §F* và Open Q RTM §1.5.
2. Merchant matrix
| BR | Feature | Use cases | Test cases | Status |
|---|---|---|---|---|
| BR-MP-ACC-01 Account landing + tenant isolation (five tabs) | F1 | UC-ACC-01, UC-ACC-05, UC-ACC-09, UC-ACC-13, UC-ACC-16, UC-ACC-20 | Happy: TC-MP-ACC-001, 002, 004, 005, 135. Negative/Security: TC-MP-ACC-003, 006, 136 | Covered |
| BR-MP-ACC-02 Hot Wallet list/filter/balances | F2 | UC-ACC-01, UC-ACC-02 | Happy: TC-MP-ACC-008, 009, 010, 011, 012. Negative/Infra: TC-MP-ACC-007, 013, 070 | Covered |
| BR-MP-ACC-03 Create Hot Wallet | F3 | UC-ACC-03, UC-ACC-15 | Happy: TC-MP-ACC-014, 022. Negative: TC-MP-ACC-015–021, 023, 067 | Covered |
| BR-MP-ACC-04 Virtual Account list/filter | F4 | UC-ACC-05, UC-ACC-06 | Happy: TC-MP-ACC-029, 030. Negative: TC-MP-ACC-007 pattern on VA empty filter (030 unmatched → empty) | Covered |
| BR-MP-ACC-05 Create Virtual Account | F5 | UC-ACC-07 | Happy: TC-MP-ACC-031, 037, 038, 039. Negative: TC-MP-ACC-032–036, 068 | Covered |
| BR-MP-ACC-06 Beneficiary list/filter | F6 | UC-ACC-09, UC-ACC-10 | Happy: TC-MP-ACC-042, 043. Negative: empty unmatched filter via 043 | Covered |
| BR-MP-ACC-07 Create Beneficiary BYOW | F7, F8 | UC-ACC-11 | Happy: TC-MP-ACC-044, 045. Negative: TC-MP-ACC-046, 047, 048, 069 | Covered |
| BR-MP-ACC-08 Create Beneficiary Web3Auth | F7, F9 | UC-ACC-12 | Happy: TC-MP-ACC-049. Negative/Security: TC-MP-ACC-050, 051, 052 | Covered |
| BR-MP-ACC-09 Copy address / open explorer | F10, F11 | UC-ACC-13, UC-ACC-14 | Happy: TC-MP-ACC-054, 055. Negative/Security: TC-MP-ACC-056, 057, 058. Copy/explorer audit is OutOfScope | Covered |
| BR-MP-ACC-10 Activate/deactivate + maker-checker / ticket / PA-RA (v2.3) | F12 | UC-ACC-04, UC-ACC-08, UC-ACC-19, UC-ACC-23 + P01–P05 / A03 | Happy: TC-MP-ACC-026, 059, 060, 061, 073–076, 143, 144, 150. Negative: TC-MP-ACC-027, 071, 141, 149 | Covered |
| BR-MP-ACC-11 RBAC by merchant role | §2.1 | UC-ACC-03, 04, 07, 11, 13, 18, 22 | Happy allow: TC-MP-ACC-040, 072. Deny: TC-MP-ACC-024, 025, 028, 041, 053, 057, 058, 066, 145, 151 | Covered |
| BR-MP-ACC-12 Audit logging | §8 | UC-ACC-03, 04, 07, 12, 18, 22 | Happy: TC-MP-ACC-062, 063, 064, 065. Negative: TC-MP-ACC-052 (no key in audit). Copy/explorer audit OutOfScope | Covered |
| BR-MP-ACC-13 / BR-MP-WLT-008 New Payout list | F13 | UC-ACC-16, UC-ACC-17 | Happy: TC-MP-ACC-135. Negative/Security: TC-MP-ACC-136 | Covered |
| BR-MP-ACC-14 / BR-MP-WLT-009 New Create Payout | F14 | UC-ACC-18 | Happy: TC-MP-ACC-137. Negative: TC-MP-ACC-138, 139, 142 | Covered |
| BR-MP-ACC-15 / BR-MP-WLT-010 New Payout cap | F15 | UC-ACC-19 | Happy: TC-MP-ACC-140. Negative/Security: TC-MP-ACC-141 | Covered |
| BR-MP-ACC-16 / BR-MP-WLT-012 Refund list | F16 | UC-ACC-20, UC-ACC-21 | Happy: TC-MP-ACC-135 (RA tab). Negative: tenant pattern via 136 style on RA | Covered |
| BR-MP-ACC-17 / BR-MP-WLT-013 Create Refund | F17 | UC-ACC-22 | Happy: TC-MP-ACC-146. Negative: TC-MP-ACC-147, 151 | Covered |
| BR-MP-ACC-18 / BR-MP-WLT-014 Refund cap | F18 | UC-ACC-23 | Happy: TC-MP-ACC-148. Negative/Security: TC-MP-ACC-149 | Covered |
| BR-MP-WLT-011 New / BR-MP-WLT-015 PA/RA status outbound rules | F12 | UC-ACC-19, UC-ACC-23 | Happy: TC-MP-ACC-143, 144, 150. Negative: TC-MP-ACC-149 | Covered |
2.1 Merchant UC → tests (quick lookup)
| UC | Name | Tests |
|---|---|---|
| UC-ACC-01 | View Hot Wallets / landing | TC-MP-ACC-001, 002, 003, 005, 006, 007, 008, 012, 013, 070 |
| UC-ACC-02 | Filter Hot Wallets | TC-MP-ACC-009, 010, 011 |
| UC-ACC-03 | Create Hot Wallet | TC-MP-ACC-014–021, 023–025, 062, 066, 067, 072 |
| UC-ACC-04 | Activate/deactivate HW (and beneficiary linkage) | TC-MP-ACC-026, 027, 028, 059, 065, 071 |
| UC-ACC-05 | View Virtual Accounts | TC-MP-ACC-029 |
| UC-ACC-06 | Filter Virtual Accounts | TC-MP-ACC-030 |
| UC-ACC-07 | Create Virtual Account | TC-MP-ACC-031–041, 063, 068 |
| UC-ACC-08 | Activate/deactivate VA | TC-MP-ACC-060, 061 |
| UC-ACC-09 | View Beneficiary Wallets | TC-MP-ACC-042 |
| UC-ACC-10 | Filter Beneficiary Wallets | TC-MP-ACC-043 |
| UC-ACC-11 | Create Beneficiary BYOW | TC-MP-ACC-044–048, 053, 069 |
| UC-ACC-12 | Create Beneficiary Web3Auth | TC-MP-ACC-049–052, 064 |
| UC-ACC-13 | Copy address | TC-MP-ACC-004, 054, 057, 058 |
| UC-ACC-14 | Open explorer | TC-MP-ACC-055, 056 |
| UC-ACC-15 | Create Beneficiary from Create Hot Wallet | TC-MP-ACC-022 |
| UC-ACC-16 | View Payout Accounts | TC-MP-ACC-135, 136 |
| UC-ACC-17 | Filter Payout Accounts | TC-MP-ACC-135 |
| UC-ACC-18 | Create Payout Account | TC-MP-ACC-137–139, 142, 145 |
| UC-ACC-19 | Configure / activate / deactivate PA | TC-MP-ACC-140, 141, 143, 144 |
| UC-ACC-20 | View Refund Accounts | TC-MP-ACC-135 |
| UC-ACC-21 | Filter Refund Accounts | TC-MP-ACC-135 |
| UC-ACC-22 | Create Refund Account | TC-MP-ACC-146, 147, 151 |
| UC-ACC-23 | Configure / activate / deactivate RA | TC-MP-ACC-148–150 |
2.2 CRM matrix (v1.2)
| Feature | Use cases | Test cases | Status |
|---|---|---|---|
| F-CRM-ACC-01 / 02 HW ticket activate/reject | UC-ACC-S01, S02 | TC-CRM-ACC-001–013 (Round A stubs) + ticket happy path | Partial — Round A stubs |
| F-CRM-ACC-03 List / filter HW/BW/PA/RA | UC-ACC-S03 | Happy: TC-CRM-ACC-014. Negative: TC-CRM-ACC-020 | Covered |
| F-CRM-ACC-04 Account detail | UC-ACC-S04 | Happy: TC-CRM-ACC-015 | Covered |
| F-CRM-ACC-05 Force-deactivate | UC-ACC-S05 | Happy: TC-CRM-ACC-016, 017. Negative: TC-CRM-ACC-019 | Covered |
| F-CRM-ACC-06 Activate BW/PA/RA override | UC-ACC-S06 | Happy: TC-CRM-ACC-018 | Covered |
3. Core matrix
| BR | Feature | Use cases | Test cases | Status |
|---|---|---|---|---|
| ACC-01 Unique VA issuance | FEAT-REG-01 | UC-ADR-01 | Happy: TC-CORE-ACC-001, 004. Negative: TC-CORE-ACC-002, 003. NFR: TC-CORE-ACC-049 | Covered |
| ACC-02 TRON VA (Phase 1) | FEAT-VA-01 | UC-VA-01, UC-PAUSE-01 | Happy: TC-CORE-ACC-005, 039, 041. Negative/Security: TC-CORE-ACC-008–011, 044–048, 054, 055 | Covered |
| ACC-03 EVM VA (Phase 2) | FEAT-VA-02 | UC-VA-02 | Happy: TC-CORE-ACC-012. Negative: TC-CORE-ACC-013. Execute when Phase 2 is in scope | Partial |
| ACC-04 EVM hot wallet Forwarder | FEAT-HW-01 | UC-HW-01 | Happy: TC-CORE-ACC-014, 015. Negative/Infra: TC-CORE-ACC-016–021 | Covered |
| ACC-05 TRON hot wallet | FEAT-HW-02 | UC-HW-02 | Happy: TC-CORE-ACC-022, 023. Negative: TC-CORE-ACC-056 | Covered |
| ACC-06 Beneficiary bind | FEAT-BEN-01 | UC-BEN-01 | Happy: TC-CORE-ACC-025, 026. Negative: TC-CORE-ACC-027, 028 | Covered |
| ACC-07 Watched-address API | FEAT-MAP-01 | UC-MAP-01 | Happy: TC-CORE-ACC-024, 029, 053. Negative/Security: TC-CORE-ACC-031, 032. Infra/NFR: TC-CORE-ACC-030, 050 | Covered |
| ACC-08 Deactivate without reuse | FEAT-ACT-01 | UC-ACT-01, UC-ACT-02 | Happy: TC-CORE-ACC-033, 035. Negative: TC-CORE-ACC-034, 036, 052 | Covered |
| ACC-09 Idempotent issue | FEAT-IDM-01 | UC-IDM-01 | Happy: TC-CORE-ACC-037, 039, 051. Negative: TC-CORE-ACC-038, 040 | Covered |
| ACC-10 No private keys in app DB/logs | §6, §8 | UC-VA-01, UC-MAP-01 | Happy (success payload clean): TC-CORE-ACC-006. Negative/Security: TC-CORE-ACC-007, 032 | Covered |
| ACC-11 Ledger metadata bind | §3.1 / §3.2 | UC-VA-01, UC-HW-02, UC-ADR-01 | Happy: TC-CORE-ACC-023, 041. Negative: TC-CORE-ACC-042 | Covered |
| ACC-12 Warm/Cold ref only | — | — | TC-CORE-ACC-043 confirms no transfer APIs | OutOfScope (IMPORTANT; metadata only) |
3.1 Core UC → tests (quick lookup)
| UC | Tests |
|---|---|
| UC-ADR-01 | TC-CORE-ACC-001, 002, 003, 004, 042, 049 |
| UC-VA-01 | TC-CORE-ACC-005–011, 039, 041, 046–048, 055 |
| UC-VA-02 | TC-CORE-ACC-012, 013 (Phase 2) |
| UC-HW-01 | TC-CORE-ACC-014–021, 043 |
| UC-HW-02 | TC-CORE-ACC-022, 023, 056 |
| UC-BEN-01 | TC-CORE-ACC-025–028 |
| UC-MAP-01 | TC-CORE-ACC-024, 029–032, 050, 053 |
| UC-ACT-01 | TC-CORE-ACC-033, 034, 052 |
| UC-ACT-02 | TC-CORE-ACC-035, 036 |
| UC-IDM-01 | TC-CORE-ACC-037–040, 051 |
| UC-PAUSE-01 | TC-CORE-ACC-044, 045, 054 |
4. Portal ↔ Core mapping
Merchant Portal create/status flows depend on Core account-service endpoints. Portal RBAC, filters, and audit stay in the portal BFF; address issuance, uniqueness, ledger bind, and Sync publish stay in Core.
| Portal flow | Portal API (illustrative) | Core endpoint | Core BR / UC | Portal tests | Core tests |
|---|---|---|---|---|---|
| Create Hot Wallet (EVM) | POST /merchant/accounts/hot-wallets |
POST /api/v1/accounts/crypto/hot-wallets |
ACC-04, UC-HW-01 | TC-MP-ACC-014–021 | TC-CORE-ACC-014–021, 051 |
| Create Hot Wallet (TRON) | same | same | ACC-05, UC-HW-02 | TC-MP-ACC-014, 010 | TC-CORE-ACC-022, 023, 056 |
| Create Virtual Account | POST /merchant/accounts/virtual-accounts |
POST /api/v1/accounts/crypto/virtual-accounts (hot_wallet_id required) |
ACC-02, ACC-09, UC-VA-01 | TC-MP-ACC-031–039 | TC-CORE-ACC-005, 008–011, 037–041 |
| Create VA (EVM, Phase 2) | same | same | ACC-03, UC-VA-02 | — (portal reuses F5) | TC-CORE-ACC-012, 013 |
| Deactivate VA | PATCH status=inactive |
POST /api/v1/accounts/crypto/virtual-accounts/{va_id}/deactivate |
ACC-08, UC-ACT-01 | TC-MP-ACC-060 | TC-CORE-ACC-033, 034, 052 |
| Re-activate VA | PATCH status=active |
POST /api/v1/accounts/crypto/virtual-accounts/{va_id}/activate |
ACC-08, UC-ACT-02 | TC-MP-ACC-061 | TC-CORE-ACC-035, 036 |
| Deactivate Hot Wallet | PATCH /merchant/accounts/hot-wallets/{id} |
Core HW status / watch flag (HW not on Sync map by default) | ACC-07, ACC-08 | TC-MP-ACC-026, 027 | TC-CORE-ACC-024 |
| Set/rotate beneficiary (Core bind) | Portal beneficiary create then HW beneficiary | PUT /api/v1/accounts/crypto/hot-wallets/{hot_id}/beneficiary |
ACC-06, UC-BEN-01 | TC-MP-ACC-044–048 | TC-CORE-ACC-025–028 |
| Sync watched addresses | (not a portal UI) | GET /internal/v1/watched-addresses |
ACC-07, UC-MAP-01 | — | TC-CORE-ACC-029–032, 050, 053 |
| Issuance pause | (ops, not merchant UI) | PUT /internal/v1/issuance-pause |
UC-PAUSE-01 | Portal create should surface 503 | TC-CORE-ACC-044, 045, 054 |
flowchart LR
PortalUI[Merchant Portal F1-F18] --> PortalAPI["/merchant/accounts/*"]
CrmUI[Admin CRM F-CRM-ACC] --> PortalAPI
PortalAPI --> CoreAPI["account-service /api/v1/accounts/crypto/*"]
CoreAPI --> Registry[BR-02 registry]
CoreAPI --> Custody[Custody adapter]
CoreAPI --> Ledger[ledger-service]
Registry --> SyncMap["GET /internal/v1/watched-addresses"]
SyncMap --> SyncSvc[sync-service]
5. Orphans
After this work the orphan lists are empty for in-scope IDs.
| Check | Result |
|---|---|
| Merchant BRs with no test | None (BR-MP-ACC-01…18) |
Merchant UCs UC-ACC-01…23 with no test |
None |
| CRM features F-CRM-ACC-03…06 with no test | None |
Core HARD BRs ACC-01…11 with no test |
None (ACC-03 specified, Phase 2) |
Core UCs including UC-ACT-02, UC-PAUSE-01 with no test |
None |
| Tests with no BR | None |
| Tests with no UC | None |
6. Deferred
| Item | Why deferred | Tracking |
|---|---|---|
| Phase 2 EVM Virtual Account CREATE2 | ACC-03 / UC-VA-02 / FEAT-VA-02. Tests TC-CORE-ACC-012, 013 are written; skip in Phase 1 CI |
Partial |
| Copy / explorer audit | Merchant FSD: Optional, out of scope this phase. No mandatory TC-MP-ACC-* for copy/explorer audit events |
OutOfScope |
| Warm / Cold ops APIs | ACC-12: ref/metadata only; no transfer, sweep, or move APIs |
OutOfScope — TC-CORE-ACC-043 |
| On-chain SET_BENEFICIARY execution | EVM bind stores pending_governance. Governance/ops execute the 2-of-3 on-chain update |
OutOfScope — TC-CORE-ACC-025 |
| Refill job / Numscript UI | FLOW-OUT1 ops; not Merchant/CRM Account UI | OutOfScope |
| Round A SPEC stubs for PA/RA | Optional follow-up after FSD approval | Deferred |
7. Coverage summary
| Surface | HARD BRs in scope | Covered | Partial | Gap | OutOfScope |
|---|---|---|---|---|---|
Merchant BR-MP-ACC-01…18 |
18 | 18 | 0 | 0 | copy/explorer audit only (subset of BR-MP-ACC-09/12) |
Catalog BR-MP-WLT-008…015 |
8 | 8 | 0 | 0 | — |
| CRM F-CRM-ACC-03…06 | 4 | 4 | 0 | 0 | ticket stubs F-CRM-ACC-01/02 Partial |
Core ACC-01…11 |
11 | 10 | 1 (ACC-03) |
0 | ACC-12 IMPORTANT |
Happy-path + negative/security gate: pass for all in-scope HARD Merchant/CRM Account BRs and Core HARD BRs except ACC-03, which is Phase-gated with both happy and negative tests already specified.