next 2/6: JS core (identity, lifecycle, channel, fail-closed filters, data requests) #11
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 237 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.327
Real PR Conversation Timeline
1 comments
"Review active on #11"
general
weight: 0.35
krassx
Part 2/6: JS core
Stacked series (6 PRs, one commit each). Review and merge in order: 1 workspace + contract, 2 JS core, 3 privacy core, 4 Android plugin, 5 iOS plugin, 6 runtime + integration. Each PR is based on the previous branch, so its diff shows only its own change; after the previous one merges, GitHub retargets this one to
main. The legacy SDK at the repository root is untouched and no legacy code is reused. Nothing has been run with the real Bugsee SDK launched on a device or emulator (see PR 6 andnext/docs/status.md).Based on part 1. Adds
next/packages/plugin/src/core/**and its tests: identity, lifecycle (status, page token,pageChanged), the wrapper channel (logs, network events, breadcrumbs), JS-side filters that fail closed, and data requests. It depends only on the typed bridge interface and on injected helpers (it never imports the privacy package).Behaviour worth reviewing
Verified
npx vitest run: 286 tests (includes part 1);npx tsc -b packages/pluginclean; the emitted.d.tstypechecks under TypeScript 5.0.4 (ES2020 lib only). Fail-open mutations (a throwing filter or a non-decision passing the original event) fail the suite.Not verified
No native code or device: tested against an in-memory bridge only.
Human guided, AI implemented