You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sequant_logs: include QA verdict summary in structured output #434
When reviewing QA results for multiple issues, sequant_logs only returns phase-level pass/fail status. To see the actual QA findings (AC coverage, gaps, suggestions), you must separately fetch issue comments via the GitHub API.
This creates friction in the batch QA review workflow — checking gaps for 4 issues required 7+ API calls hunting through PR comments, PR reviews, and issue comments to find the right content.
Proposed Solution
Include a condensed QA verdict summary in the sequant_logs response for phases where phase === "qa". For example:
Pointer only: Include a link/reference to the issue comment containing the full QA review, rather than embedding the summary
Status quo: Keep logs lightweight, rely on issue comments for details
Context
Discovered during batch QA of #325, #377, #384, #378. QA reviews are posted as issue comments, but this isn't obvious — searched PR comments and PR reviews first before finding them.
Activity
admarble commentedon Mar 26, 2026
→ CLARIFY — No explicit acceptance criteria; three approaches proposed (full summary, pointer, status quo) with no decision
Need: explicit ACs and decision on which approach to implement
admarble commentedon Mar 28, 2026
Spec Plan — #434: Include QA verdict summary in sequant_logs
Acceptance Criteria
verdictfield insequant_logsMCP response (already stored in PhaseLog, currently omitted from mapping)qaSummaryschema to PhaseLog with fields:acMet,acTotal,gaps[],suggestions[]parseQaSummaryfunction alongside existingparseQaVerdict)qaSummaryparse without errorsVerification Criteria
sequant_logscalled → phase includesverdictparseQaSummarycalled → returns{ acMet, acTotal, gaps, suggestions }completePhaseLogcalled → PhaseLog contains qaSummaryImplementation Plan
Phase 1: Schema — Add
QaSummarySchematorun-log-schema.ts, add optionalqaSummarytoPhaseLogSchemaPhase 2: Parser — Add
parseQaSummary(output)inphase-executor.tsto extract AC results, gaps, suggestions from QA outputPhase 3: Capture — Wire
parseQaSummaryintobatch-executor.tsto store summary in PhaseLog alongside verdictPhase 4: Expose — Add
verdictandqaSummaryto MCP response mapping inmcp/tools/logs.tsDesign Decisions
parseQaVerdict+ optional PhaseLog field pattern exactlyNon-Goals
Scope
✅ SCOPE_OK — Single feature, 4 AC items, 2 directories
feat(#434): include QA verdict summary in sequant_logs MCP response
admarble commentedon Mar 28, 2026
QA Review for Issue #434
AC Coverage
...(p.verdict && { verdict: p.verdict })in logs.tsQaSummarySchemawith acMet, acTotal, gaps, suggestions in run-log-schema.tsparseQaSummary()in phase-executor.ts with 8 unit testsCoverage: 5/5 AC items fully met
Quality Metrics
any)CI Status
CI Summary: 5/5 passed
Test Coverage Analysis
phase-executor.tsphase-executor.test.tsrun-log-schema.tsrun-log-schema.test.tsbatch-executor.tsbatch-executor.test.ts(existing)log-writer.tslog-writer.test.ts(existing)types.tslogs.tsserver.test.ts(existing)Coverage: 5/6 changed source files have tests (types-only file excluded)
Code Review
Strengths:
Issues:
Suggestions:
Test Quality Review
Call-Site Review
New exported functions: 1 (
parseQaSummary)parseQaSummary()phase-executor.ts:424phase === "qa" && agentResult.outputSelf-Evaluation
CHANGELOG Verification
Verdict: READY_FOR_MERGE
All 5 AC items met. Clean implementation following established patterns. Comprehensive test coverage. Backward compatible. CI green.
Next Steps
fix(#434): rename qaSummary to summary, harden parser for real QA output
feat(#434): include QA verdict summary in sequant_logs output (#481)