Skip to content

feat(jirapoll): skip Jira poll candidates with no new activity - #9758

Merged
dhshah13 merged 14 commits into
mainfrom
feat/jirapoll-skip-idle
Dec 2, 2026
Merged

dhshah13 merged 14 commits into
mainfrom
feat/jirapoll-skip-idle

Conversation

@dhshah13

@dhshah13 dhshah13 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The Jira poller now drops candidates with nothing new since their lastCheck before the random pick, and a look advances lastCheck to the issue's updated value, so a handled issue stops taking one of the N slots. Implements ADR 0160 Decision items 1 and 3.

Related Issue

Part of #9751

Changes

  • internal/jirapoll/poller.go: the lock pass (filterLocked) also reads each unlocked candidate's lastCheck and keeps only candidates with new activity (hasNewActivity); one activity filter: line per cycle names the candidates whose lastCheck was clamped, a WARNING only past a 1 s tolerance (gapTolerance); poll complete reports the active count.
  • internal/jirapoll/lock.go: loadLastCheck reads and clamps lastCheck without logging; readLastCheck wraps it and keeps both WARNING lines as they were.
  • internal/jirapoll/discover.go: detectChanges raises maxSeen to the search row's updated value when that is later, before the 10-second cap.
  • pkg/behaviourtest/drivers/jiramock/server.go: AddIssue starts updated at created; comments and label changes move it forward; property calls leave it alone.
  • internal/jirapoll/poller_idle_test.go, internal/jirapoll/poller_test.go, pkg/behaviourtest/drivers/jiramock/server_test.go: tests for the filter, the clamp line, the updated clause and the mock; per-issue call counters on the test mock.
  • docs/guides/user/jira-integration.md, docs/guides/dev/behaviour-testing.md: the filter, its cost and log lines; a note on the jiramock change.

Notes for review:

  • ADR 0160 item 4 (the max_issues_per_cycle and max_candidates config keys) is not in this PR: ADR 0085 replaces both keys.
  • A lastCheck older than the backfill window is compared after the clamp to the window start, as Decision item 1 says ("clamped exactly as the driver clamps it"). Option B and the Consequences read as "a floored checkpoint makes the issue active". That reading cannot work: an issue whose stored lastCheck and updated are both older than the window finds nothing on a look and can never save a newer lastCheck (processIssue never moves it back), so it would take a slot every cycle for good. The ADR wording is tracked in ADR 0160: correct item 3's examples and the floored-checkpoint wording #9956.
  • The filter does not log the per-issue clamp WARNINGs; it logs one activity filter: line per cycle naming the clamped candidates. The line starts with WARNING: and contains predates the backfill window (the phrase the guide tells operators to grep for after an outage) only when an idle issue's updated is more than 1 s after a lastCheck that is older than the window, so activity may have been missed. Such an issue is idle and never picked, so this line is the only trace of that. A lastCheck older than a day is the normal state of an issue last handled more than a day ago, so otherwise the line is not an alert.
  • The 1 s tolerance (gapTolerance) is there because Jira stamps updated a little after the newest entry, and every lastCheck saved before this PR sits at that entry. Without it, after the upgrade every issue last handled more than a day ago would raise the alert every cycle with nothing missed. The live checks measured that offset at 0 to 10 ms. A change more than 1 s after the old lastCheck still raises it, hence "may have been missed": the poller never reads that change, and it may be one that dispatches nothing, such as a worklog or an attachment.
  • A garbage lastCheck keeps its issue active, so an editor cannot hide an issue by writing garbage. If that issue is the only active one, every cycle now fails at the existing "all N selected issues failed to process" guard until the property is fixed; before, idle issues were picked beside it. The guard is unchanged. Tracked in Jira poller: an unparseable lastCheck fails every quiet poll cycle #9766 and fixed by fix(jirapoll): treat an unparseable lastCheck as unset #9852, which is stacked on this PR.
  • Not marked breaking: no field, flag or default changes and no input is rejected. The only output change is log text (poll complete gains a count, plus one new line per cycle), which nothing parses.
  • The jiramock change alters what the mock serves (updated), with no API change; noted in the behaviour-testing guide beside the earlier jiramock labels note.

Testing

  • make lint passes (stage changes first, then run)
  • Tests added/updated for new or modified logic
go test -race -count=1 ./internal/jirapoll/ ./pkg/behaviourtest/drivers/jiramock/
go test -race -count=1 -run 'Jira|jira' ./internal/cli/ ./pkg/behaviourtest/steps/ ./internal/poll/ ./internal/config/ ./internal/scaffold/

All pass. Patch coverage on changed production lines: 100% (67/67 statement lines). TestJiraWorkItemVerticalLifecycle fails against the old mock and passes with the new one.

Live Jira checks on throwaway tickets on a Jira Cloud site, closed afterwards. Items 1-5 ran on 2026-11-20 and all pass; items 6-8 ran on 2026-11-30 and record what Jira did:

  1. Entity property PUT, PUT, DELETE: updated stayed at 20:12:59.682Z all three times.
  2. Comment edit: updated 20:13:30.401Z → 20:13:37.464Z (the comment's own updated 20:13:37.454Z).
  3. Label add: updated 20:13:37.464Z → 20:13:51.282Z.
  4. The first search after each edit already showed the new updated, and the comment list and changelog already held the entry, at or before that time.
  5. updated >= "-24h" accepted (200).
  6. Worklog add: updated 16:12:12.481Z → 16:12:17.715Z, with a changelog entry at 16:12:17.715Z (WorklogId, timespent).
  7. Attachment add: updated 16:12:17.715Z → 16:12:28.597Z, with a changelog entry at 16:12:28.597Z (Attachment).
  8. Comment delete: updated 16:12:36.502Z → 16:12:44.034Z, with a changelog entry at 16:12:44.034Z (Comment).

Review bot

f_92f2e8c5d646f0ef and f_bc9a9bf9d66ba341 are intentional: jiramock now serves updated equal to created and moves it forward on activity, as docs/guides/dev/behaviour-testing.md describes. Answers: #9758 (comment) and #9758 (comment). f_e82819aa1834f4d0 and f_dfd826407dd4dd56 are fixed in f754d22, f_c4f105dcb47d3d03 in 2a063c9, f_3e7a0bac0ebf5656 in 0ee5575. Their threads are open for a maintainer to resolve.

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

AddIssue now starts updated equal to created, and AddCommentFromActorAt
and AddLabelChangeAt move it forward to the activity time, never back.
Entity property calls leave it alone, as Jira does. The Jira poller's
idle skip compares updated with its checkpoint, so the mock must serve
it the way Jira does.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
The lock pass now also reads each unlocked candidate's lastCheck and
keeps only the candidates whose search-row updated value is after it,
clamped as processIssue clamps it (ADR 0160, Decision item 1). The
random pick then runs on those, so a handled issue no longer takes one
of the N slots. An unreadable, garbage or unset lastCheck, or an
unusable updated value, keeps the issue.

The filter reads lastCheck through a new quiet loader and logs one line
per cycle naming the clamped candidates. The line is a WARNING, with
the "predates the backfill window" phrase, only when an issue's
activity after its lastCheck is itself older than the window.
readLastCheck and its two WARNING lines are unchanged.

The poll complete line reports the active count.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
detectChanges now raises maxSeen to the search row's updated value when
that is later, before the 10-second safety cap (ADR 0160, Decision
item 3). Jira moves updated for changes that leave no comment or
changelog entry, or stamps it just after the newest entry; without this
such an issue would pass the activity filter every cycle. An updated
value that does not parse adds nothing, and the checkpoint still never
moves back.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
The Jira guide now says the pick runs on candidates with new activity,
that lastCheck also advances to the issue's updated value, which log
lines carry the backfill-window alert, and what the filter costs. The
behaviour-testing guide notes the jiramock updated change.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:35 PM UTC · Completed 7:54 PM UTC

Commit: 68cdb6c · View workflow run →

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

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://91cd6ca0-site.fullsend-ai.workers.dev

Commit: 635d83ee4c926f97e0a3fa84d8fd283181524fa4

@codecov

codecov Bot commented Nov 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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

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

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Moderate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, substantial test coverage, and a tightly aligned active linked issue.

Previous run

Risk Assessment: moderate (2/5)

Details

Moderate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, substantial test coverage, and a tightly aligned active linked issue.

Previous run (2)

Risk Assessment: moderate (2/5)

Details

Moderate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, substantial test coverage, and a tightly aligned active linked issue.

Previous run (3)

Risk Assessment: moderate (2/5)

Details

Moderate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, high test coverage, and a tightly aligned active linked issue.

Previous run (4)

Risk Assessment: moderate (2/5)

Details

Moderate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, substantial test coverage, and a tightly aligned active linked issue.

Previous run (5)

Risk Assessment: moderate (2/5)

Details

Moderate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, substantial test coverage, and a tightly aligned active linked issue.

Previous run (6)

Risk Assessment: moderate (2/5)

Details

Moderate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, substantial test coverage, and a tightly aligned active linked issue.

Previous run (7)

Risk Assessment: moderate (2/5)

Details

Moderate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, high test coverage, and a tightly aligned active linked issue.

@fullsend-ai-review

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

Copy link
Copy Markdown

Review

Findings

Low

  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:71 — The exported jiramock driver now handles updated differently. In the base version, AddIssue set Updated to time.Now(). At PR head it sets it to created, which is one hour before the call. AddCommentFromActorAt and AddLabelChangeAt now call touch(), which moves updated forward but never back. Entity property calls do not touch it. External behaviour-test consumers that assume updated is the time of the AddIssue call could see different results. No exported signatures changed. The change is intentional and documented in docs/guides/dev/behaviour-testing.md and in the AddIssue doc comment.
Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJiYWNrd2FyZC1pbmNvbXBhdGlibGUiLCJmaWxlIjoicGtnL2JlaG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0ZGQ1NiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2M0ZjEwNWRjYjQ3ZDNkMDMiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl8zZTdhMGJhYzBlYmY1NjU2Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfM2FmNWY2OWRhZmVlNGJiMiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzZlNDcwYmE3NDBmMmY1OTIiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Low

  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:71 — The exported jiramock driver now handles updated differently. In the base version, AddIssue set Updated to time.Now(). At PR head it sets it to created, which is one hour before the call. AddCommentFromActorAt and AddLabelChangeAt now call touch(), which moves updated forward but never back. Entity property calls do not touch it. External behaviour-test consumers that assume updated is the time of the AddIssue call could see different results. No exported signatures changed. The change is intentional and documented in docs/guides/dev/behaviour-testing.md and in the AddIssue doc comment.
Previous run (2)

<!-- fullsend:review-diff-hash:390875cf2702cada10ab9c23d3171364dbcbddff3e76b440e179bd0d1ea505cf -->
<!-- fullsend:review-head:968956521e179682680126e6655b794cb17583d6 -->
<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJiYWNrd2FyZC1pbmNvbXBhdGlibGUiLCJmaWxlIjoicGtnL2JlaGF2aW91cnRlc3QvZHJpdmVycy9qaXJhbW9jay9zZXJ2ZXIuZ28iLCJpZCI6ImZfOTJmMmU4YzVkNjQ2ZjBlZiIsImxpbmUiOjUyLCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiY3Jvc3Mtcm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Y0MDdkZDRkZDU2Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfYzRmMTA1ZGNiNDdkM2QwMyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzNlN2EwYmFjMGViZjU2NTYiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Low

  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:52 — The exported State.AddIssue mock now serves updated equal to created (one hour in the past) instead of the time of the call, and AddCommentFromActorAt / AddLabelChangeAt move it forward and never back. No Go signature changed, but downstream modules importing pkg/behaviourtest see different behaviour when they upgrade; step code that compares updated to a checkpoint could skip an issue it previously processed. The change is documented in docs/guides/dev/behaviour-testing.md and the PR body.
    Remediation: Optional: mention the jiramock updated semantics change in the release notes. No version bump is needed in this repo.
  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:71 — AddIssue sets Updated to the Created value instead of the current time. Scenarios that add activity with timestamps earlier than created see updated stay at created. The behaviour is deliberate and documented, so the risk is limited to downstream suites written against the old semantics.

Earlier findings

  • docs/architecture.md:553, incorrect-doc — resolved: the file changed on the base branch merged into this branch. These lines no longer describe Jira polling, and the Jira candidate-selection item is now labelled as the target state per ADR 0085.
  • docs/architecture.md:558, incorrect-doc — resolved: same evidence as above.
Previous run (3)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJiYWNrd2FyZC1pbmNvbXBhdGlibGUiLCJmaWxlIjoicGtnL2JlaGF2aW91cnRlc3QvZHJpdmVycy9qaXJhbW9jay9zZXJ2ZXIuZ28iLCJpZCI6ImZfOTJmMmU4YzVkNjQ2ZjBlZiIsImxpbmUiOjUyLCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9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kIjoiZl9kZmQ4MjY0MDdkZDRkZDU2Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfYzRmMTA1ZGNiNDdkM2QwMyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzNlN2EwYmFjMGViZjU2NTYiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Low

  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:52 — The exported State.AddIssue mock now serves updated equal to created (one hour in the past) instead of the time of the call, and AddCommentFromActorAt / AddLabelChangeAt move it forward and never back. No Go signature changed, but downstream modules importing pkg/behaviourtest see different behaviour when they upgrade; step code that compares updated to a checkpoint could skip an issue it previously processed. The change is documented in docs/guides/dev/behaviour-testing.md and the PR body.
    Remediation: Optional: mention the jiramock updated semantics change in the release notes. No version bump is needed in this repo.
  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:71 — AddIssue sets Updated to the Created value instead of the current time. Scenarios that add activity with timestamps earlier than created see updated stay at created. The behaviour is deliberate and documented, so the risk is limited to downstream suites written against the old semantics.

Earlier findings

  • docs/architecture.md:553, incorrect-doc — resolved: the file changed on the base branch merged into this branch. These lines no longer describe Jira polling, and the Jira candidate-selection item is now labelled as the target state per ADR 0085.
  • docs/architecture.md:558, incorrect-doc — resolved: same evidence as above.
Previous run (4)

<!-- fullsend:review-diff-hash:2fc4f970a911a8a712385cf470996325be614a66dc12fbb6c4135bf510f70e2a -->
<!-- fullsend:review-head:0ee5575dd996ac886d2029128f420b8c62143645 -->
<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJpbmNvcnJlY3QtZG9jIiwiZmlsZSI6ImRvY3MvYXJjaGl0ZWN0dXJlLm1kIiwiaWQiOiJ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x7ImlkIjoiZl85MmYyZThjNWQ2NDZmMGVmIiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmX2U4MjgxOWFhMTgzNGY0ZDAiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9kZmQ4MjY0MDdkZDRkZDU2Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfYzRmMTA1ZGNiNDdkM2QwMyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Low

  • [incorrect-doc] docs/architecture.md:558 — Line 558 says candidate selection "reads the per-cycle caps (N, default 5, and M, default 50) from tracker.jira.poll within fixed bounds". The config does not support this: JiraPollConfig has only Enabled and Query, and the poller hardcodes N=5 and M=50. ADR 0160 item 4 is not implemented. The file is outside this PR, and the PR body says it is left as is on purpose.
    Remediation: Say that N (5) and M (50) are fixed defaults for now, or track ADR 0160 item 4 as follow-up work.
  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:71 — The exported jiramock package now serves updated differently. AddIssue starts updated at created, and the touch helper moves it forward on comments and label changes. Signatures are unchanged, this is a test mock, and the behaviour-testing guide documents the change.
    Remediation: None required. Optionally mention it in the release notes.

Earlier findings

  • internal/jirapoll/poller_idle_test.go:178, pattern-inconsistency — resolved. The local contains helper is gone, and line 174 now calls slices.Contains.
Previous run (5)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJpbmNvcnJlY3QtZG9jIiwiZmlsZSI6ImRvY3MvYXJjaGl0ZWN0dXJlLm1kIiwiaWQiOiJmXzNhZjVmNjlkYWZlZTRiYjIiLCJsaW5lIjo1NTgsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJkb2NzLWN1cnJlbmN5In0seyJz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iOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9kZmQ4MjY0MDdkZDRkZDU2Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfYzRmMTA1ZGNiNDdkM2QwMyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Low

  • [incorrect-doc] docs/architecture.md:558 — Line 558 says candidate selection "reads the per-cycle caps (N, default 5, and M, default 50) from tracker.jira.poll within fixed bounds". The config does not support this: JiraPollConfig has only Enabled and Query, and the poller hardcodes N=5 and M=50. ADR 0160 item 4 is not implemented. The file is outside this PR, and the PR body says it is left as is on purpose.
    Remediation: Say that N (5) and M (50) are fixed defaults for now, or track ADR 0160 item 4 as follow-up work.
  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:71 — The exported jiramock package now serves updated differently. AddIssue starts updated at created, and the touch helper moves it forward on comments and label changes. Signatures are unchanged, this is a test mock, and the behaviour-testing guide documents the change.
    Remediation: None required. Optionally mention it in the release notes.

Earlier findings

  • internal/jirapoll/poller_idle_test.go:178, pattern-inconsistency — resolved. The local contains helper is gone, and line 174 now calls slices.Contains.
Previous run (6)

<!-- fullsend:review-diff-hash:97084e5aefa222fe6d857114b793b2194b2faebe438c94cc238be92082358841 -->
<!-- fullsend:review-head:2a063c9b86969f0f6c8502ddbefb2e5dba2a7ca1 -->
<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJpbmNvcnJlY3QtZG9jIiwiZmlsZSI6ImRvY3MvYXJjaGl0ZWN0dXJlLm1kIiwiaWQiOiJmXzNhZjVmNjlkYWZlZTRiYjIiLCJsaW5lIjo1NTgsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJkb2NzLWN1cnJlbmN5In0seyJz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ifV19 -->

Review

Findings

Low

  • [incorrect-doc] docs/architecture.md:558 — The bullet says Jira poll candidate selection reads the per-cycle caps (N, default 5; M, default 50) from tracker.jira.poll. ADR 0160 item 4 (those config keys) is not implemented, so the caps are still fixed driver defaults. The PR leaves this file untouched on purpose and says an upcoming ADR amendment replaces the keys.
    Remediation: Until item 4 lands, say in the doc that the caps are fixed driver defaults.
  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:71 — The exported State.AddIssue keeps its signature but now seeds updated equal to created. The poller now filters on updated, so consumers of the mock (for example pkg/behaviourtest/steps/jirapoll.go, internal/cli/jira_lifecycle_test.go) see different activity-filter behavior. The PR documents this in docs/guides/dev/behaviour-testing.md; the change is source-compatible.
    Remediation: Optional. Confirm the in-repo consumers still pass and mention the new seeding in the release notes.
  • [pattern-inconsistency] internal/jirapoll/poller_idle_test.go:178 — The new test file defines a custom contains(list []string, s string) bool helper with one caller (line 173). internal/jirapoll/auth.go and internal/forge/jira/client.go use slices.Contains.
    Remediation: Optional nit. Use slices.Contains and delete the helper.
Previous run (7)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJpbmNvcnJlY3QtZG9jIiwiZmlsZSI6ImRvY3MvYXJjaGl0ZWN0dXJlLm1kIiwiaWQiOiJmXzNhZjVmNjlkYWZlZTRiYjIiLCJsaW5lIjo1NTgsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJkb2NzLWN1cnJlbmN5In0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiYmFja3dhcmQtaW5jb21wYXRpYmxlIiwiZmlsZSI6InBrZy9iZWhhdmlvdXJ0ZXN0L2RyaXZlcnMvamlyYW1vY2svc2VydmVyLmdvIiwiaWQiOiJmX2JjOWE5YmY5ZDY2YmEzNDEiLCJsaW5lIjo3MSwiYWN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JjYXRlZ29yeSI6InBhdHRlcm4taW5jb25zaXN0ZW5jeSIsImZpbGUiOiJwa2cvYmVoYXZpb3VydGVzdC9kcml2ZXJzL2ppcmFtb2NrL3NlcnZlcl90ZXN0LmdvIiwiaWQiOiJmX2RmZDgyNjQwN2RkNGRkNTYiLCJsaW5lIjozMTUsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6InN0eWxlLWNvbnZlbnRpb25zIn0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoicGF0dGVybi1pbmNvbnNpc3RlbmN5IiwiZmlsZSI6ImludGVybmFsL2ppcmFwb2xsL3BvbGxlcl9pZGxlX3Rlc3QuZ28iLCJpZCI6ImZfYzRmMTA1ZGNiNDdkM2QwMyIsImxpbmUiOjE5LCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoic3R5bGUtY29udmVudGlvbnMifV0sImRpc3Bvc2l0aW9ucyI6W3siaWQiOiJmXzZlNDcwYmE3NDBmMmY1OTIiLCJzdGF0dXMiOiJvcGVuIn0seyJpZCI6ImZfOTJmMmU4YzVkNjQ2ZjBlZiIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl9lODI4MTlhYTE4MzRmNGQwIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZGZkODI2NDA3ZGQ0ZGQ1NiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2M0ZjEwNWRjYjQ3ZDNkMDMiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Low

  • [incorrect-doc] docs/architecture.md:558 — The bullet says Jira poll candidate selection reads the per-cycle caps (N, default 5; M, default 50) from tracker.jira.poll. ADR 0160 item 4 (those config keys) is not implemented, so the caps are still fixed driver defaults. The PR leaves this file untouched on purpose and says an upcoming ADR amendment replaces the keys.
    Remediation: Until item 4 lands, say in the doc that the caps are fixed driver defaults.
  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:71 — The exported State.AddIssue keeps its signature but now seeds updated equal to created. The poller now filters on updated, so consumers of the mock (for example pkg/behaviourtest/steps/jirapoll.go, internal/cli/jira_lifecycle_test.go) see different activity-filter behavior. The PR documents this in docs/guides/dev/behaviour-testing.md; the change is source-compatible.
    Remediation: Optional. Confirm the in-repo consumers still pass and mention the new seeding in the release notes.
  • [pattern-inconsistency] internal/jirapoll/poller_idle_test.go:178 — The new test file defines a custom contains(list []string, s string) bool helper with one caller (line 173). internal/jirapoll/auth.go and internal/forge/jira/client.go use slices.Contains.
    Remediation: Optional nit. Use slices.Contains and delete the helper.
Previous run (8)

<!-- fullsend:review-diff-hash:97084e5aefa222fe6d857114b793b2194b2faebe438c94cc238be92082358841 -->
<!-- fullsend:review-head:2a063c9b86969f0f6c8502ddbefb2e5dba2a7ca1 -->
<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJpbmNvcnJlY3QtZG9jIiwiZmlsZSI6ImRvY3MvYXJjaGl0ZWN0dXJlLm1kIiwiaWQiOiJmXzZlNDcwYmE3NDBmMmY1OTIiLCJsaW5lIjo1NTMsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJkb2NzLWN1cnJlbmN5In0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiYmFja3dhcmQtaW5jb21wYXRpYmxlIiwiZmlsZSI6InBrZy9iZWhhdmlvdXJ0ZXN0L2RyaXZlcnMvamlyYW1vY2svc2VydmVyLmdvIiwiaWQiOiJmXzkyZjJlOGM1ZDY0NmYwZWYiLCJsaW5lIjo1MiwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6ImNyb3NzLXJlcG8tY29udHJhY3RzIn0seyJzZXZlcml0eSI6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NiNDdkM2QwMyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Low

  • [incorrect-doc] docs/architecture.md:553 — The doc says Jira poll candidate selection reads the per-cycle caps (N=5, M=50) from tracker.jira.poll. The code does not do this: the caps stay fixed at the defaults in internal/jirapoll/poller.go, and ADR 0160 item 4 is deferred, as the PR description says. Unchanged since the prior review.
    Remediation: Say that candidate selection uses fixed default caps (N=5, M=50), and that configurable caps are deferred.
  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:52 — AddIssue now serves updated equal to created (one hour in the past), where it used to serve the time of the call. Other repos that import this public mock may see issues treated as idle by the new no-new-activity filter unless they call AddCommentFromActorAt or AddLabelChangeAt. The Go API is only extended, and the behaviour-testing guide notes the change.
    Remediation: Optional. Keep the guide note and mention the change in release notes.
Previous run (9)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJpbmNvcnJlY3QtZG9jIiwiZmlsZSI6ImRvY3MvYXJjaGl0ZWN0dXJlLm1kIiwiaWQiOiJmXzZlNDcwYmE3NDBmMmY1OTIiLCJsaW5lIjo1NTMsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJkb2NzLWN1cnJlbmN5In0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiYmFja3dhcmQtaW5jb21wYXRpYmxlIiwiZmlsZSI6InBrZy9iZWhhdmlvdXJ0ZXN0L2RyaXZlcnMvamlyYW1vY2svc2VydmVyLmdvIiwiaWQiOiJmXzkyZjJlOGM1ZDY0NmYwZWYiLCJsaW5lIjo1MiwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6ImNyb3NzLXJlcG8tY29udHJhY3RzIn0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiZWRnZ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lc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Low

  • [incorrect-doc] docs/architecture.md:553 — The doc says Jira poll candidate selection reads the per-cycle caps (N=5, M=50) from tracker.jira.poll. The code does not do this: the caps stay fixed at the defaults in internal/jirapoll/poller.go, and ADR 0160 item 4 is deferred, as the PR description says. Unchanged since the prior review.
    Remediation: Say that candidate selection uses fixed default caps (N=5, M=50), and that configurable caps are deferred.
  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:52 — AddIssue now serves updated equal to created (one hour in the past), where it used to serve the time of the call. Other repos that import this public mock may see issues treated as idle by the new no-new-activity filter unless they call AddCommentFromActorAt or AddLabelChangeAt. The Go API is only extended, and the behaviour-testing guide notes the change.
    Remediation: Optional. Keep the guide note and mention the change in release notes.
Previous run (10)

<!-- fullsend:review-diff-hash:97084e5aefa222fe6d857114b793b2194b2faebe438c94cc238be92082358841 -->
<!-- fullsend:review-head:2a063c9b86969f0f6c8502ddbefb2e5dba2a7ca1 -->
<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJpbmNvcnJlY3QtZG9jIiwiZmlsZSI6ImRvY3MvYXJjaGl0ZWN0dXJlLm1kIiwiaWQiOiJmXzZlNDcwYmE3NDBmMmY1OTIiLCJsaW5lIjo1NTMsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJkb2NzLWN1cnJlbmN5In0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiYmFja3dhcmQtaW5jb21wYXRpYmxlIiwiZmlsZSI6InBrZy9iZWhhdmlvdXJ0ZXN0L2RyaXZlcnMvamlyYW1vY2svc2VydmVyLmdvIiwiaWQiOiJmXzkyZjJlOGM1ZDY0NmYwZWYiLCJsaW5lIjo1MiwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2l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zb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZGZkODI2NDA3ZGQ0ZGQ1NiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Low

  • [incorrect-doc] docs/architecture.md:553 — The text says Jira poll candidate selection "reads the per-cycle caps (N, default 5, and M, default 50) from tracker.jira.poll within fixed bounds". config.JiraPollConfig has only Enabled and Query, so no cap is read from config. The PR leaves this file alone on purpose and defers ADR 0160 item 4.
    Remediation: Say in docs/architecture.md that N and M stay fixed poller defaults until config support is added.
  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:52 — The exported mock State.AddIssue now sets Fields.Updated to the creation time instead of time.Now(). AddCommentFromActorAt and AddLabelChangeAt now move Updated forward. External behaviour-test consumers of this public package could see different results. The package is a test driver, so the impact is limited.
    Remediation: Mention the changed mock semantics in the package doc or release notes.

Earlier findings

  • internal/jirapoll/poller_idle_test.go:19, pattern-inconsistency — resolved. The duplicate local jiraTS constant was removed and the file now uses the package jiraTimeLayout.
Previous run (11)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJpbmNvcnJlY3QtZG9jIiwiZmlsZSI6ImRvY3MvYXJjaGl0ZWN0dXJlLm1kIiwiaWQiOiJmXzZlNDcwYmE3NDBmMmY1OTIiLCJsaW5lIjo1NTMsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJkb2NzLWN1cnJlbmN5In0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiYmFja3dhcmQtaW5jb21wYXRpYmxlIiwiZmlsZSI6InBrZy9iZWhhdmlvdXJ0ZXN0L2RyaXZlcnMvamlyYW1vY2svc2VydmVyLmdvIiwiaWQiOiJmXzkyZjJlOGM1ZDY0NmYwZWYiLCJsaW5lIjo1MiwiYWN0a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hYTE4MzRmNGQwIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZGZkODI2NDA3ZGQ0ZGQ1NiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Low

  • [incorrect-doc] docs/architecture.md:553 — The text says Jira poll candidate selection "reads the per-cycle caps (N, default 5, and M, default 50) from tracker.jira.poll within fixed bounds". config.JiraPollConfig has only Enabled and Query, so no cap is read from config. The PR leaves this file alone on purpose and defers ADR 0160 item 4.
    Remediation: Say in docs/architecture.md that N and M stay fixed poller defaults until config support is added.
  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:52 — The exported mock State.AddIssue now sets Fields.Updated to the creation time instead of time.Now(). AddCommentFromActorAt and AddLabelChangeAt now move Updated forward. External behaviour-test consumers of this public package could see different results. The package is a test driver, so the impact is limited.
    Remediation: Mention the changed mock semantics in the package doc or release notes.

Earlier findings

  • internal/jirapoll/poller_idle_test.go:19, pattern-inconsistency — resolved. The duplicate local jiraTS constant was removed and the file now uses the package jiraTimeLayout.
Previous run (12)

<!-- fullsend:review-diff-hash:c674a7a525cbe05c21fbd4b2615b8617be2d3b8eea44021700c1c6779f7e3234 -->
<!-- fullsend:review-head:f754d2232a2b06fca340cabf36a68769c8d2df47 -->
<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJwYXR0ZXJuLWluY29uc2lzdGVuY3kiLCJmaWxlIjoiaW50ZXJuYWwvamlyYXBvbGwvcG9sbGVyX2lkbGVfdGVzdC5nbyIsImlkIjoiZl9jNGYxMDVkY2I0N2QzZDAzIiwibGluZSI6MTksImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJzdHlsZS1jb252ZW50aW9ucyJ9LHsic2V2ZXJpdHkiOiJsb3ciLC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JmX2RmZDgyNjQwN2RkNGRkNTYiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl82ZTQ3MGJhNzQwZjJmNTkyIiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmXzkyZjJlOGM1ZDY0NmYwZWYiLCJzdGF0dXMiOiJvcGVuIn1dfQ== -->

Review

Findings

Low

  • [pattern-inconsistency] internal/jirapoll/poller_idle_test.go:19 — poller_idle_test.go declares const jiraTS = "2006-01-02T15:04:05.000-0700", but auth_test.go in the same package already declares jiraTimeLayout with the same value. The new constant duplicates it under a different name.
    Remediation: Drop jiraTS and use jiraTimeLayout in poller_idle_test.go.
  • [incorrect-doc] docs/architecture.md:553 — The Jira poll bullet says the per-cycle caps (N, M) are read from tracker.jira.poll. This PR does not add those config keys (ADR 0160 item 4), and internal/jirapoll/poller.go still hardcodes N=5 and M=50. The PR description says the line is left as is on purpose.
    Remediation: Reword the bullet to say the caps are fixed at N=5 and M=50 until item 4 lands, or update it in the item 4 change.
  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:52 — The exported jiramock package now serves updated equal to created from AddIssue, and moves it forward on comments and label changes. The API is unchanged, but external consumers of the mock see different updated values.

Earlier findings

  • pkg/behaviourtest/drivers/jiramock/server.go:232, edge-case — resolved. handleGetIssue now copies the issue under s.mu, and TestGetIssueConcurrentWithActivity covers a GET running beside the touch writers.
  • pkg/behaviourtest/drivers/jiramock/server_test.go:315, pattern-inconsistency — resolved. The remaining literal timestamp layouts in server_test.go now use jiraTimeLayout.
Previous run (13)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJwYXR0ZXJuLWluY29uc2lzdGVuY3kiLCJmaWxlIjoiaW50ZXJuYWwvamlyYXBvbGwvcG9sbGVyX2lkbGVfdGVzdC5nbyIsImlkI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JzdHlsZS1jb252ZW50aW9ucyJ9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfZTgyODE5YWExODM0ZjRkMCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2RmZDgyNjQwN2RkNGRkNTYiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl82ZTQ3MGJhNzQwZjJmNTkyIiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmXzkyZjJlOGM1ZDY0NmYwZWYiLCJzdGF0dXMiOiJvcGVuIn1dfQ== -->

Review

Findings

Low

  • [pattern-inconsistency] internal/jirapoll/poller_idle_test.go:19 — poller_idle_test.go declares const jiraTS = "2006-01-02T15:04:05.000-0700", but auth_test.go in the same package already declares jiraTimeLayout with the same value. The new constant duplicates it under a different name.
    Remediation: Drop jiraTS and use jiraTimeLayout in poller_idle_test.go.
  • [incorrect-doc] docs/architecture.md:553 — The Jira poll bullet says the per-cycle caps (N, M) are read from tracker.jira.poll. This PR does not add those config keys (ADR 0160 item 4), and internal/jirapoll/poller.go still hardcodes N=5 and M=50. The PR description says the line is left as is on purpose.
    Remediation: Reword the bullet to say the caps are fixed at N=5 and M=50 until item 4 lands, or update it in the item 4 change.
  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:52 — The exported jiramock package now serves updated equal to created from AddIssue, and moves it forward on comments and label changes. The API is unchanged, but external consumers of the mock see different updated values.

Earlier findings

  • pkg/behaviourtest/drivers/jiramock/server.go:232, edge-case — resolved. handleGetIssue now copies the issue under s.mu, and TestGetIssueConcurrentWithActivity covers a GET running beside the touch writers.
  • pkg/behaviourtest/drivers/jiramock/server_test.go:315, pattern-inconsistency — resolved. The remaining literal timestamp layouts in server_test.go now use jiraTimeLayout.
Previous run (14)

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

Review

Findings

Low

  • [edge-case] pkg/behaviourtest/drivers/jiramock/server.go:232 — The new touch helper writes issue.Fields.Updated under s.mu, and AddCommentFromActorAt and AddLabelChangeAt now call it. handleGetIssue looks up the *jira.Issue pointer under s.mu, unlocks, and then JSON-encodes the shared pointer. A test that adds a comment while a GET is in flight is a data race under -race. Before this PR, adding a comment did not mutate the issue struct, so this extends an existing label-write race to the comment path.
    Remediation: In handleGetIssue, copy the issue while holding s.mu (cp := *issue) and encode the copy, as handleSearch already does. Optionally add a race-enabled test that adds comments and fetches the issue concurrently.

  • [pattern-inconsistency] pkg/behaviourtest/drivers/jiramock/server_test.go:315 — The served() helper repeats the literal "2006-01-02T15:04:05.000-0700" in its time.Parse calls (lines 315 and 317, and again at lines 107 and 114), although this PR adds jiraTimeLayout in server.go (same package).
    Remediation: Use jiraTimeLayout in these time.Parse calls.

  • [incorrect-doc] docs/architecture.md:553 — This file is not in the PR diff. It says the poller "reads the per-cycle caps (N, default 5, and M, default 50) from tracker.jira.poll", but no such config keys exist under internal/. The text predates this PR, and the PR body says it is left as is until the ADR 0160 amendment. This is noted for the follow-up and does not block this PR.
    Remediation: When the ADR 0160 amendment lands, or sooner, say that N (5) and M (50) are currently fixed defaults.

  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:52 — jiramock is a public package. AddIssue now serves updated equal to created (now minus one hour) instead of the call time, and comment and label helpers now move updated. No exported signature changed, and behaviour-testing.md documents the change. The pinned pkg/behaviourtest version is not bumped. Risk is small because the mock exists for this repo's poller.
    Remediation: Confirm no external consumer pins pkg/behaviourtest and relies on a fresh updated. If one does, bump the pinned version or note the change in the release notes.


Labels: PR changes Go code in the Jira poller and its test mock, plus user-facing guides.


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 go Pull requests that update go code component/docs User-facing documentation labels Nov 20, 2026
handleGetIssue looked up the stored issue under the state lock and
encoded the shared pointer after unlocking, while the State helpers
write its fields (updated, labels, ID) under the lock. A GET that ran
beside one of them was a data race under -race. Copy the issue under
the lock, as handleSearch already does, and add a test that fails on
the old handler.

The jiramock tests now parse timestamps with jiraTimeLayout instead of
repeating the layout literal.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
@dhshah13 dhshah13 added the ok-to-test Allow e2e CI to run after maintainer review (must be re-applied after each push) label Nov 20, 2026
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 8:05 PM UTC · Completed 8:14 PM UTC

Commit: f754d22 · View workflow run →

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

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Nov 20, 2026
poller_idle_test.go declared its own jiraTS with the same value as
jiraTimeLayout in auth_test.go. Drop it and use the existing constant.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 8:29 PM UTC · Completed 8:37 PM UTC

Commit: 2a063c9 · View workflow run →

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

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review November 20, 2026 20:37

Superseded by updated review

@dhshah13
dhshah13 marked this pull request as ready for review November 20, 2026 21:47
@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Nov 30, 2026

@waynesun09 waynesun09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MEDIUM] internal/jirapoll/poller.go:187 (outside the diff, so it is here and not inline): any issue that keeps failing in processIssue now turns every quiet cycle red, not only one with an unparseable lastCheck.

When processIssue returns an error, the issue's lastCheck stays where it was. hasNewActivity (poller.go:539) therefore keeps the issue active on every cycle. In a quiet project it is often the only active candidate, so processErrors == len(selected) holds and Run returns all 1 selected issues failed to process on every cron tick. Before this PR the issue was one of up to 50 unlocked candidates in a random pick of N, so the run rarely went red.

The unparseable-lastCheck route (read lastCheck, poller.go:648) is already deferred to #9766/#9852, and both of those cover only that route. Other per-issue errors that keep coming back reach the same state and have no tracking issue:

  • detect changes (poller.go:653), for example a ListComments or ListChangelog error, or a status-resolution error from mapChangelogItem
  • resolve actor roles (poller.go:720-722, %d of %d actor group lookups failed, auth.go:408)

The user guide does not describe this failure mode.

Suggestion: choose one fix and say in the PR which one.

  • (a) Widen #9766 from the unparseable-lastCheck case to every per-issue error that keeps coming back. For example, do not count an issue against the all-failed guard if it also failed last cycle, or after K consecutive failures, and keep its per-issue WARNING.
  • (b) Add a troubleshooting row to the user guide: an issue that fails on every look now fails every quiet cycle, and the cause is in the per-issue WARNING: processing <key> line above the error.

Verified: read code at head (poller.go:172-188, 539-560, 620-722); checked #9766 scope via gh issue view at a186278; raised by: Claude, DeepSeek

Comment thread internal/jirapoll/poller.go Resolved

@jflowers jflowers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Council Review: feat(jirapoll): skip Jira poll candidates with no new activity

Verdict: APPROVE WITH ADVISORIES (no CRITICAL or HIGH findings; posted as APPROVE).

Summary

Implements ADR 0160 Decision items 1 and 3: the lock-filtering pass now reads each unlocked candidate's lastCheck and keeps only candidates with new activity (one activity filter: log line per cycle, WARNING only past the 1s gap tolerance), and detectChanges raises maxSeen to the search row's updated before the 10-second safety-margin cap. jiramock now tracks updated from activity, which the new 605-line idle-test suite uses to pin the behavior. All 7 dispatched reviewers returned approving verdicts (5 APPROVE, 2 APPROVE WITH ADVISORIES); CI is fully green, including codecov/patch (100% patch coverage) and behaviour-github-emulator.

Dispatch Provenance

Run Agent Verdict
facfea1c divisor-adversary APPROVE
6033c4a0 divisor-architect APPROVE
76895260 divisor-curator APPROVE
6f2f899f divisor-fullsend APPROVE
0bd37408 divisor-gaze-testing APPROVE WITH ADVISORIES
1e098f25 divisor-guard APPROVE
5c2c626a divisor-testing APPROVE WITH ADVISORIES

(dispatch correlation e03d42d7-f195-4844-914a-4d3ed8da06b8)

Advisories (3, all LOW)

  1. [LOW · test-quality] pkg/behaviourtest/drivers/jiramock/server_test.go — the TestGetIssueConcurrentWithActivity writer goroutine spins without sleep/yield; CPU burn and flake risk under -race on constrained runners (divisor-gaze-testing).
  2. [LOW · testing-conventions] pkg/behaviourtest/drivers/jiramock/server_test.go — the new tests extend the file's testify usage, which deviates from the Go pack's stdlib-only assertion rules TC-001/TC-002 (divisor-gaze-testing).
  3. [LOW · regression-protection] internal/jirapoll/poller_idle_test.go — the 1s gapTolerance boundary is sampled (5ms, 2s) but never pinned exactly; a >→>= change or constant edit would shift the operator-facing miss-activity alert without failing a test (divisor-testing).

Alignment

  • ADR 0160 Decision items 1 and 3 are implemented as accepted; item 4 (config keys) is intentionally omitted per ADR 0085. Linked issue #9751: criterion 1 of 4 is covered by this PR (criteria 2–4 are pending amendments outside this change).
  • Prior review threads (waynesun09's discover.go examples, ralphbean's doc items, bot findings) are addressed at this head; the intentional jiramock updated behaviors are documented in the PR threads.

Local verification

Gates ran at: a186278710610c32d1a51efadf98788e7874ec01 (worktree); config from f0d83c62ebc72455d3f0fec698df7159a04caa71. All detected tools (go test, pre-commit, make check) are covered by the passing CI test check; no local failures. (Project-declared checks could not run due to an environmental worktree-path mismatch in the review tooling — unrelated to this PR.)

This review was generated by /uf.review-pr (AI-assisted).

Comment thread internal/jirapoll/poller_idle_test.go Resolved

@jflowers jflowers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Council Review: feat(jirapoll): skip Jira poll candidates with no new activity

Verdict: APPROVE WITH ADVISORIES (no CRITICAL or HIGH findings; posted as APPROVE). This run supersedes review 6117553110 on the same head with a materially updated advisory set: one new MEDIUM (ADR 0160 wording divergence), two new LOW findings, and two LOW advisories from the earlier run this council did not reproduce.

Summary

Implements ADR 0160 Decision items 1 and 3: the lock-filtering pass reads each unlocked candidate's lastCheck and keeps only candidates with new activity (failing open on unset, unreadable, or garbage values so an editor cannot hide an issue), and detectChanges raises maxSeen to the search row's updated before the 10-second safety-margin cap. jiramock now tracks updated from activity, and the new 605-line idle suite pins the decision table, per-cycle cost, and clamp reporting. All 7 dispatched reviewers returned approving verdicts (4 APPROVE, 3 APPROVE WITH ADVISORIES); CI is fully green on the head, including codecov/patch at 100% patch coverage.

Dispatch Provenance

Run Agent Source Model Verdict
aa1333e4 divisor-adversary advisor Muse-Spark-Open-816B-A42B-NVFP4 APPROVE
cb4038a2 divisor-architect advisor Muse-Spark-Open-816B-A42B-NVFP4 APPROVE
0637f303 divisor-curator advisor Muse-Spark-Open-816B-A42B-NVFP4 APPROVE
44d06eaf divisor-fullsend advisor Muse-Spark-Open-816B-A42B-NVFP4 APPROVE
1ff64cca divisor-gaze-testing advisor Muse-Spark-Open-816B-A42B-NVFP4 APPROVE WITH ADVISORIES
20f4e3f0 divisor-guard advisor Muse-Spark-Open-816B-A42B-NVFP4 APPROVE WITH ADVISORIES
27b5edb3 divisor-testing host zai-org/glm-5-3 APPROVE WITH ADVISORIES

(correlation 34618691-eb38-4577-ac11-8a19b3347ae0)

Advisories (5: 1 MEDIUM, 4 LOW)

All five findings are posted inline. The MEDIUM item is the ADR 0160 floored-checkpoint wording divergence the PR body already documents and tracks in #9956; the four LOW items cover test naming, implicit wall-clock budgets in the margin tests, the SetIssueLabels fixture gap in jiramock, and the gapTolerance boundary case.

Alignment

