Skip to content

fix(verify-pr): add explicit Issue Type field to Step 6d sub-task creation templates#245

Merged
mrizzi merged 1 commit into
RHEcosystemAppEng:mainfrom
mrizzi:worktree-TC-5181
Jul 10, 2026
Merged

fix(verify-pr): add explicit Issue Type field to Step 6d sub-task creation templates#245
mrizzi merged 1 commit into
RHEcosystemAppEng:mainfrom
mrizzi:worktree-TC-5181

Conversation

@mrizzi

@mrizzi mrizzi commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add **Issue Type:** Sub-task as the first field in all three jira.create_issue templates in Step 6d (review feedback, CI failure, and eval failure sub-tasks) to ensure Jira creates Sub-tasks with parent-child hierarchy instead of standalone Tasks
  • Add eval assertion to verify-pr eval 3 to validate that sub-task creation output specifies Issue Type as Sub-task

Bug Context

Without the explicit Issue Type field, the LLM nondeterministically infers the issue type when calling createJiraIssue, causing ~40% of sub-tasks to be created as standalone Tasks (type 10014) instead of Sub-tasks (type 10015). Jira silently ignores the parent parameter for Tasks, breaking the parent-child hierarchy.

Implements TC-5181

Test plan

  • Verify all three jira.create_issue templates in Step 6d include **Issue Type:** Sub-task as the first field
  • Run verify-pr evals and confirm existing assertions pass
  • Confirm the new eval 3 assertion validates Issue Type in sub-task creation output
  • Run claude plugin validate plugins/sdlc-workflow passes

🤖 Generated with Claude Code

Summary by Sourcery

Ensure Jira sub-tasks created in the verify-pr workflow are explicitly typed as Sub-task to preserve parent-child hierarchy and add evaluation coverage for this behavior.

Bug Fixes:

  • Specify Issue Type as Sub-task in all Step 6d jira.create_issue templates to prevent incorrect creation of standalone Tasks instead of sub-tasks.

Enhancements:

  • Clarify sub-task creation instructions in the verify-pr skill documentation by including an explicit Issue Type field.
  • Extend verify-pr evals to assert that sub-task creation outputs declare Issue Type as Sub-task.

…ation templates

Add `**Issue Type:** Sub-task` as the first field in all three
jira.create_issue templates in Step 6d (review feedback, CI failure,
and eval failure sub-tasks). Without this field, the LLM
nondeterministically infers the issue type, causing ~40% of sub-tasks
to be created as standalone Tasks instead of Sub-tasks with proper
parent-child hierarchy.

Add eval assertion to verify-pr eval 3 to validate that sub-task
creation output specifies Issue Type as Sub-task.

Implements TC-5181

Assisted-by: Claude Code
@sourcery-ai

sourcery-ai Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This PR ensures Jira sub-tasks are created with the correct Issue Type and adds an eval guardrail so verify-pr workflows reliably produce Sub-tasks instead of standalone Tasks.

Sequence diagram for Jira sub-task creation with explicit Issue Type

sequenceDiagram
    participant VerifyPRSkill
    participant LLMSubAgent
    participant JiraAPI

    VerifyPRSkill->>LLMSubAgent: request create_sub_task
    LLMSubAgent->>JiraAPI: jira.create_issue(IssueType Sub-task, Parent, Summary, Labels)
    JiraAPI-->>LLMSubAgent: sub_task_created_with_parent
    LLMSubAgent-->>VerifyPRSkill: return sub_task_issue_id
Loading

Flow diagram for verify-pr eval 3 Issue Type assertion

flowchart TD
    A[Run verify-pr eval 3] --> B[Capture jira.create_issue output]
    B --> C[Check IssueType field]
    C -->|IssueType Sub-task| D[Eval passes]
    C -->|IssueType not Sub-task| E[Eval fails]
Loading

File-Level Changes

Change Details Files
Ensure all Step 6d Jira sub-task creation templates explicitly set Issue Type to Sub-task as the first field.
  • Prepend an Issue Type: Sub-task field to the review-feedback sub-task creation template in Step 6d.
  • Prepend an Issue Type: Sub-task field to the Correctness sub-agent sub-task creation template in Step 6d.
  • Prepend an Issue Type: Sub-task field to the eval-failure sub-task creation template in Step 6d.
plugins/sdlc-workflow/skills/verify-pr/SKILL.md
Strengthen verify-pr eval 3 to assert that sub-task creation output specifies Issue Type as Sub-task.
  • Update the verify-pr eval configuration to include an assertion on the Issue Type field for sub-task creation.
  • Ensure existing eval assertions remain unchanged while adding the new Issue Type validation.
evals/verify-pr/evals.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot 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.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@github-actions github-actions Bot 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.

Eval Results

Eval Results: verify-pr

Eval Passed Failed Pass Rate
eval-1 12/12 0 100%
eval-2 11/11 0 100%
eval-3 15/15 0 100%
eval-4 10/10 0 100%
eval-5 10/10 0 100%
eval-6 10/10 0 100%

Pass rate: 100% · Tokens: 43,655 · Duration: 239s

Baseline (64970afe): 98% · 39,589 tokens · 197s


Generated by sdlc-workflow/run-evals v0.13.1

@mrizzi

mrizzi commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator Author

Verification Report for TC-5181 (commit 7632a77)

Check Result Details
Review Feedback N/A No review comments exist on this PR
Root-Cause Investigation N/A No sub-tasks created — nothing to investigate
Scope Containment PASS PR modifies exactly the 2 expected files: SKILL.md (task spec) and evals.json (test requirements)
Diff Size PASS 5 additions, 1 deletion — minimal and proportional to task scope
Commit Traceability PASS Single commit references "Implements TC-5181"
Sensitive Patterns PASS No secrets, credentials, or sensitive patterns in diff
CI Status PASS All 5 checks pass (Eval PR Run, Plugin Validation, Skill Lint, Sourcery, Trigger Eval Dispatch)
Acceptance Criteria PASS 6 of 6 criteria met
Test Quality PASS Repetitive Test Detection: N/A. Test Documentation: N/A. Eval Quality: PASS (100%, 68/68 assertions)
Test Change Classification N/A No test files in PR diff
Verification Commands N/A No verification commands specified

Overall: PASS

All acceptance criteria satisfied. The three jira.create_issue templates in Step 6d now include **Issue Type:** Sub-task as the first field, and a new eval assertion validates the fix. CI evals confirm 100% pass rate (68/68) with improvement from 98% baseline.


Acceptance Criteria Verification

# Criterion Status Evidence
1 Eval assertion verifies Issue Type: Sub-task in sub-task creation output PASS New assertion added to eval 3 in evals.json checking that subtask-30001.md or report specifies issueTypeName Sub-task
2 All three templates include Issue Type: Sub-task as first field PASS Lines 488, 518, 561 of SKILL.md each have - **Issue Type:** Sub-task immediately after jira.create_issue with:
3 Review feedback sub-task template includes Issue Type PASS Line 488
4 CI failure sub-task template includes Issue Type PASS Line 518
5 Eval failure sub-task template includes Issue Type PASS Line 561
6 Existing verify-pr eval assertions continue to pass PASS CI eval results show 100% pass rate — 68/68 assertions across all 6 evals

Scope Containment

All files in the diff match the task specification:

  • Modified: plugins/sdlc-workflow/skills/verify-pr/SKILL.md (Files to Modify)
  • Modified: evals/verify-pr/evals.json (justified by Test Requirements — eval assertion update)

No out-of-scope files. No untracked files.


Eval Quality

Eval result review detected (3-criteria match: author github-actions[bot] ✓, marker ## Eval Results ✓, footer sdlc-workflow/run-evals ✓).

Eval Passed Failed Pass Rate
eval-1 12/12 0 100%
eval-2 11/11 0 100%
eval-3 15/15 0 100%
eval-4 10/10 0 100%
eval-5 10/10 0 100%
eval-6 10/10 0 100%

Overall: 68/68 (100%) — improved from baseline 98% at 64970afe.


This comment was AI-generated by sdlc-workflow/verify-pr v0.13.1.

@mrizzi mrizzi merged commit 1dab64e into RHEcosystemAppEng:main Jul 10, 2026
5 checks passed
@mrizzi mrizzi deleted the worktree-TC-5181 branch July 10, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant