fix(project-io): read long recordings in 1 MiB windows (relates to #2477) #2478
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2478"
general
weight: 0.35
endaye
Summary
thirty-minute recording Save and bind preserve full identity through two page reopensexceeded its 180 s case budget on every CI Linux host. It has failedweb_runtime_hostandweb_toolchain_conformanceon netcup and on the en-home overflow runner since 2026-10-21. The diagnosis is on #2477.read_rangepays a fixed Asyncify suspend, a per-segment handle lookup, thengetFile,sliceandarrayBuffer. The three bounded loops (Save/bind verification, recording scan, discovery inventory) read in 64 KiB windows: about 5,300 calls and 9–12 s per full verification of the 345 MB file. Hashing that file takes 1.5 s (PicoSHA2, em++-O3, 220 MiB/s on the same host).hashlib/struct, and the same generator reproduces every old literal. Fixtures that pin no window are untouched.No case or RPC budget, journey leg or assertion of the failing test changes.
Related Issue
Related issue: Relates to #2477
Verification
All runs were on the en-home WSL runner host (20 threads, 31 GB), which fails this case in CI. Commit
9c1f082ewas applied to469f4ad.- 238 s per-RPC breakdown on main;
- window sweep: 64 KiB 238 s, 1 MiB 68 s, 4 MiB 57 s;
- PicoSHA2 in Wasm: 1.49 s for 345,600,056 bytes.
build/core/dev), all pass:lmdj_performance_recording_verification_tests2.7 s,lmdj_performance_recording_scan_tests4.9 s,lmdj_project_bundle_transfer_tests6.1 s,lmdj_facade_performance_recording_metadata_tests1.6 s,lmdj_web_recording_metadata_query_tests1.2 s.-
performance_recording_verification_test.cpp:202maximum_request == 1048576;-
performance_recording_scan_test.cpp:270, the second-window fault;-
performance_recording_metadata_test.cpp:195, three windows plus EOF.After restoring the fix with a fresh mtime and rebuilding, all five pass.
scripts/web-toolchain-conformance.sh proof: PASS (882 s).- Project I/O Chromium 49 passed; WebKit 39 passed, 10 skipped.
- Audio Chromium 38 passed, including the thirty-minute case under the unchanged 180 s budget.
- Transport OPFS WebKit 1 passed.
- netcup CI job 120191630506 has the same counts: WebKit 10 skipped (platform limitations), and its audio leg is 37 passed / 1 failed on this case.
native-suite-start. A direct page probe showed the 2 MiB seed still unfinished after 360 s, while unpatched main finished its 128 KiB seed in 40 s.scripts/docs-site.sh check: 179/179 tests; 51 routes and internal links valid.web_runtime_hostlane proof, the Creator lane, and sanitizer, macOS and stress lanes. They are left to the selected batch. #2477 closes only after a real batch shows these lanes green.PR Review
Exact-head review evidence for
9c1f082ewill be collected withscripts/ci/review_wait.pybefore merge.CI Scope
Expected mode: full
Expected selected lanes: ci_contract core_asan core_coverage core_macos core_ubuntu creator deploy_contract docs_static package portal web_runtime_host web_runtime_lab web_toolchain
Expected skipped lanes: none
ci:fullrequired: noReason: Project I/O product code plus its Native and Web tests and two Portal pages. The selection follows the comparable #2439, which touched the same paths; the authenticated remote scope is authoritative.
Version Management
Version impact: compatible internal Project I/O PATCH debt under #2237
Reason: internal read-window constant; no API/ABI, Contract, Project Truth, key, dependency, manifest, Product, Assembly, Build or snapshot change.
Documentation Impact
Documentation impact: required
Affected portal pages: /core/modules/project-io/ /platform/storage/
Reason: both pages stated the 64 KiB window and the old composite OPFS fixture size; they now state the 1 MiB windows, the reason and 2,158,204 bytes / 539,537 frames.
Pitfall Impact
Pitfall impact: none — reason: a product read-path defect now caught by
maximum_request == 1048576and the three-window counts; the seeding constraint is recorded at both witnesses.Release Impact
Release impact: none
Candidate tag: none
Profile: none
Channel: none
Intent disposition: none
🤖 Generated with Claude Code