33 lines
2.3 KiB
Markdown
33 lines
2.3 KiB
Markdown
# Cleanup execution evidence
|
||
|
||
The owner authorized implementation and validated commits after plan commit `4ddffa6b`.
|
||
The [manifest](backlog/manifest.json) remains the task-state authority. No additional
|
||
agents were launched; review here is a separate self-review pass, not an independent
|
||
reviewer sign-off. Financial engine code and retained financial artifacts are unchanged.
|
||
|
||
## CL01–CL04 — Configuration, startup and commands
|
||
|
||
- CL01 replaces the mocked normalizer and success-or-error assertions with real-schema,
|
||
no-network construction checks. Existing DI fixtures now supply valid database inputs.
|
||
- CL02 shares the core database schemas, consistently applies disable options, preserves
|
||
QuestDB port aliases/credentials, and maps PostgreSQL SSL/pool/timeouts and MongoDB URI/pool
|
||
settings to client configuration. URI parsing remains driver-owned.
|
||
- CL03 retains cleanup ownership of late initialization, rolls back settled resources,
|
||
clears startup timers and tolerates cleanup/resolution failures without replacing the
|
||
original startup error. Arbitrary hung initializers cannot be forcibly cancelled;
|
||
their final cleanup stays attached until settlement.
|
||
- CL04 adds `dev:research`, aligns infrastructure aliases on Compose v2/all four stores,
|
||
removes three nonexistent command targets and makes shell failures propagate.
|
||
|
||
Validation:
|
||
|
||
- `bun test libs/core/di/test/container-builder.test.ts libs/core/di/test/di.test.ts libs/core/di/test/lifecycle.test.ts test/integration/service-startup-rollback.test.ts test/integration/questdb-configuration.test.ts` — 41 pass.
|
||
- `bun test test/integration/store-configuration.test.ts` — 5 pass.
|
||
- `bun test scripts/test/workspace.test.ts` — 8 pass / 763 assertions; includes real Turbo dry runs and a fake Docker executable, with no containers started.
|
||
- `bun run --cwd libs/core/config build`, `bun run --cwd libs/core/di build`, `bun run typecheck` — pass.
|
||
|
||
Configuration scope: core schemas retain settings used by other consumers. ServiceCache
|
||
intentionally owns DB1 and its service/global namespace; core `db`/`keyPrefix` do not override
|
||
that isolation policy. Core `ttl`, retry hints and QuestDB buffer/flush metadata are not
|
||
claims that the shared DI client supports writer/cache tuning; those adapter APIs remain
|
||
unchanged. Financial inputs, hashes and accounting were not modified.
|