Skip to content

[Task]: Add evidence-based QA readiness scorecards #151

Closed

Description

@sumithr

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

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

Activity

  1. added
    documentation
    enhancement
    ux
    priority: later
    on May 22, 2026
  2. sumithr commented on May 25, 2026

    @sumithr
    OwnerAuthor

    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:

    • scorecard fields should be serializable so .sumo-qa/qa-report.html can render them;
    • scorecard should consume repo-map, diff-impact, risk ledger, context bundle, coverage/mutation summaries, and fresh verification evidence when present;
    • distinguish "not measured", "stale", "blocked", "ready with accepted residuals", and "ready" states.

    Boundary: #151 owns the evidence semantics and readiness wording. #157 owns the polished report/dashboard presentation.

  3. sumithr commented on Jun 10, 2026

    @sumithr
    OwnerAuthor

    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.

  4. sumithr commented on Jun 11, 2026

    @sumithr
    OwnerAuthor

    Acceptance criteria verified — PR #392 (feat/issue-151-readiness-scorecard @ 7353c94)

    Each AC checked against the branch (not the PR self-description):

    AC Evidence on the branch
    Risk coverage, evidence freshness, uncovered blockers, residual risks, final recommendation QaScorecard.dimensions() emits Risk coverage / Test evidence / CI status / Coverage / Mutation / Residual risks; recommendation() derives the verdict (scorecard_models.py).
    Avoids unsupported numeric quality scores No composite score anywhere — only counts of real evidence + categorical states (scorecard_models.py docstring + serialize_scorecard).
    Refuses ready/safe when high-impact risks uncovered or tests stale recommendation() returns blocked for an is_uncovered_blocker row and insufficient_evidence for stale/unknown evidence; first-match-wins so ready is unreachable under either. Proven by MCP dispatch (below).
    Omittable from short/simple answers compact_summary() one-liner + sumo-qa-reviewing-before-merge guidance: "Omit it from short reviews."
    Promptfoo/scenario coverage for stale-evidence and uncovered-risk 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.
    README/demo updates stay consistent with #86 The only README change is a one-line index entry for docs/SCORECARD.md — factual, markets no unsupported automation. Broader README/demo repositioning remains #86's scope.
    States distinguish ready / blocked / insufficient-evidence / ready-with-accepted-residuals ScorecardRecommendation = the four distinct literals; derivation maps each to exactly one.

    Verification evidence

    • CI: all 31 checks green on 7353c94.
    • Tests: full suite green, 100% coverage maintained (incl. registry / tool-set / tools-list-snapshot tests — new tool is purely additive).
    • Behavioral (real MCP stdio dispatch of sumo_qa_format_qa_scorecard): uncovered high-impact risk → blocked; stale test evidence → insufficient_evidence; coverage={"freshness":"fresh"} (no number) → ready with Coverage reported as not measured; fresh passing evidence → ready.
    • Review: per-file sumo-qa-reviewing-before-merge over the source files → SAFE, 0 material findings. A codex P2 (measurement-less coverage/mutation reported as measured) was fixed in 7353c94; codex re-review of the fix → PASS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-taskdocumentationenhancementpriority: laterux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions