Skip to content

feat(merger): Add post-merge smoketest patterns #229

Closed

Description

@admarble

Summary

After /merger completes a merge, there's currently a manual step to smoketest the changes on main. This should be automated as part of the merge workflow.

Current Behavior

/merger 123 124 125
# Merges PRs

# Then manually:
git checkout main && git pull
npm run build
npm test
# Manual feature verification

Proposed Behavior

/merger should include a post-merge verification phase:

/merger 123 124 125

# After merge, automatically:
# 1. Pull latest main
# 2. Run build
# 3. Run tests
# 4. Run issue-specific smoke tests (if defined)
# 5. Report results

Smoketest Definition

Issues could define smoke tests in the spec comment or a standard format:

## Smoke Tests
- [ ] `npm run build` passes
- [ ] `npm test` passes
- [ ] `curl localhost:3000/api/health` returns 200
- [ ] Feature X is visible in UI

Or extracted from AC items marked as verifiable post-merge.

Output

Post-Merge Verification
┌─────────────────────┬────────┐
│ Check               │ Status │
├─────────────────────┼────────┤
│ Build               │ ✅     │
│ Tests (743/743)     │ ✅     │
│ Issue #123 smoke    │ ✅     │
│ Issue #124 smoke    │ ✅     │
└─────────────────────┴────────┘

All smoke tests passed. Merge verified.

Failure Handling

If smoke tests fail:

  • Report which checks failed
  • Suggest rollback or fix-forward
  • Do NOT auto-rollback (too dangerous)

Acceptance Criteria

  • AC-1: /merger runs build verification after merge
  • AC-2: /merger runs test suite after merge
  • AC-3: Smoke test results are reported in structured output
  • AC-4: Failures are clearly reported with suggested actions
  • AC-5: --skip-smoketest flag available to bypass

Labels

enhancement, workflow, merger

Activity

  1. added
    auto-ready
    on Feb 16, 2026
  2. admarble commented on Feb 25, 2026

    @admarble
    ContributorAuthor

    Spec Plan: #229 — Post-Merge Smoketest Patterns

    AC Checklist with Verification

    AC Description Verification Method
    AC-1 /merger runs build verification after merge Verify npm run build step in skill template Manual Review
    AC-2 /merger runs test suite after merge Verify npm test step in skill template Manual Review
    AC-3 Smoke test results reported in structured output Verify markdown table format in output template Manual Review
    AC-4 Failures clearly reported with suggested actions Verify failure handling section with suggestions Manual Review
    AC-5 --skip-smoketest flag available to bypass Verify flag in usage section and conditional logic Manual Review

    Non-Goals

    • Auto-rollback on smoketest failure (too dangerous, per issue)
    • Issue-specific smoke tests (deferred — would need spec format changes)
    • Runtime code changes (this is skill template only)

    Implementation Plan

    1. Add Step 7: Post-Merge Smoketest to .claude/skills/merger/SKILL.md

      • After Step 6a (worktree cleanup), add comprehensive smoketest section
      • Include: git pull origin main, npm run build, npm test, npx sequant doctor
      • Structured output table format matching existing evidence patterns
    2. Add --skip-smoketest flag to merger usage patterns section

      • Add to invocation examples
      • Add conditional check at start of Step 7
    3. Add failure handling with suggested actions

      • Build failure → suggest investigating build errors
      • Test failure → suggest npm test with verbose output
      • General → suggest fix-forward or manual investigation
      • Do NOT suggest auto-rollback
    4. Mirror to template directories (if copies exist)

      • templates/skills/merger/SKILL.md
      • skills/merger/SKILL.md

    Recommended Workflow

    Phases: spec → exec → qa
    Quality Loop: disabled
    Skip test: Yes (no UI, skill template change only)

  3. added a commit that references this issue on Feb 25, 2026
  4. added
    ai-in-progress
    on Feb 26, 2026
  5. added a commit that references this issue on Feb 26, 2026
  6. removed
    ai-in-progress
    on Feb 26, 2026
  7. added a commit that references this issue on Mar 4, 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-ready

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions