diff --git a/REFACTORING-AUDIT.md b/REFACTORING-AUDIT.md index 4acfa31..7bde3f2 100644 --- a/REFACTORING-AUDIT.md +++ b/REFACTORING-AUDIT.md @@ -450,3 +450,4 @@ Migration order implied by the map: isolate shared infrastructure constructors ( - Cron retry behavior now uses `application/cron.Retry`; scheduler registration, skip/recover middleware, and job dependencies remain in `core/cronJobs`. Focused Wallet tests pass in `8e27342`. - Stellar payment stream lookup classification now uses `application/stream.IsNew`, preserving not-found and invalid empty-result behavior while keeping Horizon/database access in infrastructure. Focused Wallet tests pass in `6c3243c`. +- Cron command now uses `SetupCronRepository`, avoiding unnecessary strict service peers, availability monitor, Stellar client, profiling server, and ledger dispatcher initialization; cron jobs receive only PostgreSQL-backed repository dependencies. Focused command tests pass in `08f3225`. diff --git a/REFACTORING-TODO.md b/REFACTORING-TODO.md index 215d3b0..2656149 100644 --- a/REFACTORING-TODO.md +++ b/REFACTORING-TODO.md @@ -127,7 +127,7 @@ This is the authoritative execution tracker for the refactor. Work is performed | W007 | `STARTED` | Extract market use cases and adapters. | Agreement amount tolerance now uses `application/market`; pricing, order lifecycle, settlement, and adapter boundaries remain. | | W008 | `STARTED` | Extract alert use cases and adapters. | Alert level/source presentation now uses `application/alert`; delivery, retry, persistence, and adapter boundaries remain. | | W009 | `TODO` | Extract internal-wallet use cases and adapters. | Internal RPC contracts remain compatible. | -| W010 | `STARTED` | Separate cron and stream bootstrap from business operations. | Cron retry policy now uses `application/cron`; bootstrap dependency narrowing and stream separation remain. | +| W010 | `STARTED` | Separate cron and stream bootstrap from business operations. | Cron retry policy uses `application/cron`, and cron bootstrap now initializes only PostgreSQL; stream and remaining process composition work remain. | | W011 | `TODO` | Replace wallet bootstrap with explicit dependency composition. | All five sub-services work independently and together. | | 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. | @@ -328,4 +328,4 @@ Append one row whenever a task changes status. Existing rows are never rewritten | 2026-08-30 | W006 | `TODO` | `STARTED` | Added `application/withdrawal`, `application/deposit`, `application/transfer`, and `application/transaction`; routed IRT reconciliation, IPG conversion/settlement/payer identity, transfer validation, transaction construction/completion, balance-change display policy, deterministic wallet-lock ordering, insufficient-balance failure policy, Stellar status updates, and transaction-event support through application boundaries; focused Wallet tests pass in `a43a758`. Business failure/refund orchestration remains. | | 2026-08-30 | W007 | `TODO` | `STARTED` | Added typed `application/market` policies for agreement tolerance, available amount, raw conversion, positive order inputs, ICO publisher validation, order status codes, and market pricing calculation; market ICO/order validation and calculation delegate through compatibility mapping. Focused market tests pass in `4ea1f5a`. Order lifecycle, settlement, contract generation, and adapter extraction remain. | | 2026-08-30 | W008 | `TODO` | `STARTED` | Added `application/alert` level/source label and subject policies with focused mapping tests; alert delivery keeps existing asynchronous email/SMS retry behavior. Focused Wallet tests pass in `be29c11`. Delivery, retry, persistence, and adapter extraction remain. | -| 2026-08-30 | W010 | `TODO` | `STARTED` | Added `application/cron.Retry` and `application/stream.IsNew` policies with focused tests; cron/stream scheduler and network wiring remain at process/infrastructure boundaries. Focused Wallet tests pass in `6c3243c`. Bootstrap narrowing and stream separation remain. | +| 2026-08-30 | W010 | `TODO` | `STARTED` | Added `application/cron.Retry` and `application/stream.IsNew` policies and introduced `SetupCronRepository`, which initializes only PostgreSQL for cron jobs. Focused Wallet tests pass in `08f3225`. Stream and remaining process composition work remain. |