# PRD: RegForge Certification Remediation — ..

**Date**: 2026-03-25  
**Current Grade**: A (95.5/100)  
**Target Grade**: A (90+/100)  
**Findings to Fix**: 6 (0 critical, 0 high)  
**Generated by**: RegForge Certification Engine

---

## Problem Statement

A RegForge certification audit found 6 actionable findings across 6 categories. 
The project currently scores 95.5/100 (Grade A). The goal is to reach Grade A (90+) by remediating all critical and high findings, and addressing medium findings where feasible.

## User Stories

### Story 1: Fix accessibility findings (P2)

**As a** developer,  
**I want to** remediate all accessibility findings,  
**So that** the accessibility category score improves from 90/100 to 90+/100.

**Acceptance Criteria**:

- [ ] **[MEDIUM]** Input without label: Add <label> or aria-label to form inputs (in `sf_cli/src/app.tsx`)

**Definition of Done**: Re-run `/certify --category accessibility` and confirm score >= 90.

### Story 2: Fix architecture findings (P2)

**As a** developer,  
**I want to** remediate all architecture findings,  
**So that** the architecture category score improves from 70/100 to 90+/100.

**Acceptance Criteria**:

- [ ] **[MEDIUM]** No src/ directory: Organize source code in src/, lib/, or app/
- [ ] **[MEDIUM]** Oversized file: Split into smaller modules (<500 lines recommended) (in `sf_cli/src/core/certification-engine.ts`)
- [ ] **[MEDIUM]** Oversized file: Split into smaller modules (<500 lines recommended) (in `sf_cli/src/core/pipeline.ts`)

**Definition of Done**: Re-run `/certify --category architecture` and confirm score >= 90.

### Story 3: Fix seo findings (P2)

**As a** developer,  
**I want to** remediate all seo findings,  
**So that** the seo category score improves from 90/100 to 90+/100.

**Acceptance Criteria**:

- [ ] **[MEDIUM]** No robots.txt: Add robots.txt

**Definition of Done**: Re-run `/certify --category seo` and confirm score >= 90.

### Story 4: Fix testing findings (P2)

**As a** developer,  
**I want to** remediate all testing findings,  
**So that** the testing category score improves from 95/100 to 90+/100.

**Acceptance Criteria**:

- [ ] **[LOW]** No test framework config: Add test framework configuration (jest.config, vitest.config, etc.)

**Definition of Done**: Re-run `/certify --category testing` and confirm score >= 90.

## Out of Scope

- Info-level findings (informational, no score impact)
- New feature development
- Performance optimization beyond the audit checklist

## Risks

- Some security findings may be false positives (test fixtures, pattern strings). Verify before fixing.
- Architecture changes (file splitting) may require import updates across the codebase.

## Success Criteria

- [ ] `/certify` returns Grade A (90+/100)
- [ ] Zero critical findings
- [ ] Zero high findings
- [ ] All tests pass after remediation
