fix: deliver validated AI insight responses

This commit is contained in:
2026-08-22 15:47:38 +08:00
parent ca55c2fb3d
commit 3fba4261ee
68 changed files with 6870 additions and 493 deletions

View File

@@ -0,0 +1,3 @@
# ADR 0017: Keep growth-coach decisions deterministic
AvalAI may rank and explain actions and select only an allowlisted metric, direction, and action level. Go locks baselines, targets, periods, state transitions, completion, and difficulty proposals. AI cannot mutate product state. Provider storage is disabled and request memory is reconstructed from persisted merchant state. Profile text is untrusted prompt data. Raw payments, payer keys, and secrets are excluded.

View File

@@ -0,0 +1,3 @@
# ADR 0018: Evaluate coach progress from versioned payment watermarks
Payment ingestion publishes a version identifier through `PaymentUpdateListener`. The current CSV importer uses its source checksum; future webhook/API adapters use the same boundary. Metric evaluation snapshots are unique per action and watermark. Static datasets remain static in the UI and never create simulated progress.