| name | dsg-production-readiness-validator |
| version | 1.0.0 |
| author | DSG Team |
| license | MIT |
| description | Validate DSG ONE / ProofGate control plane is production-ready across infrastructure, compliance, security, and governance dimensions. Run comprehensive checks on AWS resources, Supabase database, det |
DSG Production Readiness Validator
Complete production readiness validation for DSG ONE / ProofGate Control Plane.
Covers infrastructure health, security posture, compliance readiness, governance functionality, evidence collection, audit trails, and regulatory compliance.
When to invoke this skill
| Intent | Use this skill |
|---|
| "Is DSG production-ready?" | โ
Yes โ comprehensive validation |
| "Prepare for production GO/NO-GO" | โ
Yes โ run full checklist |
| "Generate compliance evidence pack" | โ
Yes โ evidence collection |
| "Verify governance gates work" | โ
Yes โ gate evaluation tests |
| "Check audit trail functionality" | โ
Yes โ audit readiness |
| "Verify evidence collection" | โ
Yes โ CCVS L1-L5 checks |
| "Prepare for SOC2/ISO27001 audit" | โ
Yes โ compliance mapping |
| "Quick health check (5 min)" | โ Use infrastructure-deployer verify action |
Production Readiness Validation Framework
Level 0: Infrastructure Health (15 min)
Checklist:
โ AWS CloudFormation
โ Stack status: CREATE_COMPLETE or UPDATE_COMPLETE
โ 75+ resources created
โ No failed or in-progress resources
โ Stack outputs available (ALB DNS, ARNs, endpoints)
โ Estimated monthly cost < $5,000 (dev/staging)
โ Estimated monthly cost < $50,000 (production)
โ ECS Cluster
โ Cluster status: ACTIVE
โ Running tasks = desired count (โฅ1)
โ Task CPU/memory utilization healthy
โ No crashed tasks or restart loops
โ Task definition deployed successfully
โ Service endpoint responding
โ Application Load Balancer
โ ALB status: active
โ Listeners: 80 (HTTP) + 443 (HTTPS)
โ Target groups healthy (all targets passing)
โ Response times < 500ms (p99)
โ Error rate < 0.1%
โ Can reach /api/health โ 200 OK
โ Can reach /api/readiness โ ready: true
โ Database (Supabase / RDS)
โ Connection successful
โ Schema migrations applied
โ CCVS tables exist (audit, evidence, compliance)
โ RLS policies enabled
โ Backups configured
โ Query performance baseline established
โ Secrets & Encryption
โ All secrets in Secrets Manager or vault
โ No hardcoded secrets in code
โ KMS encryption keys active
โ IAM roles follow least-privilege
โ Certificate valid (TLS, not self-signed)
โ API keys rotatable
โ Monitoring & Logging
โ CloudWatch logs collecting
โ X-Ray tracing enabled
โ CloudTrail audit logging active
โ VPC Flow Logs enabled
โ Custom metrics published
โ Alarms configured for critical metrics
Level 1: Security Posture (15 min)
Checklist:
โ Network Security
โ VPC configured (10.0.0.0/16)
โ Public/private subnets separated
โ Security groups restrict inbound to ports 80, 443
โ NAT Gateway for private egress
โ VPC Flow Logs enabled
โ Network ACLs locked down
โ No security group allowing 0.0.0.0/0 on privileged ports
โ API Security
โ CORS headers configured
โ Rate limiting enabled
โ Request body size limits enforced
โ SQL injection protection active
โ XSS protection headers present
โ CSRF tokens enabled (if applicable)
โ API key rotation policy documented
โ Data Protection
โ All data encrypted at rest (KMS)
โ All data encrypted in transit (TLS 1.2+)
โ S3 buckets: block public access
โ S3 buckets: versioning enabled
โ S3 buckets: lifecycle policies configured
โ DynamoDB: point-in-time recovery enabled
โ Database: automated backups (daily minimum)
โ Access Control
โ IAM users use temporary credentials
โ No root user API keys
โ MFA enabled on AWS console
โ Service roles follow least-privilege
โ Cross-account access denied by default
โ Resource-based policies audited
โ SSH/RDP access restricted
โ Dependency Security
โ npm audit --audit-level=high passes
โ Docker images scanned for vulnerabilities
โ No EOL dependencies
โ Dependency updates on schedule
โ Supply chain attack surface minimized
โ Signed commits enforced
โ Build artifacts verified
โ Incident Response
โ Incident response plan documented
โ On-call rotation configured
โ Escalation procedures defined
โ Communication templates ready
โ Backup/disaster recovery tested
โ RTO/RPO defined and validated
Level 2: Compliance Readiness (20 min)
Checklist:
โ SOC 2 Type II
โ Control: CC6.1 (Logical access) โ IAM tested โ
โ Control: CC7.2 (System monitoring) โ CloudWatch โ
โ Control: A1.2 (Risk assessment) โ Documented โ
โ Control: A1.3 (Security awareness) โ Training done โ
โ Control: CC6.2 (Need-to-know) โ Least-privilege โ
โ Evidence: Audit logs covering 6+ months โ
โ Evidence: Change management record โ
โ Evidence: Incident response exercises โ
โ ISO 27001 (Information Security Management)
โ Asset inventory maintained
โ Risk assessment completed
โ Information classification policy
โ Access control policy implemented
โ Incident management procedure
โ Backup and recovery tested
โ Third-party assessment scheduled
โ EU AI Act Compliance
โ AI system classification: High-risk? โ
โ Intended purpose clearly documented
โ Risk assessment completed
โ Data governance framework
โ Model card/technical documentation
โ Human oversight procedures
โ Monitoring and logging of AI decisions
โ Transparency and explainability verified
โ NIST AI Risk Management Framework
โ Map NIST Gov to DSG control plane functions
โ Verify all 4 core functions (Govern, Map, Measure, Manage)
โ Document AI risk register
โ Establish metrics for effectiveness
โ Review quarterly
โ GDPR/Privacy
โ Data processing agreement (DPA) in place
โ Privacy impact assessment (PIA) done
โ Retention policy defined (delete after 90 days default)
โ Export/deletion procedures tested
โ Privacy policy published
โ Consent mechanism for data processing
โ Data breach response plan documented
โ HIPAA (if health data)
โ Business associate agreement (BAA) signed
โ Encryption (at rest and in transit)
โ Access controls and audit logs
โ Backup and recovery procedures
โ Incident response plan
โ Staff training on HIPAA
โ Annual risk assessment
โ PCI DSS (if payment card data)
โ No credit card data stored or transmitted
โ If needed: PCI scanning and certification
โ Tokenization or encryption if applicable
โ Access logging and monitoring
Level 3: Governance & Evidence (20 min)
Checklist:
โ Deterministic Gates
โ /api/dsg/v1/gates/evaluate reachable
โ Sample policy evaluation returns PASS/BLOCK/REVIEW
โ proofHash generation working
โ Gate decisions replayable
โ UNSUPPORTED never maps to PASS
โ Policy version pinning working
โ Compliance Evidence Pack
โ Evidence schema version: ccvs-makk8-v1 (or later)
โ L1 unit evidence collected (test coverage โฅ80%)
โ L2 integration evidence collected (API tests pass)
โ L3 adversarial evidence (replay tests pass)
โ L4 mutation evidence (code review checklist)
โ L5 provenance evidence (build logs signed)
โ Evidence chain hash verifiable
โ Compliance matrix generated and accessible
โ Audit Trail
โ All decisions logged (when, what, why, who)
โ Audit table non-repudiable (immutable log)
โ Audit table queryable by date/user/action
โ Sample audit queries return expected records
โ Retention policy enforced (365 days minimum)
โ Export to compliance system working
โ Runtime Governance
โ Before-execution: policy evaluation working
โ During-execution: conformance checking active
โ After-execution: evidence collection functional
โ Execution lifecycle spans Before/During/After
โ Proof hash stored with execution record
โ Replay Governance
โ Old execution can be replayed from proof + policy version
โ Replay produces same decision as original
โ Replay evidence matches original evidence
โ Replay timestamp preserved
โ Sample: Replay execution from 30 days ago successfully
โ Credential Management
โ Credential broker queries secrets correctly
โ Secrets never exposed in logs/returns
โ Leases issued with fingerprints (not raw secrets)
โ Lease expiration enforced
โ Credentials rotatable
โ Credential audit log maintained
Level 4: Operational Excellence (15 min)
Checklist:
โ Runbooks & Documentation
โ Deployment runbook (docs/RUNBOOK_DEPLOY.md)
โ Incident response runbook
โ Scaling runbook
โ Disaster recovery runbook
โ Troubleshooting guide
โ Architecture documentation
โ Post-mortems of past incidents
โ Monitoring & Alerting
โ Dashboard setup (CloudWatch or Datadog)
โ Key metrics dashboard: latency, error rate, throughput
โ Alerts for: high error rate (>5%), high latency (>1s p99)
โ On-call rotation: PagerDuty / Opsgenie configured
โ Alert escalation policy defined
โ Alert fatigue < 3 false positives per week
โ Change Management
โ Change log maintained (git + GitHub releases)
โ Semantic versioning (MAJOR.MINOR.PATCH)
โ Breaking changes documented
โ Migration guides for major versions
โ Rollback procedures tested
โ Blue-green or canary deployment available
โ Cost Management
โ Monthly cost < budget (dev: $2k, staging: $5k, prod: $50k)
โ Cost anomaly detection enabled
โ Reserved capacity purchased (if steady-state)
โ Spot instances used for non-critical workloads
โ Cost tags applied to all resources
โ Cost forecasting reviewed monthly
โ Performance Baselines
โ P50 latency: < 100ms
โ P99 latency: < 500ms
โ Error rate: < 0.1%
โ Availability: > 99.5% uptime (4.3 hours downtime/month)
โ Throughput: > 100 req/sec
โ Database query performance: < 50ms p99
Level 5: Audit & Certification (10 min)
Checklist:
โ Third-Party Audit
โ SOC 2 Type II audit scheduled
โ Auditor access provisioned
โ Audit scope defined (systems in scope)
โ Evidence collection ongoing
โ Audit findings tracked
โ Remediation plan for findings
โ Report delivery expected (target date)
โ Certifications
โ ISO 27001: certification achieved (or in progress)
โ SOC 2 Type II: report available
โ FedRAMP (if gov contract): authorization status
โ HIPAA BAA (if health data): signed
โ PCI DSS (if payment data): certification current
โ Compliance Matrix
โ Compliance matrix maps requirements โ controls
โ Each control has evidence link
โ Evidence freshness: < 30 days old
โ Matrix reviewed by compliance officer
โ Matrix version tracked
โ Matrix exportable to audit systems
โ Continuous Compliance
โ Compliance checks automated (CCVS pipeline)
โ Weekly evidence collection runs
โ Monthly compliance report generated
โ Quarterly compliance review with stakeholders
โ Annual compliance re-certification
โ New regulations monitored
Validation output
The validator produces:
1. Production Readiness Report
{
"timestamp": "2026-07-23T09:00:00Z",
"environment": "production",
"overallStatus": "GO" | "NO-GO" | "CONDITIONAL_GO",
"readinessScore": 0.0,
"maximumScore": 100.0,
"sections": {
"infrastructure": {
"status": "PASS" | "FAIL",
"score": 95,
"checks": 20,
"passed": 19,
"failed": 1,
"issues": ["ALB health check response time >500ms"]
},
"security": { ... },
"compliance": { ... },
"governance": { ... },
"operations": { ... }
},
"blockers": [],
"warnings": [],
"recommendations": [],
"approvedBy": "platform-lead@dsg.pics",
"approvedAt": "2026-07-23T10:00:00Z",
"validUntil": "2026-08-23T09:00:00Z",
"proofHash": "sha256:...",
"compliancePackage": "s3://dsg-evidence/.../compliance-pack-2026-07-23.json"
}
2. Compliance Evidence Pack
CCVS Schema: ccvs-makk8-v1
โโโ L1: Unit Evidence
โ โโโ Test Coverage Report
โ โโโ Code Review Checklist
โ โโโ Type Checking Results
โโโ L2: Integration Evidence
โ โโโ API Test Results
โ โโโ Database Migration Verification
โ โโโ Third-party API Responses
โโโ L3: Adversarial Evidence
โ โโโ Replay Test Results
โ โโโ Fault Injection Tests
โ โโโ Security Scanning Results
โโโ L4: Mutation Evidence
โ โโโ Code Review Sign-offs
โ โโโ Architecture Review
โ โโโ Change Approval
โโโ L5: Provenance Evidence
โโโ Build Logs (signed)
โโโ Dependency Tree
โโโ Container Image Attestation
3. GO/NO-GO Verdict
Status: GO โ
- All infrastructure checks pass
- Security posture verified
- Compliance ready for audit
- Governance gates functional
- Evidence collection operational
- Production readiness score: 95/100
OR
Status: NO-GO โ
- Blocking issues:
1. CloudFormation stack in CREATE_FAILED (resource: DynamoDB table)
2. SSL certificate expired
3. Audit logs not collecting
- Remediation: Follow RUNBOOK_DEPLOY.md section "Troubleshooting"
- Re-run validation after fixes
CLI invocation examples
/dsg-production-readiness-validator \
--environment prod \
--depth quick
/dsg-production-readiness-validator \
--environment prod \
--depth full
/dsg-production-readiness-validator \
--environment prod \
--focus compliance
/dsg-production-readiness-validator \
--environment prod \
--action evidence-only
/dsg-production-readiness-validator \
--environment prod \
--action go-no-go
Success criteria
โ
Production GO when:
- All infrastructure checks pass
- No security vulnerabilities (P0-P1)
- Governance gates functional
- Evidence collection active
- Audit trail working
- Compliance checklist โฅ 90% complete
- Third-party audit in progress
- Readiness score โฅ 90
- Validated by platform lead
โ Production NO-GO when:
- Infrastructure health score < 80
- Any P0 security vulnerability
- Governance gates returning BLOCK
- Evidence collection not working
- Audit trail gaps > 24 hours
- Compliance violations unfixed
- No third-party audit scheduled
- Readiness score < 70
โ ๏ธ Conditional GO when:
- Readiness score 70-89
- Minor compliance gaps with remediation plan
- Governance audit scheduled
- Production monitoring not fully mature
- Requires executive sign-off before launch