docs: close P08 and O02 and record conditional no-go decisions

This commit is contained in:
Boki 2026-10-28 13:10:59 -04:00
parent 8c858b9d5c
commit 1a9f07b285
13 changed files with 323 additions and 43 deletions

View file

@ -1,8 +1,8 @@
{
"schema_version": 1,
"plan_revision": "2026-10-28.138",
"plan_revision": "2026-10-28.142",
"repository_base": "b7aeca4",
"plan_status": "scheduled_complete_conditional_work_pending",
"plan_status": "scheduled_complete_conditions_reviewed",
"execution_authorized": true,
"execution_scope": {
"authorized_by": "Owner: commit and continue with the rest of the tasks till 100%",
@ -23,7 +23,14 @@
"pending_policy_decisions": [
"Simultaneous multi-asset mark/risk semantics before multi-asset default activation",
"Conditional DSL/cache/distributed optimization go/no-go"
]
],
"conditional_extension": {
"authorized_by": "Owner: do what ever is best for all of them + resume performace",
"date": "2026-10-28",
"implemented": ["P08", "O02"],
"reviewed_not_selected": ["D04", "P03", "P05", "P06", "CL21"],
"record": "conditional_review"
}
},
"cleanup_scope": {
"requested_on": "2026-10-26",
@ -125,9 +132,9 @@
{
"id": "ADR-008",
"file": "architecture/decisions/008-performance.md",
"status": "approved_for_scheduled_measurements",
"approved_by": "Owner scheduled-completion instruction; conditional optimization gates unchanged",
"approved_on": "2026-10-24"
"status": "approved_for_measured_local_optimization",
"approved_by": "Owner resumed performance and authorized judgment on all seven conditions; P08 implemented, five optional extensions not selected.",
"approved_on": "2026-10-28"
}
],
"epics": [
@ -789,8 +796,13 @@
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": "Only after profiling demonstrates repeated identical feature work; use reviewed incremental calculations directly first.",
"release_gates": []
"blocker": "Reopen only for measured repeated identical feature work across actual consumers, preserving prefix and fit-window identity.",
"release_gates": [],
"last_review": {
"date": "2026-10-28",
"disposition": "not_selected",
"reason": "No-go for now: in the instrumented 15/252 baseline, reviewed SMA calculation took 7\u201310 ms across three sessions; copying/freezing took roughly 2.0\u20132.3 seconds. A shared feature cache does not address the measured cost."
}
},
{
"id": "S01",
@ -1805,8 +1817,13 @@
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": "Only after measured repeated dataset admission is a material sweep cost; not a prerequisite for parallel trials.",
"release_gates": []
"blocker": "Reopen with a representative durable batch profile that isolates dataset admission/transfer and a bounded lifecycle proposal.",
"release_gates": [],
"last_review": {
"date": "2026-10-28",
"disposition": "not_selected",
"reason": "No-go for now: current measurements are direct warmed sessions, not repeated durable admission profiles. Reusing resident workers would change the proven one-process/one-request cancellation and isolation lifecycle without an attributable sweep benefit."
}
},
{
"id": "P04",
@ -1854,8 +1871,13 @@
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": "Only after measured trade-detail payload/query/render cost; simple summary projections ship in R06.",
"release_gates": []
"blocker": "Reopen for a real slow detail workload, preserving complete stable-sequence export.",
"release_gates": [],
"last_review": {
"date": "2026-10-28",
"disposition": "not_selected",
"reason": "No-go for now: experiments already select compact summaries without trade/OHLC blobs; full retained exports exist. No measured detail-query/transfer/render bottleneck was supplied or established by callback measurements."
}
},
{
"id": "P06",
@ -1876,8 +1898,13 @@
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": "Owner go/no-go after representative profiling and explicit prototype budget; no fixed 20%/1.5x magic thresholds.",
"release_gates": []
"blocker": "Reopen only with representative callback-bound screening demand, a small supported subset and explicit bounded prototype budget.",
"release_gates": [],
"last_review": {
"date": "2026-10-28",
"disposition": "not_selected",
"reason": "No-go for now: one Rust financial kernel already serves TypeScript callbacks. Local state-handling optimization provides a measured gain without a second strategy representation. Current evidence does not justify the cost and restricted expressiveness of a DSL."
}
},
{
"id": "P07",
@ -1923,7 +1950,7 @@
"epic": "E7",
"priority": "P1",
"severity": "High",
"status": "deferred",
"status": "done",
"dependencies": ["S02", "P07"],
"decision_dependencies": [],
"task_file": "backlog/tasks/P08.md",
@ -1935,9 +1962,18 @@
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": "Owner explicitly stopped performance work for now (2026-10-23). Initial read-only inspection only; no application changes, profiling, benchmark runs or optimization. Resume only on owner request.",
"release_gates": []
"completed_commit": "70d173a908eadac53941cc931b1f6cd3ca4070af",
"blocker": null,
"release_gates": [],
"concrete_write_scope": [
"scripts/benchmark-research.ts",
"scripts/benchmark-sma.ts",
"scripts/test/benchmark-sma.test.ts",
"apps/stock/orchestrator/src/strategies/strategy-decision.ts",
"test/integration/strategy-state-copy.test.ts"
],
"completion_evidence": "conditional-review.md",
"integration_state": "accepted"
},
{
"id": "A01",
@ -2082,7 +2118,7 @@
"epic": "E9",
"priority": "P1",
"severity": "High",
"status": "deferred",
"status": "done",
"dependencies": ["S04"],
"decision_dependencies": [],
"task_file": "backlog/tasks/O02.md",
@ -2094,9 +2130,26 @@
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": "Optional cross-service monitoring expansion; required run diagnostics belong to W01/F07 and paper readiness to S04.",
"release_gates": []
"completed_commit": "8c858b9d5ca4675d064c4a853b0e9575a84872cb",
"blocker": null,
"release_gates": [],
"concrete_write_scope": [
"apps/stock/config/src/contracts/diagnostics.ts",
"apps/stock/orchestrator/src/routes/create-routes.ts",
"apps/stock/orchestrator/src/backtest/BacktestRunner.ts",
"apps/stock/orchestrator/src/backtest/ResearchBacktestPool.ts",
"apps/stock/web-api/src/services/monitoring.service.ts",
"apps/stock/web-api/src/routes/monitoring.routes.ts",
"apps/stock/web-api/src/routes/create-routes.ts",
"apps/stock/web-api/src/types/monitoring.types.ts",
"apps/stock/web-app/src/features/monitoring/",
"libs/core/logger/src/index.ts",
"test/integration/monitoring-readiness.test.ts",
"test/integration/monitoring-readiness-ui.test.tsx",
"libs/core/queue/src/queue.ts"
],
"completion_evidence": "conditional-review.md",
"integration_state": "accepted"
},
{
"id": "CL01",
@ -2906,11 +2959,16 @@
"assignment": null,
"branch": null,
"completed_commit": null,
"blocker": "Conditional: upcoming replay preparation change and explicit owner activation.",
"blocker": "Reopen alongside a concrete replay preparation change that benefits from a private extraction.",
"release_gates": [],
"integration_state": "not_started",
"integration_base": "700ee09c",
"completion_evidence": "orchestrator-engine-cleanup.md"
"completion_evidence": "orchestrator-engine-cleanup.md",
"last_review": {
"date": "2026-10-28",
"disposition": "not_selected",
"reason": "No-go for now: no concrete calendar/timeframe change needs a replay-preparation split. Cosmetic movement of validated financial replay adds regression exposure without delivering a current capability."
}
},
{
"id": "RP01",
@ -9871,14 +9929,18 @@
}
},
"completion_summary": {
"date": "2026-10-24",
"scheduled_complete": 45,
"scheduled_total": 45,
"date": "2026-10-28",
"scheduled_complete": 99,
"scheduled_total": 99,
"scheduled_percent": 100,
"deferred_conditional": 6,
"deferred_conditional": 5,
"merged_redirects": 4,
"implementation_commit": "25b5cbf481e195810bc123ada50ee129a1f55e27",
"scope": "All scheduled work accepted. Deferred gates, unsupported multi-asset policy, real paper/live activation and account migration remain unchanged."
"retained_total": 108,
"implementation_commits": {
"P08": "70d173a908eadac53941cc931b1f6cd3ca4070af",
"O02": "8c858b9d5ca4675d064c4a853b0e9575a84872cb"
},
"scope": "All selected work complete. All seven conditions reviewed; five optional extensions intentionally remain deferred. Performance pause superseded by explicit resumption. Financial policy and paper/live activation gates unchanged."
},
"completion_review": {
"date": "2026-10-28",
@ -9920,6 +9982,126 @@
"build_types_contracts_lint_secrets": "passed",
"native_binary_sha256": "df0ecbd5c3772d7e8aeb0226b40ae290cfaddf9d87fb3a7375f2a31c2acf05e5",
"limits": "No new browser/PostgreSQL suites, performance measurements, real-data research, paper/live activation or independent review in this documentation-only audit. RP32 retains its prior source-scoped 26-test browser gate."
},
"superseded_by": "conditional_review"
},
"conditional_review": {
"date": "2026-10-28",
"authorization": "Owner: do what ever is best for all of them + resume performace",
"scope": "Review all seven remaining conditions. Resume P08 measurement and semantics-preserving optimization; correct truthful diagnostics under O02. Other extensions require demonstrated value, not task-count completion. No paper/live activation or financial policy changes.",
"performance_pause": "Superseded by this explicit owner instruction.",
"reviewer": "Root self-review; no independent agent review claimed.",
"decisions": {
"D04": {
"disposition": "not_selected",
"reason": "No-go for now: in the instrumented 15/252 baseline, reviewed SMA calculation took 7\u201310 ms across three sessions; copying/freezing took roughly 2.0\u20132.3 seconds. A shared feature cache does not address the measured cost.",
"reopen_when": "Reopen only for measured repeated identical feature work across actual consumers, preserving prefix and fit-window identity."
},
"P03": {
"disposition": "not_selected",
"reason": "No-go for now: current measurements are direct warmed sessions, not repeated durable admission profiles. Reusing resident workers would change the proven one-process/one-request cancellation and isolation lifecycle without an attributable sweep benefit.",
"reopen_when": "Reopen with a representative durable batch profile that isolates dataset admission/transfer and a bounded lifecycle proposal."
},
"P05": {
"disposition": "not_selected",
"reason": "No-go for now: experiments already select compact summaries without trade/OHLC blobs; full retained exports exist. No measured detail-query/transfer/render bottleneck was supplied or established by callback measurements.",
"reopen_when": "Reopen for a real slow detail workload, preserving complete stable-sequence export."
},
"P06": {
"disposition": "not_selected",
"reason": "No-go for now: one Rust financial kernel already serves TypeScript callbacks. Local state-handling optimization provides a measured gain without a second strategy representation. Current evidence does not justify the cost and restricted expressiveness of a DSL.",
"reopen_when": "Reopen only with representative callback-bound screening demand, a small supported subset and explicit bounded prototype budget."
},
"CL21": {
"disposition": "not_selected",
"reason": "No-go for now: no concrete calendar/timeframe change needs a replay-preparation split. Cosmetic movement of validated financial replay adds regression exposure without delivering a current capability.",
"reopen_when": "Reopen alongside a concrete replay preparation change that benefits from a private extraction."
}
},
"evidence": "measurements/p08-state-copy.json",
"implemented": {
"P08": "70d173a908eadac53941cc931b1f6cd3ca4070af",
"O02": "8c858b9d5ca4675d064c4a853b0e9575a84872cb"
},
"status": "complete",
"remaining_deferred": ["D04", "P03", "P05", "P06", "CL21"],
"validation": {
"source_commit": "8c858b9d5ca4675d064c4a853b0e9575a84872cb",
"repository_check": {
"command": "CARGO_BUILD_JOBS=2 bun run check",
"passed": true,
"tooling": 171,
"tooling_assertions": 14966,
"utils": 43,
"calculations": 44,
"integration": 1563,
"integration_assertions": 11745,
"integration_skipped": 14,
"rust": 150,
"rust_ignored": 4,
"build_types_contracts_lint_secrets": "passed"
},
"postgres": {
"passed": 284,
"assertions": 2923,
"disposable_only": true
},
"browser_full": {
"passed": 27,
"assertions": 971
},
"browser_committed_release": {
"passed": 2,
"filtered_skips": 25,
"assertions": 16,
"scope": "Affected cancellation/failure and monitoring workflows on committed source after a same-origin production frontend rebuild."
},
"release_regressions": {
"passed": 90,
"assertions": 1383,
"native_sha256": "68f0134e166201cafd773d702c45f8d06870343a7d5e90ffb21df398c36f1cec"
},
"authored_tooling_test_strict_types": "passed via /tmp/stock-bot-p08-tsconfig.json",
"review": "Root self-review; no independent agent review claimed.",
"corrections": [
"Native subprocess tests rerun outside sandbox after IPC timeouts.",
"Browser fixture now permits the exact read-only monitoring paths; prior failure-message expectations now include actual phase.",
"One extra filtered browser invocation initially used a frontend overwritten by the normal local build; rebuilding with NODE_ENV=production and an empty VITE_API_BASE_URL resolved it without source changes.",
"Final cancellation-persistence observer cause corrected and covered by unit regression; affected browser workflows rerun against committed source."
],
"limits": [
"No storage/queue/cold-job throughput claim from direct warmed strategy measurements.",
"Full matrix single-owner timing is noisy; interleaved confirmation is retained separately.",
"No allocation counts, fresh native readiness probe, paper/live activation, real-data experiment, push or PR.",
"Five conditional extensions remain unimplemented and deferred.",
"Disposable PostgreSQL/Redis containers stopped and removed; .env untouched."
],
"logs": [
{
"path": "/tmp/stock-bot-conditional-accepted-check.log",
"sha256": "3df773d9bc099a94129d7c1d5d567bd383ed0772cf260578786f3aac8ebed724"
},
{
"path": "/tmp/stock-bot-conditional-postgres.log",
"sha256": "037a203c2923b29bd9563473154c71c1339220526c466c098a89befc98aaf86b"
},
{
"path": "/tmp/stock-bot-conditional-final-browser.log",
"sha256": "f8d6bdba5cabc5b84449f6987c86292ff7b6e7990a07c270546f999b857c4122"
},
{
"path": "/tmp/stock-bot-conditional-committed-browser-corrected.log",
"sha256": "0e5d1307f25bc53ef30dfc387e8efe9ea8fb431587d0dce9061c7cbcbdef5799"
},
{
"path": "/tmp/stock-bot-conditional-release-tests.log",
"sha256": "2ea1e355736b13b654951a4a6e76db8b182f46760a51940f4e9758a6e46b9284"
},
{
"path": "/tmp/stock-bot-conditional-authored-types.log",
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}
]
}
}
}