diff --git a/REFACTORING-AUDIT.md b/REFACTORING-AUDIT.md index 663eca2..d256ff9 100644 --- a/REFACTORING-AUDIT.md +++ b/REFACTORING-AUDIT.md @@ -464,3 +464,4 @@ Migration order implied by the map: isolate shared infrastructure constructors ( ### `W011` — explicit process composition checkpoint - Alert command now uses `SetupAlertRepository`, which initializes only lazy service clients required for mail/SMS delivery and no longer starts PostgreSQL, Redis, availability, Stellar, ledger-dispatch, or profiling infrastructure. Command tests pass in `da074f9`. +- Market command now uses `SetupMarketRepository`, retaining PostgreSQL/Redis/services/availability/Stellar while skipping ledger-dispatch and profiling startup. Command and market tests pass in `0132734`. diff --git a/REFACTORING-TODO.md b/REFACTORING-TODO.md index a215dc8..74a19cd 100644 --- a/REFACTORING-TODO.md +++ b/REFACTORING-TODO.md @@ -128,7 +128,7 @@ This is the authoritative execution tracker for the refactor. Work is performed | W008 | `STARTED` | Extract alert use cases and adapters. | Alert level/source presentation now uses `application/alert`; delivery, retry, persistence, and adapter boundaries remain. | | W009 | `STARTED` | Extract internal-wallet use cases and adapters. | Lock/release balance mutation policy now uses `application/walletlock`; transaction, ledger, persistence, and RPC adapter boundaries remain. | | W010 | `STARTED` | Separate cron and stream bootstrap from business operations. | Cron and stream now have dedicated repository setup paths; cron uses PostgreSQL only and stream skips ledger-dispatcher/profiling startup. Remaining process composition work remains. | -| W011 | `STARTED` | Replace wallet bootstrap with explicit dependency composition. | Alert, cron, and stream now have dedicated setup paths; wallet/market/internal composition remains. | +| W011 | `STARTED` | Replace wallet bootstrap with explicit dependency composition. | Alert, cron, stream, and market now have dedicated setup paths; wallet/internal composition remains. | | W012 | `TODO` | Remove superseded `core/*Imp` packages and shims. | No duplicate business implementations remain. | | W013 | `DONE` | Remove redundant wallet federation creation/model. | Removed federation creation and lookup, wallet federation fields, federation persistence/repository adapters, transaction federation fields/filters, federation protobuf messages, and API documentation/routes. Wallet/Auth/API contracts regenerate and tests pass. | @@ -330,4 +330,4 @@ Append one row whenever a task changes status. Existing rows are never rewritten | 2026-08-30 | W008 | `TODO` | `STARTED` | Added `application/alert` level/source label and subject policies plus nil/incomplete-event validation; alert delivery keeps existing asynchronous email/SMS retry behavior. Focused Wallet tests pass in `b3e1dbc`. Delivery, retry, persistence, and adapter extraction remain. | | 2026-08-30 | W010 | `TODO` | `STARTED` | Added `application/cron.Retry`, `application/stream.IsNew`, stream external-deposit transaction policy, and dedicated `SetupCronRepository`/`SetupStreamRepository` paths. Focused Wallet tests pass in `db52f89`. Remaining process composition work remains. | | 2026-08-30 | W009 | `TODO` | `STARTED` | Added `application/walletlock` lock/release mutation policies with frozen/available balance tests; internal RPC retains transaction scope, ledger journaling, persistence, and error mapping. Focused Wallet tests pass in `382fd79`. Remaining internal-wallet operations stay at the service boundary. | -| 2026-08-30 | W011 | `TODO` | `STARTED` | Added `SetupAlertRepository` and switched alert bootstrap to service-only dependencies; cmd/core alert tests pass. Wallet, market, and internal composition remain. | +| 2026-08-30 | W011 | `TODO` | `STARTED` | Added `SetupAlertRepository` and `SetupMarketRepository`; alert uses service-only dependencies and market skips ledger-dispatch/profiling startup. Command/core tests pass. Wallet and internal composition remain. |