E2E Critical Coverage audit worker (L3). Validates E2E coverage for critical paths (Money 20+, Security 20+, Data 15+). Pure risk-based - no pyramid percentages.
Paths: File paths (
shared/,references/,../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.
Specialized worker auditing E2E test coverage for critical paths (risk-based).
Receives contextStore with risk-based testing philosophy, tech stack, codebase structure, test file list.
Rule: Every critical path MUST have E2E test
Critical Paths (Priority ≥20):
Detection:
payment, refund, login, auth, exportSeverity:
Recommendation: Add E2E tests for critical paths immediately
Effort: M
Rule: Multi-step critical flows MUST have E2E test
Core Journeys (Priority 15-19):
Detection:
Severity:
Recommendation: Add end-to-end journey tests
Effort: M-L
Rule: Every E2E test MUST justify Priority ≥15
Check: For each E2E test, calculate Usefulness Score = Impact × Probability
Example:
Severity:
Recommendation: Convert low-value E2E to Integration/Unit or remove
Effort: S
MANDATORY READ: Load shared/references/audit_scoring.md for unified scoring formula.
Severity mapping:
Return JSON to coordinator:
{
"category": "E2E Critical Coverage",
"score": 6,
"total_issues": 8,
"critical": 2,
"high": 3,
"medium": 2,
"low": 1,
"checks": [
{"id": "critical_path_coverage", "name": "Critical Path Coverage", "status": "failed", "details": "Missing E2E for 2 Priority 25 paths (payment, auth)"},
{"id": "user_journey_coverage", "name": "User Journey Coverage", "status": "warning", "details": "1 of 3 core journeys missing E2E"},
{"id": "edge_case_coverage", "name": "Edge Case Coverage", "status": "passed", "details": "Error scenarios covered in existing E2E"}
],
"findings": [
{
"severity": "CRITICAL",
"location": "routes/payment.ts:45",
"issue": "No E2E test for payment processing (POST /payment, Priority 25)",
"principle": "E2E Critical Coverage / Money Flow",
"recommendation": "Add E2E: successful payment + failed payment scenarios",
"effort": "M"
},
{
"severity": "HIGH",
"location": "routes/auth.ts + routes/users.ts",
"issue": "Missing E2E for user journey: Registration → Email verification → First login (Priority 16)",
"principle": "E2E Critical Coverage / Core Journey",
"recommendation": "Add E2E test covering full registration flow",
"effort": "L"
},
{
"severity": "MEDIUM",
"location": "users.test.ts:23",
"issue": "Low-value E2E test 'GET /users returns 200' (Usefulness Score 4 < 15)",
"principle": "E2E Critical Coverage / Wasteful Test",
"recommendation": "Convert to Integration test or remove",
"effort": "S"
}
]
}
shared/references/audit_scoring.mdshared/references/audit_scoring.mdshared/references/audit_output_schema.mdVersion: 3.0.0 Last Updated: 2025-12-23