Repository navigation
Description
Problem
In short: the poller remembers "when I last looked at this issue" and "I am working on this issue right now" by writing hidden properties onto the Jira issue itself. Anyone who can edit issues in the project can change those properties, and on a shared Red Hat project that is hundreds of people and scripts, far more than the people allowed to trigger runs. Moving the "last looked" timestamp back a day, or deleting it, makes the poller re-run every /fs-code typed on that issue in the last day as if it were new. Writing the "working on it" marker makes the poller skip the issue for about 30 minutes per write, silently. Nobody gains access they do not have; the damage is replayed runs, duplicate PRs, spend, and issues that quietly stop being picked up. The poller already blocks the crude versions of this (a timestamp far in the future or more than a day in the past), but it cannot notice a change within that day, because the only copy of its own state is the one in Jira. The details follow.
The Jira poller keeps its per-issue state in two Jira issue entity properties: fullsend.poll.<owner>.<repo>.lastCheck (the checkpoint that decides which activity is new) and fullsend.poll.<owner>.<repo>.lock (the in-progress guard). Jira lets anyone with Edit Issues on the project read and write any entity property. On a large project that is every developer plus every integration and script holding a project token. Jira has no compare-and-swap on properties, so the poller cannot detect a foreign write either.
The poller already treats both values as untrusted in places (see Evidence), and the guide's security note says Edit Issues on a polled project is part of the trust boundary. What remains after those checks:
- Rewind within the window. A
lastCheckmoved backwards by less than the 24-hour backfill window is accepted as is. The next cycle re-surfaces up to a day of comments and changelog entries, re-dispatching old/fs-codeand/fs-triagecommands under their authors' roles. The per-issue dispatch cap bounds the count per cycle, not the replay. The poller keeps no record of the checkpoint it last committed, so it cannot tell a rewind from its own previous value. - Deleted properties. Deleting
lastCheckturns the issue into a first poll, which replays the same 24-hour window. Nothing distinguishes an issue the poller has never seen from one whose checkpoint was removed. - Held lock. A lock whose timestamp is within 15 minutes of the poller's clock is honoured, and the writer controls the timestamp. A single foreign write blocks an issue for up to about 30 minutes; a writer that refreshes the timestamp each cycle blocks it indefinitely, and the poller cannot tell that from a live peer's lock because it measures age from the lock's own timestamp, not from when it first saw the lock.
For a pilot where the polled projects are shared with hundreds of editors, these are the behaviours I would like bounded before relying on the poller for anything beyond opt-in triggers.
Evidence
fullsend main (7449efd), internal/jirapoll:
lock.go,readLastCheck(lines 186 to 236): a value more than two minutes in the future is treated as unset; a value older thanFirstPollBackfillWindowis floored to the window start; anything in between is returned unchanged. The comment block above the checks explains the threat model.lock.go,advanceLastCheck(line 239): writes the new checkpoint unconditionally, with no read-back and no record outside Jira.lock.go,isLockStale(lines 249 to 262): parses the lock's ownts; unparseable or more than one threshold in the future counts as stale; otherwise stale only whentime.Since(ts)exceeds the threshold.lock.go,attemptLock(line 90): the write-then-verify with jitter, and the comment stating this is not a compare-and-swap.poller.go,New(lines 91 to 96):StaleThresholddefaults to 900 seconds,FirstPollBackfillWindowto 24 hours;processIssuecaps routable events at 100 per issue per cycle (maxEventsPerIssue) and logs a possible rewind when the cap is hit.docs/guides/user/jira-integration.md, "Poll coordination": the security note ("coordination state is tamperable by any project editor") describes the future and rewind clamps and names Edit Issues as part of the trust boundary; the earlier "Concurrency" text says the Actions concurrency group, not the lock, is the real guard against overlapping pollers.
Related
- ADR 0063 chose entity properties for poll state. This issue does not reopen that choice; it hardens it.
- docs(adr): add ADR 0160 on Jira poll candidate selection #9166 (ADR 0160, poll candidate selection) changes which issues are picked per cycle and compares
updatedagainst the checkpoint, so a rewound checkpoint also makes an issue look active under that design. - Implement repository-owned operation journals for recoverable work #9253 and its design PR docs(adr): define control-repository saga journals #9264 (ADR 0165, repository-owned operation journals with conditional updates and integrity checks) may be the right place for a poller-owned record of the committed checkpoint, if that design is accepted.
- Document that a poller gap longer than the backfill window silently drops Jira events on resume #5903 (closed) documented that a gap longer than the backfill window drops events; the clamp this issue builds on came from that work.
Proposed outcome
The poller treats both properties as input to validate against its own memory, not as the source of truth:
- A
lastCheckolder than the value the poller last committed for that issue is rejected and logged, with the committed value used instead. That needs a poller-owned record of committed checkpoints (a workflow artifact, cache, or the journal in Implement repository-owned operation journals for recoverable work #9253). - Backfill after a missing or malformed checkpoint on an issue the poller has seen before is bounded to the poll interval (or a small multiple of it), not the 24-hour first-poll window.
- A lock is released on wall-clock age measured by the poller from when it first observed that lock ID, not on the lock's self-reported timestamp.
- The guide's security note says which of these the poller now enforces.
Written by Bill Murdock with assistance from Claude Code.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity
fullsend-ai-triage commentedon Nov 10, 2026
🤖 Finished Triage · ✅ Success · Started 4:50 PM UTC · Completed 4:52 PM UTC
Commit:
7449efd· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.18
fullsend-ai-triage commentedon Nov 10, 2026
Thanks for the detailed write-up. The problem and the affected code (
readLastCheck,advanceLastCheck,isLockStaleandattemptLockininternal/jirapoll/lock.go, plus the Poll coordination section of the Jira integration guide) are clear.The work is blocked on a design decision. All three proposed outcomes depend on a poller-owned record that does not exist today: the last committed checkpoint per issue, whether the poller has seen an issue before, and when a given lock ID was first observed. Today the only copy of that state is in Jira, which is what the issue asks the poller to stop trusting. Where that record lives (workflow artifact, cache, or a repository-owned journal) is an open design question. The in-flight design work on repository-owned operation journals is tracked in the linked issue and design PR. Implementing a separate store now risks conflicting with that design.
Once that design is settled, re-triage this issue. It should then be implementable as three changes plus a docs update:
lastCheckolder than the committed value;The docs update is the security note in the guide stating which of these the poller enforces.
Two notes for whoever picks this up. Ticket #9166 (ADR 0160) compares
updatedagainst the checkpoint, so it should reuse the same committed-checkpoint record. Also, confirm whether the poller runs as a fresh process each cycle. If it does, in-memory tracking of first-observed locks will not be enough and that state needs persistence too.Blocked by: