Closed
Labels
ai-taskdocumentationImprovements or additions to documentationenhancementNew feature or requestpriority: laterUseful improvement, lower sequencing pressureuxTooling and user experience improvements
Description
Priority / sequencing
P2 / priority: later
Suggested labels
- documentation
- ux
Roadmap fields
Status: Backlog; Priority: P2; Size: M; Order: after #144, #149, and #86; Depends on: #144, #149, #86
Problem
Users often need a compact release or PR readiness summary, not just raw QA advice. Some QA platforms expose quality scores or dashboards, but sumo-qa should avoid fake precision. It can still produce an evidence-based scorecard that shows what is covered, what is stale, and what remains risky.
Current repo state:
- Review workflows already produce verdicts.
- Formal plan examples include entry/exit criteria and residual risks.
- There is no reusable scorecard/report format across review, rollout, and test-plan flows.
Expected outcome
Add a compact QA readiness scorecard that summarizes risk coverage, evidence freshness, mutation/coverage signals when available, open residuals, and final recommendation. It should be explicit that the scorecard is evidence-based, not a predictive quality score.
Scope
- Define a scorecard format for PR review and release/test-plan workflows.
- Pull from the [Task]: Add a risk-to-test traceability ledger for QA workflows #144 risk ledger, [Task]: Add a host-neutral issue and PR context bundle for QA workflows #149 context bundle, test evidence, and optional coverage/mutation summaries when available.
- Update docs/worked examples to show good and bad scorecard states.
- Add tests/evals that prevent "all green" output when evidence is stale or risks are uncovered.
Implementation constraints / regression guards
- The scorecard summarizes evidence; it must not create a fake predictive quality score.
- Default review output should stay concise. Use the scorecard when the user asks for readiness, release review, or structured summary.
- Do not let optional coverage/mutation artifacts from [Task]: Add coverage and mutation guided QA recommendations #147 outweigh uncovered high-impact risks.
- Do not duplicate the risk ledger or context bundle schema; reference those artifacts when present.
Acceptance criteria
- Scorecard includes risk coverage, test evidence freshness, uncovered blockers, residual risks, and final recommendation.
- It avoids unsupported numeric quality scores unless every component is transparent and evidence-backed.
- It refuses "ready/safe" when high-impact risks are uncovered or tests are stale.
- It can be omitted from short/simple answers to avoid response bloat.
- Promptfoo or scenario coverage includes stale evidence and uncovered-risk cases.
- README/demo updates, if any, stay consistent with Rework README and demo around outcome-led QA workflows #86 and do not market unsupported automation.
- Scorecard states distinguish ready, blocked, insufficient evidence, and ready-with-accepted-residuals.
Test plan
pytest tests/test_skill_conformance.py tests/test_phase3_e2e_skill_path.py- Add promptfoo/scenario assertions for scorecard blocker behavior.
- If formatter code is added, add snapshot tests for ready, blocked, and insufficient-evidence scorecards.
Context
- Related issues: Rework README and demo around outcome-led QA workflows #86, Improve context-specific QA guidance without tool-specific overfitting #98, [Task]: Add a risk-to-test traceability ledger for QA workflows #144, [Task]: Add a host-neutral issue and PR context bundle for QA workflows #149, [Task]: Add coverage and mutation guided QA recommendations #147.
- Prior art: Test management and AI QA tools often expose quality dashboards; this issue intentionally limits sumo-qa to explainable evidence summaries.
- Regression risk: do not replace the existing senior-QA verdict with a misleading single score.
Metadata
Metadata
Assignees
Labels
ai-taskdocumentationImprovements or additions to documentationenhancementNew feature or requestpriority: laterUseful improvement, lower sequencing pressureuxTooling and user experience improvements
Activity
sumithr commentedon May 25, 2026
Scope update from #154:
Keep this issue as the scorecard model, but align it with the future report/dashboard work in #157.
Add to this issue's scope:
.sumo-qa/qa-report.htmlcan render them;Boundary: #151 owns the evidence semantics and readiness wording. #157 owns the polished report/dashboard presentation.
sumithr commentedon Jun 10, 2026
Picking this up now (branch
feat/issue-151-readiness-scorecard).Dependency status at pickup: the two data-producer deps are closed — #144 risk ledger (
sumo_qa_format_risk_ledger) and #149 context bundle (sumo_qa_format_context_bundle) — so the scorecard's evidence sources exist and it can be validated on real shapes. The third listed dep, #86 (README/demo rework), is still open and sitting in Backlog behind its own product-loop blockers (#157 parked, #158 unmerged).Scope decision: driving the core scorecard now (evidence semantics, readiness states, formatter, MCP tool, skill integration, evals, worked examples — AC #1/#2/#3/#4/#5/#7). Deferring AC #6 ("README/demo updates stay consistent with #86") until #86 lands, since there is no reworked README/demo to stay consistent with yet. This avoids building README positioning on ground #86 will rework. The #154 scope-comment requirements (serializable fields for
.sumo-qa/qa-report.html; distinguish not-measured / stale / blocked / ready-with-accepted-residuals / ready) are in scope and honored.No drift found against the issue's concrete claims — review verdicts, formal-plan entry/exit criteria, and "no reusable scorecard format exists yet" all verified true on current
main.feat(scorecard): add evidence-based QA readiness scorecard (#151)
sumithr commentedon Jun 11, 2026
Acceptance criteria verified — PR #392 (
feat/issue-151-readiness-scorecard@7353c94)Each AC checked against the branch (not the PR self-description):
QaScorecard.dimensions()emits Risk coverage / Test evidence / CI status / Coverage / Mutation / Residual risks;recommendation()derives the verdict (scorecard_models.py).scorecard_models.pydocstring +serialize_scorecard).recommendation()returnsblockedfor anis_uncovered_blockerrow andinsufficient_evidencefor stale/unknown evidence; first-match-wins soreadyis unreachable under either. Proven by MCP dispatch (below).compact_summary()one-liner +sumo-qa-reviewing-before-mergeguidance: "Omit it from short reviews."tests/evals/promptfoo/skill-reviewing-before-merge-scorecard.yaml— 2 seeds (uncovered idempotency risk → non-ready; fresh suite but named risk on stale CI → non-ready). Ran 2/2 at PR open.docs/SCORECARD.md— factual, markets no unsupported automation. Broader README/demo repositioning remains #86's scope.ScorecardRecommendation= the four distinct literals; derivation maps each to exactly one.Verification evidence
7353c94.sumo_qa_format_qa_scorecard): uncovered high-impact risk →blocked; stale test evidence →insufficient_evidence;coverage={"freshness":"fresh"}(no number) →readywith Coverage reported asnot measured; fresh passing evidence →ready.sumo-qa-reviewing-before-mergeover the source files → SAFE, 0 material findings. A codex P2 (measurement-less coverage/mutation reported as measured) was fixed in7353c94; codex re-review of the fix → PASS.feat(scorecard): add evidence-based QA readiness scorecard (#151) (#392)
chore(main): release 0.43.0 (#396)
refactor(report): derive readiness from the #151 QaScorecard engine
fix(report): keep internal tracker references out of user-facing output
feat(report): add polished local QA report (CLI + MCP) (#381)