# QA Report: {{storyId}}

**Version:** 1.0
**Generated:** {{generatedAt}}
**Agent:** {{agentName}}

---

## Summary

| Metric            | Value                         |
| ----------------- | ----------------------------- |
| **Verdict**       | {{verdict}}                   |
| **Total Issues**  | {{totalIssues}}               |
| **Critical**      | {{issuesBySeverity.critical}} |
| **Major**         | {{issuesBySeverity.major}}    |
| **Minor**         | {{issuesBySeverity.minor}}    |
| **Test Coverage** | {{coverage}}%                 |
| **Build Status**  | {{buildStatus}}               |

---

## Test Results

### Unit Tests

| Metric | Count                |
| ------ | -------------------- |
| Total  | {{tests.unit.total}} |
| Pass   | {{tests.unit.pass}}  |
| Fail   | {{tests.unit.fail}}  |
| Skip   | {{tests.unit.skip}}  |

### Integration Tests

| Metric | Count                       |
| ------ | --------------------------- |
| Total  | {{tests.integration.total}} |
| Pass   | {{tests.integration.pass}}  |
| Fail   | {{tests.integration.fail}}  |
| Skip   | {{tests.integration.skip}}  |

### E2E Tests

| Metric | Count               |
| ------ | ------------------- |
| Total  | {{tests.e2e.total}} |
| Pass   | {{tests.e2e.pass}}  |
| Fail   | {{tests.e2e.fail}}  |
| Skip   | {{tests.e2e.skip}}  |

---

## Issues Found

{{#if issues.critical.length}}

### Critical (Blocks Release)

{{#each issues.critical}}

#### {{id}}: {{title}}

| Field        | Value          |
| ------------ | -------------- |
| **Severity** | CRITICAL       |
| **Location** | `{{location}}` |
| **Category** | {{category}}   |

**Description:**
{{description}}

**Expected Behavior:**
{{expected}}

**Actual Behavior:**
{{actual}}

**Verification Steps:**
{{#each verification}}
{{@index}}. {{this}}
{{/each}}

---

{{/each}}
{{else}}

### Critical (Blocks Release)

No critical issues found.

---

{{/if}}

{{#if issues.major.length}}

### Major (Important to Fix)

{{#each issues.major}}

#### {{id}}: {{title}}

| Field        | Value          |
| ------------ | -------------- |
| **Severity** | MAJOR          |
| **Location** | `{{location}}` |
| **Category** | {{category}}   |

**Description:**
{{description}}

**Expected Behavior:**
{{expected}}

**Actual Behavior:**
{{actual}}

---

{{/each}}
{{else}}

### Major (Important to Fix)

No major issues found.

---

{{/if}}

{{#if issues.minor.length}}

### Minor (Nice to Fix)

{{#each issues.minor}}

#### {{id}}: {{title}}

| Field        | Value          |
| ------------ | -------------- |
| **Severity** | MINOR          |
| **Location** | `{{location}}` |
| **Category** | {{category}}   |

**Description:**
{{description}}

---

{{/each}}
{{else}}

### Minor (Nice to Fix)

No minor issues found.

---

{{/if}}

## Regression Analysis

{{#if regression.detected}}

### Regression Detected

{{#each regression.items}}

- **{{file}}**: {{description}} (introduced in {{commit}})
  {{/each}}
  {{else}}
  No regressions detected.
  {{/if}}

---

## Security Analysis

{{#if security.vulnerabilities.length}}

### Vulnerabilities Found

{{#each security.vulnerabilities}}
| Severity | Type | Location | Description |
|----------|------|----------|-------------|
| {{severity}} | {{type}} | `{{location}}` | {{description}} |
{{/each}}
{{else}}
No security vulnerabilities found.
{{/if}}

**Security Score:** {{security.score}}/100

---

## Recommendation

### Verdict: {{verdict}}

**Justification:**
{{verdictReason}}

{{#if verdict === 'REJECT'}}

### Required Actions Before Approval

{{#each requiredActions}}
{{@index}}. {{this}}
{{/each}}
{{/if}}

{{#if suggestions.length}}

### Suggestions for Improvement

{{#each suggestions}}

- {{this}}
  {{/each}}
  {{/if}}

---

## Metadata

```json
{{jsonSchema}}
```

---

_Generated by AIOX QA Report Generator v1.0_
