Skip to content

Remove unused exports and duplicate tests (simplify audit) - #35

Merged
aharlap merged 2 commits into
mainfrom
simplify-audit-2026-10-21
Oct 21, 2026
Merged

aharlap merged 2 commits into
mainfrom
simplify-audit-2026-10-21

Conversation

@aharlap

@aharlap aharlap commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Five findings from a simplify audit, no runtime change.

  • Remove the unused quotePosix import in src/cli.mjs.
  • Drop the unused export on officialReleaseChannel (src/update.mjs) and verifyStudioArchive (scripts/publish-studio-pack.mjs). Both stay, with their checks.
  • Delete the duplicate null-selector test in test/studio-annotation.test.mjs (the null row at line 56 covers it).
  • Delete the missing x64 publisher row; "isolated refusal: missing archive" covers it and also checks the error message.

Not applied: rewriting the assessment gate's mutation tests. The rewrite removed every mutant assertion. Each mutant proves a stop case is caught by the rule it names, not by another guard, so removing them loses coverage. Breaking on a variable rename is the cost of that proof.

Checks: npm.cmd run validate passed; changed test files pass on Windows (Node 24.19.0) and WSL (Node 24.18.0); test/assessment-writing.test.mjs back to main, 26 passed. CI on Ubuntu and macOS is the full gate.

Review: 1/0/0 0/0/0; fixes 1. Opus controller review: the assessment test rewrite dropped all mutation coverage, reverted; recheck clean.

🤖 Generated with Claude Code

aharlap and others added 2 commits October 21, 2026 17:40
The rewrite removed every mutant assertion, not just the source-count
check. Each mutant proves a stop case is caught by the rule it names,
not by another guard, so dropping them loses coverage. The rename
fragility is the cost of that proof.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aharlap
aharlap marked this pull request as ready for review October 21, 2026 21:44
@aharlap
aharlap merged commit 964847c into main Oct 21, 2026
4 checks passed
@aharlap
aharlap deleted the simplify-audit-2026-10-21 branch October 21, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant