Skip to content

release: v0.0.134 batch - #1149

Merged
nc9 merged 33 commits into
mainfrom
integration/v0.0.134
Oct 26, 2026
Merged

nc9 merged 33 commits into
mainfrom
integration/v0.0.134

Conversation

@nc9

@nc9 nc9 commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

One CI run for the v0.0.134 queue. Every commit is the original PR's commit (author and DCO sign-off kept); the only new commit is the CHANGELOG rebuild. This PR is merged with "Rebase and merge" so each commit lands on main individually, then the source PRs are closed.

PR Author Summary
#1147 nc9 robots Crawl-delay: finite, non-negative only; CHANGELOG dedupe
#1148 nc9 shared capped-crawl skip reason and a Not checked line with a --max-pages hint
#1138 nc9 docs: org role matrix, sessions and MCP follow it
#1139 nc9 docs: invites by email, limits
#1135 nc9 parser: memoized ancestor walks (WeakMap)
#1127 WilliamK112 perf/lcp-hints: expose preload evidence
#1117 WilliamK112 explicit opt-in for gaps rules
#1118 WilliamK112 preserve stored scan scope
#1119 WilliamK112 gate concurrent crawl resumes
#1125 nc9 docs: published reports redact secrets in crawled URLs
#1132 nc9 perf: aria-text and aria-hidden-focus single pass
#1131 nc9 chore: no Gemini default model
#1130 nc9 custom header that differs only in case replaces the built-in
#1108 nc9 x-frame-options: unrecognised values and frame-ancestors
#1109 nc9 i18n/hreflang: language and region code validation
#1081 WilliamK112 audit-engine: drop carried rule errors

Conflicts resolved: #1130 import lines (merged with the egress imports on main), CHANGELOG (rebuilt once under Added, Fixed, Security).

Local checks before pushing: tsgo on core-contracts, utils, parser, crawler, rules, report, audit-engine and cli; docs make validate.

Docs: included per PR. Skill: see each PR; no skill change in the batch itself.

nc9 and others added 30 commits October 26, 2026 18:16
A Crawl-delay-only group is kept since #996, so `Crawl-delay: -1` (or `1e999`, Infinity, which a published report serializes as null) reached the report as a delay. Only a finite, non-negative delay is stored now; any other is ignored like an unparseable one.

Signed-off-by: Nik Cubrilovic <[email protected]>
The squash of #1136 kept all three drafts of its entry; the last one, which names the span caps, stays.

Signed-off-by: Nik Cubrilovic <[email protected]>
…d reason (#1144)

orphan-pages, weak-internal-links and no-contextual-inbound skipped a capped crawl with a repeated literal that was not in NOT_CHECKED_SKIP_REASONS, so reports showed the rules as clean and a consumer closing findings on absence closed them. The reason is now CRAWL_CAPPED_SKIP_REASON in core-contracts, with the same text published reports carry, and a not-checked reason: every report shows a Not checked line with a --max-pages hint, the capper keeps the row, and it never resolves an open finding.

Signed-off-by: Nik Cubrilovic <[email protected]>
…w it

- cloud/team.mdx: what each role can do, the forbidden_role answer, keys are their scopes, sign-ins end on a demotion
- authentication.mdx: login sessions hold their role's scopes (no longer full access)
- mcp.mdx: an OAuth sign-in follows the role
- cli/keys.mdx: plain member -> editor, viewer or billing member

Signed-off-by: Nik Cubrilovic <[email protected]>
…ation feed needs audits:read

Signed-off-by: Nik Cubrilovic <[email protected]>
…t, not per link

Profiling parsePage on a 20,000-deep page named the step: both link
extractors walked every anchor's ancestors to the root, for its sitewide
chrome flag (and, in extractors/links.ts, its position). A page of nested
links walked the tree once per link: 20,000 levels took 12.5 s to parse, and
the crawler's extractLinks 64 s. Each walk now stops at the first element an
earlier anchor answered for. Every anchor gets the answer it got before.

squirrelscan/repo#3356

Signed-off-by: Nik Cubrilovic <[email protected]>
… page is never kept alive

CI's page-rule-residency-2343 read 1.82 MB for the bounded arm on f12e92d (budget 1.5 MB, about one 384 KB page's DOM). It passes locally on macOS and on Linux arm64 at 0.07-0.09 MB, and main and this PR's earlier head passed CI, but a memo Map keyed by elements is exactly what a stale conservative stack slot can pin, with the page's whole DOM behind it. Both memos are WeakMaps now. A test keeps the memos alive past their page and asserts the page is collected; with a Map it fails.

Signed-off-by: Nik Cubrilovic <[email protected]>
…passed

A stale slot from the latest call can pin its own page in any test, the same conservative scan the test guards against; a memo holding its keys strongly keeps every page, so asserting the first two of three is as sharp and cannot flake on the last.

Signed-off-by: Nik Cubrilovic <[email protected]>
Content-shaped values under session-like names stay as written.

Signed-off-by: Nik Cubrilovic <[email protected]>
…once per nested element

a11y/aria-text ran querySelectorAll("*") per role="text" element, and
a11y/aria-hidden-focus did so per aria-hidden container plus an ancestor walk
per descendant: quadratic and cubic in nesting depth (5,000 nested role="text":
35 s; 1,000 nested aria-hidden: 56 s). aria-text now counts each element's
focusable descendants from a running counter between entering and leaving it;
aria-hidden-focus takes each container's findings from the run of reportable
elements between its entry and exit positions in one pre-order walk, with the
same order and multiplicity. After: 23 ms and 150 ms at 5,000 levels.

The previous implementations are kept as a test oracle; a parity test compares
both on 600 seeded random pages, and a budget test pins 5,000 levels under 1 s.
Benchmark record and harness in benchmarks/.

Fixes squirrelscan/repo#3066.

Signed-off-by: Nik Cubrilovic <[email protected]>
- aria-hidden-focus walks every top-level element, not only documentElement
  (a page with no <html> tag, a warning printed ahead of the doctype, content
  after </html>); a self-focusable aria-hidden honeypot keeps its honeypot label
- neither walk enters a <template>, as the old document-wide queries did not;
  a role="text" template counts its own content as before
- the parity generator adds those document shapes, templates, aria-hidden
  controls and SVG links (both previous versions fail it); 30 s test timeout

Refs squirrelscan/repo#3066.

Signed-off-by: Nik Cubrilovic <[email protected]>
The cloud runs one LLM, Luna via OpenRouter (Gemini removed in the cloud
API, squirrelscan/repo#3349). DEFAULT_CLOUD_AUDIT_MODEL follows, and three
comments that named Gemini Flash now say LLM.

Signed-off-by: Nik Cubrilovic <[email protected]>
…ity signals list up to three

Signed-off-by: Nik Cubrilovic <[email protected]>
…places the built-in one

Every crawl request built its headers by spreading records
({ "User-Agent": ua, Accept, ...customHeaders }). A custom header whose name
differed only in case (user-agent, accept) became a second key, and
new Headers(record) appended both, sending a combined value. mergeHeaderRecords
(utils/headers) merges case-insensitively, later wins, and is used by the page
fetch (standard and document fetcher), robots, sitemaps, llms, markdown,
well-known, rsl, agent-access, the asset checks, the script fetcher and the
cloaking probe. The CLI's -H parse and its merge over [crawler] headers are
case-insensitive too.

Fixes squirrelscan/repo#3346.

Signed-off-by: Nik Cubrilovic <[email protected]>
- the cloaking probe's Googlebot fetch keeps its agent over a custom one, and
  the markdown probe its Accept (each is what the probe tests)
- Range (the size check's byte window) and the sitemap Accept-Encoding (only
  codings the reader decodes) are laid after the custom headers
- soft-404 merges a custom-header record before building Headers, so x-a and
  X-A in one TOML table go out once
- tests: CLI -H over [crawler] headers across casings, the agent-access
  identities, a real-server cloaking agent check, the Accept check that could
  not match; docs scoped to requests that carry the custom headers

Refs squirrelscan/repo#3346.

Signed-off-by: Nik Cubrilovic <[email protected]>
Rebuilt from HEAD plus each included PR's own lines: duplicated a11y and header-case bullets collapsed, entries put under their sections.

Signed-off-by: Nik Cubrilovic <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

PR too large for auto-review

This PR is 116 changed files (limit 80), so the automated reviewer was skipped: past that size it runs out of turns mid-session and posts nothing, which is worse than saying so.

Run it manually (/review, or a focused review per area) before merging, or split the PR.

Diff measured: 116 reviewable files, 4038 changed lines (0 generated files ignored).

@nc9
nc9 merged commit 4655ed8 into main Oct 26, 2026
15 checks passed
@nc9
nc9 deleted the integration/v0.0.134 branch October 26, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants