Skip to content

Decide the post-merge step design: mechanism, Jira credential scope, failure mode, and ADR need (blocks #9535) #10078

Backlog

Description

@fullsend-ai-triage

Close-on-merge for Jira issues (#9535) cannot be implemented until maintainers settle the following. The earlier prerequisites are done: fullsend issues transition --state started|closed resolves states from Jira status categories and exposes issue type and hierarchy level (#9536, merged in #9925). The ADR draft mentioned in discussion was never opened as a PR (#9518 is a closed issue, not an ADR), and closure of #9453 (not planned) is not a decision on this design.

Decisions needed

  1. Mechanism. (a) A new post-merge fleet agent on the triage role, triggered on a normalized change-proposal merged transition, whose post-script runs the Jira transition; designed once so other consumers (Automatically re-triage issues when they become unblocked or their triage goes stale #9454, Post-merge workflow should close linked issues when PR targets a non-default branch #5924, agents#2009, agents#586) can share it. (b) A managed pull_request_target workflow converged by repos install, with a tracker.jira.status_sync style config block. Option (b) lost much of its justification once status names stopped being config. Retro is not a fit (analyst, also runs on closed-unmerged PRs, can be disabled).
  2. Credentials. reusable-dispatch.yml passes FULLSEND_JIRA_* secrets only to runs whose normalized event source system is jira. A merge event is code-host sourced, so the token would have to reach the runner side only (post-script, never the sandbox) for this one event. Confirm this widening explicitly.
  3. Failure mode. Fail-soft (warn and continue, as with run_label) versus hard error for an explicitly configured close-on-merge.
  4. ADR. Whether an ADR is required, given the design amends Verify Jira work items through the built-in PR lifecycle #8921's statement that PR stages make no Jira API calls. One contributor says yes, another says no.
  5. Guards. Confirm the proposed merge-path guards: skip when no in-progress status can be identified for the issue type (Bugzilla-style workflows), skip issue types at or above epic level via hierarchyLevel, and opt-in per repo.

Where the work lands. This repository: credential plumbing, config validation, docs (config-reference.md, Jira guide), behaviour tests, ADR if required. The agents repository: harness and post-script if the agent mechanism is chosen (location not yet verified). Editing reusable-dispatch.yml or a managed workflow file needs a human PR, since the code agent cannot modify workflow files under current permissions.

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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions