Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
527843f
fix(jirapoll): treat an unparseable lastCheck as unset
guyoron1 Nov 25, 2026
e0d3663
feat(jirapoll)!: remove the per-issue lock and check write access first
guyoron1 Nov 25, 2026
c060643
refactor(jirapoll): return an issue's records with its checkpoint as …
guyoron1 Nov 25, 2026
c999cae
test(jirapoll): cover both bad lastCheck forms and the all-failed guard
guyoron1 Nov 26, 2026
71112a5
test(jirapoll): pin the write check, the retry and the poll queue
guyoron1 Nov 26, 2026
5d27b04
docs(jira-poll): leave architecture.md alone and describe the write c…
guyoron1 Nov 26, 2026
6635f32
Merge branch 'feat/jirapoll-remove-lock' into refactor/jirapoll-issue…
guyoron1 Nov 26, 2026
2d83300
Merge branch 'fix/jirapoll-unparseable-lastcheck' into feat/jirapoll-…
guyoron1 Nov 26, 2026
a772539
Merge branch 'feat/jirapoll-remove-lock' into refactor/jirapoll-issue…
guyoron1 Nov 26, 2026
2fa4335
Merge branch 'chore/jirapoll-skip-idle-merge-main' into restack/unpar…
guyoron1 Nov 27, 2026
5814593
Merge branch 'restack/unparseable-lastcheck' into restack/remove-lock
guyoron1 Nov 27, 2026
d94f734
Merge branch 'restack/remove-lock' into restack/issue-records-unit
guyoron1 Nov 27, 2026
f32dd09
docs(jirapoll): drop the lock from two comments that came with the ma…
guyoron1 Nov 27, 2026
3607b26
Merge branch 'restack/remove-lock' into restack/issue-records-unit
guyoron1 Nov 27, 2026
1216ae9
Merge branch 'chore/jirapoll-skip-idle-merge-main' into restack/unpar…
guyoron1 Nov 30, 2026
bf8aafc
Merge branch 'restack/unparseable-lastcheck' into restack/remove-lock
guyoron1 Nov 30, 2026
191c0d7
Merge branch 'restack/remove-lock' into restack/issue-records-unit
guyoron1 Nov 30, 2026
b3b6024
Merge branch 'feat/jirapoll-skip-idle' into fix/jirapoll-unparseable-…
guyoron1 Dec 1, 2026
194ca1f
Merge branch 'fix/jirapoll-unparseable-lastcheck' into feat/jirapoll-…
guyoron1 Dec 1, 2026
94672e4
Merge branch 'feat/jirapoll-remove-lock' into refactor/jirapoll-issue…
guyoron1 Dec 1, 2026
d226986
docs(jira-poll): add troubleshooting rows for overlapping cycles and …
guyoron1 Dec 1, 2026
f9a7ed2
Merge branch 'feat/jirapoll-remove-lock' into refactor/jirapoll-issue…
guyoron1 Dec 1, 2026
8827fae
docs(jira-poll): name the token scope the write check needs
guyoron1 Dec 1, 2026
48c7b23
Merge branch 'feat/jirapoll-remove-lock' into refactor/jirapoll-issue…
guyoron1 Dec 1, 2026
07582e1
docs(jirapoll): drop the lock from the entity execution table and a t…
guyoron1 Dec 1, 2026
dff9273
Merge branch 'feat/jirapoll-remove-lock' into refactor/jirapoll-issue…
guyoron1 Dec 1, 2026
9c87e7e
Merge branch 'feat/jirapoll-skip-idle' into feat/jirapoll-remove-lock
guyoron1 Dec 2, 2026
96699c2
Merge branch 'feat/jirapoll-remove-lock' into refactor/jirapoll-issue…
guyoron1 Dec 2, 2026
2ec3341
Merge remote-tracking branch 'origin/main' into fix/jirapoll-unparsea…
guyoron1 Dec 2, 2026
1c73a81
Merge branch 'fix/jirapoll-unparseable-lastcheck' into feat/jirapoll-…
guyoron1 Dec 2, 2026
50a8999
Merge branch 'feat/jirapoll-remove-lock' into refactor/jirapoll-issue…
guyoron1 Dec 2, 2026
20982f4
test(jirapoll): pin that an unparseable lastCheck is unset, not floored
guyoron1 Dec 3, 2026
42a15a0
Merge branch 'fix/jirapoll-unparseable-lastcheck' into feat/jirapoll-…
guyoron1 Dec 3, 2026
e1bf398
refactor(jirapoll): drop the unused delete from the poller's Jira client
guyoron1 Dec 3, 2026
5ffdb8e
test(scaffold): pin the GitLab poll job's resource group
guyoron1 Dec 3, 2026
f821b61
docs(jira-poll): say the lock is gone in two places that still expect it
guyoron1 Dec 3, 2026
c964f48
Merge branch 'feat/jirapoll-remove-lock' into refactor/jirapoll-issue…
guyoron1 Dec 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -284,3 +284,20 @@ their own discovery and are unaffected. Forgejo has no Jira poll target.
- Starvation beyond the top M stays documented and unmitigated: the filter
neither widens nor narrows the window, and the clearance bound above
applies only to candidates inside it.

## Amendments

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] architectural-conflict

ADR 0160 is Accepted on main. The PR appends a dated '## Amendments' section that changes how Decision item 1 treats an unparseable checkpoint. It leaves Context, Decision and Consequences untouched, and ADRs 0070 and 0038 use the same section, but docs/contributing/adrs.md prefers a superseding ADR when a decision changes and asks that edits to accepted ADRs be called out in the PR description. This PR's description does not mention the edit (the edit belongs to a lower stacked PR).

Suggested fix: Confirm maintainers accept a dated Amendments note for this behavioural change; otherwise record the rule in a new ADR partially superseding ADR 0160 Decision item 1. Call out the edit to the accepted ADR in the PR description.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Resolved by the review agent: this is an older copy of a finding that a newer review thread also carries: #9854 (comment)

The finding is still open. Follow up in the newer thread.

Resolving this duplicate. Unresolve it if you disagree.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Resolved by the review agent: this is an older copy of a finding that a newer review thread also carries: #9854 (comment)

The finding is still open. Follow up in the newer thread.

Resolving this duplicate. Unresolve it if you disagree.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Resolved by the review agent: this is an older copy of a finding that a newer review thread also carries: #9854 (comment)

The finding is still open. Follow up in the newer thread.

Resolving this duplicate. Unresolve it if you disagree.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Resolved by the review agent: this is an older copy of a finding that a newer review thread also carries: #9854 (comment)

The finding is still open. Follow up in the newer thread.

Resolving this duplicate. Unresolve it if you disagree.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Resolved by the review agent: this is an older copy of a finding that a newer review thread also carries: #9854 (comment)

The finding is still open. Follow up in the newer thread.

Resolving this duplicate. Unresolve it if you disagree.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] architectural-conflict

ADR 0160 is Accepted, yet an ## Amendments section is appended that changes how Decision item 1 treats an unparseable checkpoint. docs/contributing/adrs.md treats Accepted ADRs as immutable; other ADRs (0038, 0070) do carry amendments, so precedent is mixed.

Suggested fix: Record the change in a new ADR with an annotation on ADR 0160, or confirm with maintainers that the in-place amendment follows the 0038/0070 precedent.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Resolved by the review agent: this is an older copy of a finding that a newer review thread also carries: #9854 (comment)

The finding is still open. Follow up in the newer thread.

Resolving this duplicate. Unresolve it if you disagree.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Resolved by the review agent: this is an older copy of a finding that a newer review thread also carries: #9854 (comment)

The finding is still open. Follow up in the newer thread.

Resolving this duplicate. Unresolve it if you disagree.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Resolved by the review agent: this is an older copy of a finding that a newer review thread also carries: #9854 (comment)

The finding is still open. Follow up in the newer thread.

Resolving this duplicate. Unresolve it if you disagree.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Resolved by the review agent: this is an older copy of a finding that a newer review thread also carries: #9854 (comment)

The finding is still open. Follow up in the newer thread.

Resolving this duplicate. Unresolve it if you disagree.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] architectural-conflict

ADR 0160 is Accepted on main and this PR adds an 'Amendments' section that changes behavior prescribed by Decision item 1 (an unparseable checkpoint is now treated as unset). docs/contributing/adrs.md allows only minor annotations on accepted ADRs and asks for a superseding ADR when circumstances change. ADRs 0038 and 0070 already carry dated Amendments sections, so this is a policy-judgment call rather than a clear violation.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Resolved by the review agent: this is an older copy of a finding that a newer review thread also carries: #9854 (comment)

The finding is still open. Follow up in the newer thread.

Resolving this duplicate. Unresolve it if you disagree.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Resolved by the review agent: this is an older copy of a finding that a newer review thread also carries: #9854 (comment)

The finding is still open. Follow up in the newer thread.

Resolving this duplicate. Unresolve it if you disagree.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Resolved by the review agent: this is an older copy of a finding that a newer review thread also carries: #9854 (comment)

The finding is still open. Follow up in the newer thread.

Resolving this duplicate. Unresolve it if you disagree.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] architectural-conflict

ADR 0160 is Accepted. The PR adds an '## Amendments' section changing how Decision item 1 treats an unparseable checkpoint, which goes beyond the cross-reference annotation docs/contributing/adrs.md allows for an accepted ADR on main. If ADR 0160 has not yet merged to main (this PR stacks on feat/jirapoll-skip-idle), adrs.md says to edit the ADR in place instead. ADRs 0038 and 0070 have Amendments sections and issue #9766 proposed the amendment, so this is a judgement call. The PR description should call out the edit to an accepted ADR.


