Admin report: Collection depth #234
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.47) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 344 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.350
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #234"
general
weight: 0.35
cursor[bot]
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
Summary
Adds the Collection depth admin report: histogram of distinct catalog SKUs per account, plus a sortable table with % of catalog owned and card/pin SKU coverage (totals from bundled catalog data).
Behavior
/admin/reports/collection-depthregistered inregistry.js(alongside ISO, Growth, Activation, and Data quality from mergedmain).AdminGate/isAdmin.fetchAllCollectionEntriesshared with the data-quality report (entries include Firestoreid; SKU viaresolveCollectionEntrySkuId). Only rows with quantity > 0 count toward depth (ISO/UFT wishlist at qty 0 excluded — matchescollectionSummary.js).listAdminCollectors({ directoryOnly: true })— Auth directory only, no second full collection scan; depth still from client pagination. Refresh also bumpsreloadCollectorsto refetch the directory.fetchIsoReportExcludedUids.Not tracked yet
Tests
Depth aggregation (incl. retired pins, qty-zero ISO/UFT, legacy doc id), fetch pagination with
id, hook, UI (Card/Pin SKU headers, refresh + directory reload),directoryOnlycallable, Admin routes after merges.Setup / deploy
| Item | Required? |
|------|-----------|
| Firestore indexes | No |
| Firestore rules | No change |
| Cloud Functions | Yes — deploy
listAdminCollectors(directoryOnly) plus merged callables (getAdminGrowthReport,getAdminActivationReport, etc.) || Hosting | Yes (frontend) |
<!-- CURSOR_AGENT_PR_BODY_END -->
<div><a href="https://cursor.com/agents/bc-f93b1a72-932b-5814-8ee4-cdca49b26cb4?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-f93b1a72-932b-5814-8ee4-cdca49b26cb4&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>