Skip to content

docs(cloud): cloud version page (#1743); feat(engine): site pages record their canonical, cloud merge folds variants into knownPages (#1350, #1031) - #1789

Merged
nc9 merged 2 commits into
mainfrom
feat/pub-stack-1743-1386-1350-1031
Nov 12, 2026
Merged

nc9 merged 2 commits into
mainfrom
feat/pub-stack-1743-1386-1350-1031

Conversation

@nc9

@nc9 nc9 commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1743. Part of #1350 and #1031 (the public half; the hosted half is a private PR that depends on this).

Docs (#1743)

docs/cloud/version.mdx: the cloud has one version for the API, dashboard, admin, web and workers, separate from the CLI's v0.0.x; what -dev<N> means; where to read it (sidebar badge, GET /health, hosted MCP serverInfo.version). developers/mcp.mdx says the hosted server reports the cloud version and the local squirrel mcp the CLI's. Linked from the nav and the cloud overview.

Engine (#1350, #1031)

  • SitePageRecord.canonical?: string | null: the page a query-string variant counts with. Optional; a store that never writes it, and a producer that reports no variants, behave exactly as before (rows carry no canonical key).
  • runCloudSmartAudits takes canonicalVariantPages (the crawl's folded variants) and records them on the pages' rows, clears the field when a page stops being a variant, and keeps stored values when a producer reports none. Over the site's ACTIVE pages (this run's and the stored ones) it builds the variant map once, in the shared tail, so the sampled, complete-store (streamed and materialized) and untouched-split paths all get it.
  • Folded: coverage.knownPages counts a variant with its canonical page, out of both the active set and the audited floor it is compared with. Not folded, by design: coverage.auditedPages (what the run crawled, what billing reads), the union rule results, the tallies, the score, carriedFindings and persistedFindings. The result returns canonicalVariantOf so the server folds the merged report's display after scoring (foldChecksToCanonical).
  • coverage.carriedPagesOutsideCrawl: pages carrying a finding no run re-observed that are not in this run's crawl, counted with variants folded. Only when the caller passes countCarriedPagesOutsideCrawl (so default reports are byte-identical). An untouched-split provider reports its pages as aggregate.pages; without it the count is left out rather than undercounted.
  • generateReportFromStorage takes exportCanonicalVariants: lists canonicalVariantPages (max 1000, canonicalVariantsComplete: false past it) without folding anything. The list is ALWAYS sent when the page features could be read, an empty one included; unreadable features send nothing. In the merge a list that is not canonicalVariantsComplete: false is the whole truth for the crawled pages (a page it does not name has its recorded canonical cleared, so a stale variant stops folding); a clipped list only adds. A server that merges and persists the report must not receive it folded (the findings are keyed on the page URLs).

Tests: canonical-variants-merge-1350.test.ts (sampled and streamed: knownPages and the carried-page count fold; auditedPages, union, tallies and persisted findings equal with and without variants; rows record and clear canonical; no variants = the old result) and two builder tests (export changes nothing else, byte-identical without variants). make validate passes. No em dashes.

Skill check: the squirrelscan agent skill needs no change.

@nc9 nc9 changed the title docs(cloud): cloud version page (#1743) docs(cloud): cloud version page (#1743); feat(engine): site pages record their canonical, cloud merge folds variants into knownPages (#1350, #1031) Nov 12, 2026
@nc9
nc9 force-pushed the feat/pub-stack-1743-1386-1350-1031 branch 4 times, most recently from 46aacbb to 30758ec Compare November 12, 2026 07:36
…> means, where to read it #1743

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 force-pushed the feat/pub-stack-1743-1386-1350-1031 branch from 30758ec to 7fb82c1 Compare November 12, 2026 07:44
@nc9
nc9 marked this pull request as ready for review November 12, 2026 07:49
…ariants with their canonical page in knownPages and counts carried pages outside the crawl #1350 #1031

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 force-pushed the feat/pub-stack-1743-1386-1350-1031 branch from 7fb82c1 to 6002a09 Compare November 12, 2026 08:20
@nc9
nc9 merged commit a69e2a3 into main Nov 12, 2026
16 checks passed
@nc9
nc9 deleted the feat/pub-stack-1743-1386-1350-1031 branch November 12, 2026 08:42
@nc9 nc9 mentioned this pull request Nov 12, 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.

docs: the cloud has its own version, separate from the CLI's

1 participant