feat(F-179): completed feature

This commit is contained in:
chattie
2026-08-22 19:05:11 +02:00
parent abdb03b6b5
commit 8c8c71d645
11 changed files with 137 additions and 40 deletions

View File

@@ -0,0 +1,3 @@
# F-179 — Design
Persist payments as succeeded; map provider back to POS kind on replay. Lock/validate session terminal, persist source=pos with terminal/session/store, and assign order customer only when selected.

View File

@@ -0,0 +1,3 @@
# F-179
TPV sales complete successfully and retries remain idempotent.

View File

@@ -0,0 +1,3 @@
# F-179
Cause: payments_transactions status CHECK rejects `COMPLETED`. POS now writes `succeeded`, validates session-terminal ownership, stores source/terminal/session/store/customer on the order, and correctly maps idempotent replay payment/item rows. Typecheck and POS tests 8/8 pass. Runtime sale and replay both HTTP 201 with the same order `0ea1004d-1fd5-41c6-be7c-c4910c88f481`.

View File

@@ -0,0 +1 @@
{"feature_id":"F-179","agent":"leader","stage":"close","verdict":"APPROVED","checks":[{"item":"all gates/runtime/verify","ok":true}],"issues":[]}

View File

@@ -0,0 +1 @@
{"feature_id":"F-179","agent":"qa","stage":"qa_gate","verdict":"APPROVED","checks":[{"item":"sale HTTP 201","ok":true},{"item":"idempotent replay HTTP 201 same order","ok":true},{"item":"typecheck/tests","ok":true}],"issues":[]}

View File

@@ -0,0 +1 @@
{"feature_id":"F-179","agent":"reviewer","stage":"review_gate","verdict":"APPROVED","checks":[{"item":"payment status schema alignment","ok":true},{"item":"POS order snapshots","ok":true},{"item":"idempotent replay","ok":true}],"issues":[]}

View File

@@ -0,0 +1 @@
{"feature_id":"F-179","agent":"security","stage":"security_gate","verdict":"APPROVED","checks":[{"item":"terminal-session ownership validation","ok":true},{"item":"transaction rollback retained","ok":true}],"issues":[]}