docs(18-02): complete payment gateway domain core plan

This commit is contained in:
2026-10-13 13:20:20 +02:00
parent a22bd8a934
commit 49fef6c35a
3 changed files with 290 additions and 10 deletions

View File

@@ -4,16 +4,16 @@ milestone: v1.0
current_phase: 18
current_phase_name: Payment Gateway
status: executing
stopped_at: Completed 18-01-PLAN.md
last_updated: "2026-10-13T09:49:54.928Z"
stopped_at: Completed 18-02-PLAN.md
last_updated: "2026-10-13T11:20:09.050Z"
last_activity: 2026-10-13
last_activity_desc: Phase 18 execution started
state_head: 1e841b4281c0e4280ae5af2f5fed338242f0f7d6
state_head: a22bd8a934f9b91820e75a95ce0b8a71a2c460b1
progress:
total_phases: 40
completed_phases: 14
total_plans: 175
completed_plans: 169
completed_plans: 170
gsd_state_version: "1.0"
milestone_name: milestone
---
@@ -30,7 +30,7 @@ See: .planning/PROJECT.md (updated 2026-10-12)
## Current Position
Phase: 18 (Payment Gateway) — EXECUTING
Plan: 2 of 7
Plan: 3 of 7
Status: Ready to execute
Last activity: 2026-10-13 — Phase 18 execution started
@@ -226,6 +226,7 @@ Progress: [████░░░░░░] 44%
| Phase 17 P05 | 93min | 5 tasks | 103 files |
| Phase 17 P06 | 53 min | 4 tasks | 50 files |
| Phase 18 P01 | 43min | 4 tasks | 59 files |
| Phase 18 P02 | 75min | 4 tasks | 84 files |
## Accumulated Context
@@ -747,6 +748,9 @@ Recent decisions affecting current work:
- [Phase 18]: Phase 18 plan 01 release gate: framework tag v0.1.25 held until the phase gate after plan 07 (human reply: hold); nothing pushed or tagged, plans 02 to 06 build against the checkout through go.work replace — One tag for the whole phase with the unit tests of plan 07 included; the plugin plans use go.work replace and need no published version, so holding costs only a later bump
- [Phase 18]: Money is a decimal string on the wire and in the SPA (never a float, never rounded or truncated); MoneyField emits the raw compact text for a malformed or too-precise draft so the server 422 stays the gate — D-07 and D-10 forbid rounding and truncation; emitting the last valid prefix on a bad draft would let Save write a truncated amount
- [Phase 18]: Settings secrets are write-only: the GET omits the value and reports meta.secrets.<field> as stored, env or empty; on PUT an absent key or empty string keeps the stored value and JSON null clears it; meta is omitted when there is nothing to report so existing payloads stay byte-identical — The value must never leave the server (D-13, T-18-03); omitempty on meta and danger keeps the Phase 10 conformance fixtures and the PHP-shaped payloads unchanged
- [Phase 18]: 18-02: cart/details v2 row format is v2-research (long keys, top-level v:2); legacy JMS rows decoded in place, never rewritten
- [Phase 18]: 18-02: notification route verifies (VerifyNotification on the capped raw body) before any database lookup; operators.PaymentContext carries Tx for in-transaction transitions
- [Phase 18]: 18-02: NBP uses Table A of the day before with a 5-day fallback (PHP semantics); Fixer keeps the PHP endpoint with optional fixer_access_key
### Pending Todos
@@ -825,6 +829,6 @@ Items acknowledged and carried forward from previous milestone close:
## Session Continuity
Last session: 2026-10-13T09:49:33.284Z
Stopped at: Completed 18-01-PLAN.md
Last session: 2026-10-13T11:20:08.174Z
Stopped at: Completed 18-02-PLAN.md
Resume file: None