Repository navigation
docs(cloud): cloud version page (#1743); feat(engine): site pages record their canonical, cloud merge folds variants into knownPages (#1350, #1031) - #1789
Merged
Conversation
nc9
force-pushed
the
feat/pub-stack-1743-1386-1350-1031
branch
4 times, most recently
from
November 12, 2026 07:36
46aacbb to
30758ec
Compare
…> means, where to read it #1743 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
feat/pub-stack-1743-1386-1350-1031
branch
from
November 12, 2026 07:44
30758ec to
7fb82c1
Compare
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
force-pushed
the
feat/pub-stack-1743-1386-1350-1031
branch
from
November 12, 2026 08:20
7fb82c1 to
6002a09
Compare
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.
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'sv0.0.x; what-dev<N>means; where to read it (sidebar badge,GET /health, hosted MCPserverInfo.version).developers/mcp.mdxsays the hosted server reports the cloud version and the localsquirrel mcpthe 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 nocanonicalkey).runCloudSmartAuditstakescanonicalVariantPages(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.coverage.knownPagescounts 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,carriedFindingsandpersistedFindings. The result returnscanonicalVariantOfso 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 passescountCarriedPagesOutsideCrawl(so default reports are byte-identical). An untouched-split provider reports its pages asaggregate.pages; without it the count is left out rather than undercounted.generateReportFromStoragetakesexportCanonicalVariants: listscanonicalVariantPages(max 1000,canonicalVariantsComplete: falsepast 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 notcanonicalVariantsComplete: falseis 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 clearcanonical; no variants = the old result) and two builder tests (export changes nothing else, byte-identical without variants).make validatepasses. No em dashes.Skill check: the squirrelscan agent skill needs no change.