Skip to content

docs(adr): add ADR 0096, request agents on Jira by label only - #9847

Merged
jwm4 merged 4 commits into
mainfrom
claude/adr-jira-labels-only-41e04a
Nov 30, 2026
Merged

jwm4 merged 4 commits into
mainfrom
claude/adr-jira-labels-only-41e04a

Conversation

@jwm4

@jwm4 jwm4 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This is the ADR I said I would open on #9820. It adds ADR 0096: on Jira, a person asks for an agent by adding a label, comments (typed commands such as /fs-code included) no longer start agents for now, and fullsend removes the label once it has answered the request, either by starting the run or by refusing it. GitHub and GitLab do not change.

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

Related Issue

None. Related work:

  • #9820 asks why Jira editors who can add labels cannot also use slash commands. This ADR answers in the other direction: for now, labels are the only way to ask.
  • #9815 adds ADR 0085, which stops the Jira poller from losing requests to its row limit and random pick. This ADR does not touch how requests are found, so the two do not overlap.
  • #9390 adds ADR 0172, which lets bot-added labels start agents on Jira. This ADR leaves that question to it.

Changes

  • New ADR 0096. Comments do not start agents on Jira for now. That covers every typed command and any custom agent's rule that reads comment text. Fullsend removes the label when it answers a label request, by starting the run or by refusing it, so asking again is adding the label again. Triage still starts by itself when a person opens or edits an issue.
  • docs/architecture.md: one bullet for the target state.

Unchanged: how requests are found, who may make them, and everything on GitHub and GitLab.

Defaults that change

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

  • Typed commands stop starting agents on Jira, including a custom agent's. A repository or custom agent that relies on them on Jira needs a label trigger before it upgrades.
  • /fs-code --force and the /fs-triage override of skip-triage are no longer available from a Jira issue. The ADR's Consequences say what to do instead.
  • A trigger label is removed from the Jira issue when the run starts or the request is refused.

Left to the implementation

  • How the label is removed, and how a refusal is reported to the person who asked.
  • Rewording the texts that tell Jira users to type a command: the code agent's skip comments ("comment /fs-code --force") and the triage skip reason ("comment /fs-triage to triage it anyway") in fullsend-ai/agents, and the places in docs/guides/user/jira-integration.md that give a command as the way to start or restart an agent.
  • The normalized-event adapter documentation for Jira comments, if the implementation changes what the poller emits.

Evidence for current behavior

Checked at fullsend ac4cc1db7 and fullsend-ai/agents 86f8ba46.

  • Two ways to ask today. The default triggers match both a command and a label on Jira: harness/code.yaml (/fs-code, ready-to-code) and harness/triage.yaml (/fs-triage, ready-for-triage, and an issue opened or edited by a human) in agents.
  • Any /fs- first word is a command. extractCommand in internal/jirapoll/convert.go.
  • A run does not remove the label that started it. The run only adds the optional run label (addJiraRunLabel in internal/cli/run_jira_label.go). Label requests come from "added" entries in the issue history (diffLabels in internal/jirapoll/discover.go), which is why asking again means removing the label and adding it back.
  • A bot-added label starts nothing on Jira. filterBotEvents in internal/jirapoll/poller.go drops events whose actor actorKind (internal/jirapoll/convert.go) classifies as a bot.
  • --force exists only on a comment, and the child-issue skip counts closed children. scripts/pre-code-jira.src.sh in agents, and "If the code agent skips the run" in docs/guides/user/jira-integration.md.
  • Only a human /fs-triage overrides skip-triage. The trigger in harness/triage.yaml and scripts/pre-triage.src.sh in agents.
  • Status comments can be turned off, and the run label has no default. status_notifications in docs/reference/config-reference.md, and "Tracking runs with an optional label" in the Jira guide.
  • Forgejo has no Jira path. --target-forge accepts only github or gitlab (internal/cli/poll.go).

Not checkable from the repository: that Jira's search matches a label exactly and comment text only loosely. That is how Jira's query language treats label values and text search.

Testing

  • make lint passes (stage changes first, then run)
  • Tests added/updated for new or modified logic (not applicable, documentation only)

Checklist

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

🤖 Generated with Claude Code

jwm4 and others added 2 commits November 24, 2026 15:49
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 <noreply@anthropic.com>
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
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 <noreply@anthropic.com>
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
@jwm4
jwm4 requested a review from a team as a code owner November 24, 2026 21:26
@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

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

Grey Divider

No findings to report

Grey Divider

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

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

⚠️ Qodo did not complete this review — the change was judged trivial and was not reviewed — so this is not a clean bill of health, and approval was withheld.

Qodo Logo

@qodo-code-review

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

Copy link
Copy Markdown

PR Summary by Qodo

Document label-only agent requests for Jira

📝 Documentation 🕐 10-20 Minutes

Grey Divider

AI Description

• Add ADR 0096 to make labels the only way to request agents on Jira.
• Specify label removal after a run starts or a request is refused; preserve automatic triage.
• Record the target state in the architecture guide; implementation remains separate.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 0 capabilities

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

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

  • No production behavior changes identified.
Assessed commit 63268ad
Diagram

graph TD
  Issue["Jira issue"] --> Label["Label request"] --> Gate{"Request allowed?"}
  Gate -->|yes| Run["Start agent"] --> Clear["Remove label"]
  Gate -->|no| Refuse["Refuse request"] --> Clear
  Issue --> Triage["Automatic triage"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Retain commands with durable comment tracking
  • ➕ Preserves existing Jira commands and custom comment-based triggers.
  • ➖ Requires a more complex way to find, deduplicate, and acknowledge comment requests reliably.

Recommendation: The label-only decision is a reasonable target because Jira can match labels exactly and fullsend can clear answered requests. Reviewers should accept the loss of command-only behavior explicitly; this ADR neither implements the decision nor fixes requests the poller misses.

Files changed (2) +106 / -0

Documentation (2) +106 / -0
0096-request-agents-on-jira-by-label-only.mdDefine Jira label-only agent requests +101/-0

Define Jira label-only agent requests

• Adds an accepted ADR that excludes Jira comments from agent triggers and requires removal of a request label when a run starts or the request is refused. It preserves automatic triage, limits the decision to Jira, and documents migration consequences and unresolved poller behavior.

docs/ADRs/0096-request-agents-on-jira-by-label-only.md

architecture.mdRecord the Jira dispatch target state +5/-0

Record the Jira dispatch target state

• Adds a linked architecture summary of label-only Jira requests, label removal after an answer, and unchanged automatic triage.

docs/architecture.md

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:29 PM UTC · Completed 9:40 PM UTC

Commit: 4a08ad8 · View workflow run →

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

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://cda3f63b-site.fullsend-ai.workers.dev

Commit: 63268adf1f579fd67a60a3dce58d931fd78c57b6

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

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

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Documentation-only PR adding ADR 0096 with no protected or security-sensitive paths, assigned moderate risk due to high recent commit churn, multi-author contention, and change coupling on docs/architecture.md.

Previous run

Risk Assessment: moderate (2/5)

Details

Documentation-only addition of ADR 0096 with minimal diff size and no protected paths, elevated from low to moderate risk due to high recent commit churn and multi-author contention on docs/architecture.md.

@fullsend-ai-review

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

Copy link
Copy Markdown

Review

Findings

Low

  • [missing-doc] docs/ADRs/0061-harness-cel-dispatch.md:18 — ADR 0096 says it "Narrows ADR 0061 for Jira", but ADR 0061's ## Status section has no note pointing to ADR 0096. Other ADRs that change part of 0061 (0098, 0151) add such a note. The repo guidance (docs/contributing/adrs.md, skills/writing-adrs/SKILL.md) calls these cross-reference annotations welcome rather than required, so this is advisory.
    Remediation: Optionally add a short note under ## Status in ADR 0061 linking ADR 0096 (and mention the edit to an accepted ADR in the PR description).
Previous run

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

Review

Findings

Low

  • [missing-doc] docs/ADRs/0061-harness-cel-dispatch.md:18 — ADR 0096 says it "Narrows ADR 0061 for Jira", but ADR 0061's ## Status section has no note pointing to ADR 0096. Other ADRs that change part of 0061 (0098, 0151) add such a note. The repo guidance (docs/contributing/adrs.md, skills/writing-adrs/SKILL.md) calls these cross-reference annotations welcome rather than required, so this is advisory.
    Remediation: Optionally add a short note under ## Status in ADR 0061 linking ADR 0096 (and mention the edit to an accepted ADR in the PR description).
Previous run (2)

<!-- fullsend:review-diff-hash:3565a2cd160d45cc1e008d4c37359f73402e2784078396ddf617965deb71fe91 -->
<!-- fullsend:review-head:4a08ad818977b3aadf577bcd1966929eb385e433 -->
<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOltdfQ== -->

Looks good to me


Labels: PR adds an ADR and a related architecture doc update.

Previous run (3)

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

Looks good to me


Labels: PR adds an ADR and a related architecture doc update.

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added ready-for-merge All reviewers approved — ready to merge type/adr component/docs User-facing documentation labels Nov 24, 2026
@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ralphbean ralphbean 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.

Please consider a change in the consequences section about parity expectations.

jwm4 and others added 2 commits November 30, 2026 10:26
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 <noreply@anthropic.com>
Signed-off-by: Bill Murdock <bmurdock@redhat.com>
…s-only-41e04a

Resolve docs/architecture.md: keep main's ADR 0085 text and the ADR 0096 bullet after it.

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

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 3:36 PM UTC · Completed 3:47 PM UTC

Commit: 63268ad · View workflow run →

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

@fullsend-ai-review fullsend-ai-review Bot removed the ready-for-merge All reviewers approved — ready to merge label Nov 30, 2026
@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review November 30, 2026 15:47

Superseded by updated review

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Nov 30, 2026

@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.

Review: ADR 0096 — request agents on Jira by label only

Council verdict: APPROVE WITH ADVISORIES — 3 LOW advisories, no CRITICAL or HIGH findings.

Four reviewers assessed this change (divisor-adversary, divisor-architect, divisor-curator, divisor-guard); all four approve. The ADR records one decision — on Jira, only labels request agents, and fullsend removes the label when it answers — with GitHub and GitLab unchanged. The docs/architecture.md bullet is present and surgical; frontmatter, status, and numbering follow the ADR template; and the cross-forge parity bullet requested in the earlier review round is in place at this head (docs/ADRs/0096-request-agents-on-jira-by-label-only.md:86-90).

CI is green across all checks. The test job runs make lint-all, whose pre-commit suite covers the ADR lint hooks (lint-adr-status, lint-adr-numbers, lint-adr-frontmatter) plus ruff and ty; semgrep and gateway-doc-configs pass in dedicated jobs. The diff touches only docs/, so every path-scoped local tool and project-declared pre-flight check is out of scope for this change; verification beyond CI coverage was not needed.

The three LOW advisories are inline. They concern failure-mode documentation depth (label-removal failure semantics, refusal observability) and Consequences length against the writing-adrs target — each can settle in the implementation change this PR deliberately scopes out.

Reviewer Verdict Findings
divisor-adversary APPROVE WITH ADVISORIES 2 LOW
divisor-architect APPROVE WITH ADVISORIES 1 LOW
divisor-curator APPROVE 0
divisor-guard APPROVE 0

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

@jwm4
jwm4 added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit 8891c83 Nov 30, 2026
124 checks passed
@jwm4
jwm4 deleted the claude/adr-jira-labels-only-41e04a branch November 30, 2026 18:28
@github-project-automation github-project-automation Bot moved this from Todo to Done in fullsend-ai Workstream Nov 30, 2026

This branch was successfully deployed

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

Labels

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

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants