Skip to content

Stop the stale bot from closing issues - #8076

Open
Scottcjn wants to merge 2 commits into
mainfrom
fix/stale-exempt-consensus-tracking
Open

Stop the stale bot from closing issues#8076
Scottcjn wants to merge 2 commits into
mainfrom
fix/stale-exempt-consensus-tracking

Conversation

@Scottcjn

@Scottcjn Scottcjn commented Jul 27, 2026

Copy link
Copy Markdown
Owner

What happened

This workflow closed #6749 this morning as not planned. That issue tracks a live cross-path double-credit race in epoch settlement, and the PRs fixing it (#8062, #8065) were open and unreviewed at the time. It closed a security issue on beacon-skill the same morning, and had armed five more including the production node drift issue and the federation bridge RFC.

Why adding labels was not enough

My first attempt at this PR just added consensus, tracking and operations to the exempt list. That only works if somebody remembers to apply the label.

Two days ago the same class of failure hit the bounty board: 29 genuine bounty postings had no bounty label, which made them invisible to the README browse link and unprotected from that repo's stale bot. Ten were already marked stale. The spam around them was untouched, because spam gets commented on and real work goes quiet.

The actual wrong assumption

Silence means resolved. For a hard bug the opposite is true. Nobody comments on a consensus race for a month precisely because it is hard, and the reward for being hard was deletion.

What changed

Issues are marked stale and never auto-closed. days-before-issue-close: -1. Marking is information and a human can still close in one click. Closing is destruction, and it lands hardest on exactly the work that takes longest to fix.

Pull requests still auto-close, on a longer leash (21 days to stale, 14 to close, up from 14/7). PRs genuinely rot against a moving main, the branch is not lost, and reopening is one click.

Also:

  • Issue stale window 30 → 45 days
  • Milestoned and assigned issues exempt, since a human already triaged those
  • operations-per-run 50 → 300. At 50 the queue never drained on a repo this size, so the same items were revisited while others were never reached at all
  • Exempt lists widened anyway, as belt and braces

Note

The six issues it hit were reopened and pinned by hand today. Two of them (#6624, #6627) turned out to be genuinely complete and were closed properly with pointers to the PRs that did the work — which is what closing should look like.

@github-actions github-actions Bot added BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) ci size/XS PR: 1-10 lines labels Jul 27, 2026
The link-check job has not checked a link since 22 July. Every run on main
fails the same way:

  error: unexpected argument '--exclude-mail' found
  Process completed with exit code 2

lychee removed --exclude-mail; mail links are now skipped by default and
--include-mail opts back in. The action resolves to a lychee version that
rejects the flag, so the binary exits before it reads a single file.

This is the failure mode worth naming: the job did not report broken links,
it reported that it could not start, and a red check for an unparseable
argument looks much like a red check for a genuinely broken link. Three runs
on main failed this way and the workflow kept being treated as if it were
guarding something.

Verified after removing it: a run with the same args minus this flag checks
2,261 links and reports 0 errors.

Contributors have since opened several PRs against this bounty proposing
new duplicate link-check workflows. None of them needed to. The existing
workflow was one flag away from working.

Signed-off-by: Scott <scottbphone12@gmail.com>
@github-actions

github-actions Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

⚠️ BCOS v2 Scan Results

Metric Value
Trust Score 49/100
Certificate ID BCOS-da0834ff
Tier L1 (not met)

BCOS Badge

What does this mean?

The BCOS (Beacon Certified Open Source) engine scans for:

  • SPDX license header compliance
  • Known CVE vulnerabilities (OSV database)
  • Static analysis findings (Semgrep)
  • SBOM completeness
  • Dependency freshness
  • Test infrastructure evidence
  • Review attestation tier

Full report | What is BCOS?


BCOS v2 Engine - Free & Open Source (MIT) - Elyan Labs

It closed #6749 today as not planned. That issue tracks a live cross-path
double-credit race in epoch settlement, and the PRs fixing it were open and
unreviewed at the time. It closed a security issue on beacon-skill the same
morning and had armed five more.

Adding labels to the exempt list, which is what I did first, only works if
somebody remembers to apply them. Two days ago the same class of failure hit
the bounty board: 29 real bounties had no bounty label, so they were invisible
to the browse link and unprotected here, and ten were already marked stale
while the spam around them was untouched.

The wrong assumption is that silence means resolved. For a hard bug the
opposite holds. Nobody comments on a consensus race for a month precisely
because it is hard, and the reward for being hard was deletion.

So issues are now marked and never auto-closed. Marking is information and a
human can still close in one click. Closing is destruction and it falls
hardest on the work that takes longest.

Pull requests still auto-close, on a longer leash, because they genuinely rot
against a moving main and reopening one is cheap.

Also: stale window 30 to 45 days, milestoned and assigned issues exempt since
a human already triaged them, and operations-per-run 50 to 300 because 50
could not cover the backlog so the queue never drained.

Signed-off-by: Scott <scottbphone12@gmail.com>
@Scottcjn
Scottcjn force-pushed the fix/stale-exempt-consensus-tracking branch from b5e2ead to 28b1d46 Compare July 27, 2026 17:31
@Scottcjn Scottcjn changed the title Exempt consensus, tracking and operations issues from the stale bot Stop the stale bot from closing issues Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) ci size/XS PR: 1-10 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants