feat(lens): add Investigations nav tab and Stop run actions #276
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.48) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 540 lines diff across 6 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
Diff Size
diff_size
0.377
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #276"
general
weight: 0.35
cursor[bot]
Summary
Investigations were only reachable through a "Manage investigations" button on the Findings header, which is hidden for read-only viewers, and
?tab=investigationswas rewritten to?tab=findingswithout opening the browser. Running investigations also could only be stopped from the run reportAdmin-tier users now get a first-class Investigations tab in the sidebar and in the gateway frame navigation, rendering the existing
InvestigationsView(read-only whenreadOnly || !isAdmin || demo, as before). Both legacy deep links,?tab=investigationsand?tab=findings&findings_view=investigations, open it. The redundant Manage investigations button is gone and New investigation stays on FindingsStop run (existing
POST /lens/admin/{lens_id}/cancel) is now in the list row actions and the detail ⋯ menu whenever a job is active. It cancels the current run only and leaves monitoring as it was. No backend changesBefore,
?demo=true&tab=investigationslanded on Findings!before
After
!after
!history
To reproduce, run
npm run dev:ui, open http://127.0.0.1:3100/ui/?demo=true and click Investigations in the sidebar, then open an investigation and its History tabTested with
npm run typecheck:uiand the touched Vitest files (navigation, workspace, setup, investigations view and actions). The gateway frame uses its existing fallback icon for the new tab, and that path was covered by integration tests rather than a deployed gateway<details>
<summary>Details</summary>
Link to Devin session: https://app.devin.ai/sessions/e8bc254bcc584b199e486302c890d3c1
Open in Devin Desktop: https://app.devin.ai/desktop/session/e8bc254bcc584b199e486302c890d3c1?variant=devin
Requested by: @moe-berri
</details>
<!-- CURSOR_SUMMARY -->
---
<!-- /CURSOR_SUMMARY -->