Repository navigation
fix(#218): Parse QA verdict to properly trigger quality loop - #221
Merged
admarble merged 3 commits intoFeb 1, 2026
Merged
Conversation
The quality loop (`--quality-loop`) never triggered because QA phase success was determined by SDK query completion, not the actual QA verdict. Changes: - Add `parseQaVerdict()` function to parse verdict from QA output - Modify `executePhase()` to check verdict for QA phase: - READY_FOR_MERGE and NEEDS_VERIFICATION → success - AC_NOT_MET and AC_MET_BUT_NOT_A_PLUS → failure (triggers loop) - Add `verdict` field to PhaseResult, PhaseLog, and PhaseLogSchema - Pass verdict through logging for visibility in run logs - Add comprehensive unit tests for verdict parsing (15 test cases) Fixes #218 Co-Authored-By: Claude Opus 4.5 <[email protected]>
The QaVerdict type is used via PhaseLog["verdict"], so the direct import was unnecessary and triggered an ESLint warning. Co-Authored-By: Claude Opus 4.5 <[email protected]>
6 tasks
- Remove duplicate QaVerdict definitions from run.ts and types.ts - Single source of truth is now run-log-schema.ts (Zod schema) - types.ts imports and re-exports for consumer convenience - run.ts imports from types.ts This prevents maintenance issues when adding new verdict types. Co-Authored-By: Claude Opus 4.5 <[email protected]>
admarble
deleted the
feature/218-bug-quality-loop-never-triggers-qa-verdict-not
branch
February 1, 2026 01:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--quality-loopflagsubtype: "success"means query completed, not that QA passedChanges
parseQaVerdict()function to extract verdict from QA outputexecutePhase()to check verdict for QA phaseverdictfield toPhaseResult,PhaseLog, and schemaTest plan
npm run buildAcceptance Criteria
parseQaVerdict()functionsrc/commands/run.ts:84-101src/commands/run.ts:1054-1079success: falsesrc/commands/run.test.ts:593-701(15 tests)logWriter.logPhase()callsrc/lib/workflow/run-log-schema.ts:82+ log-writer updateFixes #218
🤖 Generated with Claude Code