Skip to content

jira-poll: dispatches nothing unless agents are registered in config, and the installer registers none #9503

Done

Description

@shairevivo

Summary

On a repo installed with fullsend github setup, a Jira slash command dispatches nothing. The Jira poller builds its CEL matcher only from agents registered in .fullsend/config.yaml, and setup writes roles: with no agents[] entries, so the matcher has zero candidates. The Jira integration guide says the built-in triage and code harnesses "need no extra configuration", which reads as if this works out of the box.

Reproduction

Any per-repo install with tracker.jira.poll.enabled: true:

fullsend poll --input-driver jira-poll --target-repo owner/repo --output dispatches.json --fullsend-dir .fullsend
# poll complete: 1 candidates, 1 unlocked, 1 selected, 0 dispatches

The issue is found, locked and selected; matching yields nothing. No warning is printed, so it looks like an authorization or trigger problem.

Isolated with fullsend dispatch --input-driver json against a synthetic Jira event (entity.kind=work_item, transition=comment_added, command=/fs-code, actor.kind=human, source.system=jira), varying only the config:

.fullsend/config.yaml /fs-code /fs-triage
as written by github setup (roles: only, no agents:) no match no match
agents: [{name: triage, source: triage.yaml}] no match triage
same + code registered with source: code triage

So Jira dispatch works only after each agent is registered by hand, and a fresh install dispatches nothing at all — not even triage.

Where

  • internal/cli/poll.go → newCELMatcher → harnessdispatch.ListTriggeredHarnesses
  • internal/harnessdispatch/enumerate.go → harness.RegisteredAgents(cfg) → cfg.AgentEntries(), which returns only agents[] entries with a source:
  • No built-in fallback: config.ValidAgentNames() is used elsewhere (e.g. dropGitHubRoutedBuiltins) but not to seed the Jira matcher.

Why it is easy to miss

The GitHub side is different: the shim calls fullsend dispatch --route <agent>, which uses built-in routes and needs no registration. So review works on PRs in a repo where code can never dispatch from Jira. The two dispatch paths disagree about what "installed" means.

Documentation contradiction

docs/guides/user/jira-integration.md ("Check which agents handle Jira events"):

The poller dispatches an agent only when its harness trigger: CEL expression matches the Jira event, and produces zero dispatches for a harness with no trigger, its own or inherited. The built-in triage and code harnesses ship triggers that match Jira events, so they need no extra configuration.

The intent appears to be "you don't need to write a trigger", but a reader concludes the agents are available without registering them.

Expected

One of:

  1. github setup / repos install register the built-in agents enabled by --agents / roles: (pinned to the agents release), so a fresh install dispatches triage and code without manual config; or
  2. The Jira matcher falls back to the built-in agents when agents[] is empty (or for enabled built-ins generally), consistent with the GitHub route table; or
  3. fullsend poll warns at startup when the matcher has zero candidates, in the spirit of jira-poll: warn at poller start when no jira authorization entry is configured #9005, and the guide documents the registration requirement explicitly.

Option 1 or 2 matches what users expect from an installer; option 3 is the minimum to stop the silent no-op.

Workaround

Register each agent the Jira path needs, pinned to the agents release:

fullsend agent add https://raw.githubusercontent.com/fullsend-ai/agents/<sha>/harness/code.yaml

(Naming the commit is required — a .../v0.56.1/... URL resolves v0.56.1 as a branch name and falls back to main.)

Related

Activity

  1. fullsend-ai-triage commented on Nov 15, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 11:24 AM UTC · Completed 11:26 AM UTC

    Commit: 28d2384 · View workflow run →

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

  2. added
    ready-to-code
    on Nov 15, 2026
  3. fullsend-ai-triage commented on Nov 15, 2026

    @fullsend-ai-triage

    Triage notes (code paths verified against the repository):

    Proposed test case:

    Given config.yaml with `roles:` and no `agents:`
    When the Jira poller builds its matcher
    Then a warning states there are zero dispatchable agents and points to `fullsend agent add`
    (if a built-in fallback is added: a synthetic /fs-triage Jira event matches `triage`)
    Edge cases: agents registered but none with triggers; kill switch active; /fs-code registered with a source
    

    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  4. shairevivo commented on Nov 15, 2026

    @shairevivo
    ContributorAuthor

    Adding a second, sharper symptom to this report: the poller finds the work, does nothing with it, and says nothing.

    The log line we hit is:

    poll complete: 1 candidates, 1 unlocked, 1 selected, 0 dispatches
    

    Read literally that is honest — one issue was selected, nothing dispatched. But it is the only signal, it is indistinguishable from "the comment was already handled", and it names neither the issue, the command, nor the reason. Diagnosing it took reconstructing newCELMatcher and running fullsend dispatch against synthetic events.

    Note the precedent: #6672 was the same failure mode from the other direction — built-in harness files lacked trigger:, so every Jira event produced 0 dispatches — and it too was silent.

    Suggested diagnostics, cheapest first:

    1. Matcher-empty warning at startup. If ListTriggeredHarnesses returns zero candidates, warn once: no agent harnesses are registered, so Jira events will dispatch nothing. This is the fresh-install case and is exactly the shape of jira-poll: warn at poller start when no jira authorization entry is configured #9005 (warn when no Jira authorization entry is configured).

    2. Selected-but-nothing-matched warning per cycle. When len(selected) > 0 && len(dispatches) == 0, log the issue key, the events seen that cycle (e.g. comment_added /fs-code), the registered agent names, and a remediation hint. Emit it as a GitHub Actions ::warning:: annotation so it surfaces in the job summary rather than scrolling past in the log.

    3. Per-event evaluation detail. For each event that produced no record, list the registered agents considered and that none matched. With the usual handful of agents this is a line or two, and it would have named this bug immediately.

    1 and 2 are probably sufficient; 3 is the one that makes trigger debugging self-service. Happy to scope a PR for either if useful.

  5. fullsend-ai-coder commented on Nov 15, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 11:28 AM UTC · Completed 11:43 AM UTC

    Commit: 28d2384 · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $1.46

  6. ianw commented on Nov 23, 2026

    @ianw

    Just a note to say this also affect me bringing up jira integration on an internal gitlab instance. None of my fullsend install path has explicitly added agents: - a state I am fine with (I'd prefer to not the manage pinned agents and have to update them myself, running against the release agents is fine).

    At first I tried

    agents:
              - name: triage
                runtime: claude
    

    But this didn't seem to work. Only after specifically adding an agents: with a url/pin I could seem to get jira polling working, e.g.

    agents:
        - source: https://raw.githubusercontent.com/fullsend-ai/agents/0640a767f5fe46d082c1ab4e64e64a4e5d904954/harness/triage.yaml#sha256=c31ab2ff59b288ad1b8e3755751549c00c1606649cdb239bbbe5df58ba6f3112
          ref: main
    

    #9503 adds a warning, which I suppose does at least help with guidance here, but I think we need to take a broader option and have this work when no agents: are specifically listed.

    Additionally, I think we should ensure dispatch works with the default -name: (which I guess implies "lookup in upstream") so that if I can use this "shorthand" format without the full "source" pin

  7. csoceanu commented on Nov 24, 2026

    @csoceanu
    Contributor

    /fs-code

    Implement the functional fix for this issue in a separate PR, coordinated with the warning-only PR #9504.

    A fresh installation should dispatch Jira work to the appropriate built-in agent without requiring manual source registration. This must also work with shorthand override entries such as:

    agents:
      - name: triage
        runtime: claude

    Use @ianw's reproduction as context:
    #9503 (comment)

    Implementation requirements

    • Make Jira polling discover agents through the same composed/effective harness resolution used elsewhere, rather than enumerating only source-backed registered agents.
    • Include known built-in agents when agents is absent or contains only override entries.
    • Resolve built-ins to definitions compatible with the installed Fullsend version. Reuse the existing version-aware resolution mechanism where possible; do not introduce a floating main dependency or require users to maintain manual source pins.
    • Explicit custom sources take precedence over built-ins with the same name. Additional custom agents remain discoverable.
    • Preserve per-agent runtime, model, effort, and harness overrides.
    • Explicitly disabled agents remain disabled and must not be reintroduced through fallback, including when all candidates are disabled.
    • Within the Jira matcher, consider each effective agent once. Do not change existing GitHub routing behavior.
    • Preserve the kill switch, fetch restrictions, authorization checks, and CEL trigger evaluation.

    Implement this as alignment with the existing accepted ADRs and composed-harness implementation:

    ADR 0058 describes fallback as transitional. Explain the compatibility implications in the PR description. If the fix requires changing a documented contract, identify the specific conflict before broadening the scope.

    Diagnostics

    Preserve the startup warning implemented by #9504. Also add the selected-but-zero diagnostic requested in this issue: when a Jira polling cycle selects work but no agent matches, emit an actionable ::warning:: containing the issue key, event or command, agents considered, and remediation guidance.

    Do not duplicate the startup-warning implementation from #9504.

    Validation and documentation

    Add regression coverage for:

    • Missing agents configuration.
    • Shorthand runtime overrides without source.
    • Custom-source precedence and additional custom agents.
    • Disabled agents, including configurations where all candidates are disabled.
    • Version-compatible built-in resolution.
    • Selected Jira work producing zero matching agents.
    • Avoiding duplicate dispatch within the Jira matcher.

    Verify the shared Jira polling behavior for both GitHub and GitLab targets. Run the relevant tests and repository-required checks, and report the results and any limitations in the PR.

    Update the Jira setup documentation to describe the working behavior. Preserve #9504’s startup warning, but correct its manual-registration guidance where the functional fix makes that guidance unnecessary. Rebase or resolve any documentation overlap with #9504 rather than expanding that PR.

  8. fullsend-ai-coder commented on Nov 24, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 11:53 AM UTC · Completed 12:28 PM UTC

    Commit: eeafe7f · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $8.11

  9. moved this from In review to In progress in fullsend-ai Workstreamon Nov 24, 2026
  10. self-assigned this
    on Nov 24, 2026
  11. added a commit that references this issue on Nov 24, 2026
  12. 5 remaining items

  13. added 5 commits that reference this issue on Nov 24, 2026
  14. added a commit that references this issue on Nov 25, 2026
  15. moved this from In progress to In review in fullsend-ai Workstreamon Nov 25, 2026
  16. added 2 commits that reference this issue on Nov 25, 2026
  17. added 2 commits that reference this issue on Nov 30, 2026
  18. added a commit that references this issue on Dec 1, 2026
  19. added a commit that references this issue on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugready-to-code

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions