Repository navigation
feat(acquire): collect Slack history from before a channel's first interval - #346
vincentkoc wants to merge 2 commits 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: blocked before merge. What this changesAllows explicitly bounded Slack acquisition windows before a channel’s completed horizon, subject to receiver admission. Example: Channel C1 has completed coverage from October 1 through November 20, 2026.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep this maintainer-authored PR open: it adds useful backfill capability absent from main, and source review found no definite introduced correctness defect. Reviewed head: Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe acquire CLI passes explicit bounds and server checkpoints to the collector, which obtains receiver admission before fetching Slack history and committing normalized pages to PostgreSQL. flowchart LR
CLI[Acquire CLI] --> Collector[Collector]
Collector --> Admission[Receiver admission]
Admission --> History[Slack history]
History --> Pages[Normalized pages]
Pages --> Storage[PostgreSQL receiver]
Technical reviewBest possible solution: Retain the focused collector exception and receiver-owned admission, with demonstrated contiguous backfill and unchanged forward continuation. Do we have a high-confidence way to reproduce the issue? Main deterministically rejects an earlier explicit start whenever completedThrough is present and different; no target code was executed. Is this the best way to solve the issue? The collector is the correct owner for relaxing its local restriction, while the receiver remains the existing owner of coverage admission; no new configuration or parallel collection path is needed. AGENTS.md: not found in the target repository. Codex review notes: model internal, reasoning medium; reviewed against a8ed4bd20a97. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 25, 2026, 2:02 AM ET / 07:02 UTC. |
What Problem This Solves
slacrawl acquirestops with "since differs from completed source horizon" when asked for history older than a channel's first collected interval. The OpenClaw report source started at October 1, so report days from March 30 to September 30 cannot get their Slack messages.User Impact
Operators can backfill a PostgreSQL Slack source to an earlier start with an explicit
--sinceand an--untilat the start of the channel's earliest completed interval. Ordinary collection is unchanged.Why This Change Was Made
The collector now admits an explicit window that ends at or before the completed horizon and sends it to the receiver. The receiver decides whether it ends exactly where completed coverage starts (merged receiver PR). Window selection is a small function, so it is tested on its own. An older receiver refuses such a run with a conflict, so no data is written.
Evidence
39a73d55with receiverf27a0470from crawl-remote #173. Both PostgreSQL HTTP integration tests passed with a disposable local database. They cover earlier adjacent windows, unchanged forward collection, rejected gaps and overlaps, and the collector-to-receiver path.GOWORK=off go test -race -count=1 ./internal/acquisitionpassed, including the default continuation, explicit backfill, overlap and reversed-window cases.GOWORK=off make tidy-check vulncheckpassed on the updated branch. Current main supplies the patched dependency from the previously failing check.