test(research): measure experiment tables at supported limits

This commit is contained in:
Boki 2026-10-24 16:14:18 -04:00
parent 0c6aec4dc6
commit ab08db82fd
7 changed files with 1344 additions and 30 deletions

View file

@ -1,8 +1,8 @@
{
"schema_version": 1,
"plan_revision": "2026-10-24.73",
"plan_revision": "2026-10-24.74",
"repository_base": "b7aeca4",
"plan_status": "thirty_sixth_wave_validated_awaiting_commit",
"plan_status": "scheduled_backlog_completion_in_progress",
"execution_authorized": true,
"execution_scope": {
"authorized_by": "User: how far in backlog, commit and continue; wave35 accepted and committed 366bee810b8c1881172fe5553a1a61a2242ffbe5",
@ -967,7 +967,7 @@
"epic": "E4",
"priority": "P2",
"severity": "Medium",
"status": "blocked",
"status": "in_progress",
"dependencies": ["S03", "S04", "R05"],
"decision_dependencies": [],
"task_file": "backlog/tasks/S06.md",
@ -976,12 +976,13 @@
"specialization": "TypeScript trading infrastructure",
"write_locks": ["runtime-composition", "ts-execution-model"],
"parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.",
"assignment": null,
"assignment": "/root/r04_review",
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": null,
"release_gates": []
"blocker": "Integrated after R05 canonical single-asset cutover; shared owner preserves history and inventories callers before removal.",
"release_gates": [],
"worktree": "/tmp/stock-bot-wave37.v0zgbc/cutover"
},
{
"id": "W01",
@ -1295,7 +1296,7 @@
"specialization": "Full-stack research product",
"write_locks": ["result-contract", "web-backtest-service", "web-backtest-detail"],
"parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.",
"assignment": "/root",
"assignment": "/root/r04_review",
"branch": null,
"pull_request": null,
"completed_commit": null,
@ -1303,9 +1304,9 @@
"release_gates": [
"Explicit owner disposition of the simultaneous multi-asset mark/risk policy before canonical default activation"
],
"integration_state": "partial_validated_uncommitted",
"integration_state": "cutover_in_progress",
"integration_base": "366bee810b8c1881172fe5553a1a61a2242ffbe5",
"worktree": "/home/boki/repos/stock-bot",
"worktree": "/tmp/stock-bot-wave37.v0zgbc/cutover",
"implementation_slices": [
{
"owner": "/root/r12_backend",
@ -1325,7 +1326,7 @@
"reviewed_by": "/root/r04_review",
"verification_reference": "ROADMAP.md#thirty-sixth-wave-handoff--2026-10-24",
"review_notes": "Independent exact-source review and final repository/PostgreSQL/Chromium gates passed. Supported stored EOD source preparation materializes and retains before canonical admission; former in-run preparation proposal explicitly superseded. R05 remains partial for broader cutover/default gates; S06 is not unblocked.",
"partial_commit": "366bee810b8c1881172fe5553a1a61a2242ffbe5",
"partial_commit": "0c6aec4",
"execution_component": "Explicit stored EOD intraday metadata + raw bars materialized once before existing content retention and canonical admission",
"component_exclusions": [
"No default/multiasset/candidate/AI/paper/live activation, new run kind, SQL/runner mutation, source-query receipt or scheduler.",
@ -1390,7 +1391,7 @@
"epic": "E6",
"priority": "P1",
"severity": "High",
"status": "in_progress",
"status": "done",
"dependencies": ["R06"],
"decision_dependencies": ["ADR-006"],
"task_file": "backlog/tasks/R07.md",
@ -1399,21 +1400,21 @@
"specialization": "Full-stack research product",
"write_locks": ["web-experiments"],
"parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.",
"assignment": "/root",
"assignment": "/root/r12_frontend",
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": null,
"release_gates": ["W04"],
"integration_state": "partial_validated_committed",
"integration_state": "validated_uncommitted",
"integration_base": "397cd0e1603b7ccd01bf80c9ff3930ba2a1b9963",
"worktree": "/home/boki/repos/stock-bot",
"worktree": "/tmp/stock-bot-wave37.v0zgbc/table",
"execution_component": "Read-only cross-experiment comparison with explicit reference and retained input compatibility",
"component_exclusions": ["Large-table performance measurements remain paused"],
"component_readiness": "Accepted functional sweep/comparison/retry UI committed46a4f13. Only paused/unrun large-table measurement remains outstanding; accepted component satisfies R09 functional dependency.",
"reviewed_by": "/root/r04_review",
"verification_reference": "ROADMAP.md#thirty-third-wave-handoff--2026-10-24",
"review_notes": "Final exact source snapshots accepted. Full repository, PostgreSQL/Redis, Chromium and authored types/lint/format pass. Matching retained inputs is not financial/statistical equivalence; no performance measurement claimed.",
"component_exclusions": [],
"component_readiness": "Functional sweep/retry/comparison components plus required production UI table measurement accepted.",
"reviewed_by": "/root",
"verification_reference": "r07_table_validation",
"review_notes": "Root reviewed and integrated exact two-file measurement harness; source hashes verified and 8/495 harness tests pass. Author production Chromium matrix verifies every row across20 samples. No virtualization is justified at current100-trial limits. Historical functional checks remain recorded under wave33.",
"implementation_slices": [
{
"owner": "/root/r12_backend",
@ -1884,7 +1885,7 @@
"epic": "E8",
"priority": "P1",
"severity": "High",
"status": "blocked",
"status": "in_progress",
"dependencies": ["R06", "O01"],
"decision_dependencies": ["ADR-007"],
"task_file": "backlog/tasks/A01.md",
@ -1893,12 +1894,13 @@
"specialization": "Backend security/durable scheduling",
"write_locks": ["auth-contract", "experiment-api"],
"parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.",
"assignment": null,
"assignment": "/root/r12_backend",
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": null,
"release_gates": []
"release_gates": [],
"worktree": "/tmp/stock-bot-wave37.v0zgbc/principals"
},
{
"id": "A02",
@ -7598,7 +7600,7 @@
"completed_commit": "366bee810b8c1881172fe5553a1a61a2242ffbe5"
},
"thirty_sixth_wave_validation": {
"state": "validated_uncommitted",
"state": "validated_committed",
"integration_base": "366bee810b8c1881172fe5553a1a61a2242ffbe5",
"log_directory": "/tmp/stock-bot-wave36.3Ntmmj",
"scope": "Partial R05 explicit stored EOD intraday source materialization before existing immutable retention/admission; no in-run source preparation lifecycle.",
@ -7678,6 +7680,225 @@
"result": "Both exact disposable --rm containers stopped after final suites passed; development services untouched.",
"postgres": "4589bf23f51696e5f77709b10c694e17cacde84809681ac31cc201ae3edb8b7c",
"redis": "9c85c66fb68a91a34affc3a3cc2d9f0ed86bd1fb3bb777e9ab35239f1da93439"
}
},
"completed_commit": "0c6aec4"
},
"completion_authorization": {
"date": "2026-10-24",
"instruction": "commit and continue with the rest of the tasks till 100%",
"scope": "Complete all 45 scheduled tasks with review and quality gates. Resume required R07/P04 measurements. Conditional deferred work still requires its existing evidence; no percentage-only reclassification.",
"decisions": "Implement ADR-007 research-only identity, operator budgets, OS isolation and human-only paper promotion. Default canonical research remains single-asset; no approval of sequential multi-asset mark approximation or automatic paper/live activation.",
"remaining": ["R05", "R07", "S06", "P04", "A01", "A02", "A03", "A04"]
},
"r07_table_validation": {
"date": "2026-10-24",
"author": "/root/r12_frontend",
"reviewer": "/root",
"command": "bun run scripts/benchmark-experiment-tables.ts --measure --samples=5",
"raw_report": "/tmp/stock-bot-wave37.v0zgbc/table-measure.json",
"raw_report_sha256": "c2584795df20a155efb89ea5e8d9d48239ffebac3a3e7ade35ab26e350716cc1",
"source_archive": "/tmp/stock-bot-wave37.v0zgbc/table-final.tar",
"archive_sha256": "684d896dfd61051ff66e8e6a1846eeb9bda1a497c1f91297bbda26e00ae3847a",
"source": {
"commit": "0c6aec4dc6836551aa70fd7e1997d9ca2124f523",
"status": "?? scripts/benchmark-experiment-tables.ts\n?? scripts/test/benchmark-experiment-tables.test.ts\n",
"files": [
{
"path": "scripts/benchmark-experiment-tables.ts",
"sha256": "889ebdfdee2d66dfc4e562774d905af18e21574ad048fcaeb7b4336144583557"
},
{
"path": "scripts/test/benchmark-experiment-tables.test.ts",
"sha256": "460c3add1bdbaaf4b0b7ac81f0c99e9b1b74a0ab9e48f84d0cc211fc797dc34e"
},
{
"path": "test/fixtures/native-replay.ts",
"sha256": "7a6df7a2c499c27f2572489fe0d8d67835f7615bbea9cb06da84a7011722b00e"
}
]
},
"host": {
"platform": "linux",
"arch": "x64",
"osRelease": "6.8.0-146-generic",
"cpu": "AMD Ryzen 9 9950X3D 16-Core Processor",
"cpus": 32,
"availableParallelism": 32,
"totalMemoryBytes": 98683457536,
"loadBefore": [2.56, 2.03, 1.23],
"loadAfter": [2.43, 2.02, 1.24]
},
"runtime": {
"bun": "1.2.17",
"browser": "138.0.7204.23",
"browserLaunchMs": 25.393674999999803,
"viewport": {
"width": 1440,
"height": 1080
},
"deviceScaleFactor": 1
},
"build": {
"mode": "production",
"durationMs": 3892.236715,
"assets": [
{
"path": "apps/stock/web-app/dist/assets/index-3c005d97.css",
"bytes": 34471,
"sha256": "3c005d97ce4842da1b1e39a0c03cd51079e0362ca119b453ea1e1e3199711e2e"
},
{
"path": "apps/stock/web-app/dist/assets/index-5e45b8a6.js",
"bytes": 1476507,
"sha256": "77384c2bcbbbe8e7e345b7682c09d098e998b07282d4bdfa1900aec5b19de8a0"
},
{
"path": "apps/stock/web-app/dist/index.html",
"bytes": 626,
"sha256": "bfd137414a0be7e96bb6f8dde5ee793dc4b61400c45163c289055cbd55f507c2"
},
{
"path": "apps/stock/web-app/dist/vite.svg",
"bytes": 314,
"sha256": "42383be8e4b66dc6d0df73835266fb3d320d2b6b7fd3eb40b5e6e7ea4634da8d"
}
],
"sha256": "b4f1a9903cb7a572624fc4a2448a7db9d4260ceb0a9b008a26e90dfab09017a2"
},
"scope": "Synthetic compact DTO production-UI rendering only; no engine, database, queue, financial correctness or research-throughput claim.",
"measurement": {
"cold": "Fresh context/page in one Chromium process, navigation epoch to two-frame readiness; browser launch measured once separately. Browser process and OS/disk caches are not reset.",
"warm": "Same page, after one excluded refresh; reference changes exercise route remounts without browser restart.",
"readiness": "Browser-local action/fetch/JSON timestamps then two requestAnimationFrame callbacks with full row count, new response revision on final row, and enabled refresh control; proxy for visible readiness, not exact paint or React CPU time.",
"network": "Loopback synthetic compact DTO responses; browser routing disables HTTP cache. No database/native/queue measurements.",
"p95": "Only reported with at least 20 samples; five samples cannot establish tail latency.",
"limits": "External Google Fonts blocked; fallback system fonts used. No memory, scrolling/input latency, real-network, retained artifact-size distribution, server storage or financial throughput claim. All rows are checked after timing."
},
"summary": [
{
"workload": "detail-1",
"coldActionToReadyMs": {
"count": 5,
"min": 98,
"median": 102.5,
"max": 117.79999995231628,
"p95": null
},
"warmRefreshMs": {
"count": 5,
"min": 47.90000009536743,
"median": 48.89999985694885,
"max": 49.09999990463257,
"p95": null
},
"warmJsonToReadyMs": {
"count": 5,
"min": 30.5,
"median": 31.700000047683716,
"max": 31.90000009536743,
"p95": null
},
"referenceChanges": []
},
{
"workload": "detail-25",
"coldActionToReadyMs": {
"count": 5,
"min": 100.70000004768372,
"median": 101.09999990463257,
"max": 115.5,
"p95": null
},
"warmRefreshMs": {
"count": 5,
"min": 47.90000009536743,
"median": 48.60000014305115,
"max": 48.799999952316284,
"p95": null
},
"warmJsonToReadyMs": {
"count": 5,
"min": 29.09999990463257,
"median": 29.100000143051147,
"max": 29.40000009536743,
"p95": null
},
"referenceChanges": []
},
{
"workload": "detail-100",
"coldActionToReadyMs": {
"count": 5,
"min": 112,
"median": 114.59999990463257,
"max": 118,
"p95": null
},
"warmRefreshMs": {
"count": 5,
"min": 47.700000047683716,
"median": 47.90000009536743,
"max": 48.40000009536743,
"p95": null
},
"warmJsonToReadyMs": {
"count": 5,
"min": 19,
"median": 20,
"max": 20.5,
"p95": null
},
"referenceChanges": []
},
{
"workload": "comparison-100+100",
"coldActionToReadyMs": {
"count": 5,
"min": 144.5,
"median": 148.29999995231628,
"max": 151.20000004768372,
"p95": null
},
"warmRefreshMs": {
"count": 5,
"min": 90.5,
"median": 91.10000014305115,
"max": 91.40000009536743,
"p95": null
},
"warmJsonToReadyMs": {
"count": 5,
"min": 43.10000014305115,
"median": 44.59999990463257,
"max": 46.299999952316284,
"p95": null
},
"referenceChanges": [
{
"referenceIndex": 3,
"actionToReadyMs": {
"count": 5,
"min": 71.5,
"median": 74.29999995231628,
"max": 75.20000004768372,
"p95": null
}
},
{
"referenceIndex": 1,
"actionToReadyMs": {
"count": 5,
"min": 66.5,
"median": 67.89999985694885,
"max": 70.69999980926514,
"p95": null
}
}
]
}
],
"verification": "20 production browser samples; exact all-row/status/parameter/metric/null/link/reference/current-response checks. Author strict types/lint/format passed.8 harness tests/495 assertions passed in author and integrated roots.",
"limitations": "Synthetic compact DTOs, UI only. Shared browser and fresh contexts, not cold OS/disk cache. External Google Fonts blocked and fallback fonts reported. Five samples per workload; no p95/SLO/statistical certification, financial engine, API/database storage or research-throughput claim.",
"decision": "Keep current tables. No measured need for virtualization at current100-trial limits."
}
}