Skip to content

docs(adr): add ADR 0085, serve every changed Jira issue - #9815

Merged
jwm4 merged 8 commits into
mainfrom
claude/adr-jira-poll-oldest-first
Nov 24, 2026
Merged

jwm4 merged 8 commits into
mainfrom
claude/adr-jira-poll-oldest-first

Conversation

@jwm4

@jwm4 jwm4 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This is the short amendment to ADR 0160 that I said I would write when I closed #9505. It adds ADR 0085, which stops the jira-poll driver from losing requests to its row limit and its random pick: one poller per repository reads every issue that changed within the driver's backfill window, oldest change first by default.

It is a decision record only. The implementation is a separate change.

Changed since the first review

The first review approved an earlier text. Since then:

  • Sort order. Oldest change first is the default order, used when the configured query has no sort clause. A query that carries its own sort clause keeps it, as today. The earlier text had the driver drop the clause.
  • Window length. The backfill window becomes a setting, tracker.jira.poll.backfill_window_hours (default 24, no upper limit). The earlier text kept it fixed at 24 hours.
  • A two-minute limit on reading one issue, with the case of several slow issues recorded in Consequences as accepted. A cycle in which every issue the driver tried failed or timed out ends in an error, as today.
  • Title and file name. The ADR is now "Serve every changed Jira issue with one poller per repository", because oldest first is no longer always the order.

Related Issue

None. Related work:

  • #9166 added ADR 0160, which this partially supersedes. ADR 0160 records starvation beyond the first M results as unmitigated.
  • #9505 proposed replacing ADR 0160 outright and was withdrawn. This PR amends ADR 0160 instead and leaves the durable design to the entity-based work (ADR 0098, ADR 0149).
  • #9746 is the GitHub hand-off loss that ADR 0085 names in its Consequences and leaves to a separate change.
  • #9751 tracks the implementation. #9758 implements ADR 0160's activity filter and checkpoint clause, which this ADR keeps.
  • #7527 changes the same search code and adds a five-page cap, which this ADR removes. The two need to be sequenced.

Changes

  • New ADR 0085. One poller per repository. The pool is every issue that matches the query and changed within the backfill window, with no row limit, read oldest change first unless the configured query sets its own order. The random pick and the per-issue lock are removed. Before it reads an issue's comments and history, the driver confirms that it can write to the issue, as the lock write did. A cycle in which every issue fails that check ends in an error, as today.
  • Two configuration keys. tracker.jira.poll.max_dispatches_per_cycle (default 100, from 1 to 250) replaces both keys of ADR 0160, neither of which shipped. tracker.jira.poll.backfill_window_hours (default 24, at least 1, no upper limit) sets the length of the backfill window.
  • Two more stops per cycle. 768 KB of serialized batch on the GitHub target, and five minutes.
  • A limit on one issue. Reading one issue is limited to two minutes. An issue that takes longer is skipped with a warning and tried again next cycle.
  • Status notes on ADR 0160 and ADR 0063 that point to ADR 0085.
  • docs/architecture.md: the Jira poll entries reflect the target state.

Unchanged: change detection, bot filtering, authorization, the window's clamps, and ADR 0160's activity filter and checkpoint clause.

Defaults that change

These land with the ADR unless a reviewer objects in review:

  • A cycle dispatches up to 100 records, where today it processes 5 issues.
  • The per-issue lock is no longer read or written. A scheduler other than the managed ones must keep two cycles for one repository from overlapping.
  • The default query no longer carries a sort clause, so a repository on the default is served oldest change first, where today it is newest first. A configured query keeps its own sort clause, as today. One that sorts newest change first (ORDER BY updated DESC, as the documented examples do today) draws one warning per cycle.

What it does not fix

  • Requests are still lost when issues change faster than the driver can process them within the window, or when the poller is stopped for longer than the window.
  • A configured query that sorts in another order is served in that order. Under a sustained backlog, an order other than oldest change first can leave older requests waiting until they leave the window.
  • A long window has three costs. A missing or rewound checkpoint replays requests as old as the window, an issue the driver cannot write to or read in time is retried for as long as the window, and a window that holds more issues than a cycle can list makes the driver fall behind without failing. The ADR commits the Jira guide and the config reference to say how to choose the length.
  • The GitHub hand-off can still lose a whole batch (#9746). A checkpoint commit that fails after the write check passed has the same effect for the issues whose commits succeeded.
  • An issue the driver cannot write to, or cannot read within two minutes, is tried again every cycle until its change leaves the window, and its requests are not served. It takes no record room from other issues. Two or three slow issues at the front of the line can use up a whole cycle. Such a cycle ends in an error, as a cycle in which every issue failed does today, so the stall shows as failed runs. The ADR accepts the stall.
  • An editor who keeps rewinding checkpoints on issues near the front of the line can hold the requests behind them back. The random pick did not allow that. The ADR accepts it and extends the Jira guide's rule that Edit Issues on a polled project is part of the trust boundary.

Evidence for the claims about current behaviour

Checked at 5f6c718f8361.

Claim in the ADR Where
The driver reads the first M results (50) internal/jirapoll/poller.go L89-L90 (default), L414 (SearchIssues(ctx, jql, p.opts.M))
It drops locked issues, then picks N at random (5) internal/jirapoll/poller.go L92-L93, L146, L152, L458
The driver keeps a sort clause from the configured query, and the default query sorts newest first internal/config/issue_targets.go L102, L222-L241
The documented example queries sort newest first docs/reference/config-reference.md L84, L477; docs/guides/user/jira-integration.md L1011
The backfill window is 24 hours, and an older checkpoint is clamped to it internal/jirapoll/poller.go L98-L99; internal/jirapoll/lock.go L231-L232
ADR 0160 is not implemented no max_issues_per_cycle or max_candidates in any Go or YAML file
The managed GitHub job runs one cycle at a time, every five minutes, with a 15-minute timeout internal/scaffold/fullsend-repo/templates/jira-poll-per-repo.yaml L23, L30-L32, L38
The managed GitLab job runs one cycle at a time internal/scaffold/fullsend-repo-gitlab/.gitlab/ci/fullsend-poll.yml L15 (resource_group)
The lock and the checkpoint are named per target repository internal/jirapoll/lock.go L28-L34
The whole batch is one job output, and each record is one matrix job .github/workflows/reusable-poll-jira.yml L58, L116-L132; .github/workflows/reusable-dispatch.yml L2912-L2914
Checkpoints are committed before the dispatch step runs internal/jirapoll/poller.go L198-L205, L278
A failed checkpoint commit fails the cycle, and the matrix step then does not run internal/jirapoll/poller.go L284-L303; .github/workflows/reusable-poll-jira.yml L101-L116
The lock write is the first write to an issue in a cycle internal/jirapoll/poller.go L468-L470
Change detection reads the checkpoint from the issue, not from the search internal/jirapoll/poller.go L494; internal/jirapoll/lock.go L186-L189
The Jira search is eventually consistent internal/forge/jira/client.go L556-L561
The guide treats Edit Issues on a polled project as part of the trust boundary docs/guides/user/jira-integration.md L1445
One issue is capped at 100 events per cycle, and the checkpoint advances past the overflow internal/jirapoll/poller.go L48, L552-L555
On GitLab, records are dispatched one by one and a failed issue is retried internal/jirapoll/poller.go L207-L240
GitHub allows 256 jobs in a matrix and 1 MB in a job's outputs matrix limit, output limit

Jira behaviour the design relies on

Nothing in the repository exercises these, so I checked them against a live Jira Cloud site on 2026-11-23 with a test account.

Behaviour Result How
The search returns an issue property when asked Holds POST /rest/api/3/search/jql with "properties": ["<checkpoint key>"] returned the value, and it matched a direct property read on three issues
Writing the checkpoint property does not advance updated Holds On an issue served by a deployed poller, the checkpoint was written after the issue's updated time, and updated did not move
Editing a comment advances updated Holds I added a comment and then edited it; updated moved both times
The search accepts a 24-hour bound Holds updated >= -24h, "-24h", -1440m, -1d and an absolute time all returned the same rows
An issue that changes while a search is paged in updated order is not returned twice Holds I paged 15 issues 5 at a time, oldest change first, and changed the first one after reading page 1; it did not come back and no row was skipped. One test

#9758 records the same results for the second, third and fourth rows from its own checks.

The search read about 210 rows per second at 50 rows per page.

One thing I did not expect: on that site an automation changes a field without advancing updated. Anything that compares updated with the checkpoint, including ADR 0160's activity filter, does not see a change made that way until something else changes the issue. In one day of that site's history the only field changed that way was one that an automation maintains; every label, status and assignee change advanced updated.

Testing

  • make lint passes (pre-commit run on the staged change)
  • Tests added/updated for new or modified logic (documentation only)

Checklist

  • PR title follows Conventional Commits (correct type, ! for breaking changes)
  • Commits are signed off (DCO) — human and human-directed agent sessions only
  • I wrote this contribution myself and can explain all changes in it

🤖 Generated with Claude Code

Partially supersede ADR 0160 and ADR 0063 for the jira-poll driver: one
poller per repository reads every issue that changed within the driver's
24-hour backfill window, oldest change first, with no row limit, no
random pick and no per-issue lock. A cycle stops at
tracker.jira.poll.max_dispatches_per_cycle records (default 100, at most
250), at 768 KB of serialized batch on the GitHub target, or after five
minutes.

Add Status notes to ADR 0160 and ADR 0063 and update the Jira poll
entries in docs/architecture.md. Decision record only; the
implementation follows separately.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
@jwm4
jwm4 requested a review from a team as a code owner November 23, 2026 19:33
@qodo-code-review

qodo-code-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can show, collapse, or hide each part of a finding: code, evidence, and all

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Previous reviews

Review updated until commit 75de060 ⏭️ Skipped

Results up to commit f601ed2 ⏭️ Skipped


No changes from previous review

Grey Divider

Qodo Logo

@qodo-code-review

qodo-code-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Document a starvation-resistant Jira polling strategy in ADR 0085

📝 Documentation 🕐 20-40 Minutes

Grey Divider

AI Description

• Add ADR 0085 to replace bounded, random Jira issue selection with repository-scoped polling.
• Define configurable backfill and dispatch limits, default oldest-first ordering, and failure
 handling.
• Clarify which earlier decisions remain and update the architecture overview; implementation
 follows separately.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 0 capabilities

  • No production behavior changes identified.
Behavioral complexity 🟢 Low 🧩 Assessed behavior

  • No production behavior changes identified.
Potential damage 🟢 Low 🩹 Assessed behavior

  • No production behavior changes identified.
Assessed commit 75de060
Diagram

graph TD
  A["Repository poller"] --> B["Jira search"] --> C["Activity filter"] --> D["Write check"] --> E["Issue read"] --> F{"Cycle bounds"} --> G["Checkpoint commit"] --> H["Forge dispatch"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Move directly to entity-based discovery
  • ➕ Could replace the backfill-window and checkpoint limitations rather than mitigating them.
  • ➖ Requires a Jira adapter that does not yet exist.
  • ➖ Delays relief for starvation in the current jira-poll driver.

Recommendation: Keep ADR 0085 as an interim decision for the existing driver, with entity-based discovery as the longer-term direction. It addresses row-limit and random-selection starvation without making the unimplemented Jira adapter a prerequisite; reviewers should treat its accepted hand-off and slow-issue risks as explicit trade-offs, not resolved problems.

Files changed (4) +289 / -8

Documentation (4) +289 / -8
0063-polling-based-work-discovery.mdMark Jira poll coordination decisions as partially superseded +9/-0

Mark Jira poll coordination decisions as partially superseded

• Adds a status note linking ADR 0085 and identifying the row limit, random pick, per-issue lock, and lock-dependent behavior it replaces for jira-poll.

docs/ADRs/0063-polling-based-work-discovery.md

0085-serve-every-changed-jira-issue.mdDefine repository-scoped polling of all changed Jira issues +255/-0

Define repository-scoped polling of all changed Jira issues

• Introduces the accepted decision for an unbounded candidate pool, configurable backfill window, default oldest-first ordering, and dispatch, size, and time bounds. Records preserved checkpoint and authorization behavior, GitHub and GitLab scope, failure handling, and acknowledged loss scenarios. It specifies a future implementation rather than changing the driver.

docs/ADRs/0085-serve-every-changed-jira-issue.md

0160-spend-jira-poll-slots-only-on-candidates-with-new-activity.mdClarify which Jira candidate-selection decisions remain +7/-0

Clarify which Jira candidate-selection decisions remain

• Adds a status note explaining that ADR 0085 replaces the row limit, random selection, lock, and proposed configuration keys while retaining the activity filter and checkpoint clause.

docs/ADRs/0160-spend-jira-poll-slots-only-on-candidates-with-new-activity.md

architecture.mdDescribe the target Jira polling architecture +18/-8

Describe the target Jira polling architecture

• Replaces the overview of random, capped candidate selection with ADR 0085's repository-scoped target state and limits. Clarifies that removing Jira poll locks changes the earlier coordination discussion.

docs/architecture.md

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:36 PM UTC · Completed 7:43 PM UTC

Commit: f601ed2 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.94

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://0290e8ad-site.fullsend-ai.workers.dev

Commit: 75de060d66442d18e9e8c8fba31e355ece7a4def

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Nov 23, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Documentation-only PR introducing ADR 0085 with no code or CI changes, elevated to moderate risk by high recent churn and multi-author contention on docs/architecture.md.

Previous run

Risk Assessment: moderate (2/5)

Details

Documentation-only PR introducing ADR 0085 with no code or CI changes, elevated to moderate risk by high recent churn and multi-author contention on docs/architecture.md.

Previous run (2)

Risk Assessment: moderate (2/5)

Details

Documentation-only PR introducing ADR 0085 with no code or CI changes, elevated to moderate risk by high recent churn and multi-author contention on docs/architecture.md.

Previous run (3)

Risk Assessment: moderate (2/5)

Details

Documentation-only PR introducing ADR 0085 with no code or CI changes, elevated to moderate risk by high recent churn and multi-author contention on docs/architecture.md.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Looks good to me

Earlier findings

  • docs/ADRs/0085-serve-every-changed-jira-issue.md:135, edge-case, resolved: Decision item 3 now states the per-issue overflow drop is deliberate, gives its rationale, and requires a warning naming the issue.
  • docs/ADRs/0085-serve-changed-jira-issues-oldest-first.md:126 (file since renamed to docs/ADRs/0085-serve-every-changed-jira-issue.md), edge-case, resolved: the two-minute per-issue read limit, checkpoint handling on timeout, accepted starvation, and the all-failed error case are now specified.
Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJlZGdlLWNhc2UiLCJmaWxlIjoiZG9jcy9BRFJzLzAwODUtc2VydmUtY2hhbmdlZC1qaXJhLWlzc3Vlcy1vbGRlc3QtZmlyc3QubWQiLCJpZCI6ImZfNTZkNjUyN2Y0NzVhYTliMSIsImxpbmUiOjEyMCwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoiY29ycmVjdG5lc3MifSx7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJlZGdlLWNhc2UiLCJmaWxlIjoiZG9jcy9BRFJzLzAwODUtc2VydmUtZXZlcnktY2hhbmdlZC1qaXJhLWlzc3VlLm1kIiwiaWQiOiJmX2RlYzEzNzg1NDk5M2IyNzAiLCJsaW5lIjoxMzUsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6ImNvcnJlY3RuZXNzIn0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5IjoiZWRnZS1jYXNlIiwiZmlsZSI6ImRvY3MvQURScy8wMDg1LXNlcnZlLWNoYW5nZWQtamlyYS1pc3N1ZXMtb2xkZXN0LWZpcnN0Lm1kIiwiaWQiOiJmX2Y4MGQ2YjEzZDNjZjU3MGYiLCJsaW5lIjoxMjYsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6ImNvcnJlY3RuZXNzIn1dLCJkaXNwb3NpdGlvbnMiOlt7ImlkIjoiZl9kZWMxMzc4NTQ5OTNiMjcwIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZjgwZDZiMTNkM2NmNTcwZiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzU2ZDY1MjdmNDc1YWE5YjEiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Looks good to me

Earlier findings

  • docs/ADRs/0085-serve-every-changed-jira-issue.md:135, edge-case, resolved: Decision item 3 now states the per-issue overflow drop is deliberate, gives its rationale, and requires a warning naming the issue.
  • docs/ADRs/0085-serve-changed-jira-issues-oldest-first.md:126 (file since renamed to docs/ADRs/0085-serve-every-changed-jira-issue.md), edge-case, resolved: the two-minute per-issue read limit, checkpoint handling on timeout, accepted starvation, and the all-failed error case are now specified.
Previous run (2)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImVkZ2UtY2FzZSIsImZpbGUiOiJkb2NzL0FEUnMvMDA4NS1zZXJ2ZS1ldmVyeS1jaGFuZ2VkLWppcmEtaXNzdWUubWQiLCJpZCI6ImZfZGVjMTM3ODU0OTkzYjI3MCIsImxpbmUiOjEzNSwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoiY29ycmVjdG5lc3MifSx7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJlZGdlLWNhc2UiLCJmaWxlIjoiZG9jcy9BRFJzLzAwODUtc2VydmUtY2hhbmdlZC1qaXJhLWlzc3Vlcy1vbGRlc3QtZmlyc3QubWQiLCJpZCI6ImZfZjgwZDZiMTNkM2NmNTcwZiIsImxpbmUiOjEyNiwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoiY29ycmVjdG5lc3MifSx7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJlZGdlLWNhc2UiLCJmaWxlIjoiZG9jcy9BRFJzLzAwODUtc2VydmUtY2hhbmdlZC1qaXJhLWlzc3Vlcy1vbGRlc3QtZmlyc3QubWQiLCJpZCI6ImZfNTZkNjUyN2Y0NzVhYTliMSIsImxpbmUiOjEyMCwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoiY29ycmVjdG5lc3MifV0sImRpc3Bvc2l0aW9ucyI6W3siaWQiOiJmXzU2ZDY1MjdmNDc1YWE5YjEiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9mODBkNmIxM2QzY2Y1NzBmIiwic3RhdHVzIjoib3BlbiJ9XX0= -->

Review

Findings

Medium

  • [edge-case] docs/ADRs/0085-serve-every-changed-jira-issue.md:135 — Decision item 3 still has the driver keep an issue's oldest records, drop the rest with only a warning, and advance the checkpoint past them. The dropped requests are never served, which is the loss this ADR sets out to stop. The text caps one issue at 250 records (or 768 KB) and keeps the existing 100-event cap, and in each case the overflow is permanently skipped. This was not changed in the latest push.
    Remediation: Decide on a behaviour that does not silently lose requests. For example, advance the checkpoint only to the last record that was kept so the overflow is served in later cycles, or state that the cycle ends in an error when an issue overflows. If dropping is the intended trade-off, record why in Decision item 3 and say how an operator would detect the loss.

Earlier findings

  • docs/ADRs/0085-serve-every-changed-jira-issue.md (formerly 0085-serve-changed-jira-issues-oldest-first.md), edge-case, resolved by change — the latest push adds that a cycle in which every tried issue failed or timed out ends in an error (lines 141-143). It also states that an issue that does not fit waits for the next cycle (lines 130-131), and the Consequences now describe the slow-issue stall explicitly.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (3)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImVkZ2UtY2FzZSIsImZpbGUiOiJkb2NzL0FEUnMvMDA4NS1zZXJ2ZS1jaGFuZ2VkLWppcmEtaXNzdWVzLW9sZGVzdC1maXJzdC5tZCIsImlkIjoiZl81NmQ2NTI3ZjQ3NWFhOWIxIiwibGluZSI6MTIwLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImVkZ2UtY2FzZSIsImZpbGUiOiJkb2NzL0FEUnMvMDA4NS1zZXJ2ZS1jaGFuZ2VkLWppcmEtaXNzdWVzLW9sZGVzdC1maXJzdC5tZCIsImlkIjoiZl9mODBkNmIxM2QzY2Y1NzBmIiwibGluZSI6MTI2LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfZjgwZDZiMTNkM2NmNTcwZiIsInN0YXR1cyI6Im9wZW4ifV19 -->

Review

Findings

Medium

  • [edge-case] docs/ADRs/0085-serve-changed-jira-issues-oldest-first.md:120 — The two-minute per-issue timeout still lets slow issues starve unrelated healthy ones. Under Decision §3 the five-minute cycle budget covers the search and every per-issue read, and a timed-out issue keeps its checkpoint and its place at the front of the ascending-updated order. If two or three of the oldest active issues keep timing out, their reads use up the whole budget every cycle, so issues behind them are never reached, possibly until their requests leave the 24-hour backfill window. Consequences only says "a slow one costs up to two minutes of each cycle" and does not cover several slow issues together. Bounding each failed read does not guarantee progress across cycles.
    Remediation: Specify a cross-cycle retry/backoff or fair-resumption mechanism (e.g. deprioritize or skip an issue for N cycles after a timeout, or cap the share of the cycle budget spent on previously failed issues), or record this starvation mode explicitly in Consequences as accepted. Require a test with several oldest issues timing out and a healthy later issue that must still be served before its request expires.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (4)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImVkZ2UtY2FzZSIsImZpbGUiOiJkb2NzL0FEUnMvMDA4NS1zZXJ2ZS1jaGFuZ2VkLWppcmEtaXNzdWVzLW9sZGVzdC1maXJzdC5tZCIsImlkIjoiZl9mODBkNmIxM2QzY2Y1NzBmIiwibGluZSI6MTI2LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9XX0= -->

Review

Findings

Medium

  • [edge-case] docs/ADRs/0085-serve-changed-jira-issues-oldest-first.md:126 — Deferring an unfinished issue at the five-minute deadline has no forward-progress guarantee. The record limit has a first-issue exemption (an issue is always taken when the cycle holds no records yet), but the time limit has none, and the pool is strictly ordered with no skip-ahead. If the oldest active issue consistently takes longer than the remaining budget to read and authorize (sequential, paginated comment and changelog reads, plus a search that now has no row limit), each cycle restarts it, abandons it without advancing its checkpoint, and exits before reaching later issues. Otherwise inexpensive requests can then age out of the 24-hour window, which is the request loss this ADR is meant to prevent.
    Remediation: Specify a progress policy for issues that repeatedly exceed the time budget, such as resumable acquisition or a bounded slow-issue deferral that lets later issues run. Require a test where the first issue cannot finish within one cycle and verify that subsequent cycles make progress rather than repeating the same unfinished prefix.

Labels: PR adds an ADR and updates architecture documentation.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added type/adr component/docs User-facing documentation labels Nov 23, 2026
@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Add a two-minute limit on reading one issue. An issue that takes longer
is treated as a failed read is today: the driver warns, takes none of its
records, leaves its checkpoint where it was, and goes on to the next
issue. This keeps one slow issue at the front of the line from holding
back the issues behind it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
@jwm4
jwm4 marked this pull request as draft November 23, 2026 21:41
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:43 PM UTC · Completed 9:53 PM UTC

Commit: ebd43c8 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.84

fullsend-ai-review[bot]

This comment was marked as outdated.

jwm4 and others added 5 commits November 24, 2026 08:24
Oldest change first becomes the default order, used when the configured
query has no sort clause. A query that carries its own sort clause keeps
it, as today. The default query drops its newest-first clause, and a
query that sorts newest change first draws one warning per cycle.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
The window becomes tracker.jira.poll.backfill_window_hours: default 24,
at least 1, no upper limit. Consequences name what a long window costs
and commit the guide and the config reference to say how to choose it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
Oldest change first is now the default order and no longer always the
order, so the title and file name drop it. The notes in ADR 0063,
ADR 0160 and architecture.md follow the new wording and file name.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
Two or three issues that each hit the two-minute read limit can use up
a whole cycle. Consequences now says so and that this ADR adds no way
to set a slow issue aside.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
A cycle in which every issue tried failed or timed out ends in an error,
as today, so a poller blocked by slow issues shows as a failed run.
Consequences name the third cost of a long window, the upgrade order for
the two new keys, and the search client's row cap as something the
implementation must not hit silently. The first Consequences bullet and
the aim sentence follow the configurable order and window.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 4:32 PM UTC · Completed 4:40 PM UTC

Commit: bb6c932 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.09

fullsend-ai-review[bot]

This comment was marked as outdated.

@jwm4 jwm4 changed the title docs(adr): add ADR 0085, serve changed Jira issues oldest first docs(adr): add ADR 0085, serve every changed Jira issue Nov 24, 2026
An issue past 250 records or 768 KB keeps its oldest records and drops
the rest. Decision item 3 now says why: the limit bounds the runs that a
rewound checkpoint or a bulk change can start, as today's event cap does.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ⚠️ Cancelled · Started 6:29 PM UTC · Completed 6:36 PM UTC

Commit: 75de060 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.10

Automated review did not complete for this commit. Check the latest review status before merging. If no review is queued or running, comment /fs-review to retry.

@jwm4
jwm4 marked this pull request as ready for review November 24, 2026 18:35
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 75de060

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:38 PM UTC · Completed 6:44 PM UTC

Commit: 75de060 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.97

@fullsend-ai-review
fullsend-ai-review Bot dismissed stale reviews from themself November 24, 2026 18:44

Superseded by updated review

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Nov 24, 2026
@jwm4
jwm4 added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 81d5819 Nov 24, 2026
82 of 83 checks passed
@jwm4
jwm4 deleted the claude/adr-jira-poll-oldest-first branch November 24, 2026 22:58

This branch was successfully deployed

1 active and 1 inactive deployments
site-preview — 75de060d Deployed Nov 24, 2026 by github-actions[bot]
forgejo-dev — 75de060d Deployed Nov 24, 2026 by jwm4 via forgejo-behaviour #21159
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/docs User-facing documentation ready-for-merge All reviewers approved — ready to merge risk/moderate PR risk: moderate type/adr

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants