fix(verify-pr): add explicit Issue Type field to Step 6d sub-task creation templates#245
Conversation
…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
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis 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 TypesequenceDiagram
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
Flow diagram for verify-pr eval 3 Issue Type assertionflowchart 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]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
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
Verification Report for TC-5181 (commit 7632a77)
Overall: PASSAll acceptance criteria satisfied. The three Acceptance Criteria Verification
Scope ContainmentAll files in the diff match the task specification:
No out-of-scope files. No untracked files. Eval QualityEval result review detected (3-criteria match: author github-actions[bot] ✓, marker
Overall: 68/68 (100%) — improved from baseline 98% at This comment was AI-generated by sdlc-workflow/verify-pr v0.13.1. |
Summary
**Issue Type:** Sub-taskas the first field in all threejira.create_issuetemplates 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 TasksBug 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 theparentparameter for Tasks, breaking the parent-child hierarchy.Implements TC-5181
Test plan
jira.create_issuetemplates in Step 6d include**Issue Type:** Sub-taskas the first fieldclaude plugin validate plugins/sdlc-workflowpasses🤖 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:
Enhancements: