# Cloudflare Workflows

- HTML version: https://robbiepalmer.me/projects/agentic-code-review/adrs/014-cloudflare-workflows
- Project: Agentic Code Review (https://robbiepalmer.me/projects/agentic-code-review.md)
- Status: Accepted
- Date: 2026-07-08
- Inherited from project: recipe-site (https://robbiepalmer.me/projects/recipe-site/adrs/049-cloudflare-workflows-recipe-ingestion.md)

The durable orchestration decision carries over to code review. The per-PR
Durable Object owns delivery deduplication, debounce, reviewed-head state,
budgets, and the single active paid-review lease. A Workflow owns the admitted
run: prepare current GitHub context, run paid and free scouts in separate steps,
merge findings, publish the rolling comment, append the analytical record to
R2, and complete the PR state.

Each model step permits one configured application attempt. Separating paid and
free providers prevents recovery from a stalled free call from replaying a
completed paid ensemble. An expired lease must terminate its old Workflow
before the coordinator admits a replacement.

## Notes for Agentic Code Review

The durable orchestration decision carries over to code review. The per-PR
Durable Object owns delivery deduplication, debounce, reviewed-head state,
budgets, and the single active paid-review lease. A Workflow owns the admitted
run: prepare current GitHub context, run paid and free scouts in separate steps,
merge findings, publish the rolling comment, append the analytical record to
R2, and complete the PR state.

Each model step permits one configured application attempt. Separating paid and
free providers prevents recovery from a stalled free call from replaying a
completed paid ensemble. An expired lease must terminate its old Workflow
before the coordinator admits a replacement.

---

Markdown index of this site: https://robbiepalmer.me/llms.txt
