Skip to content

fix(github): align maintainer digest failing-check detection with readiness classifier - #1902

Merged
JSONbored merged 1 commit into
JSONbored:mainfrom
joaovictor91123:fix/maintainer-digest-failing-checks
Jun 30, 2026
Merged

fix(github): align maintainer digest failing-check detection with readiness classifier#1902
JSONbored merged 1 commit into
JSONbored:mainfrom
joaovictor91123:fix/maintainer-digest-failing-checks

Conversation

@joaovictor91123

Copy link
Copy Markdown
Contributor

Summary

  • Export isFailingCheckSummary from src/signals/local-branch.ts as the canonical cached-check failure predicate (conclusion or status, full failing set, case-folded).
  • Reuse it in summarizeQueuePullRequest so the maintainer queue digest surfaces checks_need_attention for the same failing checks the readiness path already sees.
  • Add regression coverage for status-carried failures, startup_failure, mixed-case conclusions, and clean checks.

Scope

  • The PR title follows type(scope): short summary Conventional Commit format, for example fix(api): restore profile access checks.
  • This PR is focused and does not mix unrelated backend, UI, MCP, docs, dependency, and deploy changes.
  • This follows CONTRIBUTING.md and does not reintroduce GitHub Pages, VitePress, site/, or CNAME.
  • I linked an issue, or this is small enough that the summary explains why an issue is not needed.

Issue creation is currently blocked for contributor accounts on the upstream repo; this is a focused correctness fix with regression tests.

Validation

  • git diff --check
  • npm run actionlint
  • npm run typecheck
  • npm run test:coverage locally; codecov/patch requires ≥97% coverage of the lines AND branches you changed (aim for 98%+ 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:workers
  • npm run build:mcp
  • npm run test:mcp-pack
  • npm run ui:openapi:check
  • npm run ui:lint
  • npm run ui:typecheck
  • npm run ui:build
  • npm audit --audit-level=moderate
  • New or changed behavior has unit/integration tests for new branches, fallback paths, and sanitizer boundaries

If any required check was skipped, explain why:

  • Full npm run test:ci runs in GitHub Actions; targeted vitest covered the new regression.

Safety

  • No secrets, wallet details, hotkeys, coldkeys, user PATs, private keys, raw trust scores, private rankings, or private maintainer evidence are exposed.
  • Public GitHub text stays sanitized, low-noise, and does not imply compensation guarantees or optimization tactics.
  • Auth, cookie, CORS, GitHub App, Cloudflare, or session changes include negative-path tests.
  • API/OpenAPI/MCP behavior is updated and tested where needed.
  • UI changes use live API data or real empty/error/loading states, not production mock/demo fallbacks.
  • Visible UI changes include a UI Evidence section 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.
  • Public docs/changelogs are updated where needed; changelogs are only edited for release-prep PRs.

UI Evidence

N/A — backend signal/digest logic only.

Notes

Made with Cursor

…diness classifier

The queue digest counted only three lowercase conclusion values and ignored
status-carried failures, so PRs with broken checks were mis-ranked for triage.
Reuse the canonical isFailingCheckSummary predicate from local-branch readiness.

Co-authored-by: Cursor <cursoragent@cursor.com>
@dosubot dosubot Bot added the size:S label Jun 30, 2026
@loopover-orb

loopover-orb Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Tip

🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

✅ Gittensory review result - approve/merge recommended

Review updated: 2026-06-30 22:29:19 UTC

3 files · 1 AI reviewer · no blockers · readiness 66/100 · CI green · unknown

✅ Suggested Action - Approve/Merge

  • safe to merge

Review summary
The change correctly centralizes cached-check failure classification in `src/signals/local-branch.ts` and reuses it in the maintainer queue digest so readiness and digest signals agree on status-carried failures, `startup_failure`, `failed`, `action_required`, and case variants. The regression test exercises the newly reachable digest behavior without fabricating a separate classifier path. I do not see a reachable correctness defect in the visible diff.

Nits — 5 non-blocking
  • nit: `src/signals/local-branch.ts:741` keeps `FAILING_CHECK_STATES` as a mutable array even though it is module-constant classifier data; `as const` or a `ReadonlySet` would better communicate that callers must not mutate it.
  • nit: `src/github/commands.ts:1291` adds a long explanatory comment that mostly repeats the exported predicate's doc comment; keeping the detailed rationale in one place would reduce drift.
  • In `src/signals/local-branch.ts:741`, define the state list as immutable, for example `const FAILING_CHECK_STATES = new Set([...])`, then use `.has(...)` in `isFailingCheckSummary`.
  • In `src/github/commands.ts:1291`, trim the local comment to a short note such as `// Keep the digest aligned with readiness classification.` and let `isFailingCheckSummary` carry the detailed contract.
  • Readiness score is below the configured threshold — Use the readiness panel as advisory maintainer context; the score does not block this PR.
Signal Result Evidence
Code review ✅ No blockers 1 reviewer
Linked issue ⚠️ Missing No linked issue or no-issue rationale found.
Related work ✅ No active overlap found No same-issue or scoped active PR overlap found.
Change scope ✅ 20/20 Low review scope from cached public metadata (size label size:S; no linked issue context).
Validation posture ❌ 5/25 Preflight is holding this PR; address the blocker before review.
Contributor workload ✅ 10/10 Author activity: 48 registered-repo PR(s), 31 merged, 0 issue(s).
Contributor context ✅ Confirmed Gittensor contributor joaovictor91123; Gittensor profile; 48 PR(s), 0 issue(s).
Gate result ✅ Passing No configured blocker found.
Review context
  • Author: joaovictor91123
  • Role context: outside_contributor
  • Public audience mode: oss maintainer
  • Lane context: Repository registration is not available in the local Gittensory cache.
  • Public profile languages: not available
  • Official Gittensor activity: 48 PR(s), 0 issue(s).
  • PR-specific overlap: none found.
Contributor next steps
  • Explain no-issue PR.
  • Fix the blocker.
  • Triage stale or unlinked PRs.
  • Refresh registry data or choose a registered active repo.
  • Link the issue being solved, or explicitly explain why this is a no-issue PR.
Signal definitions
  • Related work = same linked issue, overlapping active PRs, or title/path similarity.
  • Change scope = cached public metadata such as size labels, draft state, and review-burden hints.
  • Validation posture = whether the PR provides enough public validation/test evidence for maintainer review.
  • Contributor workload = public contributor activity and cleanup pressure, not a repo-wide quality failure.
  • Contributor context = public GitHub/Gittensor identity context; non-Gittensor status is not a blocker.

🟩 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.

  • Re-run Gittensory review

@dosubot dosubot Bot added the lgtm label Jun 30, 2026
@JSONbored
JSONbored merged commit 737e5d7 into JSONbored:main Jun 30, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in gittensory - v1 roadmap Jun 30, 2026
@github-actions github-actions Bot mentioned this pull request Jul 1, 2026
12 tasks
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

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants