Admin report: Activation (signup week + time to first item) #232
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.48) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 375 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.355
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #232"
general
weight: 0.35
cursor[bot]
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
Summary
Adds an Activation (current collection) entry to the Admin Reports registry with:
Data loads one-shot on mount via Refresh (no live listeners). Weekly aggregation and timing stats are computed client-side from the callable payload.
Data sources
| Metric | Source |
|--------|--------|
| Signup time | Firebase Auth
metadata.creationTime(admin callable) || Has item / timing | Current Firestore snapshot: earliest qualifying
collections.updatedAtperownerUid|Not tracked yet
item_added(client-only, fires on every add, no server query in this stack), so the callable does not use it.createdAt— rules only allowupdatedAt; timing is an earliest-updatedAtproxy among current rows (footnote in UI).Admin-only
AdminGate/ reports route.getAdminActivationReportcallable reusesassertSiteAdmin(same pattern aslistAdminCollectors). No Firestore rules changes.Tests
functions/adminActivationReport.test.js— row building + handler authaggregateActivationReport.test.js— week bucketing, median, bucketsuseActivationReport.test.js,ActivationReport.test.jsx— hook + UISetup after merge
1. Deploy Cloud Functions — required for
getAdminActivationReport.2. Deploy frontend hosting — for
/admin/reports/activation.3. Firestore rules / indexes — none.
4. Config / secrets — none.
<!-- CURSOR_AGENT_PR_BODY_END -->
<div><a href="https://cursor.com/agents/bc-fca65408-dc06-5dd0-a381-afdd82819ebd?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a href="https://cursor.com/background-agent?bcId=bc-fca65408-dc06-5dd0-a381-afdd82819ebd&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div>