Skip to content

feat(#173): Browser testing enforcement via labels - #336

Merged
admarble merged 3 commits into
mainfrom
feature/173-browser-testing-enforcement
Mar 11, 2026
Merged

admarble merged 3 commits into
mainfrom
feature/173-browser-testing-enforcement

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

Implements browser testing enforcement via issue labels with auto-detection suggestions. This ensures UI component changes get browser-tested before merge, while providing an explicit opt-out path.

Changes

  • fullsolve: Phase 3 skip condition now checks no-browser-test label as opt-out override
  • spec: Step 3a warns when .tsx files detected without ui label, suggests adding label
  • qa: Verdict algorithm includes browser testing enforcement — downgrades to AC_MET_BUT_NOT_A_PLUS when .tsx files changed without /test phase and no opt-out label
  • test: Documents when the phase runs based on labels
  • All changes mirrored across templates/skills/ and .claude/skills/

AC Coverage

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

Label Reference

Label Effect
ui, frontend, admin Always includes /test phase
no-browser-test Always skips /test phase (explicit opt-out)
Neither Auto-detection may suggest adding ui label

Test plan

  • Verify /fullsolve skips /test for issues without UI labels
  • Verify /fullsolve invokes /test for issues with ui label
  • Verify /fullsolve skips /test when no-browser-test present even with ui label
  • Verify /spec shows warning when .tsx files detected without ui label
  • Verify /qa downgrades verdict for .tsx changes without /test phase

Fixes #173

🤖 Generated with Claude Code

- AC-1: fullsolve Phase 3 checks ui/frontend/admin labels to invoke /test
- AC-2: no-browser-test label opts out, overrides UI labels
- AC-3: spec warns when .tsx files detected without ui label
- AC-4: QA downgrades to AC_MET_BUT_NOT_A_PLUS for untested .tsx changes
- AC-5: label reference tables added to fullsolve, spec, qa, test skills

Changes mirrored across templates/skills/ and .claude/skills/.

Fixes #173
@admarble

Copy link
Copy Markdown
Contributor Author

QA Review for PR #336 (Issue #173)

AC Coverage

AC Source Description Status Notes
AC-1 Original ui/frontend/admin labels include /test phase MET fullsolve Phase 3 skip condition correctly updated with label check
AC-2 Original no-browser-test label opts out MET Opt-out logic added to fullsolve, qa, spec, and test skills
AC-3 Original Spec warns on .tsx without ui label MET Step 3a added with .tsx/.jsx detection and label suggestion
AC-4 Original QA downgrades verdict for untested .tsx changes MET Verdict algorithm updated with browser testing enforcement step
AC-5 Original Label requirements documented in skill files NOT_MET Missing from skills/ directory (third sync point)

Coverage: 4/5 AC items fully met


Quality Plan Verification

N/A — No quality plan found in issue comments (spec comment present but no Feature Quality Planning section)


CI Status

Check State Impact
build (18.x) SUCCESS ✅ MET
build (20.x) SUCCESS ✅ MET
build (22.x) SUCCESS ✅ MET
validate-skills SUCCESS ✅ MET
typecheck SUCCESS ✅ MET
validate-plugin SUCCESS ✅ MET

CI Summary: 6 passed, 0 pending, 0 failed


Quality Metrics

Metric Value Status
Type issues (any) 0 OK
Deleted tests 0 OK
Files changed 8 OK
Lines added +159 -
Lines deleted -5 -

Code Review

Strengths:

  • Clean, consistent changes across all 4 skill pairs (.claude/skills/ + templates/skills/)
  • All grep commands in bash code blocks properly protected with || true
  • Verdict algorithm insertion is correctly ordered (after AC checks, before pending checks)
  • Label reference tables are clear and consistent across files
  • Spec warning includes actionable gh issue edit commands

Issues:

  1. skills/ directory not updated (AC-5 blocker): The project has three skill directories to sync: .claude/skills/, templates/skills/, and skills/. Only the first two were updated. The skills/ directory has fullsolve/SKILL.md, qa/SKILL.md, spec/SKILL.md, and test/SKILL.md files that are missing the browser testing enforcement content.

  2. grep in prose without || true: The algorithm description text (steps 2-3 in verdict determination) has git diff main...HEAD --name-only | grep '\.tsx$' without || true. While the actual bash code blocks below are properly protected, AI agents may copy the prose version. Consider adding || true to the prose descriptions too.

Suggestions:

  • Minor: The spec Step 3a mentions .jsx detection but the Non-Goals in the spec comment says "Will NOT add .jsx detection (project uses .tsx exclusively)." Consider removing .jsx from the warning trigger or documenting why it was included.

Test Coverage Analysis

N/A — Skill-only changes (.md files). No source code modified, no tests applicable.


Anti-Pattern Detection

N/A — No TypeScript/JavaScript source files changed. No package.json changes.


Call-Site Review

N/A — No new exported functions (skill file changes only).


Execution Evidence

N/A — No executable scripts or CLI changes.


Skill Command Verification

Skill files changed: 8

File Commands Found Verification Status
.claude/skills/qa/SKILL.md 3 (gh issue view, git diff) ✅ Passed
.claude/skills/spec/SKILL.md 1 (gh issue edit) ⚠️ Skipped (placeholder <N>)
.claude/skills/fullsolve/SKILL.md 0 (documentation only) ✅ Passed
.claude/skills/test/SKILL.md 0 (documentation only) ✅ Passed
templates/skills/* Mirror of above ✅ Passed

Commands Verified:

  • gh issue view --json comments --jq '[.comments[].body]' → ✅ Valid
  • gh issue view --json labels --jq '.labels[].name' → ✅ Valid
  • git diff main...HEAD --name-only | grep '\.tsx$' || true → ✅ Valid

Verification Status: Passed


CHANGELOG Verification

Check Status
CHANGELOG.md exists ✅ Found
User-facing changes ✅ Yes (new browser testing enforcement feature)
[Unreleased] entry ❌ Missing

Result: Missing CHANGELOG entry for user-facing feature. Add entry to ## [Unreleased] section.


Self-Evaluation

  • Verified working: Partially — verified skill file syntax and command validity, but behavioral enforcement depends on AI agents following instructions
  • Test efficacy: N/A — No automated tests (skill behavior is instruction-driven)
  • Likely failure mode: AI agent ignores enforcement instructions or skills/ directory drift causes inconsistent behavior
  • Verdict confidence: High — the skills/ mirroring gap is clear-cut

Verdict: AC_NOT_MET

AC-5 is NOT_MET: The skills/ directory (third sync point) was not updated with browser testing content. All 4 affected files (skills/fullsolve/SKILL.md, skills/qa/SKILL.md, skills/spec/SKILL.md, skills/test/SKILL.md) need the same browser testing label changes.

Additionally, CHANGELOG entry is missing for this user-facing feature.

Next Steps

  1. Mirror browser testing changes to skills/ directory — Add label reference tables and enforcement content to all 4 files in skills/
  2. Add CHANGELOG entry — Add entry under ## [Unreleased] for browser testing enforcement via labels
  3. Minor: Add || true to grep in prose — Algorithm step descriptions should also protect grep commands
  4. Re-run /qa 336 after fixes

@admarble admarble added the needs-work QA found issues that need fixing label Mar 11, 2026
…grep

- Mirror browser testing enforcement content to skills/ directory
  (fullsolve, qa, spec, test) — the third sync point that was missed
- Add CHANGELOG entry under [Unreleased] for browser testing feature
- Add || true to grep in verdict algorithm prose descriptions
…esting-enforcement

# Conflicts:
#	CHANGELOG.md
@admarble
admarble merged commit daf4e8c into main Mar 11, 2026
6 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-work QA found issues that need fixing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant