From 310c063d38255412ed7a3d4f71021c139011890e Mon Sep 17 00:00:00 2001 From: Jakub Zych Date: Wed, 14 Oct 2026 17:54:53 +0200 Subject: [PATCH] docs(18.1-03): record plan complete in state and roadmap --- .planning/ROADMAP.md | 6 +++--- .planning/STATE.md | 19 ++++++++++++------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.planning/ROADMAP.md b/.planning/ROADMAP.md index a0e21ae..61d5f3d 100644 --- a/.planning/ROADMAP.md +++ b/.planning/ROADMAP.md @@ -1156,7 +1156,7 @@ Plans: 4. A host test proves checkout, activation, `invoice.paid`, `past_due` with its grace period, cancel and duplicate-event idempotency against a Stripe fake. 5. The new code has unit tests, delivered in the phase's last plan. -**Plans:** 2/6 plans executed +**Plans:** 3/6 plans executed Plans: **Wave 1** @@ -1164,7 +1164,7 @@ Plans: - [x] 18.1-02-PLAN.md — sm-paymentgatewaysubscriptions-plugin core tracer (new repo): baseline gate (D-04/D-16), models and checks, contracts and build-time registries, six events, gateway-neutral Apply and claim, `user` subscribable, service API; remote and push with go-ahead **Wave 2** *(blocked on Wave 1 completion)* -- [ ] 18.1-03-PLAN.md — sm-pgstripe-plugin: subscription secret columns and import target (D-18), plugin `golem15.pgstripesubscriptions` (webhook contract gate, gateway with plan sync from `d00f850`, both webhook URLs, claim-first River job, app-tag config), `TestHostSubscriptionFlow` +- [x] 18.1-03-PLAN.md — sm-pgstripe-plugin: subscription secret columns and import target (D-18), plugin `golem15.pgstripesubscriptions` (webhook contract gate, gateway with plan sync from `d00f850`, both webhook URLs, claim-first River job, app-tag config), `TestHostSubscriptionFlow` - [ ] 18.1-04-PLAN.md — sm-paymentgatewaysubscriptions-plugin admin (plans with taglist, flat reorder and sync actions; subscriptions list and preview), permissions, EN/PL, customer API after its contract gate (D-13) **Wave 3** *(blocked on 18.1-04)* @@ -1364,7 +1364,7 @@ Phases execute in numeric order: 1 → 2 → 3 → 4 → 5 → 6 → 7 → 8 → | 16.3. Backend admin personal API tokens with scopes (INSERTED) | 4/4 | Complete | 2026-10-12 | | 17. Blog companions | 6/6 | Complete | 2026-10-13 | | 18. Payment Gateway | 8/8 | Complete | 2026-10-14 | -| 18.1. Payment Gateway Subscriptions | 2/6 | In Progress| | +| 18.1. Payment Gateway Subscriptions | 3/6 | In Progress| | | 19. Chat and ChatChannels | 0/TBD | Not started | - | | 19.1. Chat satellites | 0/TBD | Not started | - | | 19.2. Chat polish against WavePath clients | 0/TBD | Not started | - | diff --git a/.planning/STATE.md b/.planning/STATE.md index 343d045..6983f64 100644 --- a/.planning/STATE.md +++ b/.planning/STATE.md @@ -4,16 +4,16 @@ milestone: v1.0 current_phase: "18.1" current_phase_name: Payment Gateway Subscriptions (INSERTED) status: executing -stopped_at: Completed 18.1-02-PLAN.md -last_updated: "2026-10-14T15:28:01.931Z" +stopped_at: Completed 18.1-03-PLAN.md +last_updated: "2026-10-14T15:54:33.368Z" last_activity: 2026-10-14 last_activity_desc: Phase 18.1 execution started -state_head: 577f712b0a53892675919ae7225b5059d37d0d0e +state_head: 7b679a9cf3ed781b95ac194075c765f833614c26 progress: total_phases: 40 completed_phases: 31 total_plans: 182 - completed_plans: 178 + completed_plans: 179 gsd_state_version: "1.0" milestone_name: milestone --- @@ -30,7 +30,7 @@ See: .planning/PROJECT.md (updated 2026-10-12) ## Current Position Phase: 18.1 (Payment Gateway Subscriptions (INSERTED)) — EXECUTING -Plan: 3 of 6 +Plan: 4 of 6 Status: Ready to execute Last activity: 2026-10-14 — Phase 18.1 execution started @@ -235,6 +235,7 @@ Progress: [████░░░░░░] 44% | Phase 18 P08 | 20min | 4 tasks | 7 files | | Phase 18.1 P01 | 31min | 5 tasks | 37 files | | Phase 18.1 P02 | 45min | 5 tasks | 30 files | +| Phase 18.1 P03 | 21 min | 4 tasks | 27 files | ## Accumulated Context @@ -787,6 +788,10 @@ Recent decisions affecting current work: - [Phase 18.1]: 18.1-02: baseline JSON columns (stripe_prices, currency_prices, features) are JSONB (human: baseline-jsonb); lagoon.Jsonable works unchanged - [Phase 18.1]: 18.1-02: pgsub gateways never write the DB; the service stores the customer id in its own short transaction and writes cancel_at_period_end after a successful cancel at period end - [Phase 18.1]: 18.1-02: sm-paymentgatewaysubscriptions-plugin created with tea and main pushed at aad4647 (human: create-and-push) +- [Phase 18.1]: 18.1-03: subscription webhook answers keep PHP plain-text bodies (reply php-plain-text), text/plain without trailing newline +- [Phase 18.1]: 18.1-03: Stripe plan sync looks prices up with Prices List (lookup_keys, active) instead of PHP Prices Search +- [Phase 18.1]: 18.1-03: golem15.pgstripesubscriptions is its own plugin in sm-pgstripe-plugin/subscriptions; the root package never imports it (payments-only builds link no pgsub) +- [Phase 18.1]: 18.1-03: pgstripe:import-winter --webhook-secret-target defaults to payments (Phase 18 mapping); ReadWinterSettingsFor is additive ### Pending Todos @@ -865,6 +870,6 @@ Items acknowledged and carried forward from previous milestone close: ## Session Continuity -Last session: 2026-10-14T15:28:01.166Z -Stopped at: Completed 18.1-02-PLAN.md +Last session: 2026-10-14T15:54:32.579Z +Stopped at: Completed 18.1-03-PLAN.md Resume file: None