Skip to content

Jira poll should honor the configured Forgejo agent-definition source #9988

In review

Description

@csoceanu

Problem

The new Jira built-in polling path resolves the built-in triage and code harnesses through a GitHub-only resolver in internal/cli/poll.go.

By contrast, fullsend run uses the existing agentsRepoFallback path, which honors FULLSEND_FORGEJO_URL, FULLSEND_FORGEJO_AGENTS_REPO, and FULLSEND_FORGEJO_AGENTS_REF.

When a Forgejo agent-definition source is configured, Jira polling can therefore evaluate triggers from the GitHub definition while the dispatched run loads the Forgejo definition. If the definitions differ, Jira commands can be incorrectly matched or skipped, or the dispatched run can use different behavior from the definition that matched it.

Expected behavior

Jira polling should resolve built-in agents from the same configured, pinned Forgejo source as fullsend run, or the documentation should explicitly state that Forgejo agent sources are unsupported for Jira polling.

Acceptance criteria

  • With a valid Forgejo source configured, Jira polling loads built-in harnesses from that source and pinned commit.
  • Invalid or unreadable Forgejo configuration fails closed and does not silently fall back to GitHub.
  • Add regression coverage for both the default GitHub path and the configured Forgejo path.
  • Document the Jira-poll behavior alongside the other commands that share the Forgejo source.

Context

This is a follow-up parity gap, not a regression in the GitHub path tested by PR #9831. Related: #9867 and PR #9873, which added Forgejo resolution for other execution paths.

Activity

  1. fullsend-ai-triage commented on Dec 1, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 2:42 PM UTC · Completed 2:44 PM UTC

    Commit: 66d7918 · View workflow run →

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

  2. added
    blocked
    on Dec 1, 2026
  3. fullsend-ai-triage commented on Dec 1, 2026

    @fullsend-ai-triage

    Thanks for filing this parity gap. The code path you describe is not on the main branch yet. The resolver that loads the built-in triage and code harnesses for Jira polling is being added by the still-open PR #9831. On main today, Jira polling only evaluates agents registered in config.yaml, so there is no built-in resolver to switch over to the Forgejo source.

    PR #9831 does not cover Forgejo support, so it is a prerequisite and not a fix for this issue. Work here should wait until it merges. The change would then build on the code that PR introduces. As you describe, the natural approach is to reuse the existing agentsRepoFallback path used by fullsend run, so polling honors FULLSEND_FORGEJO_URL, FULLSEND_FORGEJO_AGENTS_REPO and FULLSEND_FORGEJO_AGENTS_REF. It should fail closed on invalid or unreadable Forgejo configuration. The existing 'Agent definitions from a Forgejo instance' section in the fullsend run docs is the place to extend with the Jira-poll behavior.

    Once #9831 has landed, this issue should be ready to triage again and implement. Your acceptance criteria are clear enough to start from.

    Blocked by:

  4. csoceanu commented on Dec 2, 2026

    @csoceanu
    ContributorAuthor

    /fs-triage

  5. fullsend-ai-triage commented on Dec 2, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 9:35 AM UTC · Completed 9:37 AM UTC

    Commit: 5403dd0 · View workflow run →

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

  6. added
    type/bug
    component/dispatch
    ready-to-code
    and removed
    blocked
    on Dec 2, 2026
  7. fullsend-ai-triage commented on Dec 2, 2026

    @fullsend-ai-triage

    The prerequisite from the earlier triage, PR #9831, has merged, so the built-in resolver for Jira polling now exists on main and this issue is no longer blocked.

    Findings from the code

    • The Jira matcher builds its built-in resolver in newJiraBuiltinResolverFn (internal/cli/poll.go). That resolver reads only from the GitHub agents repository and never consults the Forgejo source. fullsend run goes through agentsRepoFallback, which checks the configured Forgejo source first and fails closed.
    • Fail-closed behavior needs one extra change. The BuiltinResolver type in internal/harnessdispatch/enumerate.go returns no error, so a bad Forgejo configuration cannot currently reach the poll. The type, or how the resolver reports errors, will need to change.
    • The docs change belongs in the "Agent definitions from a Forgejo instance" section of docs/cli/run.md.

    Suggested approach
    Reuse the Forgejo path from agentsRepoFallback in the Jira resolver. Fetch harnesses at the pinned commit, route companion files through the Forgejo source, and never fall back to GitHub once a Forgejo source is configured.

    Proposed test cases

    1. No Forgejo env: built-ins load from GitHub (unchanged).
    2. Valid Forgejo source: triage/code load from Forgejo at the pinned SHA; GitHub is not contacted.
    3. Invalid or unreadable Forgejo config: the matcher build returns an error; no GitHub fallback.
    4. A Forgejo harness with a different trigger than the GitHub one is the one matched against.
    

    No open PR currently addresses this issue, and the work does not touch CI workflow files, so it is ready for implementation.


    Labels: The prerequisite PR #9831 has merged, so the blocked label no longer applies. The issue describes a behavioral defect in the Jira dispatch path, matching type/bug and component/dispatch.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  8. fullsend-ai-coder commented on Dec 2, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 9:39 AM UTC · Completed 10:05 AM UTC

    Commit: 5403dd0 · View workflow run →

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

  9. added a commit that references this issue on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcomponent/dispatchready-to-codetype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions