Repository navigation
D219 — doctor says a workflow red on the default branch run after run - #396
Merged
Merged
Conversation
A workflow outside the required checks can fail on every run of the default branch while every pull request merges green beside it (#387). `nstack doctor` now reads the default branch's last workflow runs with the token it already has (Actions: read) and says, as information (N2), each workflow whose last three or more completed runs all failed, with the first failure's link. Cancelled and skipped runs say nothing either way; unreadable runs are said with the permission. Agent-Session: nstack-os-d219 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
napkinstack-admin
approved these changes
Nov 14, 2026
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.
Closes #387.
Why
A workflow outside the required checks can fail on every run of the default branch while every pull request merges green beside it. On a desktop project, a packaging workflow failed for six runs, about a week, and was noticed by chance. GitHub shows a red run and notifies nobody once the check is not required.
What
nstack doctoradds a « Default branch » section, N2: information that never changes its exit code./actions/workflows, then each active one's last 10 completed runs on the default branch), so a quiet workflow, filtered bypaths:or scheduled, never drops out of a window busier ones fill.mainincluded.failure,timed_outandstartup_failurecount as failures.successandneutralend a streak; cancelled, skipped, stale and action_required say nothing either way.RED <workflow>: failed its last N runs on <branch>, since <date>, with the first failure's link.Docs: doctor's N2 docstring, INSTALL's token paragraph, register row D219. Not built: a fitness check on a
paths:filter that leaves out a module its jobs build, until it pays.Checks
uv run bash platform/tests/run.sh: 1302 passed.nstack fitness: compliant.🤖 Generated with Claude Code