### 2026-11-25: A checkpoint that is not a timestamp is treated as unset (#9766)

Decision item 1 sends a checkpoint that cannot be parsed to processing,
where "the existing per-issue error path reports it as today". That path
fails the issue on every pick and never saves a new checkpoint, so the
issue is never processed again, and when it is the only active candidate
every quiet cycle ends in the all-failed error. The driver now treats a
stored value that is not a timestamp as unset, as it already treats one
dated in the future: the issue stays active, gets one first-poll look
bounded by the backfill window, and that look saves a valid checkpoint.
Processing logs a WARNING naming the issue without the stored value, and
the filter's one line per cycle names such candidates. A failed read is
still an error. Replay stays bounded by one backfill window, the same as
deleting or forward-dating the checkpoint today.
4 changes: 2 additions & 2 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,8 @@ The existing design principle is that [the repo is the coordinator](problems/age
input drivers to discover work from remote systems (Jira first), coordinates
via source-native write-then-verify locks, and feeds the same dispatch pipeline
as webhooks ([ADR 0063](ADRs/0063-polling-based-work-discovery.md)). Initial
scope is per-repo mode only. In the target state the `jira-poll` driver no
longer uses those locks (see the next item).
scope is per-repo mode only. The `jira-poll` driver no longer uses those
locks (see the next item).
- Jira poll candidate selection (target state): one poller per repository
reads every issue that changed within the backfill window
(`tracker.jira.poll.backfill_window_hours`, default 24), oldest change
Expand Down
7 changes: 7 additions & 0 deletions docs/guides/user/custom-poller-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ permissions:
jobs:
poll:
runs-on: ubuntu-24.04
# The jira-poll driver keeps no per-issue lock: two overlapping cycles
# for one repository dispatch the same requests twice. This group queues
# the runs of this workflow; do not poll the same repository from a
# second workflow.
concurrency:
group: ${{ github.workflow }}-poll
cancel-in-progress: false
outputs:
matrix: ${{ steps.dispatch.outputs.matrix }}
steps:
Expand Down
32 changes: 17 additions & 15 deletions docs/guides/user/jira-integration.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/normative/entity-execution-cli/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ A provider/kind pair becomes eligible when it has all four capabilities:
| GitHub issue, pull request | Mapped | Covered | Bounded GitHub filter subset for both kinds, with GraphQL advanced search for combined discovery and selective acquisition | A selective-acquisition adapter exists (`internal/forge/github.EntityAdapter`), but source membership and snapshot staging remain pending under [#9598](https://github.com/fullsend-ai/fullsend/issues/9598), so the pair stays ineligible. The existing GitHub `forge.Client` already reads issues, pull requests, comments, label events, reviews, and review threads. No `fullsend poll` driver uses GitHub, so entity discovery competes with no driver |
| GitHub Discussion | Mapped | Covered | None. The GitHub subset guards only `is:issue` and `is:pr` | No Discussion ingress or conversation client under [ADR 0086](../../../ADRs/0086-conversation-surface-for-agent-participation.md) |
| GitLab issue, merge request | Mapped. Reviews, reactions, issue type, and close reason are `unsupported` | Covered | Only the `open`, `closed`, and `all` presets | No entity adapter. The `--forge gitlab` poller and the webhook fast path own dispatch through shared poll state ([ADR 0125](../../../ADRs/0125-gitlab-hybrid-webhook-poller-dispatch.md), [ADR 0132](../../../ADRs/0132-occurrence-aware-shared-poller-state.md)). Cutover needs a plan for that state |
| Jira issue | Mapped. Complete `label_applications` needs full changelog coverage | Covered | Native JQL within a project guard | No entity adapter. The `jira-poll` driver owns dispatch through checkpoints and lock properties. The source project is separate from the target code repository |
| Jira issue | Mapped. Complete `label_applications` needs full changelog coverage | Covered | Native JQL within a project guard | No entity adapter. The `jira-poll` driver owns dispatch through checkpoints. The source project is separate from the target code repository |

#### Why GitHub issues and pull requests come first

Expand Down
2 changes: 1 addition & 1 deletion docs/normative/normalized-entity/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ change attribution can retain it for host-side diagnostics, but binds its CEL
can attribute selected field changes when its relevant history is complete;
the issue and comment property read APIs return keys and values without a
writer, so a property needs independent trusted provenance before becoming an
actionable known CEL value. Fullsend's operational lock, checkpoint, and
actionable known CEL value. Fullsend's operational write-check, checkpoint, and
comment-marker properties stay in host-side coordination state by default;
their API visibility does not establish trustworthy authorship or a dispatch
grant.
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/poll.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ type jiraPollArgs struct {

// validTargetRepo matches "owner/repo" slugs (subgroup segments allowed,
// matching splitOwnerRepo). Validated up front because a slash-less value
// would otherwise flow into a silently malformed Jira entity-property lock
// would otherwise flow into a silently malformed Jira entity-property
// namespace and into NormalizedEvent.Repo.
var validTargetRepo = regexp.MustCompile(`^[^/\s]+(/[^/\s]+)+$`)

Expand Down
2 changes: 1 addition & 1 deletion internal/cli/poll_jira_gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func runJiraPollGitLab(cmd *cobra.Command, f jiraPollGitLabFlags) error {
return fmt.Errorf("create GitLab client: %w", err)
}
pollClient := gitlab.NewPollClient(glClient)
// Authenticate to GitLab before any Jira lock or checkpoint is touched,
// Authenticate to GitLab before any Jira issue property is touched,
// so a bad Poller credential fails the cycle up front.
if _, err := pollClient.GetAuthenticatedUserID(cmd.Context()); err != nil {
return wrapGitLabAuthFailure(sel, fmt.Errorf("resolve GitLab poller identity: %w", err))
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/poll_jira_gitlab_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func TestPollCmd_JiraPollGitLabPreflight(t *testing.T) {

// TestPollCmd_JiraPollGitLabAuthFailure drives the GitLab target through
// client construction to the GitLab identity preflight, which runs before
// any Jira lock or checkpoint is touched.
// any Jira issue property is touched.
func TestPollCmd_JiraPollGitLabAuthFailure(t *testing.T) {
var gitlabCalls int
srv := httptest.NewTLSServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
Expand Down
18 changes: 9 additions & 9 deletions internal/jirapoll/gitlab_target_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,28 +261,28 @@ func TestRunGitLabTarget_LabelsBoundBeforeTriggerMatch(t *testing.T) {
func TestPropertyKeys_GitLabTargetNamespace(t *testing.T) {
github := New(nil, nil, Options{TargetRepo: "group/project"})
gitlab := New(nil, nil, Options{TargetRepo: "group/project", TargetForge: TargetForgeGitLab, GitLabURL: "https://gitlab.com"})
if github.lockKey() != "fullsend.poll.group.project.lock" || github.lastCheckKey() != "fullsend.poll.group.project.lastCheck" {
t.Errorf("GitHub keys changed: %q, %q", github.lockKey(), github.lastCheckKey())
if github.writeCheckKey() != "fullsend.poll.group.project.writeCheck" || github.lastCheckKey() != "fullsend.poll.group.project.lastCheck" {
t.Errorf("GitHub keys changed: %q, %q", github.writeCheckKey(), github.lastCheckKey())
}
if gitlab.lockKey() == github.lockKey() || gitlab.lastCheckKey() == github.lastCheckKey() {
if gitlab.writeCheckKey() == github.writeCheckKey() || gitlab.lastCheckKey() == github.lastCheckKey() {
t.Error("GitLab and GitHub targets with the same path share coordination keys")
}
if got := gitlab.lockKey(); got != "fullsend.poll.gitlab.gitlab%2Ecom.group.project.lock" {
t.Errorf("GitLab lock key = %q", got)
if got := gitlab.writeCheckKey(); got != "fullsend.poll.gitlab.gitlab%2Ecom.group.project.writeCheck" {
t.Errorf("GitLab write-check key = %q", got)
}

selfManaged := New(nil, nil, Options{TargetRepo: "group/project", TargetForge: TargetForgeGitLab, GitLabURL: "https://GitLab.Example.com/gitlab/"})
if got := selfManaged.lastCheckKey(); got != "fullsend.poll.gitlab.gitlab%2Eexample%2Ecom/gitlab.group.project.lastCheck" {
t.Errorf("self-managed lastCheck key = %q, want the lowercased host and path prefix", got)
}
if selfManaged.lockKey() == gitlab.lockKey() {
t.Error("the same project path on two GitLab instances shares a lock key")
if selfManaged.writeCheckKey() == gitlab.writeCheckKey() {
t.Error("the same project path on two GitLab instances shares a write-check key")
}

nested := New(nil, nil, Options{TargetRepo: "a.b/c", TargetForge: TargetForgeGitLab, GitLabURL: "https://gitlab.com"})
dotted := New(nil, nil, Options{TargetRepo: "a/b.c", TargetForge: TargetForgeGitLab, GitLabURL: "https://gitlab.com"})
if nested.lockKey() == dotted.lockKey() {
t.Errorf("dotted GitLab paths collide on %q", nested.lockKey())
if nested.writeCheckKey() == dotted.writeCheckKey() {
t.Errorf("dotted GitLab paths collide on %q", nested.writeCheckKey())
}
}

Expand Down
Loading
Loading