Repository navigation
feat(rules): broken-link rules are reliability findings with a Reliability badge #836 #842 #843 - #856
Merged
Merged
Conversation
nc9
force-pushed
the
feat/836-broken-links-reliability
branch
from
October 26, 2026 23:30
1e583b4 to
21b98c6
Compare
nc9
marked this pull request as ready for review
October 26, 2026 23:30
Contributor
Auto-review did not completeThe
Partial findings recovered from the session (incomplete, unverified, and NOT a merge signal): Show partial reviewYou've hit your session limit · resets 11:40pm (UTC) |
…ility badge #836 #842 #843 links/broken-links, links/broken-external-links and links/broken-anchors move from the Links category (SEO group) to Reliability, ids unchanged. Reliability stays under the Performance score group; its rules' badge names the category (Reliability, scored under Performance) instead of the group. Reports stored before the change keep their stored category. Signed-off-by: Nik Cubrilovic <[email protected]>
… its id prefix #836 A slim JSON report reloaded with `squirrel report <file>` maps each issue's category name back to its code, falling back to the id prefix, so links/broken-links stays Reliability. --fail-on score:reliability is no longer rejected for a --rule-include that selects a Reliability rule with a links/ id. Signed-off-by: Nik Cubrilovic <[email protected]>
…ebase onto v0.0.136 Links 13 and Reliability 5 in the README and docs index, the Changed entry for the broken-link rules, regenerated rule hubs, and the badge test reads the current gtag markup. Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
feat/836-broken-links-reliability
branch
from
October 26, 2026 23:51
21b98c6 to
e3fbaec
Compare
|
Review of #856: reclassifying the three broken-link rules as Reliability. The change is small and well tested, and keeping the rule ids stable is the right call. I found one real bug and a few small points.
Docs, CHANGELOG, the badge test and the stored-report compatibility test all look good. |
nc9
added a commit
that referenced
this pull request
Oct 27, 2026
* origin/main: feat(rules): broken-link rules are reliability findings with a Reliability badge (#856) fix(rules): respect identical-link context (#1134) Signed-off-by: Nik Cubrilovic <[email protected]>
This was referenced Oct 27, 2026
Closed
nc9
added a commit
that referenced
this pull request
Oct 27, 2026
The Reliability card on docs/rules/performance said 2 rules; the category has 5 since #856. Docs: this. Skill: no change.
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 #836. Closes #842. Closes #843.
What changes
A dead link is a reliability problem for visitors, not an SEO one.
links/broken-links,links/broken-external-linksandlinks/broken-anchorschangemeta.categoryfromlinkstoreliability.links/*patterns, disable lists,rule_options, the rule cache and docs URLs keep working. The decision is recorded on Broken links (internal and external) are a reliability finding, not SEO #836.RuleGroupwould make the API's publish schema (z.enum(RULE_GROUPS)in the private repo) reject every publish from a new CLI until the API shipped first. That's a cross-repo change.badgeByCategory(packages/report/src/categories.ts), and onlyreliabilitydoes.getBadgeName/getBadgeTitledrive the HTML badge, so every Reliability rule now reads Reliability, with the tooltip "Reliability, scored under Performance". That includesbroken-resourcesandbroken-forms, which read "Performance" before.category(Reliability) andgroup(performance, the score it counts toward) as data. Markdown, text and console show the category name, so they read Reliability already.--categoryreadmeta.categoryfrom the stored report, so a report stored before the change keeps Links and the SEO badge. A test pins this.squirrel report report.jsonnow maps the issue's category name back to its code, falling back to the id prefix for a name it doesn't know.--fail-on score:reliabilityis no longer rejected when--rule-include links/broken-linksselects a Reliability rule.isCategoryExcludedalso reaches a category through the ids of its rules filed outside their prefix, which today are only these three.--rule-exclude images/lazy-loadingrejectsscore:images) is kept, so--rule-exclude linksalso rejectsscore:reliability.Tests
packages/rules/tests/broken-links-reliability-836.test.ts: the three rules are in Reliability under Performance with the same ids, the other link rules stay in Links, andlinks/*still selects them.packages/report/tests/reliability-badge-842.test.ts: badge name and title, HTML badges for two Reliability rules and a perf rule, and a stored Links report keeping its SEO badge.apps/cli/tests/controllers/report.test.ts: slim JSON reload keeps Reliability, a pre-move export keeps Links, and an unknown name falls back to the prefix.apps/cli/tests/audit/rule-filter.test.ts: the Reliability gate is reachable throughlinks/broken-linksandlinks/*, and not throughcore/*.group-nesting,severity-and-groups,deterministic-grouping,html-status,not-checked-*;rules/categories,rules/category-alias-consistency,rules/loader,reports/diff,audit-offline-third-party-wiring;publish-cap,link-targets-not-fetched-726-e2e, and the golden suite in batches of five: 30 files, 198 tests, no failures.rule-cache-replay-golden> "a page where a rule timed out is not stored" times out locally at 180 s. I checked it with this change's sources swapped back to main's, and it fails the same way.test-suites.ts --check,tangly check --strictand the detect-secrets hook pass.Docs and skill
docs.json, with paths unchanged.links/*selects them andreliability/*does not.rules/reliability: description, intro, three cards, and a disable example that lists the ids.rules/links: the cards are removed, with a pointer to Reliability.rules/index,rules/seo,rules/performance.reports.mdx: group table, category list, and a note on stored reports and--category.cli/report.mdx: category list.--category core,linksexample still works and it does not say which category holds broken links.