# QA Index

## QA categories

- Asset QA
- Animation QA
- Data QA
- Code QA
- Gameplay QA
- Visual regression QA

## Rule

No asset or feature is approved without documented acceptance criteria.

## Registry Validation

Asset lifecycle validation starts from `assets/registry/ASSET_REGISTRY.v2.yaml`.

Run `pnpm validate:registry` to check:

- Required asset fields
- Unique asset IDs
- Valid lifecycle status values
- Existing `source_definition` paths or explicit `TODO:` markers
- QA score fields

## Palette Validation

Run `pnpm validate:palette` to check:

- Duplicate color IDs
- Duplicate names
- Duplicate HEX colors
- Valid HEX, RGB, and HSV values
- Non-empty allowed usage lists
- Palette token schema completeness

## Anatomy Validation

Run `pnpm validate:anatomy` to check:

- Anatomy standard schema completeness
- Required joint IDs
- Positive proportions
- Pivot values
- Collision box values
- Silhouette score and scale tests

## Animation Validation

Run `pnpm validate:animation` to check:

- Animation event schema completeness
- Frame order
- Known event IDs
- Hitbox enable/disable timing
- Event group IDs

## Character Validation

Run `pnpm validate:character` to check:

- Production character schema completeness
- Palette token references
- Material references
- Animation IDs
- Collision boxes
- Pivot values
- QA score and checklist

## Concept Validation

Run `pnpm validate:concepts` to check:

- Concept review schema completeness
- Unique review IDs
- Valid asset IDs, stages, statuses, and asset types
- Review scores between 0 and 100
- Required strengths, issues, and action lists
- Pass reviews meeting the minimum score gate

## Visual Development Validation

Run `pnpm validate:visual` to check:

- Visual development pack schema completeness
- Existing source document and asset folder references
- Required silhouette, shape, value, color, material, pose, expression, animation, and review records
- Selected top 3 concepts and approved concept references
- Scores between 0 and 100
- QA approval score gate

## Production Pipeline Validation

Run `pnpm validate:production` to check:

- Production pipeline schema completeness
- Required lifecycle stages
- Required generation workflow steps
- Pipeline file IDs
- Asset package outputs
- 100 AI production rules from `RULE0001` through `RULE0100`

## Golden Reference Validation

Run `pnpm validate:golden` to check:

- Golden reference schema completeness
- Required reference categories
- Existing folder and source document references
- All nine quality score fields
- Scores between 0 and 100
- Reference averages meeting the 95% approval gate

## Character Production Validation

Run `pnpm validate:character-production` to check:

- Required CHR001 production pack documents
- 12 silhouette candidates and top 3 concept references
- 6 color directions
- Required poses, animations, attacks, VFX, materials, export settings, and QA score
- Source pack and golden reference links

## Hero Identity Validation

Run `pnpm validate:hero-identity` to check:

- Required CHR001 identity documents
- Hero identity schema completeness
- Existing source folder and production pack references
- Identity pillars, material references, color references, and pixel translation rules
- QA approval score gate

## QA Engine

The central QA runner is documented in [QA_ENGINE.md](QA_ENGINE.md).