ADR 0160 Decision items 1 and 3 land as accepted, with the documented #9956 divergence on the floored-checkpoint clause. Item 4 (config keys) stays out per ADR 0085, and #9751 criterion 1 of 4 is covered here. Prior threads (waynesun09's changelog examples, ralphbean's doc notes, the bot findings) are addressed at this head; the two intentional jiramock threads remain open for a maintainer.

Local verification

Gates ran at a186278710610c32d1a51efadf98788e7874ec01 (worktree); config from 66d7918847650225eaa7cd00e2a389484014e79c. Detected tools are covered by the passing CI test and lint checks; no local failures. Project-declared checks did not run (the declared-checks tool rejected the worktree root through the repo's symlinked .uf path); all three declared checks are path-scoped outside this diff, so none would have applied.

This review was generated by /uf.review-pr (AI-assisted).

Comment thread internal/jirapoll/poller.go Resolved
Comment thread internal/jirapoll/poller_idle_test.go Resolved
Comment thread internal/jirapoll/poller_idle_test.go Resolved
Comment thread internal/jirapoll/poller.go Resolved
Signed-off-by: Dharit Shah <dhshah@redhat.com>
… loop

Closes #9987.

- jiramock: TestGetIssueConcurrentWithActivity sleeps 1 ms after each
  AddComment, as suggested in review. Under -race with GOMAXPROCS=1 a run
  now takes about 0.02 s instead of 5.6 s.
- jirapoll: an idle issue whose updated is exactly 1 s after its stored
  lastCheck stays out of the alert group, so changing > to >= or lowering
  gapTolerance now fails TestRunLogsOneClampLinePerCycle.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
…est budgets

- poller.go: hasNewActivity's comment says a lastCheck clamped to the
  window's start leaves the issue idle unless updated is inside the
  window, that ADR 0160's Option B and Consequences say otherwise, and
  that #9956 tracks the correction.
- behaviour-testing.md: SetIssueLabels never moves updated and adds no
  changelog entry; use AddLabelChange for a label change that should
  count as activity.
- poller_idle_test.go: the two margin tests note how soon after now the
  poll must run for them to hold.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
…activity filter

TestRun_NoMatchWarningSkipped's "no events on the selected issue" seeded
lastCheck at the issue's updated time. With the activity filter the issue
was idle and never selected, so the subtest passed without reaching the
case it names. Seed lastCheck a minute earlier, check that the issue was
looked at, and reword warnNoMatch's comment to match.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 5:55 PM UTC · Completed 6:05 PM UTC

Commit: 635d83e · View workflow run →

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

@fullsend-ai-review fullsend-ai-review Bot removed the ready-for-merge All reviewers approved — ready to merge label Dec 1, 2026
@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Moderate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, substantial test coverage, and a tightly aligned active linked issue.

@fullsend-ai-review

fullsend-ai-review Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Review

Findings

Low

  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:71 — In the exported pkg/behaviourtest jiramock driver, AddIssue used to set Updated to time.Now() at insertion. It now sets Updated equal to Created, and activity helpers move it forward. External tests that assumed Updated was later than Created may see different poller behaviour. Nothing breaks at compile time; the change is deliberate and documented.
    Remediation: Optional: mention the mock's changed Updated semantics in the release notes.
  • [backward-incompatible] pkg/behaviourtest/drivers/jiramock/server.go:52 — Created and Updated now hold the same value in AddIssue, and touch only moves Updated forward. Tests that assumed Updated differs from Created may behave differently. This is a test-mock semantic shift with no compile-time break.
    Remediation: Optional: note the change in the release notes.

@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review December 1, 2026 18:05

Superseded by updated review

@fullsend-ai-review

Copy link
Copy Markdown

Finding threads left open (9):

  1. Thread: someone other than the review bot commented in this older copy of a finding thread. Next step: answer the comment, then resolve the thread; a newer thread carries the same finding.
  2. Thread: the explanation was posted in this older copy of a finding thread, but it could not be resolved. Reason: FORBIDDEN: Resource not accessible by integration. Next step: resolve it manually.
  3. Thread: someone other than the review bot commented in this older copy of a finding thread. Next step: answer the comment, then resolve the thread; a newer thread carries the same finding.
  4. Thread: someone other than the review bot commented in this older copy of a finding thread. Next step: answer the comment, then resolve the thread; a newer thread carries the same finding.
  5. Thread: someone other than the review bot commented in this older copy of a finding thread. Next step: answer the comment, then resolve the thread; a newer thread carries the same finding.
  6. Thread: someone other than the review bot commented in this older copy of a finding thread. Next step: answer the comment, then resolve the thread; a newer thread carries the same finding.
  7. Thread: someone other than the review bot commented in this older copy of a finding thread. Next step: answer the comment, then resolve the thread; a newer thread carries the same finding.
  8. Thread: the explanation was posted in this older copy of a finding thread, but it could not be resolved. Reason: FORBIDDEN: Resource not accessible by integration. Next step: resolve it manually.
  9. Thread: someone other than the review bot commented in this older copy of a finding thread. Next step: answer the comment, then resolve the thread; a newer thread carries the same finding.

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Dec 1, 2026
@dhshah13

dhshah13 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

@jflowers every open thread here has a reply, and they all need resolving before this can merge. Could you resolve them where the reply works for you? The review bot's threads have to be resolved by someone other than me, or the bot posts them again (re-review.md#L37-L41).

@jflowers

jflowers commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

@jflowers every open thread here has a reply, and they all need resolving before this can merge. Could you resolve them where the reply works for you? The review bot's threads have to be resolved by someone other than me, or the bot posts them again (re-review.md#L37-L41).

Done

@dhshah13
dhshah13 added this pull request to the merge queue Dec 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 2, 2026
@dhshah13
dhshah13 added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit 39a5f16 Dec 2, 2026
184 checks passed
@dhshah13
dhshah13 deleted the feat/jirapoll-skip-idle branch December 2, 2026 14:43
@dhshah13
dhshah13 restored the feat/jirapoll-skip-idle branch December 2, 2026 14:45
@dhshah13
dhshah13 deleted the feat/jirapoll-skip-idle branch December 2, 2026 14:47

This branch was successfully deployed

1 active and 1 inactive deployments
site-preview — 635d83ee Deployed Dec 1, 2026 by github-actions[bot]
forgejo-dev — 635d83ee Deployed Dec 1, 2026 by dhshah13 via forgejo-behaviour #21649
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/docs User-facing documentation go Pull requests that update go code ok-to-test Allow e2e CI to run after maintainer review (must be re-applied after each push) ready-for-merge All reviewers approved — ready to merge risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants