feat: add staff search intelligence dashboard and admin CLI - #3632
feat: add staff search intelligence dashboard and admin CLI#3632Patrick-Erichsen wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Codex review: blocked before merge. Reviewed September 8, 2026, 7:18 PM ET / 23:18 UTC. ClawSweeper reviewWhat this changesAdds staff-only search-demand reports shared by a management dashboard, HTTP endpoint, and admin CLI, backed by daily aggregates and advisory classifications. Merge readiness⛔ Blocked before merge - 3 items remain This remains distinct, useful work absent from current main. One dashboard correctness defect needs repair; the contributor’s explicit human-review hold also remains in effect. Priority: P2 Review scores
Verification
How this fits togetherClawHub collects bounded manual plugin-search observations. This layer aggregates them into staff reports and enriches them with current public package metadata for curation. flowchart TD
A[Manual search observations] --> B[Daily aggregation and retention]
B --> C[Shared search report]
D[Weekly advisory classifications] --> C
E[Public package metadata] --> C
F[Staff authorization] --> C
C --> G[Dashboard and admin CLI]
Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one shared staff report, bind displayed results to the successful filter request, and preserve aggregate counts and ingestion progress across deployment. Do we have a high-confidence way to reproduce the issue? Yes, by source inspection: load a report, change Source or View, and reject the next request; the previous report becomes visible under the new controls. This path was not executed during the read-only review. Is this the best way to solve the issue? The shared backend is the right layer and avoids separate dashboard/CLI calculations. The implementation needs request-bound rendering and deployment-continuity validation before it is ready. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 651a7641a204. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Serve staff search insights through dashboard, API, and CLI
Problem
Give maintainers a consistent, privacy-preserving view of search demand and official gaps.
Change
Add bounded daily aggregation and retention with one staff-authorized report shared by the dashboard, HTTP API, and admin CLI. Current package metadata and advisory intent classifications remain separate from historical official-gap counts.
Validation
Real API/CLI parity verified for 32 latest-week searches and source totals 20/12. Anonymous and ordinary-user requests returned 401/403. Inspected 24 desktop/mobile states covering loading, empty, populated, filtered, partial, historical, error, and recovery views.
Review status
Draft for human review. This is a dedicated search-intelligence stack, independent of the plugin-page/category work. No merge or production deployment is authorized.
The full integrated stack at
ca843a963apassedbun run ci:unit(6,582 passed, 3 skipped),bun run ci:types-build, package/HTTP/browser checks, and the non-audit static constituents.bun run ci:staticremains red on seven dependency advisories in the unchanged baseline lockfile; that repair is deliberately outside this stack. These results are from the saved reviewed head, not a claim that CI on this PR has passed.Dashboard proof used
http://127.0.0.1:3250/management/search-insights, a real local Convex backend, the local staff persona, and explicitly synthetic 32-search data. The UI does not imply these are production searches. Source filters, official gaps, advisory company intent, and Featured leads share the API/CLI owner.Real browser proof
Related draft PRs
Review ClawHub bottom-to-top: capture → web attribution → dashboard/API/CLI → weekly producer.
Separate-repository companions: OpenClaw Control UI and Hermit receiver. The producer requires the Hermit receiver; the Control UI source marker requires the capture boundary. No plugin-page/category stack branches are included.