Skip to content

chore(miner): remove gate-verdict-poller.js as dead code - #5512

Merged
JSONbored merged 1 commit into
mainfrom
chore/remove-gate-verdict-poller-5450
Jul 13, 2026
Merged

chore(miner): remove gate-verdict-poller.js as dead code#5512
JSONbored merged 1 commit into
mainfrom
chore/remove-gate-verdict-poller-5450

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

  • Removes gate-verdict-poller.js (feat(miner-manage): maintainer-gate verdict watcher (read-only, webhook or poll) #4273) — it has zero production callers, and per its own header, the single-PR gate-decision endpoint it was built to poll was never real.
  • loop-cli.js already gets the authoritative terminal merge/close outcome from pr-disposition-poller.js's real GitHub PR-state polling (ci-poller.js's check-run conclusion runs alongside it as a heuristic proxy for in-flight CI state) — this module's intended purpose is already fully covered.
  • The alternative (rewrite against open-pr-monitor's classification: OpenPrWorkClassification vocabulary) doesn't work: that endpoint filters to state === "open" only, so it's structurally incapable of ever expressing a terminal merge/close verdict.
  • Cleaned up the two stale comment references (loop-cli.js, http-retry.js) and the package.json build-check entry; deleted the now-orphaned test file.

Test plan

  • npx vitest run test/unit test/contract — 778 files / 15172 tests passing, 0 regressions
  • npm run build --workspace @jsonbored/gittensory-miner (node --check over every remaining lib file)
  • npx tsc --noEmit clean
  • npm run docs:drift-check && npm run manifest:drift-check && npm run engine-parity:drift-check && npm run miner:env-reference:check
  • npm audit --audit-level=moderate — 0 vulnerabilities
  • Grepped the full repo for gate-verdict-poller/gateVerdictPoller/pollGateVerdict/GATE_VERDICTS — zero remaining references

Closes #5450

The module (#4273) has zero production callers and, per its own header,
the single-PR gate-decision endpoint it was built against was never
real. loop-cli.js already gets the authoritative terminal merge/close
signal from pr-disposition-poller.js's real GitHub PR-state polling
(ci-poller.js's check-run conclusion is a heuristic proxy alongside it),
so the module's purpose is fully covered by existing, wired code.

The alternative of rewriting it against open-pr-monitor's classification
vocabulary doesn't work: that endpoint only returns open PRs, so it is
structurally incapable of ever reporting a terminal merge/close verdict.

Closes #5450
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
gittensory-ui 6b81e19 Commit Preview URL

Branch Preview URL
Jul 13 2026, 12:03 AM

@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.77%. Comparing base (ec7d4c2) to head (6b81e19).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5512      +/-   ##
==========================================
- Coverage   94.77%   94.77%   -0.01%     
==========================================
  Files         566      565       -1     
  Lines       44982    44949      -33     
  Branches    14675    14675              
==========================================
- Hits        42631    42599      -32     
+ Misses       1617     1616       -1     
  Partials      734      734              
Flag Coverage Δ
shard-1 43.76% <ø> (-0.50%) ⬇️
shard-2 35.42% <ø> (+0.10%) ⬆️
shard-3 32.12% <ø> (+0.12%) ⬆️
shard-4 31.37% <ø> (-0.50%) ⬇️
shard-5 33.36% <ø> (+0.40%) ⬆️
shard-6 43.80% <ø> (+0.24%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
packages/gittensory-miner/lib/http-retry.js 100.00% <ø> (ø)
packages/gittensory-miner/lib/loop-cli.js 93.65% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 13, 2026
@JSONbored
JSONbored merged commit b84e38f into main Jul 13, 2026
19 checks passed
@JSONbored
JSONbored deleted the chore/remove-gate-verdict-poller-5450 branch July 13, 2026 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gate-verdict-poller.js (#4273) has zero production callers and no real target endpoint

1 participant