plugins/codebase-audit-suite/skills/ln-638-test-oracle-effectiveness-auditor/SKILL.md
Audits assertion strength and test oracles that prove real defects. Use when finding weak tests that execute code but prove little.
npx skillsauth add levnikolaevich/claude-code-skills ln-638-test-oracle-effectiveness-auditorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Paths: File paths (
references/,../ln-*) are relative to this skill directory.
Type: L3 Worker
Specialized worker auditing whether tests have meaningful oracles that would catch real product defects.
STRENGTHEN_ORACLE, DELETE_WEAK_ORACLE, or ADD_MUTATION_EVIDENCEMANDATORY READ: Load references/audit_worker_core_contract.md.
Receives contextStore with: tech_stack, testFilesMetadata, codebase_root, output_dir.
Detection policy: use two-layer detection (candidate scan, then context verification); load references/two_layer_detection.md only when the verification method is ambiguous.
references/templates/audit_worker_report_template.md, write to {output_dir}/ln-638--global.md in single Write callWhat: Tests with no assertions, vague assertions, or assertions that would pass for many broken implementations
Detection:
expect, assert, should, or framework-specific verificationtoBeTruthy, toBeDefined, not.toThrow, or status-only checks when domain values matterLayer 2:
Severity: HIGH for critical logic, MEDIUM otherwise
Recommendation: Assert the product-specific output, state transition, side effect, emitted event, or persisted data that would fail under a real regression
Effort: S-M
Action: STRENGTHEN_ORACLE, or DELETE_WEAK_ORACLE if the test has no product signal
What: Tests whose expected result is not tied to product behavior
Detection:
Severity: MEDIUM
Recommendation: Replace structural assertions with behavior-level assertions derived from requirements, examples, fixtures, or golden data
Effort: S-M
Action: STRENGTHEN_ORACLE
What: Snapshot tests without semantic assertions for the product behavior being protected
Detection:
toMatchSnapshot, image snapshots, serialized JSON snapshots, or golden files with no nearby semantic assertionLayer 2:
Severity: MEDIUM
Recommendation: Keep snapshots only as secondary evidence; add semantic assertions for key behavior or delete the snapshot-only test if it has no unique signal
Effort: S-M
Action: STRENGTHEN_ORACLE or DELETE_WEAK_ORACLE
What: Test mocks the system under test or internal collaborators so aggressively that the real behavior is not exercised
Detection:
Layer 2:
ln-635; this check is about proof strength, not dependency controlSeverity: HIGH when the test appears to cover critical logic but proves only mocks, MEDIUM otherwise
Recommendation: Exercise real local behavior and mock only external boundaries; assert the product contract instead of implementation calls
Effort: M
Action: STRENGTHEN_ORACLE
What: Use mutation reports or equivalent evidence to detect tests that do not fail when production behavior changes
Detection:
Severity: LOW for missing mutation evidence alone, MEDIUM when surviving mutants confirm weak assertions
Recommendation: Add mutation-style evidence for critical local logic only; do not require mutation testing for the whole suite
Effort: M-L
Action: ADD_MUTATION_EVIDENCE
MANDATORY READ: Load references/audit_scoring.md.
Severity mapping:
MANDATORY READ: Load references/templates/audit_worker_report_template.md.
Write JSON summary per references/audit_summary_contract.md. In managed mode the caller passes both runId and summaryArtifactPath; in standalone mode the worker generates its own run-scoped artifact path per shared contract.
Write report to {output_dir}/ln-638--global.md with category: "Oracle Effectiveness" and checks: assertion_strength, meaningful_oracle, snapshot_oracle, over_mocking, mutation_style_evidence.
Return summary per references/audit_summary_contract.md.
When summaryArtifactPath is absent, write the standalone runtime summary under .hex-skills/runtime-artifacts/runs/{run_id}/evaluation-worker/{worker}--{identifier}.json and optionally echo the same summary in structured output.
Report written: .hex-skills/runtime-artifacts/runs/{run_id}/audit-report/ln-638--global.md
Score: X.X/10 | Issues: N (C:N H:N M:N L:N)
Apply the already-loaded references/audit_worker_core_contract.md.
STRENGTHEN_ORACLE, DELETE_WEAK_ORACLE, or ADD_MUTATION_EVIDENCE.Apply the already-loaded references/audit_worker_core_contract.md.
{output_dir}/ln-638--global.md (atomic single Write call)Version: 1.0.0 Last Updated: 2026-05-09
testing
Drafts and publishes fact-checked GitHub Discussions announcements. Use for releases, updates, or project news; not for release creation or issue responses.
testing
Prepares and publishes a tagged GitHub release from repository evidence. Use for an explicit release request; not for ordinary commits, packages, or community news.
testing
Validates, commits, pushes, and remotely verifies approved repository changes. Use when publication is requested; not for releases, package publishing, or announcements.
development
Reviews standalone skills and their configured distribution surfaces before publication. Use for skill release readiness; not for product code or implementation-plan review.