Quality assurance

From attilaszasz/sdd-pilot · View interactive version

Quality assurance is an AI agent skill from the GitHub repository attilaszasz/sdd-pilot. Reference material with consistency-analysis heuristics and checklist-management rules. Loaded on demand by `analyze-compliance` and `quality-control`; not directly invokable.

How to use this skill

Skill file

Quality Assurance Guide

Analysis Heuristics (`/sddp-analyze`)

When performing consistency analysis, verify the following relationships:

1. Spec vs. Plan Alignment

2. Plan vs. Tasks Alignment

3. Instructions Compliance

Checklist Management (`/sddp-checklist`)

Checklists are the primary gate for the implementation phase.

Checklist Queue (`.checklists`)

The /sddp-plan agent generates a .checklists queue file in FEATURE_DIR/checklists/ that recommends checklist domains based on risk signals detected in the technical plan. This enables automated or sequential checklist generation without manual domain input.

Standard Categories

Every generated checklist should consider these categories if relevant:

  1. Security: Authz rules, input validation, secret handling.
  2. Performance: Indexing strategy, N+1 query checks, caching.
  3. Observability: Logging points, metric emission, error context.
  4. Testing: Unit test coverage, edge case handling.

Template

Use the template at assets/checklist-template.md.

Evaluation (`TestEvaluator`)

After a checklist is generated, the TestEvaluator sub-agent automatically evaluates every unchecked item against the feature artifacts. Each item receives one of three outcomes:

  1. PASS — The question is clearly answered by existing artifacts. Item is marked [X] with an inline annotation citing the evidence source.
  2. RESOLVE — The question reveals a genuine gap. The evaluator amends the relevant artifact(s) (e.g., adds missing FR-###, TR-###, OR-###, or RR-### to spec.md, adds task to tasks.md) then marks the item [X].
  3. ASK — The question is ambiguous or has multiple valid resolutions. The evaluator batches these, asks the user, then applies the chosen resolution.

Automated agents may change checkbox state from - [ ] to - [X] when supported by verified evidence or an explicit applied resolution.

It is invoked in two places:

Definition of Done

Implementation Ready

A feature is "Implementation Ready" only when:

  1. Scale/Complexity risks are mitigated in plan.md.
  2. All P1 user stories or objectives have tasks.
  3. No "NEEDS CLARIFICATION" markers remain in Spec or Plan.
  4. If checklists exist in specs/<feature-folder>/checklists/, all must pass (or be explicitly overridden).

Release Ready

A feature is "Release Ready" (eligible for .qc-passed) only when ALL of the following are true:

QC strictness: reads ## QC Strictness from .github/sddp-config.md. Falls back to keyword scanning of project-instructions.md.

  1. All tests pass — unit and integration test suites report 0 failures.
  2. Coverage meets threshold — if project-instructions.md defines a coverage mandate, the measured coverage percentage meets or exceeds it. If no threshold is defined, coverage is reported but not enforced.
  3. No CRITICAL or ERROR static analysis findings — linting and compilation issues at error severity are resolved.
  4. No CRITICAL security vulnerabilities — security scan findings classified as CRITICAL are resolved.
  5. All P1 work items PASSED — every P1 story or objective has its acceptance, validation, or verification criteria verified in the implementation.
  6. All Success Criteria (SC-###) PASSED — every success criterion is achievable by the current implementation.
  7. PI compliance: no violations — no project-instructions.md principles are violated.
  8. No unresolved CRITICAL/ERROR [BUG] tasks — CRITICAL/ERROR bugs may never be excluded with [DEFERRED]; only deferred WARNING bugs may remain unchecked.
  9. No unacknowledged SKIPPED checks for PI-mandated categories — if project-instructions.md mandates any QC category (linting, security, coverage, accessibility, performance), that check must either pass, be explicitly acknowledged by the user as a risk-accepted waiver (WARNING), or generate FAIL with BUG tasks. Silent skips for PI-mandated categories do not satisfy Release Ready.
  10. Manual verification attested — every required manual scenario records PASS with human identity, UTC timestamp, and evidence; pending or malformed attestation is BLOCKED.
  11. Current QC evidence — .qc-passed report and evidence SHA-256 digests match the current qc-report.md and every manifest file.

Note on criteria 2–4: These criteria apply when the respective tool ran. If a tool was SKIPPED and the category is PI-mandated, criterion 9 governs the outcome. If the category is not PI-mandated, a SKIPPED check does not block Release Ready but is reported as a WARNING recommendation.

This definition is enforced by /sddp-qc (Step 7) when determining the Overall Verdict.

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.