Repository navigation
Closed
Labels
Description
Summary
When /spec generates Derived ACs from the Feature Quality Planning section (#219), these ACs are not explicitly tracked through the /exec and /qa phases. This can lead to derived ACs being forgotten or not verified.
Problem
Current State
/specgenerates Derived ACs table in Feature Quality Planning section/execmentions "Address derived ACs alongside original ACs" but doesn't:- Extract derived ACs from the spec comment
- Include them in the Pre-PR AC Verification table
- Track their completion status
/qasays "Treat derived ACs as additional AC items" but doesn't:- Show HOW to extract them from spec comments
- Include a mechanism to parse the derived ACs table
- Add them to the AC Coverage table automatically
The Gap
/spec generates:
└─> Derived ACs table (AC-6, AC-7, AC-8)
↓
/exec should track:
└─> [Missing] Extract derived ACs from spec comment
└─> [Missing] Include in Pre-PR AC Verification table
↓
/qa should verify:
└─> [Missing] Parse derived ACs from spec comment
└─> [Missing] Include in AC Coverage table
└─> [Missing] Mark as MET/NOT_MET
Proposed Solution
1. Add Derived AC Extraction to /exec
In the Context Gathering section, add explicit extraction:
#### Extract Derived ACs
If quality plan has a Derived ACs table, extract them:
```bash
# Example: Parse derived ACs from spec comment
# Look for table rows like: | Error Handling | AC-6: Description | High |
derived_acs=$(gh issue view <issue> --comments --json comments -q '.comments[].body' | \
grep -oE "AC-[0-9]+: [^|]+" | sort -u)Include extracted derived ACs in:
- AC checklist during implementation
- Pre-PR AC Verification table
### 2. Update Pre-PR AC Verification in `/exec`
Add a section for derived ACs:
```markdown
### Pre-PR AC Verification
| AC | Description | Status | Evidence |
|----|-------------|--------|----------|
| AC-1 | [Original AC] | ✅ | ... |
| AC-2 | [Original AC] | ✅ | ... |
| **Derived ACs** | | | |
| AC-6 | [From Error Handling] | ✅ | ... |
| AC-7 | [From Best Practices] | ⚠️ Partial | ... |
3. Add Derived AC Parsing to /qa
In the AC Coverage section, add explicit handling:
#### Derived ACs Verification
1. Extract derived ACs from spec comment's quality plan
2. Add to AC Coverage table with "Derived" label
3. Verify each derived AC same as original ACs
| AC | Source | Description | Status |
|----|--------|-------------|--------|
| AC-6 | Derived (Error Handling) | Rate limit handling | MET |
| AC-7 | Derived (Best Practices) | Logging | MET |Acceptance Criteria
- AC-1:
/execextracts derived ACs from spec comment's Feature Quality Planning section - AC-2:
/execincludes derived ACs in Pre-PR AC Verification table (labeled as "Derived") - AC-3:
/qaparses derived ACs from spec comment - AC-4:
/qaincludes derived ACs in AC Coverage table with source attribution - AC-5: Derived ACs are treated identically to original ACs for verdict determination
Why This Matters
Without explicit tracking:
- Derived ACs might be implemented but not verified
- Derived ACs might be forgotten entirely
- QA can't objectively verify all planned work was completed
- The value of Feature Quality Planning is reduced
Related
- feat(spec): Add comprehensive feature planning - gaps, quality, best practices #219 - Parent feature (Feature Quality Planning)
- Depends on: feat(spec): Add comprehensive feature planning - gaps, quality, best practices #219 being merged first
Labels
enhancement, workflow, exec, qa
Activity
admarble commentedon Feb 1, 2026
Spec Review - Implementation Plan
Acceptance Criteria Checklist
/execextracts derived ACs from spec comment/execincludes derived ACs in Pre-PR AC Verification table/qaparses derived ACs from spec comment/qaincludes derived ACs in AC Coverage table with source attributionVerification Criteria Summary
All AC items are testable via integration testing:
Implementation Plan
Phase 1: Create Derived AC Extraction Pattern
| Source | AC-N: Description | Priority |formatPhase 2: Update
/execSkill (AC-1, AC-2)3. Add "Extract Derived ACs" section after Quality Plan Reference
4. Update Pre-PR AC Verification table to include derived ACs with "Derived" label
Phase 3: Update
/qaSkill (AC-3, AC-4, AC-5)5. Add derived AC extraction to Phase 0b (Quality Plan Verification)
6. Update AC Coverage table format with source attribution
7. Document that verdict algorithm includes derived ACs
Derived ACs (from Quality Planning)
Assumptions to Validate
| Source | AC-N: Description | Priority |)AC-N:pattern with colon separatorupdateACStatus()works for derived ACs (no schema changes needed)Open Questions
Recommended Workflow
Quality Loop: Disabled (clear AC, documentation-only changes)
Status: ✅ READY FOR IMPLEMENTATION
feat(#223): Track derived ACs through spec → exec → qa workflow
admarble commentedon Feb 1, 2026
Implementation Complete ✅
AC Coverage Summary
/execSection 2.1c added for derived AC extraction/qaPhase 0b extraction logic with edge case handlingCoverage: 7/7 AC items fully met
Files Changed
.claude/skills/exec/SKILL.md(+75 lines).claude/skills/qa/SKILL.md(+61 lines)Quality Plan Alignment
Derived ACs: 2/2 addressed
Test/Build Results
npm run build: ✅ Passesnpm test: 732 passed, 10 failed (pre-existing failures instate-update-cli.test.ts, unrelated to this change)PR Status
PR Created: #225
Next Steps
/qa 223to verify QA phase correctly handles derived ACsadmarble commentedon Feb 1, 2026
/exec Progress Update
Summary
Implementation complete. PR #225 created and all CI checks passing.
Pre-PR AC Verification
/execextracts derived ACs from spec comment.claude/skills/exec/SKILL.md:207-260(Section 2.1c)/execincludes derived ACs in Pre-PR AC Verification table.claude/skills/exec/SKILL.md:419-435/qaparses derived ACs from spec comment.claude/skills/qa/SKILL.md:287-313/qaincludes derived ACs in AC Coverage table.claude/skills/qa/SKILL.md:1218-1234.claude/skills/qa/SKILL.md:1013-1021Coverage: 7/7 AC items fully met
Files Changed
.claude/skills/exec/SKILL.md(+75/-5 lines).claude/skills/qa/SKILL.md(+61/-22 lines)Build & Test Results
npm run build: ✅ Passesnpm test: 733/743 tests pass (10 failures are pre-existing on main, unrelated to this change)Quality Plan Alignment
N/A - No quality plan in issue (this is a documentation-only change)
PR Status
✅ PR Created: #225
Next Steps
Ready for
/qareview.🤖 Generated with Claude Code
fix(#223): Use portable grep -oE instead of sed for AC extraction
docs(#223): Update CHANGELOG and what-weve-built for derived AC tracking
fix(#762): anchor blocker markers to line start; document --strict-pr…
feat(#762): lightweight content pre-flight for --chain (#764)
fix(#762): anchor blocker markers to line start; document --strict-pr…