docs: schedule whole-application architecture cleanup (CL22-CL35)

This commit is contained in:
Boki 2026-10-28 13:41:55 -04:00
parent 1a9f07b285
commit ff590cab60
17 changed files with 588 additions and 2 deletions

View file

@ -0,0 +1,20 @@
# CL22 — Own queue transports without deleting pending payloads
Parent: E13. Priority: P1. Scheduling: [manifest](../manifest.json).
## Scope and acceptance
Shutdown preserves pending payloads, opens batch caches lazily, closes all owned handles once, and creates no observer workers.
Affected modules: libs/core/queue/src/queue-manager.ts. Root reserves actual files before delegation.
Dependencies: None.
## Verification
Queue lifecycle/cache ownership regressions; disposable Redis payload survival. Focused review/tests precede the task commit; final combined build/types/lint/integration/PostgreSQL/browser gates follow. Preserve financial semantics, retained data/results, recovery, reviewed calculations and historical readers.
## Exclusions
No new service/framework, financial simulator, real trading activation, external research execution, push/PR or .env changes. D04/P03/P05/P06/CL21 remain deferred. Root owns shared outputs, task state and commits; agents own disjoint files in the integration worktree.

View file

@ -0,0 +1,20 @@
# CL23 — Reject retired backtest creation before persistence
Parent: E13. Priority: P1. Scheduling: [manifest](../manifest.json).
## Scope and acceptance
Retired creates write nothing; catalog validation and historical reads remain compatible; obsolete auto-start cannot hide failure.
Affected modules: apps/stock/web-api/src/services/backtest.service.ts; routes/backtest.routes.ts; services/backtests/templates.ts. Root reserves actual files before delegation.
Dependencies: None.
## Verification
Retired API/catalog regressions; v2 save/submit and retained readers. Focused review/tests precede the task commit; final combined build/types/lint/integration/PostgreSQL/browser gates follow. Preserve financial semantics, retained data/results, recovery, reviewed calculations and historical readers.
## Exclusions
No new service/framework, financial simulator, real trading activation, external research execution, push/PR or .env changes. D04/P03/P05/P06/CL21 remain deferred. Root owns shared outputs, task state and commits; agents own disjoint files in the integration worktree.

View file

@ -0,0 +1,20 @@
# CL24 — Remove prototype dashboard from normal navigation
Parent: E13. Priority: P1. Scheduling: [manifest](../manifest.json).
## Scope and acceptance
Default and old dashboard URLs lead to existing backtests; normal navigation has no random portfolio/fabricated summary.
Affected modules: apps/stock/web-app/src/app/App.tsx; features/dashboard; lib/constants.ts. Root reserves actual files before delegation.
Dependencies: None.
## Verification
Navigation/render regression and final browser workflows. Focused review/tests precede the task commit; final combined build/types/lint/integration/PostgreSQL/browser gates follow. Preserve financial semantics, retained data/results, recovery, reviewed calculations and historical readers.
## Exclusions
No new service/framework, financial simulator, real trading activation, external research execution, push/PR or .env changes. D04/P03/P05/P06/CL21 remain deferred. Root owns shared outputs, task state and commits; agents own disjoint files in the integration worktree.

View file

@ -0,0 +1,20 @@
# CL25 — Share validated product response contracts
Parent: E13. Priority: P1. Scheduling: [manifest](../manifest.json).
## Scope and acceptance
Shared run/template/catalog/research wire schemas; consistent current date; compatible clients reuse requestJson without automatic write retry.
Affected modules: apps/stock/config/src/contracts; web-api/services/backtests; web-app/features/*/services. Root reserves actual files before delegation.
Dependencies: None.
## Verification
Response roundtrips; malformed/wrong identity/abort/lost acknowledgement; types and browser. Focused review/tests precede the task commit; final combined build/types/lint/integration/PostgreSQL/browser gates follow. Preserve financial semantics, retained data/results, recovery, reviewed calculations and historical readers.
## Exclusions
No new service/framework, financial simulator, real trading activation, external research execution, push/PR or .env changes. D04/P03/P05/P06/CL21 remain deferred. Root owns shared outputs, task state and commits; agents own disjoint files in the integration worktree.

View file

@ -0,0 +1,20 @@
# CL26 — Replace private application imports with explicit shared modules
Parent: E13. Priority: P1. Scheduling: [manifest](../manifest.json).
## Scope and acceptance
API imports no orchestrator private source; metadata verification cannot execute code; artifact inspection resolves lazily; build graph tracks shared inputs.
Affected modules: libs/research; apps/stock/config; web-api; orchestrator; scripts/test/architecture.test.ts. Root reserves actual files before delegation.
Dependencies: None.
## Verification
Import/Turbo graph; dataset/candidate/paper admission; artifact identity; browser-safe contracts. Focused review/tests precede the task commit; final combined build/types/lint/integration/PostgreSQL/browser gates follow. Preserve financial semantics, retained data/results, recovery, reviewed calculations and historical readers.
## Exclusions
No new service/framework, financial simulator, real trading activation, external research execution, push/PR or .env changes. D04/P03/P05/P06/CL21 remain deferred. Root owns shared outputs, task state and commits; agents own disjoint files in the integration worktree.

View file

@ -0,0 +1,20 @@
# CL27 — Initialize enabled ingestion handlers once per container
Parent: E13. Priority: P1. Scheduling: [manifest](../manifest.json).
## Scope and acceptance
Await container-owned registries; initialize only enabled executing instances; no async constructor fallbacks or half-initialized handlers.
Affected modules: apps/stock/data-ingestion/src/handlers; types.ts; libs/core/di/src/scanner. Root reserves actual files before delegation.
Dependencies: None.
## Verification
Two-container isolation, disabled providers, failure/order, instance identity, schedules. Focused review/tests precede the task commit; final combined build/types/lint/integration/PostgreSQL/browser gates follow. Preserve financial semantics, retained data/results, recovery, reviewed calculations and historical readers.
## Exclusions
No new service/framework, financial simulator, real trading activation, external research execution, push/PR or .env changes. D04/P03/P05/P06/CL21 remain deferred. Root owns shared outputs, task state and commits; agents own disjoint files in the integration worktree.

View file

@ -0,0 +1,20 @@
# CL28 — Compose research services with explicit collaborators
Parent: E13. Priority: P2. Scheduling: [manifest](../manifest.json).
## Scope and acceptance
Compose focused collaborators once; no recursive full service graphs; caller-owned transactions.
Affected modules: apps/stock/web-api/src/services; routes. Root reserves actual files before delegation.
Dependencies: CL26.
## Verification
Service/API and PostgreSQL research/validation tests. Focused review/tests precede the task commit; final combined build/types/lint/integration/PostgreSQL/browser gates follow. Preserve financial semantics, retained data/results, recovery, reviewed calculations and historical readers.
## Exclusions
No new service/framework, financial simulator, real trading activation, external research execution, push/PR or .env changes. D04/P03/P05/P06/CL21 remain deferred. Root owns shared outputs, task state and commits; agents own disjoint files in the integration worktree.

View file

@ -0,0 +1,20 @@
# CL29 — Share transactional experiment run and dispatch insertion
Parent: E13. Priority: P2. Scheduling: [manifest](../manifest.json).
## Scope and acceptance
One private insertion helper for two experiment loops; explicit existing transaction; locking, quotas, receipts and holdouts remain with caller.
Affected modules: web-api/services/experiments.service.ts; chronological-validation.service.ts. Root reserves actual files before delegation.
Dependencies: CL28.
## Verification
PostgreSQL duplicate keys, numbering, rollback, holdout isolation. Focused review/tests precede the task commit; final combined build/types/lint/integration/PostgreSQL/browser gates follow. Preserve financial semantics, retained data/results, recovery, reviewed calculations and historical readers.
## Exclusions
No new service/framework, financial simulator, real trading activation, external research execution, push/PR or .env changes. D04/P03/P05/P06/CL21 remain deferred. Root owns shared outputs, task state and commits; agents own disjoint files in the integration worktree.

View file

@ -0,0 +1,20 @@
# CL30 — Separate research UI workflow state from rendering
Parent: E13. Priority: P2. Scheduling: [manifest](../manifest.json).
## Scope and acceptance
Feature-local workflow hooks and pure form/ack helpers; neutral shared dirty/style utilities; no universal mutation framework.
Affected modules: web-app/features/backtest/components/CanonicalSetup.tsx; ResearchEntry.tsx; SaveFindingDialog.tsx; shared hooks/styles. Root reserves actual files before delegation.
Dependencies: CL25.
## Verification
Late response, dirty draft, acknowledgement, double-submit, archive/finding regressions; browser. Focused review/tests precede the task commit; final combined build/types/lint/integration/PostgreSQL/browser gates follow. Preserve financial semantics, retained data/results, recovery, reviewed calculations and historical readers.
## Exclusions
No new service/framework, financial simulator, real trading activation, external research execution, push/PR or .env changes. D04/P03/P05/P06/CL21 remain deferred. Root owns shared outputs, task state and commits; agents own disjoint files in the integration worktree.

View file

@ -0,0 +1,20 @@
# CL31 — Publish a stable strategy authoring contract
Parent: E13. Priority: P2. Scheduling: [manifest](../manifest.json).
## Scope and acceptance
Public type-only authoring subpath; compatibility re-export; private controllers/native handles remain private.
Affected modules: libs/research; orchestrator/contracts/canonical-strategy.ts; examples; packaging tests. Root reserves actual files before delegation.
Dependencies: CL26.
## Verification
Standalone example compilation; packaging; canonical strategy and state regressions. Focused review/tests precede the task commit; final combined build/types/lint/integration/PostgreSQL/browser gates follow. Preserve financial semantics, retained data/results, recovery, reviewed calculations and historical readers.
## Exclusions
No new service/framework, financial simulator, real trading activation, external research execution, push/PR or .env changes. D04/P03/P05/P06/CL21 remain deferred. Root owns shared outputs, task state and commits; agents own disjoint files in the integration worktree.

View file

@ -0,0 +1,20 @@
# CL32 — Separate paper safety enforcement from readiness projection
Parent: E13. Priority: P2. Scheduling: [manifest](../manifest.json).
## Scope and acceptance
Pure readiness projection distinct from explicitly named expiry enforcement; preserve current latches/transactions and document accurately.
Affected modules: orchestrator/paper/CanonicalPaperRuntime.ts; routes/create-routes.ts. Root reserves actual files before delegation.
Dependencies: None.
## Verification
Stale active/fresh inactive, storage failure/rollback, stale execution refusal; paper/monitoring regressions. Focused review/tests precede the task commit; final combined build/types/lint/integration/PostgreSQL/browser gates follow. Preserve financial semantics, retained data/results, recovery, reviewed calculations and historical readers.
## Exclusions
No new service/framework, financial simulator, real trading activation, external research execution, push/PR or .env changes. D04/P03/P05/P06/CL21 remain deferred. Root owns shared outputs, task state and commits; agents own disjoint files in the integration worktree.

View file

@ -0,0 +1,20 @@
# CL33 — Isolate legacy repository writers from production capabilities
Parent: E13. Priority: P2. Scheduling: [manifest](../manifest.json).
## Scope and acceptance
Canonical concrete repository exposes supported writes only; isolated compatibility writers retain shared fencing; historical readers preserved.
Affected modules: orchestrator/backtest/PostgresBacktestRunRepository.ts; run-repository.ts; types.ts; legacy fixtures. Root reserves actual files before delegation.
Dependencies: None.
## Verification
Canonical/legacy PostgreSQL durable/recovery tests; production import checks. Focused review/tests precede the task commit; final combined build/types/lint/integration/PostgreSQL/browser gates follow. Preserve financial semantics, retained data/results, recovery, reviewed calculations and historical readers.
## Exclusions
No new service/framework, financial simulator, real trading activation, external research execution, push/PR or .env changes. D04/P03/P05/P06/CL21 remain deferred. Root owns shared outputs, task state and commits; agents own disjoint files in the integration worktree.

View file

@ -0,0 +1,20 @@
# CL34 — Normalize provider symbols and remove unused scaffolding
Parent: E13. Priority: P2. Scheduling: [manifest](../manifest.json).
## Scope and acceptance
Pure typed symbol adapters; preserve verified mappings; remove no-op pool configuration and unused QM wrappers after import inventory.
Affected modules: data-pipeline/repositories/PipelineSyncRepository.ts; symbols operations; container-setup.ts; ingestion/qm/shared. Root reserves actual files before delegation.
Dependencies: None.
## Verification
Provider variant fixtures; PostgreSQL pipeline mapping/safety; types/imports. Focused review/tests precede the task commit; final combined build/types/lint/integration/PostgreSQL/browser gates follow. Preserve financial semantics, retained data/results, recovery, reviewed calculations and historical readers.
## Exclusions
No new service/framework, financial simulator, real trading activation, external research execution, push/PR or .env changes. D04/P03/P05/P06/CL21 remain deferred. Root owns shared outputs, task state and commits; agents own disjoint files in the integration worktree.

View file

@ -0,0 +1,20 @@
# CL35 — Make optional Python analytics composition honest and testable
Parent: E13. Priority: P2. Scheduling: [manifest](../manifest.json).
## Scope and acceptance
Actual app imports without endpoint/app cycle; lazy optional dependencies and observed capability health; honest unavailable endpoints.
Affected modules: apps/stock/analytics/src/api; apps/stock/analytics/test. Root reserves actual files before delegation.
Dependencies: None.
## Verification
Actual app import/startup and existing analytics API tests; missing dependency diagnostic. Focused review/tests precede the task commit; final combined build/types/lint/integration/PostgreSQL/browser gates follow. Preserve financial semantics, retained data/results, recovery, reviewed calculations and historical readers.
## Exclusions
No new service/framework, financial simulator, real trading activation, external research execution, push/PR or .env changes. D04/P03/P05/P06/CL21 remain deferred. Root owns shared outputs, task state and commits; agents own disjoint files in the integration worktree.