Core — Synchronizer Use Cases
Derived from FSD Use Cases (v0 — expand when Doc05 Excel exists)
A. Document controlA. Kiểm soát tài liệu
| Doc ID | CPG-UC-CPG-Core_UC_Synchonizer |
|---|---|
| VersionPhiên bản | 1.0 |
| StatusTrạng thái | Draft |
| Owner | CPG BA / Architecture |
| AudienceĐối tượng | BA, QA, Product, Frontend, Backend |
| ClassificationPhân loại | Internal |
| Effective dateNgày hiệu lực | 01/12/2026 |
| Related docs | Core Synchronizer TC · CPG-Core_FSD_Synchonizer |
B. Version historyB. Lịch sử phiên bản
| Version | Date | Author | ChangesThay đổi |
|---|---|---|---|
| 1.0 | 01/12/2026 | Khoa Trinh | Version 1.0 |
C. Table of contentsC. Mục lục
D. ContentD. Nội dung
Catalog
| UC ID | Name | Linked TC count | Categories |
|---|---|---|---|
| UC-DEP-01 | Watched TRON address; transfer in solidified block | 1 | Function |
| UC-IDM-01 | Prior successful credit for same reference | 1 | Function |
| UC-UX-01 | Transfer seen before finality | 1 | Function |
| UC-PRV-01 | Running on provider A | 1 | Function |
| UC-GAP-01 | Outage created block gap | 1 | Function |
| UC-REORG-01 | Phase 2; deposit credited; chain reorg removes tx | 1 | Function |
| UC-MAP-01 | Transfer to unknown address | 1 | Function |
| UC-IDN-01 | Fixture contains logs, internal transfers, batch items, failed txs, and self-transfer | 1 | Function |
| UC-DEEP-01 | Previously final/credited EVM occurrence becomes non-canonical | 1 | Function |
| UC-INT-01 | TRON internal transfer support enabled | 1 | Function |
| UC-BKP-01 | Ledger throttles or is unavailable | 1 | Function |
| UC-PRV-02 | Primary interrupted mid-scan | 1 | Function |
| UC-PRV-03 | Primary/backup disagree on block or receipt | 1 | Function |
Use cases
UC-DEP-01 — Watched TRON address; transfer in solidified block
- Actor: sync-service
- Goal: Watched TRON address; transfer in solidified block
- Source: Derived from FSD
CPG-Core_FSD_Synchonizer
Linked test cases
SYNC-001— Watched TRON address; transfer in solidified block (Function)
Representative main flow
Scan → match → deposit_detected
Expected outcome
Observation credited; VA += amount; one ledger tx
Failure
Provider error → retry; invalid VA mapping → alert, no credit
UC-IDM-01 — Prior successful credit for same reference
- Actor: sync-service
- Goal: Prior successful credit for same reference
- Source: Derived from FSD
CPG-Core_FSD_Synchonizer
Linked test cases
SYNC-001— Prior successful credit for same reference (Function)
Representative main flow
Replay scan / credit
Expected outcome
Idempotent hit; no second credit
Failure
-
UC-UX-01 — Transfer seen before finality
- Actor: sync / portal
- Goal: Transfer seen before finality
- Source: Derived from FSD
CPG-Core_FSD_Synchonizer
Linked test cases
SYNC-001— Transfer seen before finality (Function)
Representative main flow
Set ingested_confirming; do not call ledger credit
Expected outcome
UX shows confirming; withdrawable unchanged
Failure
Accidental early credit → HARD fail (test gate)
UC-PRV-01 — Running on provider A
- Actor: ops
- Goal: Running on provider A
- Source: Derived from FSD
CPG-Core_FSD_Synchonizer
Linked test cases
SYNC-001— Running on provider A (Function)
Representative main flow
Change config to provider B only; restart or hot-reload
Expected outcome
Continues from cursor; no code change
Failure
Misconfigured URL → fail closed + alert
UC-GAP-01 — Outage created block gap
- Actor: sync-service
- Goal: Outage created block gap
- Source: Derived from FSD
CPG-Core_FSD_Synchonizer
Linked test cases
SYNC-001— Outage created block gap (Function)
Representative main flow
Catch-up scan + reconcile
Expected outcome
Gap filled; credits posted once
Failure
Persistent mismatch → page ops
UC-REORG-01 — Phase 2; deposit credited; chain reorg removes tx
- Actor: sync-service
- Goal: Phase 2; deposit credited; chain reorg removes tx
- Source: Derived from FSD
CPG-Core_FSD_Synchonizer
Linked test cases
SYNC-001— Phase 2; deposit credited; chain reorg removes tx (Function)
Representative main flow
Detect reorg → ledger revert → reorged
Expected outcome
Balance reversed; audit complete; no double-credit on replacement
Failure
Revert failure → retry + freeze outbound for that VA (ops)
UC-MAP-01 — Transfer to unknown address
- Actor: sync-service
- Goal: Transfer to unknown address
- Source: Derived from FSD
CPG-Core_FSD_Synchonizer
Linked test cases
SYNC-001— Transfer to unknown address (Function)
Representative main flow
Local filter drop
Expected outcome
Status ignored or no row; no ledger call
Failure
-
UC-IDN-01 — Fixture contains logs, internal transfers, batch items, failed txs, and self-transfer
- Actor: sync-service
- Goal: Fixture contains logs, internal transfers, batch items, failed txs, and self-transfer
- Source: Derived from FSD
CPG-Core_FSD_Synchonizer
Linked test cases
SYNC-001— Fixture contains logs, internal transfers, batch items, failed txs, and self-transfer (Function)
Representative main flow
Parse and classify using mechanism matrix
Expected outcome
Stable occurrence IDs; only valid external deposits credit
Failure
Unsupported → quarantine; failed/self → no customer credit
UC-DEEP-01 — Previously final/credited EVM occurrence becomes non-canonical
- Actor: sync-service
- Goal: Previously final/credited EVM occurrence becomes non-canonical
- Source: Derived from FSD
CPG-Core_FSD_Synchonizer
Linked test cases
SYNC-001— Previously final/credited EVM occurrence becomes non-canonical (Function)
Representative main flow
Freeze scope; preserve evidence; request ledger revert
Expected outcome
Balance reversed and incident trace complete
Failure
Revert unavailable → keep freeze and retry
UC-INT-01 — TRON internal transfer support enabled
- Actor: ops/sync
- Goal: TRON internal transfer support enabled
- Source: Derived from FSD
CPG-Core_FSD_Synchonizer
Linked test cases
SYNC-001— TRON internal transfer support enabled (Function)
Representative main flow
Verify provider capability and parity
Expected outcome
Mechanism enabled only after parity pass
Failure
Missing/internal mismatch → mechanism disabled/quarantined
UC-BKP-01 — Ledger throttles or is unavailable
- Actor: sync-service
- Goal: Ledger throttles or is unavailable
- Source: Derived from FSD
CPG-Core_FSD_Synchonizer
Linked test cases
SYNC-001— Ledger throttles or is unavailable (Function)
Representative main flow
Persist tasks; stop safe cursor advancement; retry same reference
Expected outcome
Zero lost observations; one ledger credit
Failure
Queue age breach → alert, not drop
UC-PRV-02 — Primary interrupted mid-scan
- Actor: sync-service
- Goal: Primary interrupted mid-scan
- Source: Derived from FSD
CPG-Core_FSD_Synchonizer
Linked test cases
SYNC-002— Primary interrupted mid-scan (Function)
Representative main flow
Auto failover to backup
Expected outcome
No lost solidified deposits; no duplicate credits
Failure
Both down → pause + alert; catch-up later
UC-PRV-03 — Primary/backup disagree on block or receipt
- Actor: sync-service
- Goal: Primary/backup disagree on block or receipt
- Source: Derived from FSD
CPG-Core_FSD_Synchonizer
Linked test cases
SYNC-003— Primary/backup disagree on block or receipt (Function)
Representative main flow
Compare/quorum/escalate
Expected outcome
No credit until resolved; evidence retained
Failure
Timeout threshold → incident/freeze signal