Skip to content

sds-qa (Quality Assurance & Verification)

The sds-qa skill bridges the critical gap between coding (sds-coder) and production operations (sds-ops). It is the non-negotiable quality gatekeeper of the Spec-Defined Software (SDS) delivery pipeline.

[!NOTE] Ecosystem Status: ๐Ÿ”ต Planned / ๆจกๅ—ๅผ€ๅ‘็Šถๆ€๏ผš่ง„ๅˆ’ไธญ This module (sds-qa) is currently Planned as outlined in our Roadmap. The specifications and instructions below describe the target design and behavioral interface, but the physical skill package is not yet active. ๆœฌๆจกๅ—็›ฎๅ‰ๅค„ไบŽ่ง„ๅˆ’ไธญ้˜ถๆฎตใ€‚ไธ‹่ฟฐ่ง„่Œƒๅ’ŒๆŒ‡ไปคๆ่ฟฐไบ†ๅ…ถ็›ฎๆ ‡ๆžถๆž„ๅ’Œ่กŒไธบๅฎšไน‰๏ผŒไฝ†ๅ…ถๅฎžไฝ“ๆŠ€่ƒฝๅŒ…ๅฐšๆœชๆญฃๅผๆฟ€ๆดปใ€‚

graph TD
    Ideator[sds-ideator <br> 1. User Story / Journey] --> Coder[sds-coder <br> 2. Code Generation]
    Coder --> QA[sds-qa <br> 3. Quality Verification]
    QA -->|4. Pass Specs & Journeys| Ops[sds-ops <br> 5. Safe Deployment]

    style QA fill:#2e7d32,stroke:#1b5e20,stroke-width:2px,color:#fff

๐ŸŽฏ Core Objectives

  1. User Story & Journey Closure (Requirements Closure): Validating that multiple capabilities connect flawlessly to satisfy the holistic business workflows mapped in the project's user-journey.md files.
  2. AC-to-Test Synthesis: Translating isolated Acceptance Criteria (AC) from spec.md into standard, executable unit and integration test assertions.
  3. Boundary & Adversarial Testing: Generating adversarial inputs to verify system robustness under pressure.
  4. Gatekeeping Sign-off: Restricting deployments until 100% of the User Stories are verified and zero-drift compliance is certified by sds-core.

๐Ÿ”„ The Closed-Loop Verification Philosophy

Verifying individual specifications (such as a single API endpoint's response) only guarantees local correctness. A system with perfectly passing local specs can still fail if the integration of those features does not support the actual end-user goals.

True Requirements Closure demands that our automated tests trace back to the macro-level User Stories:

[ user-journey.md (User Story) ]
       โ”‚ (Chains multiple capabilities together)
       โ”œโ”€โ”€โ–บ Capability 1 (user_auth.login)  โ”€โ”€โ–บ Tested & Passed โœ“
       โ”œโ”€โ”€โ–บ Capability 2 (cart.add_item)    โ”€โ”€โ–บ Tested & Passed โœ“
       โ””โ”€โ”€โ–บ Capability 3 (checkout.pay)     โ”€โ”€โ–บ Tested & Passed โœ“
       โ”‚
       โ–ผ (E2E Integration Flow Verified)
[ Requirements Closure Certified! ]

๐Ÿš€ The Quality Workflow

The sds-qa agent operates under a three-phase verification cycle:

Phase 1: Test-Case Mapping (Specs & Journeys)

The agent reads the newly generated feature code, the micro-level specifications spec.md, and the macro-level user-journey.md blueprints: * Micro-Verification: Maps each AC (Acceptance Criteria) to explicit unit assertions. * Macro-Verification: Chains multiple APIs/views together in sequence, creating BDD (Behavior-Driven Development) integration tests that mimic the user path documented in the user-journey.md.

Phase 2: Sandbox Execution & Audit

The agent boots an ephemeral, sandboxed test database/environment. It runs both the unit assertions and the E2E user-journey flows, monitoring coverage and database transition states.

Phase 3: Release Handshake

Once 100% of the individual ACs AND the overarching User Journeys are verified as passing, sds-qa signs off on the release, generating a compliance certificate that unlocks the deployment phase (sds-ops).