Skip to content

docs(cli): offline and passive are separate axes #1225 - #1313

Closed
nc9 wants to merge 2 commits into
mainfrom
docs/1225-offline-passive-axes
Closed

nc9 wants to merge 2 commits into
mainfrom
docs/1225-offline-passive-axes

Conversation

@nc9

@nc9 nc9 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1225

Docs and help text only; no behaviour change. Per the maintainer: --offline does not imply --passive; they are two independent axes.

  • New section "Offline and passive are separate" in docs/cli/audit.mdx: defines network scope (offline or online) and probing (passive or active), with a 2x2 table of what each combination sends and where. It says plainly that -C surface --offline still sends the site probes (GraphQL and API GETs) unless --passive is set, and gives the flags for fetching pages only: squirrel audit <url> --offline --passive --disable-discovery-probes.
  • Found while checking: a --passive run still sends the ~28 discovery probes (llms.txt, /.well-known/*, ...) unless --disable-discovery-probes is also set, so "no probes" needs that third flag. Documented in the section and in docs/configuration/crawler.mdx.
  • docs/configuration/security.mdx ("Rules that probe"), the --offline row and "Fully offline audit" link to it.
  • --offline help text and the zsh and fish completion descriptions say it does not imply --passive.

Naming and help that mixes the axes (no change made)

  1. --offline was described as "fully offline", which reads as "touches nothing but the pages". Help text now says "Run offline" and points at --passive.
  2. The probing default comes from the audit level (passive for quick, active for surface and full), not from network scope, so -C quick --offline and -C surface --offline probe differently.
  3. --disable-discovery-probes is a third dial separate from --probe/--passive, although both are called probes.
  4. docs/cli/audit.mdx still has the heading "Fully offline audit" (kept so existing anchors work).
  5. The squirrelscan skill (skills/squirrelscan/SKILL.md line 184) comments --offline as "fully offline: no cloud, no publish, no telemetry". That is accurate for scope but could add --passive; a small skill tweak (a skills-labelled issue) is optional, not filed.

Gates: make validate; apps/cli format, lint, tsgo; tests/self (515 pass, covers completions). CHANGELOG under Unreleased / Fixed.

Covers exactly the re-scoped acceptance criteria on #1225: docs/cli/audit.mdx states that --offline limits network scope only and the probe level comes from --probe, its shortcuts, [security] probe or the audit level; --help and the zsh and fish completions say the same; and the docs point to the run banner's Probing line.

Not measured: the signed-in "Online" row of the 2x2 table is taken from the docs on cloud features; it was not run against a faked cloud. The offline rows were checked against real runs.

@nc9 nc9 mentioned this pull request Oct 30, 2026
3 tasks done
…passive offline run; banner and completion text #1225

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 force-pushed the docs/1225-offline-passive-axes branch from 590e51f to 4527df9 Compare October 30, 2026 07:10
@nc9 nc9 mentioned this pull request Oct 30, 2026
…and passive wording in security docs #1225

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 marked this pull request as ready for review October 30, 2026 09:05
@claude

claude Bot commented Oct 30, 2026

Copy link
Copy Markdown

Docs and help-text change with no behaviour change. The offline/passive split reads clearly, and the 2x2 table is useful. I read the diff only and ran no tests. I checked that the discovery-probe flag and the 28-request count exist in the code and docs.

  • (medium) docs/configuration/security.mdx: this PR adds reliability/broken-forms to the "Rules that probe" table, and the PR description doesn't mention it. I did not check the claims in that row (HEAD then GET, never POST, offline stays on the audited site) against the rule's run(). AGENTS.md says rule page claims must come from run(), so verify them first.
  • (low) docs/cli/audit.mdx: the sentence "robots.txt, sitemaps, the pages themselves and the checks of internal link targets are the crawl, and still run." repeats the "That still sends the crawl's own requests..." paragraph just above it. Drop one.
  • (low) docs/cli/audit.mdx: "On a small test site it was 17 requests" is a one-off measurement. It will drift and is not reproducible, and it also breaks onto its own short line. Remove it or say how to measure it.
  • (low) docs/cli/audit.mdx: the table cell says "Active (the default at surface and full)". The PR description says the Online row was not run against a faked cloud. Either say in the docs that the Online row is documented rather than measured, or verify it.
  • (nit) The --offline help text is now long, which makes the completion descriptions and --help wrap. The completion strings are already trimmed, so the help text could be shortened the same way.
  • (nit) The changelog entry is under ### Fixed but describes a docs and help clarification plus a banner string change. ### Docs or ### Changed fits better. The banner string is user-visible, so keeping a bullet is right.

The tests covering the new banner string were updated.

@nc9

nc9 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

Landed in v0.0.144 as b74ed146 3262b5bb via #1356. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.144. Closing this original.

nik

@nc9 nc9 closed this Oct 30, 2026
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.

--offline does not imply passive probing: -C surface --offline still sends GraphQL probe GETs

1 participant