fix(core): own cache transports and accept cleanup reviews

This commit is contained in:
Boki 2026-10-26 23:57:39 -04:00
parent bd9332b2f6
commit b4ac6460ef
24 changed files with 504 additions and 97 deletions

View file

@ -72,6 +72,18 @@ The stored-source adapter currently accepts **one raw EOD intraday series at `1m
| **QuestDB** | An existing time-series adapter and historical storage route. The current web API, ingestion and pipeline entrypoints explicitly disable it in their container composition. Do not add it to the required retained-dataset research path just because the adapter exists. |
| **Local build artifacts** | Native binary, worker bundle and retained strategy package identities are verified before execution. They supply executable code; they are not another account database. See [canonical-build.ts](../../apps/stock/orchestrator/src/backtest/canonical-build.ts). |
DI owns each service/global/proxy cache transport and closes only that container's connections.
Their key prefixes and cache DB1 remain unchanged; queue data uses DB0 and each QueueManager
owns its batch-cache transports. Direct shared-cache factory callers retain shared ownership.
`database.dragonfly.ttl` sets the service/global default cache TTL; `keyPrefix` is a deprecated
DI compatibility input and produces a diagnostic when set because service namespaces are fixed.
`database.dragonfly.maxRetries` maps to cache/rate-limiter `maxRetriesPerRequest`, and
`retryDelay` sets the fixed Redis reconnect delay in milliseconds. BullMQ workers deliberately
keep unlimited per-request retries; producers keep their fail-fast request policy.
QuestDB `bufferSize` and `flushInterval` are deprecated compatibility settings with no effect:
the client does not run a background buffered writer. Nondefault values produce a diagnostic;
explicit Influx writer operation options remain the supported batching interface.
## What the shared libraries are for
| Library | Why it exists |