test(frontend): time chunk encryption and wasm load in real browsers #232
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 235 lines diff across 2 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.327
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #232"
general
weight: 0.35
abendrothj
What and why
Part of #185 (P73). Times chunk encryption (
encryptPayload, 4 KiB and 4 MiB) and the wasm envelope module's cold start (load plus first seal) in real browsers, as a Vitest bench:npm run bench:browser.browserworkflow runs it after the tests and writes a table, the runner's CPU, the browser version and the wasm module's size to the job summary. Report only, not a required check; the step fails, without failing the run, if the bench fails or prints no results.npm testandnpm run test:browsernever run it: bench files have their own glob, read only byvitest bench.The browser section of
docs/BENCHMARKS.mdis filled from one manually startedbrowserrun (run 44010807289: Chromium, Firefox, WebKit). #185 closes only once browser numbers have a target, a threshold and a regression run.How it was tested
The bench ran in Chromium, Firefox and WebKit.
npm test,npm run test:browserandscripts/check.shpass. No speed is asserted; the numbers come from CI.Checklist
scripts/check.shpasses locallySECURITY_AUDIT_EVENTcovered byaudit_coverage.rs: n/adocs/DATA_POLICY.md)CHANGELOG.mdupdated for user-visible changesdocs/adr/if one was made: n/a