Poll backstop for review reactions with a persisted cursor #1175

Closed
opened 2026-10-27 13:39:19 +00:00 by sam · 0 comments
Owner

Poll backstop: periodically scan pr_open tasks with ListReviews and
ListReviewComments against a persisted sinceID cursor per task.

Step 7 of docs/prds/pr-review-remediation.md. First-class, not a legacy
fallback: it is the Gitea path and the deployment-without-webhook path, per
decision 2 and the repo's webhook-intake rule.

Emits the same ReviewCommentEnvelope as the webhook, so PublishUnique dedups
the two paths on the shared idempotency key.

Excludes archie's own comments using the identity that owns the task, not a
single receiver-level bot_user, so it stays correct under identities.

Depends on archie-core-8li9.4.

Acceptance: a comment delivered by both webhook and poll produces one
reaction; the cursor survives a restart; a task whose PR merged stops being
polled.

Close reason

Closed on GitHub; syncing bead state


Imported from beads archie-core-8li9.6 · GitHub #943 · type feature · priority P2 · created 2026-09-18 · closed 2026-09-26

Poll backstop: periodically scan pr_open tasks with ListReviews and ListReviewComments against a persisted sinceID cursor per task. Step 7 of docs/prds/pr-review-remediation.md. First-class, not a legacy fallback: it is the Gitea path and the deployment-without-webhook path, per decision 2 and the repo's webhook-intake rule. Emits the same ReviewCommentEnvelope as the webhook, so PublishUnique dedups the two paths on the shared idempotency key. Excludes archie's own comments using the identity that owns the task, not a single receiver-level bot_user, so it stays correct under [[identities]]. Depends on archie-core-8li9.4. Acceptance: a comment delivered by both webhook and poll produces one reaction; the cursor survives a restart; a task whose PR merged stops being polled. ### Close reason Closed on GitHub; syncing bead state --- _Imported from beads `archie-core-8li9.6` · GitHub #943 · type feature · priority P2 · created 2026-09-18 · closed 2026-09-26_
sam added the mediumfeature labels 2026-10-27 13:39:19 +00:00
sam self-assigned this 2026-10-27 13:39:19 +00:00
sam closed this issue 2026-10-27 13:39:19 +00:00
sam added a new dependency 2026-10-27 13:42:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#1175