Aid qa ship

From ilandahan/AID · View interactive version

Aid qa ship is an AI agent skill from the GitHub repository ilandahan/AID. AID Phase 5 - QA and Release. Use for validating implementations, acceptance tests, preparing releases, deployment, operational readiness.

How to use this skill

Skill file

QA & Ship (Phase 5)

Applies when: development complete, tests passing, code reviewed. Does not apply before Phase 5.

Purpose: validate implementation meets requirements, ensure production readiness, ship with confidence.

Exit: acceptance criteria verified, no blockers, deployed, stakeholders informed.

References: references/acceptance-criteria-validation.md, references/qa-test-templates.md, references/release-checklist.md.

Deliverables

  1. Test Results - All acceptance criteria covered
  2. Release Certification - Checklist, stakeholder approvals
  3. Release Notes - User-facing changelog
  4. Deployment - Verified, monitoring active

Cucumber Acceptance Verification

All acceptance criteria (Gherkin scenarios) must pass before release.

| Step | Command | Expected Result | If Fails |

|------|---------|-----------------|----------|

| 1 | npm run cucumber:dry | No undefined steps | Implement missing step definitions |

| 2 | npm run cucumber | All scenarios pass | Debug failing scenarios |

| 3 | npm run test:critical | @critical scenarios pass | BLOCKER - must fix |

| 4 | npm run test:bdd | HTML report generated | Review reports/cucumber-report.html |

Read the summary lines: N scenarios (N passed) / N steps (N passed) means pass; any failed, skipped, or pending count means fail.

HTML Report Review

Check in reports/cucumber-report.html:

  1. Scenario Pass Rate - Should be 100% for release
  2. Failed Scenarios - Click to see step-by-step failure
  3. Pending Steps - Yellow = not implemented (blocker)
  4. Duration - Flag unusually slow scenarios
  5. Tags - Verify no @wip or @skip in release

QA Testing Checklist

Cucumber Acceptance Tests ⭐ REQUIRED

Functional

Non-Functional

Integration

Test Code Quality (REQUIRED)

Test Verification Steps

Before marking QA complete, MUST verify:

  1. Run all tests. All must pass; no skipped tests without documented reason.
npm test
  1. Run in random order. All must pass.
jest --randomize
# OR
vitest --sequence.shuffle
  1. Check for credentials. Both must return no matches.
grep -rn "password.*=.*['\"]" tests/
grep -rnE "AKIA[A-Z0-9]{16}|['\"][A-Za-z0-9_-]{32,}['\"]" tests/
  1. Verify assertions (mutation test): comment out a key line of code being tested, run the related test, test MUST fail, restore code and verify test passes.
  2. Regression check: compare test count before vs after changes; same or more tests should pass.

Release Process

Pre-Release: 1. Complete QA checklist 2. Stakeholder sign-off 3. Prepare release notes 4. Verify rollback procedure 5. Schedule deployment

Deployment: 1. Deploy to staging 2. Run smoke tests 3. Deploy to production 4. Verify production smoke 5. Enable monitoring

Post-Release: 1. Monitor errors & performance 2. Gather user feedback 3. Address critical issues 4. Document lessons learned 5. Close project artifacts

Agentic Release (Eval Gate, Rollout, Monitoring)

Always applies, scaled by the PRD's §1.5 Solution Shape level; never "N/A". At levels 0-1 it is: acceptance tests as the gate, a staged release, a tested rollback plan, and monitoring of the §1.4 metrics. Detail: SKILL.extended.md → Agentic Release.

Eval release gate (§7A.6 Eval Plan), on the exact release versions and on QA's held-out split: golden set ≥ the PRD's threshold; red-team 0 critical/high failures plus an overall pass rate ≥ the PRD's target (incl. prompt injection, rules/general/untrusted-content.md); never-do enforced in code and verified at 100%; LLM judge kappa ≥ 0.7. Timing (A9): seed cases from Phase 1; QA grew the golden set and held-out split in parallel with Phases 2-4; they must be complete here, for this gate (judge calibrated in Phase 4).

Phase 5 exit: the eval release gate passed, shadow stage live, kill switch tested, and the stage criteria agreed. Each later promotion (human approval → autonomous) is a recorded decision by the 7A.8 owner, outside the phase gate. Stages (shadow → human approval → autonomous), the kill-switch test and monitoring (quality drift, cost per successful task, escalation rate and response time, guardrail metrics): SKILL.extended.md → Agentic Release.

Phase Gate Checklist

Cucumber Acceptance Gates (MUST PASS) ⭐

Test Quality Gates (MUST PASS)

Acceptance & Quality

Release Readiness

Release Notes Template

# Release Notes - [Feature]
**Date**: YYYY-MM-DD
**Version**: X.Y.Z

## What's New
- [Feature]: [Description]

## Improvements
- [Improvement]

## Bug Fixes
- [Fix]: [What was fixed]

## Known Issues
- [Issue]: [Workaround]

Common Pitfalls

| Pitfall | Fix |

|---------|-----|

| Rushing to ship | Respect checklist |

| Testing in production | Use staging |

| Missing rollback | Always have way back |

| No monitoring | Set up first |

| Poor communication | Keep everyone informed |

Role Guidance

| Role | Focus |

|------|-------|

| PM | Acceptance testing, UX, approve release |

| Dev | Fix bugs, support deploy, monitor |

| QA | Execute test plan, verify fixes, sign-off |

| Tech Lead | Operational readiness, approve deploy |

Pipeline Integration

If .aid/pipeline/state.json exists with pipeline_status: "running", Phase 5 test sequencing is driven by the pipeline-orchestrator skill.

| Without Pipeline | With Pipeline |

|-----------------|---------------|

| Manual test execution order | Pipeline enforces API_TESTS > E2E_TESTS > CERTIFICATION |

| Developer decides when to fix | Pipeline enforces fix-and-retry loops |

| Manual certification | Automated CERTIFICATION step with coverage verification |

Unchanged by the pipeline: Cucumber acceptance verification, QA testing checklist, release process, phase gate checklist.

Activation: the pipeline auto-transitions Phase 4 to Phase 5 when PHASE_GATE passes (if auto_advance_phase: true in config). Otherwise run /pipeline in Phase 5.

See ../pipeline-orchestrator/SKILL.md for full pipeline documentation.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.