Skip to content

feat(qa): Browser testing enforcement via labels with auto-detection suggestions #173

Closed

Description

@admarble

Summary

Implement a hybrid approach for browser testing: labels are authoritative, but auto-detection suggests when labels may be missing.

Problem

From verbose run review:

  • Issue Add persistent state tracking for workflow phases #115 extracted React components from live-workout-session.tsx
  • Spec phase listed 7 browser test scenarios in functional test checklist
  • QA phase only ran TypeScript compilation and lint checks
  • No actual browser testing was performed
  • Result: UI component refactor merged without browser verification

Acceptance Criteria

  • AC-1: Issues with ui, frontend, or admin labels automatically include /test phase
  • AC-2: New no-browser-test label explicitly opts out of browser testing
  • AC-3: Spec detects .tsx file changes and suggests adding ui label if missing
  • AC-4: QA downgrades verdict to AC_MET_BUT_NOT_A_PLUS if .tsx files changed but no /test ran and no no-browser-test label
  • AC-5: Document label requirements in skill files

Proposed Behavior

Labels (Authoritative)

Label Effect
ui, frontend, admin Always adds /test phase
no-browser-test Never adds /test phase (explicit opt-out)
Neither Auto-detection kicks in

Auto-Detection (Suggestive, Not Automatic)

# In /spec output when .tsx files detected but no ui label:

⚠️ **Component files detected** (`src/components/*.tsx`)
   Consider adding `ui` label for browser testing.
   To skip browser testing, add `no-browser-test` label.

QA Enforcement

# In /qa verdict logic:

IF files_changed.some(f => f.endsWith('.tsx')):
  IF test_phase_ran:
    → Normal verdict
  ELSE IF has_label('no-browser-test'):
    → Normal verdict (explicit opt-out)
  ELSE:
    → AC_MET_BUT_NOT_A_PLUS
    → Note: "Browser testing recommended for component changes"

Benefits

  1. Explicit over implicit — Labels are source of truth
  2. No magic behavior — Auto-detection only suggests, doesn't act
  3. Opt-out available — no-browser-test for intentional skips
  4. Safety net — QA warns when browser testing likely missing

References

  • Run command UI label detection: src/commands/run.ts:642-643
  • Spec skill: templates/skills/spec/SKILL.md
  • QA skill: templates/skills/qa/SKILL.md

Activity

  1. added
    enhancement
    on Jan 23, 2026
  2. added
    auto-ready
    ai-in-progress
    on Feb 16, 2026
  3. admarble commented on Feb 23, 2026

    @admarble
    ContributorAuthor

    Spec Plan — Issue #173

    AC Checklist with Verification Criteria

    AC-1: Issues with ui, frontend, or admin labels automatically include /test phase

    Verification Method: Integration Test (manual review of skill file logic)

    Test Scenario:

    • Given: An issue with ui label processed by /fullsolve
    • When: Phase 2 (exec) completes
    • Then: /test phase is invoked before /qa

    Integration Points: fullsolve/SKILL.md Phase 3 skip condition, spec/SKILL.md label detection


    AC-2: New no-browser-test label explicitly opts out of browser testing

    Verification Method: Integration Test (manual review of skill file logic)

    Test Scenario:

    • Given: An issue with both ui and no-browser-test labels
    • When: Phase selection runs
    • Then: /test phase is skipped despite ui label

    Integration Points: fullsolve/SKILL.md Phase 3, qa/SKILL.md verdict logic


    AC-3: Spec detects .tsx file changes and suggests adding ui label if missing

    Verification Method: Manual Test (run /spec on a .tsx-changing issue without ui label)

    Test Scenario:

    • Given: Issue body references .tsx files but has no ui/frontend/admin label
    • When: /spec runs content analysis
    • Then: Output includes warning suggesting ui label for browser testing

    Integration Points: spec/SKILL.md Step 3 body pattern analysis


    AC-4: QA downgrades verdict to AC_MET_BUT_NOT_A_PLUS if .tsx files changed but no /test ran and no no-browser-test label

    Verification Method: Integration Test (manual review of skill file logic)

    Test Scenario:

    • Given: Implementation changed .tsx files, no /test phase ran, no no-browser-test label
    • When: /qa runs verdict determination
    • Then: Verdict is AC_MET_BUT_NOT_A_PLUS with note about missing browser testing

    Integration Points: qa/SKILL.md verdict algorithm, new browser testing enforcement section


    AC-5: Document label requirements in skill files

    Verification Method: Manual Test (review documentation sections)

    Test Scenario:

    • Given: Updated skill files
    • When: Reviewing label documentation
    • Then: Each skill file documents browser testing labels and their effects

    Implementation Plan

    Phase 1: Update fullsolve skill — label-based test phase gating (AC-1, AC-2)

    1. Update templates/skills/fullsolve/SKILL.md Phase 3 skip condition to check for no-browser-test opt-out
    2. Mirror changes to .claude/skills/fullsolve/SKILL.md

    Phase 2: Update spec skill — .tsx auto-detection warning (AC-3)

    1. Add explicit .tsx label suggestion in templates/skills/spec/SKILL.md Step 3 body patterns
    2. Add a dedicated warning block template when .tsx detected without UI labels
    3. Mirror changes to .claude/skills/spec/SKILL.md

    Phase 3: Update QA skill — verdict downgrade for missing browser testing (AC-4)

    1. Add browser testing enforcement section to templates/skills/qa/SKILL.md before verdict determination
    2. Add logic: if .tsx files changed AND no /test phase ran AND no no-browser-test label → AC_MET_BUT_NOT_A_PLUS
    3. Mirror changes to .claude/skills/qa/SKILL.md

    Phase 4: Document label requirements (AC-5)

    1. Add label reference table to fullsolve, spec, qa, and test skill files
    2. Document no-browser-test label in all relevant locations

    Non-Goals

    • Will NOT auto-add labels to issues (only suggest)
    • Will NOT block merge for missing browser tests (only downgrade verdict)
    • Will NOT modify runtime code in src/ — changes are skill-file-only
    • Will NOT add .jsx detection (project uses .tsx exclusively)

    Recommended Workflow

    Phases: spec → exec → qa
    Quality Loop: auto-enabled (scope warning)
    Reasoning: Skill-file-only changes, no UI, no runtime code — skip /test phase

    Label Review

    Current: enhancement, auto-ready, ai-in-progress
    Recommended: enhancement, auto-ready, ai-in-progress (no changes needed)
    Quality Loop: Auto-enabled due to scope warning (2 features detected)

    Files to Modify

    File Changes
    templates/skills/fullsolve/SKILL.md Add no-browser-test opt-out to Phase 3
    .claude/skills/fullsolve/SKILL.md Mirror template changes
    templates/skills/spec/SKILL.md Add .tsx label suggestion warning
    .claude/skills/spec/SKILL.md Mirror template changes
    templates/skills/qa/SKILL.md Add browser testing enforcement to verdict
    .claude/skills/qa/SKILL.md Mirror template changes
  4. added a commit that references this issue on Feb 23, 2026
  5. admarble commented on Feb 23, 2026

    @admarble
    ContributorAuthor

    /fullsolve Complete

    Issue: #173
    Status: READY_FOR_MERGE

    Summary

    • AC: 5/5 met
    • Build: ✅ Passing
    • Files changed: 8 skill files (4 templates + 4 live)

    AC Coverage

    AC Description Status
    AC-1 ui/frontend/admin labels include /test ✅ MET
    AC-2 no-browser-test label opts out ✅ MET
    AC-3 Spec warns on .tsx without ui label ✅ MET
    AC-4 QA downgrades for untested .tsx changes ✅ MET
    AC-5 Label requirements documented ✅ MET

    Iterations

    • Spec: 1/1
    • Exec: 1/1
    • QA: 1/2

    Self-Evaluation

    • Worked as expected: Yes
    • Test coverage confidence: Medium (behavioral — skill file instructions guide AI agents)
    • Weakest part: Enforcement depends on AI agents faithfully following instructions
    • Honest assessment: Clean implementation, all grep commands protected with || true

    PR: #336

  6. removed
    ai-in-progress
    on Feb 23, 2026
  7. added a commit that references this issue on Mar 11, 2026
  8. admarble commented on Mar 11, 2026

    @admarble
    ContributorAuthor

    Documentation Review Complete

    This issue contains documentation-only changes (skill file updates). No additional documentation generation required.

    Files Modified:

    • .claude/skills/fullsolve/SKILL.md — Phase 3 skip condition + label reference table
    • .claude/skills/qa/SKILL.md — Browser testing enforcement in verdict algorithm
    • .claude/skills/spec/SKILL.md — Step 3a: .tsx label suggestion warning
    • .claude/skills/test/SKILL.md — "When This Phase Runs" section
    • templates/skills/ — Mirrored all above changes
    • skills/ — Mirrored all above changes
    • CHANGELOG.md — Added [Unreleased] entry

    Status:

    ✅ Documentation changes merged via PR #336.


    Merged!

  9. added 2 commits that reference this issue on Sep 9, 2026
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

    auto-readyenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions