Repository navigation
Conversation
…egory #703 Scripts, stylesheets and fonts that a page references are fetched by the asset phase, but no rule reported a 4xx/5xx or a failed request for them. A deploy that deletes a hashed bundle left pages unstyled while the HTML still answered 200. reliability/broken-resources reads that existing asset data (no render, no new requests): - error: a first-party script or stylesheet answers 4xx/5xx - warn: a third-party script or stylesheet or a font answers 4xx/5xx, or a request fails at the network level - info: 429, 430 and 503 are throttling, reported as unverified, never broken - info: a skipped fetch or an unmeasured kind makes the result partial - one finding per resource URL, listing every referencing page Adds the Reliability category (code reliability, group Performance) to the canonical RuleCategory union, the rules and report category mirrors, the loader, and the docs rules index and nav, with a category page and a rule page under docs/rules/reliability/. Signed-off-by: Claude <[email protected]> Co-Authored-By: Claude <[email protected]> Claude-Session: https://claude.ai/code/session_01EAUNUbvoEuJsAyiazrJXLH
…ions #707 Two faults lose form submissions with no visible error: a field with no name is never sent, and an action that answers 404, points at a staging or localhost host, or is mailto: never reaches a handler. The rule is site-scoped. Unnamed controls are reported per form, split by whether the form has a real action (warn) or not (info). Action checks reuse the crawl's status for same-site URLs, report dev hosts and mailto: without a request, and send at most one HEAD (then GET on 405/501 or a network failure) per distinct uncrawled action, through the shared probe budget. Third-party actions are checked only when external link checking is on. No POST is ever sent, and passive probing says the action was not checked. Co-Authored-By: Claude <[email protected]> Claude-Session: https://claude.ai/code/session_01EAUNUbvoEuJsAyiazrJXLH Signed-off-by: Claude <[email protected]>
|
Reviewed the diff (docs, rule, index, tests). The design is sound: HEAD/GET only, a budgeted probe, one probe per distinct URL, and sensible handling of 429/WAF. I could not run the tests here.
|
12 tasks done
Contributor
Author
Maintainer review (2026-10-12)Verdict: needs fixes (high). I reviewed head f65b4c6. This PR targets Acceptance criteria (#707)All 12 boxes are ticked, each backed by unit tests in The PR states two deviations itself:
Fixes
PR hygiene
Merge order |
nc9
force-pushed
the
claude/703-broken-resources
branch
5 times, most recently
from
October 12, 2026 21:23
e15a193 to
6ccecb8
Compare
This was referenced Oct 13, 2026
Closed
Contributor
Author
nc9
added a commit
that referenced
this pull request
Oct 13, 2026
Status-only HEAD/GET probes of form actions through the egress guard (vet and pin, no credentials, no POST, no redirects), capped at 25 per audit and 10 per site. Replaces #719. Signed-off-by: Nik Cubrilovic <[email protected]>
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.
Summary
Adds
reliability/broken-forms(#707). Two faults lose form submissions with no visible error, and nothing in squirrel checked either before this rule:name. The browser never submits it, so a visibly filled-in field is dropped. Warned when the form has a real action; reported as info when it has none, since a script may read the field.content/dev-leakageuses) andmailto:are warnings, reported without any request. A 5xx, network failure, or third-party 404/410 is a warning. 429, 503 withRetry-After, and WAF challenges are reported as unverified info, never as broken.Action checks run in this order. A
mailto:or dev-host action is classified from its URL alone. A same-site action the crawl fetched uses the crawl's status. Anything else is probed through the shared probe budget withHEAD, andGETonly whenHEADreturns 405/501 or fails at the network level. The probe method type is"HEAD" | "GET", so noPOSTis possible. Each distinct action URL is probed at most once. Third-party actions are checked only when external link checking ran. Under passive probing the result says the action was not checked. Plainhttp:actions are left tosecurity/form-https.formactionon a submit button is checked the same way as the form'saction. A control's owner is resolved from itsform=attribute, falling back to its nearest<form>, sosubmit,button,reset,image, disabled and template-contained controls are never reported.Stacking. This PR targets
claude/703-broken-resourcesbecause thereliabilitycategory it uses lives on that branch (#714, still open). It must be retargeted tomainafter #714 merges. TheCloses #707link only takes effect once this lands on the default branch.Verification
Targeted tests only, as requested. No whole-suite run.
Acceptance checklist
action="#"with an unnamed field gives info, not warn (test).form=othercontrols are not reported against their own form; an unnamed control withform="contact"outside the form is reported againstform#contact(test).POST; passive probing sends no request for an uncrawled action and says so (test).staging.example.com,localhostandmailto:actions each warn (test).Retry-After, and WAF challenges are unverified info, never broken (test).http:action on an HTTPS page is left tosecurity/form-https(test, public host).docs/rules/reliability/broken-forms.mdx, wired into nav and the Reliability index;make -C docs validatepasses.Deviations to review
http://localhostactions are both warned here (dev host, per the issue's fixture) and reported bysecurity/form-https(insecure submission). The issue's two boxes conflict on this one case. This PR follows the fixture.HEAD/GETprobe with the same verdict table. The external link checker lives inaudit-engine, whichpackages/rulescannot import. When the checker already has a row for the URL (site.externalLinks), that row is used. The issue body asks for "the same checker", which this does not meet exactly.Checklist
Signed-off-byline (git commit -s).🤖 Generated with Claude Code
https://claude.ai/code/session_01EAUNUbvoEuJsAyiazrJXLH
Generated by Claude Code