Skip to content

Separated browser-based QA evaluator skill #1027

Closed as duplicate
Closed as duplicate

Description

@Moristotle

Separated browser-based QA evaluator skill

  • I searched existing issues and this has not been proposed before

What problem does this solve?

Superpowers' current review pipeline is excellent at the code level: spec compliance reviewer → code quality reviewer → requesting-code-review. But all three evaluate code artifacts — they read files, check against the plan, and assess quality.

What's missing is a product-level evaluator that tests the running application as a user would. "Works in the code" and "works in the browser" are different claims, and the gap between them is where the most impactful bugs live — broken wiring between components, missing error states, UI that renders but doesn't respond to interaction, successful API calls whose responses are never rendered.

Anthropic's recent [Harness design for long-running application development](https://www.anthropic.com/engineering/harness-design-long-running-apps) (March 2026) confirms this empirically. Their separated evaluator — a dedicated agent using Playwright MCP to navigate the running app — caught bugs that code review alone missed, such as:

  • "Rectangle fill tool only places tiles at drag start/end points instead of filling the region"
  • "PUT /frames/reorder route defined after /{frame_id} routes — FastAPI matches 'reorder' as a frame_id integer and returns 422"
  • "Delete key handler requires both selection and selectedEntityId to be set, but clicking an entity only sets selectedEntityId"

These are all issues invisible at the code review level but immediately obvious when interacting with the running application. The article also found that agents reliably skew positive when evaluating their own work, and that tuning a standalone evaluator to be skeptical is far more tractable than making a generator critical of its own output.

Proposed solution

A browser-qa skill that hooks into the subagent-driven-development workflow at two points, dispatching a QA subagent that interacts with the running application through browser tooling (Chrome DevTools MCP, Playwright MCP, or similar).

Task mode (per-task, lightweight)

After the code quality reviewer approves a task that has observable UI or API output, dispatch a QA subagent to verify the task's output actually works in the browser. Only grades Functionality and Completeness. On failure, findings feed back to the implementer (max 2 fix cycles), then continue. Takes ~2-3 minutes per task.

Full mode (pre-merge, comprehensive)

After all tasks complete and the final code reviewer approves, run a full QA pass against a contract of test scenarios derived from the plan's acceptance criteria. Human approves the contract before the run. Grades all four criteria (Functionality, Integration, Robustness, Completeness) with calibrated thresholds. On failure, fix cycle (max 3 rounds) or escalate.

Where it hooks in

For each task in subagent-driven-development:
  → Dispatch implementer subagent
  → Dispatch spec compliance reviewer
  → Dispatch code quality reviewer
  → IF task has observable output:
      → browser-qa (TASK MODE)              ← NEW
      → On FAIL: findings → implementer → re-review → re-QA (max 2 cycles)
  → Mark task complete

After all tasks complete:
  → Final code reviewer subagent
  → browser-qa (FULL MODE)                  ← NEW
  → On PASS: finishing-a-development-branch
  → On FAIL: fix cycle (max 3 rounds) or escalate

Key design principles (from the article)

  • Separated evaluation — the QA agent did not produce the code it's testing
  • No source code access — the evaluator interacts through the browser only, which prevents self-evaluation bias from creeping back in
  • Calibrated grading — few-shot examples anchoring scores at each boundary ("why 3, not 4"), preventing the natural drift toward generous evaluation
  • QA contract — explicit test scenarios and pass/fail criteria agreed before testing begins (the article's "sprint contract" pattern)
  • Skeptical by default — the evaluator prompt assumes things are broken until proven otherwise

What I've built so far

A 4-file skill package implementing the above:

  • SKILL.md — orchestrator with mode selection, dual-mode workflow, observable-output heuristic, anti-patterns
  • qa-evaluator-prompt.md — subagent dispatch prompt, mode-aware, skeptical calibration
  • qa-evaluator-calibration.md — few-shot grading examples across all four criteria with score boundary explanations and good/bad task-mode feedback examples
  • qa-contract-template.md — per-feature contract template with scenarios, hard fail conditions, grading thresholds

Happy to share the full files or collaborate on a generalized version.

What alternatives did you consider?

End-of-build only (no task mode). The article's v2 harness moved to a single evaluator pass at the end. Simpler, but bugs compound — task 3 builds on broken output from task 2, and by the time QA runs, fixes require unraveling multiple layers. The dual-mode approach catches issues early at low cost (~2-3 min per task) while still running a comprehensive integration check before merge.

Extending the existing code quality reviewer. Rather than adding a new skill, the code quality reviewer could be given browser tooling. But this violates the separation principle — the same agent reviewing code and testing the product re-introduces the self-evaluation bias the article found problematic. Keeping them separate is the key design lever.

Purely API-based testing (curl/httpie, no browser). Works for backend-only projects but misses the DOM-level bugs that are the primary gap — layout issues, broken click handlers, state not rendering after API success. The skill already includes a backend-only adaptation that falls back to API testing when no browser MCP is available.

Manual QA by the human partner. This is what most people do today. The skill automates the pattern while keeping the human in the loop for contract approval (full mode) and escalation (after max fix cycles).

Is this appropriate for core Superpowers?

Probably not as-is. The skill depends on an external MCP server (Chrome DevTools MCP or Playwright MCP), which conflicts with Superpowers' zero-dependency policy. It belongs as a separate plugin or personal skill.

However, the pattern — separated evaluator with grading criteria, QA contract, and calibrated few-shot examples — is stack-agnostic and could inform core. Specifically:

  • The QA contract concept (explicit "what does done look like" before testing) could complement the existing sprint contract pattern in subagent-driven-development
  • The calibrated grading approach (few-shot boundary examples) could be applied to the existing spec compliance and code quality reviewers to reduce their score drift
  • A core-compatible version could delegate to whatever verification tooling is available: browser MCP when present, curl for APIs, or even just "run the test suite and parse output" as a minimal fallback

I'm opening this as a discussion to see if others have explored similar patterns and whether there's appetite for this as a companion plugin or (in a reduced form) a core addition.

Context

Activity

  1. added
    enhancement
    on Apr 1, 2026
  2. arittr commented on Jun 2, 2026

    @arittr
    Collaborator

    Thanks for the thoughtful write-up. I think this is the same underlying request as #374: browser/product-level verification needs to be part of the development loop, so we do not treat code review or unit tests as proof that a web feature actually works for a user.

    The useful extra detail here is the separated evaluator shape: QA contract, skeptical browser/API verification, and keeping product-level evaluation distinct from code review. The MCP-dependent browser-qa skill probably belongs as a companion plugin rather than core, but the pattern is useful design input for #374.

    I'm going to treat #374 as the canonical issue for the core problem and cross-link this there as implementation/design detail.

    Closing as duplicate of #374, with the notes here preserved as useful context.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions