docs: define opaque payer token handling

This commit is contained in:
2026-08-20 13:22:11 +03:30
parent 2753162a75
commit 6e0cc0b3fd
3 changed files with 32 additions and 3 deletions

View File

@@ -154,8 +154,9 @@ Resolved: use Ent for application persistence/modeling and pgx/PostgreSQL `COPY`
Resolved: interpret timezone-naive source timestamps as `Asia/Tehran`, normalize canonical timestamps to UTC, expose ISO-8601 timestamps through APIs, and retain the immutable source/import provenance needed to reproduce the conversion. See ADR 0004.
Resolved: retain `payer_card_key` unchanged as a restricted, merchant-scoped opaque source token for internal repeat-payer analytics. Do not HMAC it, expose it, log it, export it, or send it to AI providers. Its upstream semantics remain unverified. See ADR 0005.
Remaining approval gates:
1. Whether `payer_card_key` must be retained, irreversibly transformed, or omitted after derived analytics.
2. Minimum cohort size and suppression policy for peer benchmarks.
3. Physical partitioning/materialization strategy, which must follow measured query needs rather than the logical ERD alone.
1. Minimum cohort size and suppression policy for peer benchmarks.
2. Physical partitioning/materialization strategy, which must follow measured query needs rather than the logical ERD alone.