From 99242ddc49bf8c1688c427c61d13baea62c2394a Mon Sep 17 00:00:00 2001 From: Bill Murdock Date: Tue, 24 Nov 2026 15:49:28 -0500 Subject: [PATCH 1/3] docs(adr): add ADR 0096, start agents on Jira from labels only On Jira, typed commands no longer start agents for now, and fullsend removes the trigger label when it starts the run or refuses the request. GitHub and GitLab do not change. Co-Authored-By: Claude Fable 5.2 Signed-off-by: Bill Murdock --- ...0096-start-jira-agents-from-labels-only.md | 90 +++++++++++++++++++ docs/architecture.md | 4 + 2 files changed, 94 insertions(+) create mode 100644 docs/ADRs/0096-start-jira-agents-from-labels-only.md diff --git a/docs/ADRs/0096-start-jira-agents-from-labels-only.md b/docs/ADRs/0096-start-jira-agents-from-labels-only.md new file mode 100644 index 0000000000..4e69260780 --- /dev/null +++ b/docs/ADRs/0096-start-jira-agents-from-labels-only.md @@ -0,0 +1,90 @@ +--- +title: "96. Start agents on Jira from labels only" +status: Accepted +relates_to: + - agent-infrastructure + - agent-architecture +topics: + - jira + - polling + - dispatch +--- + +# 96. Start agents on Jira from labels only + +Date: 2026-11-24 + +## Status + +Accepted + +## Context + +A person can ask for an agent on a Jira issue in two ways today: by adding a +label such as `ready-to-code` or `ready-for-triage`, or by typing a command +such as `/fs-code` or `/fs-triage` as a comment (see the +[Jira integration guide](../guides/user/jira-integration.md)). The label +stays on the issue afterwards, so asking again by label means removing it +and adding it back. + +Fullsend finds these requests by polling +([ADR 0063](0063-polling-based-work-discovery.md)), and under load the poller +loses some of them +([ADR 0160](0160-spend-jira-poll-slots-only-on-candidates-with-new-activity.md), +[#9815](https://github.com/fullsend-ai/fullsend/pull/9815)). Labels are much +easier to make reliable than typed commands. Jira's search matches a label +exactly and matches comment text only loosely, and fullsend can remove a +label once it has dealt with the request, where it cannot reasonably remove +someone's comment. + +This ADR aims to leave Jira with one way to ask for an agent, one that +fullsend can find exactly and clear once it has answered. + +## Decision + +We start agents on Jira from labels only, and remove the label once fullsend +has answered the request, so that every request on Jira is one fullsend can +find exactly and clear. + +- **Typed commands do not start agents on Jira, for now.** This covers every + `/fs-` command in a Jira comment, including a custom agent's. Such a + comment remains an ordinary comment that an agent reads with the rest of + the issue. Commands can return through a later ADR if a reliable way to + handle them is found. +- **Fullsend removes the label when it answers a label request.** It answers + either by starting the run or by refusing, for example because the person + who added the label may not start that agent. Asking again is adding the + label again. + +A label that fullsend does not treat as a request stays on the issue. Today +that includes a label added by a bot account; whether such a label becomes a +request is the subject of +[#9390](https://github.com/fullsend-ai/fullsend/pull/9390). How requests are +found, who may make them, and triage starting when a person opens or edits +an issue do not change. + +## Forge scope + +Applies to issues that fullsend reads from Jira, whether the code is hosted +on GitHub or GitLab. Issues, pull requests and merge requests on GitHub and +GitLab do not change: labels and typed commands both start agents there, and +fullsend does not remove the label. Whether those forges should remove it +too is left open. Forgejo is not affected, as fullsend does not read Jira +for it. + +## Consequences + +- This is a breaking change for Jira users: a repository or custom agent + that relies on typed commands on Jira needs a label trigger before it + upgrades. +- `/fs-code --force` is no longer available from a Jira issue. To run the + code agent after it skipped a run, clear what made it skip. +- When triage promotes a Jira issue it adds `ready-to-code` from a bot + account, which starts nothing, as today. Without `/fs-code`, a person + starts the code agent by removing that label and adding it back, unless + [#9390](https://github.com/fullsend-ai/fullsend/pull/9390) changes this. +- A trigger label still on an issue now means fullsend has not answered it. + A request the poller missed is not retried, as today; asking again is + removing the label and adding it back. +- The label no longer records that an agent ran. The run's status comments + do, and so does the optional run label. diff --git a/docs/architecture.md b/docs/architecture.md index cd63e33d0b..05032bd389 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -568,6 +568,10 @@ The existing design principle is that [the repo is the coordinator](problems/age at random among them, and reads the per-cycle caps (N, default 5, and M, default 50) from `tracker.jira.poll` within fixed bounds ([ADR 0160](ADRs/0160-spend-jira-poll-slots-only-on-candidates-with-new-activity.md)). +- On Jira, agents are started by labels only (target state): typed commands + do not start agents there for now, and fullsend removes the label when it + starts the run or refuses the request + ([ADR 0096](ADRs/0096-start-jira-agents-from-labels-only.md)). - Jira poll actor authorization does not require the poller to administer the Jira project once a repository adds a `jira` provider under `authorization:`. With no `jira` entry, every Jira event resolves through the From 4a08ad818977b3aadf577bcd1966929eb385e433 Mon Sep 17 00:00:00 2001 From: Bill Murdock Date: Tue, 24 Nov 2026 16:16:09 -0500 Subject: [PATCH 2/3] docs(adr): retitle ADR 0096 and apply review fixes Retitle to "Request agents on Jira by label only" and rename the file, since triage still starts when a person opens or edits an issue. Say that no comment starts an agent on Jira, note the relation to ADR 0061, and correct the consequences for skip-triage, --force and label removal. Co-Authored-By: Claude Fable 5.2 Signed-off-by: Bill Murdock --- ...6-request-agents-on-jira-by-label-only.md} | 59 +++++++++++-------- docs/architecture.md | 9 +-- 2 files changed, 40 insertions(+), 28 deletions(-) rename docs/ADRs/{0096-start-jira-agents-from-labels-only.md => 0096-request-agents-on-jira-by-label-only.md} (50%) diff --git a/docs/ADRs/0096-start-jira-agents-from-labels-only.md b/docs/ADRs/0096-request-agents-on-jira-by-label-only.md similarity index 50% rename from docs/ADRs/0096-start-jira-agents-from-labels-only.md rename to docs/ADRs/0096-request-agents-on-jira-by-label-only.md index 4e69260780..79cea42195 100644 --- a/docs/ADRs/0096-start-jira-agents-from-labels-only.md +++ b/docs/ADRs/0096-request-agents-on-jira-by-label-only.md @@ -1,5 +1,5 @@ --- -title: "96. Start agents on Jira from labels only" +title: "96. Request agents on Jira by label only" status: Accepted relates_to: - agent-infrastructure @@ -10,7 +10,7 @@ topics: - dispatch --- -# 96. Start agents on Jira from labels only +# 96. Request agents on Jira by label only Date: 2026-11-24 @@ -18,14 +18,17 @@ Date: 2026-11-24 Accepted +Narrows [ADR 0061](0061-harness-cel-dispatch.md) for Jira: an agent's trigger +rule cannot start it from a comment there. The rest of that ADR stands. + ## Context A person can ask for an agent on a Jira issue in two ways today: by adding a label such as `ready-to-code` or `ready-for-triage`, or by typing a command such as `/fs-code` or `/fs-triage` as a comment (see the -[Jira integration guide](../guides/user/jira-integration.md)). The label -stays on the issue afterwards, so asking again by label means removing it -and adding it back. +[Jira integration guide](../guides/user/jira-integration.md)). A run does +not remove the label that started it, so asking again by label means +removing it and adding it back. Fullsend finds these requests by polling ([ADR 0063](0063-polling-based-work-discovery.md)), and under load the poller @@ -35,41 +38,44 @@ loses some of them easier to make reliable than typed commands. Jira's search matches a label exactly and matches comment text only loosely, and fullsend can remove a label once it has dealt with the request, where it cannot reasonably remove -someone's comment. +someone's comment. This decision does not by itself stop requests being +lost. It leaves labels as the only kind of request that later work on the +poller has to handle. This ADR aims to leave Jira with one way to ask for an agent, one that fullsend can find exactly and clear once it has answered. ## Decision -We start agents on Jira from labels only, and remove the label once fullsend -has answered the request, so that every request on Jira is one fullsend can -find exactly and clear. +On Jira, a person asks for an agent by adding a label, and fullsend removes +the label once it has answered the request, so that every request on Jira is +one fullsend can find exactly and clear. Triage still starts by itself when a +person opens or edits an issue. -- **Typed commands do not start agents on Jira, for now.** This covers every - `/fs-` command in a Jira comment, including a custom agent's. Such a - comment remains an ordinary comment that an agent reads with the rest of - the issue. Commands can return through a later ADR if a reliable way to +- **Comments do not start agents on Jira, for now.** This covers every typed + command such as `/fs-code`, and any custom agent's rule that reads comment + text. A comment remains part of the issue, which an agent reads when it + runs. Typed commands can return through a later ADR if a reliable way to handle them is found. - **Fullsend removes the label when it answers a label request.** It answers either by starting the run or by refusing, for example because the person - who added the label may not start that agent. Asking again is adding the + who added the label may not start that agent. How a refusal is reported + to the person is left to the implementation. Asking again is adding the label again. A label that fullsend does not treat as a request stays on the issue. Today that includes a label added by a bot account; whether such a label becomes a request is the subject of [#9390](https://github.com/fullsend-ai/fullsend/pull/9390). How requests are -found, who may make them, and triage starting when a person opens or edits -an issue do not change. +found and who may make them do not change. ## Forge scope Applies to issues that fullsend reads from Jira, whether the code is hosted on GitHub or GitLab. Issues, pull requests and merge requests on GitHub and GitLab do not change: labels and typed commands both start agents there, and -fullsend does not remove the label. Whether those forges should remove it -too is left open. Forgejo is not affected, as fullsend does not read Jira +a run does not remove the label that started it. Whether those forges should +remove it too is left open. Forgejo is not affected, as fullsend does not read Jira for it. ## Consequences @@ -77,14 +83,19 @@ for it. - This is a breaking change for Jira users: a repository or custom agent that relies on typed commands on Jira needs a label trigger before it upgrades. -- `/fs-code --force` is no longer available from a Jira issue. To run the - code agent after it skipped a run, clear what made it skip. +- `/fs-code --force` is no longer available from a Jira issue. When the code + agent skips a run because a person's pull request is open, close that pull + request and ask again. When it skips because the issue has child issues, + ask for the code agent on the child issues instead. A separate label that + forces a run can be added later if there is demand for it. +- `/fs-triage` no longer overrides the `skip-triage` label on Jira. To + triage such an issue, remove that label first. - When triage promotes a Jira issue it adds `ready-to-code` from a bot account, which starts nothing, as today. Without `/fs-code`, a person starts the code agent by removing that label and adding it back, unless [#9390](https://github.com/fullsend-ai/fullsend/pull/9390) changes this. -- A trigger label still on an issue now means fullsend has not answered it. - A request the poller missed is not retried, as today; asking again is - removing the label and adding it back. +- A request the poller missed is not retried, as today. Its label stays on + the issue, and asking again is removing the label and adding it back. - The label no longer records that an agent ran. The run's status comments - do, and so does the optional run label. + do, unless a repository has turned them off, and so does the optional run + label. diff --git a/docs/architecture.md b/docs/architecture.md index 05032bd389..0f31ddb769 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -568,10 +568,11 @@ The existing design principle is that [the repo is the coordinator](problems/age at random among them, and reads the per-cycle caps (N, default 5, and M, default 50) from `tracker.jira.poll` within fixed bounds ([ADR 0160](ADRs/0160-spend-jira-poll-slots-only-on-candidates-with-new-activity.md)). -- On Jira, agents are started by labels only (target state): typed commands - do not start agents there for now, and fullsend removes the label when it - starts the run or refuses the request - ([ADR 0096](ADRs/0096-start-jira-agents-from-labels-only.md)). +- On Jira, a person asks for an agent by label only (target state): typed + commands do not start agents there for now, and fullsend removes the label + when it starts the run or refuses the request. Triage still starts by + itself when a person opens or edits an issue + ([ADR 0096](ADRs/0096-request-agents-on-jira-by-label-only.md)). - Jira poll actor authorization does not require the poller to administer the Jira project once a repository adds a `jira` provider under `authorization:`. With no `jira` entry, every Jira event resolves through the From aad24044527157f26602eceda7f8e53a0129ed26 Mon Sep 17 00:00:00 2001 From: Bill Murdock Date: Mon, 30 Nov 2026 10:26:46 -0500 Subject: [PATCH 3/3] docs(adr): note the Jira and forge difference in ADR 0096 Add a consequence saying that asking for an agent now differs between Jira and GitHub or GitLab, that this is an accepted cost and not a goal, and that typed commands return to Jira only if they can be handled reliably. Co-Authored-By: Claude Fable 5.2 Signed-off-by: Bill Murdock --- docs/ADRs/0096-request-agents-on-jira-by-label-only.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/ADRs/0096-request-agents-on-jira-by-label-only.md b/docs/ADRs/0096-request-agents-on-jira-by-label-only.md index 79cea42195..9312b9be40 100644 --- a/docs/ADRs/0096-request-agents-on-jira-by-label-only.md +++ b/docs/ADRs/0096-request-agents-on-jira-by-label-only.md @@ -83,6 +83,11 @@ for it. - This is a breaking change for Jira users: a repository or custom agent that relies on typed commands on Jira needs a label trigger before it upgrades. +- Asking for an agent now works differently on Jira than on GitHub and + GitLab, where typed commands still start agents. This is a cost accepted to + make requests on Jira reliable, not a goal. Typed commands return to Jira, + and the difference goes away, only if a reliable way to handle them is + found. - `/fs-code --force` is no longer available from a Jira issue. When the code agent skips a run because a person's pull request is open, close that pull request and ask again. When it skips because the issue has child issues,