chore(cleanup): remove 12 confirmed-dead exports (#4619)#4666
Merged
Conversation
Dead-code sweep from the review-stack architecture audit (#4619): each item was grep/git-blame-verified as having zero real call sites outside its own declaration and test files, re-verified fresh against main before deletion. Removed: countRecentSubmissionsByAuthor (db/repositories.ts), ANALYZER_REGISTRY (review-enrichment registry.ts, a redundant alias of ANALYZERS), scanDependencies (review-enrichment dependency-scan.ts, superseded by the descriptor-based scanDependencyChanges), ISSUE_SUBMISSION_LABELS + AI_REVIEW_VERDICTS (review/content-lane/registry-logic.ts), REPO_DOC_TEMPLATE_VERSION (review/repo-doc-render.ts), githubRateLimitAdmissionRemainingFloor (selfhost/queue-common.ts), __linkedIssueSatisfactionRunInternals (services/linked-issue-satisfaction-run.ts), ALL_TYPE_LABELS (both the server and gittensory-engine copies of settings/pr-type-label.ts), WorkerEntrypoint (selfhost/cf-workers-shim.ts), and detectTestConvention/TestConvention (gittensory-engine signals/test-evidence.ts, plus the two internal marker tables that only ever fed it). Also removes scanDependencies's two now-orphaned tests from review-enrichment/test/enrichment.test.ts -- the equivalent behavior stays covered by extractDependencyChanges's and scanDependencyChanges's own direct tests -- and detectTestConvention's describe block from test-evidence.test.ts. RpcTarget in src/selfhost/cf-workers-shim.ts is removed too (same shim-parity reasoning as WorkerEntrypoint), but its copy in test/stubs/cloudflare-workers.ts is kept: vitest aliases the cloudflare:workers specifier to that file for every module resolved under Node, and the agents package (a dependency of src/mcp/server.ts's agents/mcp import) extends RpcTarget from it -- a grep-only pass over this repo's own source would have missed that, since the only real caller lives in node_modules. The issue_quality_reports/registry_drift_events tables and their upsertIssueQualityReport/persistRegistryDriftEvents functions are deliberately left untouched pending explicit sign-off on production data before a DROP TABLE migration ships.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | 645f991 | Commit Preview URL Branch Preview URL |
Jul 10 2026, 10:53 AM |
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4666 +/- ##
=======================================
Coverage 94.13% 94.13%
=======================================
Files 434 434
Lines 38554 38536 -18
Branches 14053 14052 -1
=======================================
- Hits 36291 36276 -15
+ Misses 1604 1601 -3
Partials 659 659
🚀 New features to boost your workflow:
|
This was referenced Jul 10, 2026
JSONbored
added a commit
that referenced
this pull request
Jul 10, 2026
…4676) issue_quality_reports and registry_drift_events were scaffolded in 0004_scoring_intelligence.sql alongside 6 sibling tables that all got wired with real read+write paths -- these two alone never did. The "issue quality report" concept now lives entirely in the generic signal_snapshots cache via src/services/issue-quality.ts instead. Confirmed zero rows in both tables on the live production database before writing this migration. Completes #4619's remaining scope (PR #4666 already shipped the other 12 verified-dead-export removals; this piece was deliberately deferred pending that confirmation). Fixes #4619
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
confirmed-dead exports from the issue's list. Each item was re-verified fresh against current
main(grep + read the surrounding module) rather than trusting the issue's original audit, since time had
passed since it was filed.
countRecentSubmissionsByAuthor(src/db/repositories.ts),ANALYZER_REGISTRY(
review-enrichment/src/analyzers/registry.ts, a redundant alias ofANALYZERS),scanDependencies(
review-enrichment/src/analyzers/dependency-scan.ts, superseded by the descriptor-basedscanDependencyChanges),ISSUE_SUBMISSION_LABELS+AI_REVIEW_VERDICTS(
src/review/content-lane/registry-logic.ts),REPO_DOC_TEMPLATE_VERSION(
src/review/repo-doc-render.ts),githubRateLimitAdmissionRemainingFloor(
src/selfhost/queue-common.ts),__linkedIssueSatisfactionRunInternals(
src/services/linked-issue-satisfaction-run.ts),ALL_TYPE_LABELS(both the server andgittensory-enginecopies ofsettings/pr-type-label.ts),WorkerEntrypoint(
src/selfhost/cf-workers-shim.ts), anddetectTestConvention/TestConvention(
gittensory-engine'ssignals/test-evidence.ts— its sibling exportsisTestPath/classifyTestCoveragestay untouched, they are live via
src/signals/test-evidence.ts's re-export shim).scanDependencies's two now-orphaned tests fromreview-enrichment/test/enrichment.test.ts(the underlying behavior stays covered by
extractDependencyChanges's andscanDependencyChanges's owndirect tests) and
detectTestConvention'sdescribeblock fromtest/unit/test-evidence.test.ts.RpcTargetinsrc/selfhost/cf-workers-shim.tsis removed (same shim-parity reasoning asWorkerEntrypoint— theself-host esbuild build stubs out
agents/mcpbefore anything would need it from this shim), but itscopy in
test/stubs/cloudflare-workers.tsis kept.vitest.config.tsaliases thecloudflare:workersspecifier to that file for every module resolved under Node, including
node_modules— and theagentspackage (a dependency of
src/mcp/server.ts'sagents/mcpimport) doesimport { RpcTarget } from "cloudflare:workers"and extends it. A grep over this repo's own sourcefound no caller (matching the issue's claim), but
npm run test:changedcaught the real one, since itlives in a third-party package, not first-party source. Left a comment on the kept class explaining why.
issue_quality_reports/registry_drift_eventstables and theirupsertIssueQualityReport/persistRegistryDriftEventsfunctions are untouched — dropping those needsexplicit confirmation of zero production data before a
DROP TABLEmigration ships, which cannot beestablished from the codebase alone. Left for a follow-up once a maintainer has checked production.
Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally;codecov/patchrequires ≥99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi:checknpm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateIf any required check was skipped, explain why:
non-executable comment edits), so no new tests were added; ran the full local gate anyway
(
npm run test:coverageunsharded — 684 files / 13,494 tests green;npm run rees:test— 1,218tests green;
npm run test:engine-parity,npm run test:driver-parity,npm run engine-parity:drift-check,npm --workspace @jsonbored/gittensory-engine run test,npm run build:miner,npm run test:miner-pack,npm run db:schema-drift:check,npm run db:migrations:check,npm run selfhost:env-reference:check,npm run selfhost:validate-observability,npm run cf-typegen:check,npm run docs:drift-check,npm run manifest:drift-check,npm run command-reference:check,npm run ui:testall also green)plus rebased onto fresh
mainimmediately before pushing and re-ran typecheck + the affected suites.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
Not applicable — no UI/frontend/docs-visible changes; this PR only removes unreachable backend/package exports and their now-orphaned test coverage.
Notes
keyword, since the DB-table portion of that issue is intentionally deferred pending a maintainer's
production-data check — this PR should not auto-close it.