Phase 24: persist residual in-memory stores — cen/freezone/mojaloop/temporal-query - #72
Merged
Merged
Conversation
…emporal-query - cen-service: alertStore map -> cen_alerts (0077), fail-closed pgx/v5 - freezone-service: zoneStore/goodsStore maps -> free_zones + freezone_goods (0078), transactional capacity handling - mojaloop-gateway: becomes writer of existing mojaloop_payments (0079 additive columns); write-through persistence of the full PaymentRecord lifecycle; quote/transfer awaiters documented in-memory (MEDIUM) - temporal-query-service: deleted fabricated init() seed (demo workflows); reads real temporal_workflow_runs projection via pgx (0080 additive); fail-closed; adds missing go.mod/go.sum - journal entries idx 77-80; schema blocks in phase24-schema-blocks.md (temporary, for lead merge) - all four services: go mod tidy + go build ./... from clean module cache, pgx v5.9.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 24 — residual in-memory business stores → PostgreSQL (pgx/v5, fail-closed)
alertStoremapcen_alertstablezoneStore/goodsStoremapsfree_zones+freezone_goods(transactional capacity)paymentsmap onlymojaloop_payments; write-through snapshots of full PaymentRecord lifecycleworkflowStore+ fabricated init() seed (deleted)temporal_workflow_runsprojectionquoteAwaiters/transferAwaitersstay in-memory (documented MEDIUM — callback waiters, not business data).freezone_goodschosen over reusingfree_zone_operations(that table models approval ops, not inventory/duty/transfer state).go mod tidy+go build ./...from a clean module cache pass for all four services.phase24-schema-blocks.md(repo root, temporary) contains the pgTable blocks for lead to merge into schema.ts; journal idx 77–80 appended.