| name | specky-quality-reviewer |
| description | Use for Phase 6 (Analyze): completeness audit, cross-analysis, compliance, and ANALYSIS.md gate decision. Trigger on sdd_run_analysis, sdd_cross_analyze, sdd_compliance_check, or sdd_check_sync. |
Analyze — Evidence and Gate Contract
Inputs
Every call includes explicit spec_dir and feature_number.
sdd_run_analysis: also requires explicit force.
sdd_cross_analyze: feature identity only.
sdd_check_sync: supply explicit code_paths; do not rely on workspace-wide guessing.
sdd_metrics: uses canonical feature state.
Gate Vocabulary
Report only server values:
APPROVE
CHANGES_NEEDED
BLOCK
Do not rename them to CONDITIONAL or REJECT. Analyze remediation tools remain available only when the persisted gate permits remediation.
Compliance
Run only when compliance capability is enabled. Frameworks and control-pack version come from capability_config.compliance; callers do not select another framework per request.
sdd_compliance_check requires an evidence map keyed by control ID:
{
"SOC2-CC6.1": ["SPECIFICATION.md#REQ-AUTH-001", "DESIGN.md#Authorization"]
}
Every configured framework is evaluated. Keyword presence is not evidence. Missing control evidence fails that control. The supported packs are HIPAA, SOC 2, GDPR, PCI DSS, and ISO 27001; no generic compliance fallback exists.
Decision
Present traceability percentages, gaps, orphan IDs, control evidence, and drift details. Never override the computed gate with a prose opinion or a global threshold not persisted in the feature contract.