fix(miner): halt loop reentry for unresolved PRs - #5496
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | a1d96cb | Commit Preview URL Branch Preview URL |
Jul 12 2026, 11:12 PM |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-12 23:39:14 UTC
⏸️ Suggested Action - Manual Review Concerns raised — review before merging
📋 Copy for AI agents — paste into your coding agent
Review context
Contributor next steps
Signal definitions
[BETA] Chat with GittensoryAsk Gittensory a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/gittensory-commands 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5496 +/- ##
=======================================
Coverage 94.40% 94.40%
=======================================
Files 550 550
Lines 44119 44124 +5
Branches 14632 14632
=======================================
+ Hits 41652 41657 +5
Misses 1792 1792
Partials 675 675
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Closing: this inverts a deliberate, same-day design decision rather than fixing a real gap.
This PR's guard turns "still open" into an unconditional full-loop halt, directly reversing that same-day intent. Separately, the double-submission concern the PR's motivation describes doesn't hold up: the specific (repo, identifier) pair is already marked done via |
Motivation
Description
packages/gittensory-miner/lib/loop-cli.jsthat, when an attempt submitted a PR but the disposition is notclosed(or the PR number could not be parsed), records a declined re-entry cycle and halts the loop with an explicit reason.submitted_pr_disposition_unresolvedwhen an observed PR remains open andsubmitted_pr_number_unresolvedwhen no parseable PR number is exposed.test/unit/miner-loop-cli.test.tsthat assert the loop halts re-entry for an open PR and for a submitted attempt that exposes no parseable PR number, and that the queue/ledger state is left consistent.Testing
npx vitest run test/unit/miner-loop-cli.test.ts, and the updated unit test file passed (17 testspassed).npm run build:miner, which completed successfully (node --checkpassed for the miner package files).git diff --check && npm run test:ci; the run progressed through many checks but stopped atcf-typegen:checkdue to a pre-existingworker-configuration.d.ts is stale; run npm run cf-typegenissue unrelated to the miner change.npm audit --audit-level=moderatecould not complete against the registry in this environment (registry returned403 Forbidden).Codex Task