feat(browser): real OS/browser versions, GPU, permissions and hints in the environment #242
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.70) × (1 − Review Confidence (0.58)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.70 · 333 lines diff across 4 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.348
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.070
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #242"
general
weight: 0.35
krassx
Why
A navigator sweep against the appserver's
EnvironmentSchema(Mongoose strict mode silently drops undeclared keys) found:hardware.screen_width/screen_height/pixel_ratio. No schema declares them, so all three were dropped. Nowhardware.screen {width, height, width_px, height_px, scale}, the shape the appserver declares and the viewer reads.platform.versionstayed10.15.7on every Mac, Windows 11 read as 10, andbrowser.versionended in.0.0.0.What
New
packages/browser/src/environment-extras.ts:platformVersionmajor ≥ 13), full browser version,hardware.arch(arm64/x86_64), Androidhardware.model,hardware.form_factors.app.permissions(granted → true; read-only, never prompts). Opt-in:capturePermissions: true.hardware.gpu(vendor, renderer, architecture). Opt-in:captureGpu: true(an adapter request can start the GPU process).navigator.languages→platform.locale_extended_info.browser.user_agent / automated / cookies_enabled / secure_context / standalone,hardware.max_touch_points.UA-CH is always read; async values are collected once, deferred to idle (3 s cap per source, each guarded) and merged into reports built afterwards; a report built earlier simply lacks them. Skipped when the host passes its own
systemProbe. An unidentifiable browser is now{type: 'unknown', user_agent}instead of an absent block.Deliberately not collected: geolocation, device labels/ids, plugins/mimeTypes, ad-tech APIs, DNT/GPC (privacy decision pending).
Pairs with (merge order matters)
1. Appserver schema: bugsee/bugsee-appserver#290. Must be deployed first, or the new keys are dropped.
2. Viewer rendering: bugsee/bugsee-web-viewer#224
3. Spec docs: bugsee/specs#88
Verification
check:cycles, biome clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01WeiJxRnbk1iC7HPhhoC2Cr