feat: receive and deduplicate weekly ClawHub search intelligence - #38
feat: receive and deduplicate weekly ClawHub search intelligence#38Patrick-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. |
|
Codex review: needs real behavior proof before merge. Reviewed September 8, 2026, 7:18 PM ET / 23:18 UTC. ClawSweeper reviewWhat this changesAdds an authenticated weekly ClawHub digest receiver that posts bounded Discord summaries and stores durable receipts to prevent duplicate delivery. Merge readiness⛔ Blocked before merge - 5 items remain Keep open: this is coherent, distinct work absent from the reviewed main branch, with no merged replacement. Source review found no definite blocking code defect, but the contribution has not demonstrated successful delivery. Priority: P2 Review scores
Verification
How this fits togetherHermit receives aggregate search intelligence from ClawHub and delivers it to the configured Discord review channel. D1 receipts coordinate concurrent requests and help reconcile uncertain sends. flowchart TD
A[ClawHub weekly digest] --> B[Authenticate and validate]
B --> C[D1 delivery receipt]
C --> D{Delivery state}
D --> E[Post Discord summary]
D --> F[Read Discord history]
E --> C
F --> C
C --> G[Delivery response]
Decision needed
Why: This adds an operational service contract, and the draft explicitly reserves human approval; code review cannot choose the acceptable missed-delivery versus duplicate-delivery tradeoff. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the receiver narrow, with upgrade-safe receipts and an explicitly approved operational reconciliation path that preserves duplicate prevention. Do we have a high-confidence way to reproduce the issue? Not applicable: this adds a new receiver rather than repairing an established behavior; no definite patch defect was established. Is this the best way to solve the issue? Yes, the proposed boundary is coherent: Hermit retains Discord credentials and receipts while ClawHub produces aggregates; operational acceptance and real delivery evidence remain outstanding. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fd6920504d12. 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
|
Receive and deduplicate weekly search-intelligence digests
Problem
Keep Discord delivery credentials and durable delivery state in Hermit.
Change
Validate a strict authenticated, bounded aggregate payload. Render Carbon Components V2 with mentions disabled. Reuse D1 for durable deduplication and reconcile uncertain delivery before any resend.
Validation
300 tests, typecheck, and deployment dry-run passed. Real local D1 and protected Carbon preflight were exercised. The requested channel returned 403 / Discord code 50001 before any POST; message, deduplication readback, and Discord UI proof remain pending.
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.
Real Discord delivery, duplicate receipt/readback, and Discord UI proof remain incomplete: the configured test bot receives HTTP 403 / Discord
50001 Missing Accessfor the intended channel. The preview and local tests are not production-delivery evidence.Verified commands:
bun test tests/searchIntelligenceApi.test.ts,bun run typecheck,bun run test, andbun run deploy:dry-run. No Discord credentials belong in the ClawHub producer.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.