Repository navigation
Description
What happens
When a page rule runs past its time budget, the first page it times out on is reported as a failed check. The check is named <rule-id>-error and its message is Rule error: exceeded its 1000 ms time budget and was abandoned.
The rule never finished on that page, so nothing was found there. Readers still see it as a failed finding, and an error-severity one for a security rule.
Observed on cloud report 01M5CWW5X3Y358FEE8V33J35BS (scheduled audit on 2026-10-20, 10 pages, engine v0.0.120):
security/mixed-content→ checksecurity/mixed-content-error,status: "fail", details{ "timedOut": true, "budgetMs": 1000, "pages": 1 }checkTallies["security/mixed-content"]counts it as"security/mixed-content-error": { "failed": 1, "failUnits": 1 }next to"mixed-content": { "passed": 9 }siteChecksalso has the info rowsecurity/mixed-content-timeoutswithpagesNotChecked: 1, which says the page was not checked.
So the same report says both "1 page not checked" and "1 failed mixed-content check". On the previous weekly run of the same site (2026-10-13), the rule passed on all 10 pages, so this looks like a slow or busy run, not a hostile page.
Where it comes from
packages/rules/src/runner.ts:
errorChecks(around line 515): on the firstRuleTimeoutErrorfor a rule, it returns{ name: "<id>-error", status: "fail", message: "Rule error: …", details: { timedOut: true, budgetMs, pages: 1 } }(line 547).- Later pages for the same rule get
status: "skipped"withskipReason: "rule-timed-out"(line 532). - So only the first timed-out page is a fail.
- Later pages for the same rule get
collectedTimeoutChecks(around line 807): it builds the samestatus: "fail"-errorcheck for page-time extractors that ran past the budget.timeoutSummaryChecks(around line 787): it adds the-timeoutsinfo check withpagesNotChecked.
docs/rules/index.mdx ("Rule time budget") documents the current behaviour: "The report records it as a failed check named after the rule with -error on the end". So this is a request to change documented behaviour, not a regression.
Expected
A rule abandoned for its time budget is shown the same way as the other not-checked states (see #518 for skipped checks, and the unconfirmed/not-checked work): as not evaluated on that page, not as a failed finding. If it needs its own state, that state does not count as a fail and does not lower the score. The -timeouts info check that already exists can stay the place that surfaces it.
Acceptance Criteria
- In the report JSON, a rule that times out on a page shows an explicit not-evaluated / timed-out status for that page (for example
skippedwithskipReason: "rule-timed-out", or a dedicated status). It is notstatus: "fail", and that includes the first page it timed out on. -
checkTalliesdoes not count a timed-out page asfailedorfailUnitsfor that rule. - The health score of an audit where a rule times out on a page equals the score of the same audit with that page left unchecked for that rule. A timeout adds no penalty.
- Page-time extractors that run past the budget (
collectedTimeoutChecks) follow the same rule. - The
-timeoutsinfo check (withpagesNotChecked) is still emitted, and the text, markdown and HTML reports show the page as not checked, not as an issue. - The CLI and cloud audits produce the same statuses for a timed-out rule.
-
docs/rules/index.mdx("Rule time budget") and thetime_budget_msentry indocs/configuration/rules.mdxdescribe the new status.make validatepasses. - A test covers a page rule that times out on its first page and on a later page, and asserts the status, the tallies and that the score is unchanged.
skills: the squirrelscan agent skill may describe -error checks as failures; check it when this lands.
Activity
nc9 commentedon Oct 20, 2026
Second example, a different rule on a different site: cloud report
01M5DAQ857J9ZK462WFT7JX11Z(scheduled audit, 2026-10-20, 10 pages, engine v0.0.120).content/placeholder-contactgives checkcontent/placeholder-contact-errorwithstatus: "fail",Rule error: exceeded its 1000 ms time budget and was abandoned, details{ "timedOut": true, "budgetMs": 1000, "pages": 1 }.siteCheckshascontent/placeholder-contact-timeouts(info,pagesNotChecked: 1), whilecheckTalliescounts the same page asfailed: 1, failUnits: 1besidepassed: 9.Rate in the cloud reports we sampled: 2 timed-out rule checks in 13 reports since the v0.0.120 engine deployed, against 0 in about 112 reports before it. v0.0.119..v0.0.120 changes no rule-runner, budget, mixed-content or placeholder-contact code (the only rules change is
social/asset-divergence, #953). So the timeouts look like wall-clock pressure on busy runs, which is the case the docs already call out, and not a slow pattern. Each one still shows up as a failed finding.feat(rules): record the observed elapsed ms of a timed-out rule #960
test(rules): time_budget_ms test reads the elapsed ms detail #960
fix(report): a timed-out rule prints a Not checked line in the CLI an…
fix(rules): a rule abandoned for its time budget is a skipped check, …