Historical decision and proposal record. This document preserves the evaluation, the decisions at the time, and the proposed delivery plan. For current onboarding behavior, see the code map and the project setup route.
Naming note: this record keeps the names in use when it was written. The feature it calls Site Health, Page Health, Technical AEO, the technical audit, and the site audit is now Agent Readiness (CLI
canonry agent-readiness, API/agent-readiness, MCPcanonry_agent_readiness_*); the old command, route, and tool names still work as deprecated aliases. Its “Page health” view is now Score, and the onboarding stage it calls Site audit is now Scan site.
This is not a shorter setup wizard. It changes Canonry’s first mental model from an LLM query runner into an evidence-connected AEO operating platform.
Queries are sensors, not the product. Google Search Console is one evidence source, not the hook. Aero is an operator, not a support chatbot. The dashboard is the human workroom for understanding state, approving action, and inspecting evidence.
The industry is still aligning on these terms. For an operator, these labels describe the same work: improve content, observe results, and measure changes.
Canonry uses AEO internally and AI search visibility during onboarding. The first experience shows value before it explains the taxonomy.
This scope was rebased and re-evaluated against origin/main at 2067a987f, including the full-crawl graph plumbing in #976 and the agent-first Site Health map in #978.
The new implementation changes the first-value strategy:
/technical-aeo route, and opens on MapThe revised recommendation is therefore:
Domain
→ approved canonical Site Health scan
→ Page health fixes
→ optional AI Visibility setup
→ Project overview
“Technical audit” is the action. Page health is its first result during onboarding.
The shipped onboarding no longer enters the project shell and overlays a guided tour. First open stays on /setup and uses real product data in three explicit stages:
Finishing or skipping AI Visibility replaces the setup route with the exact project overview (/projects/:name). The exact project and Site Health run remain recoverable from URL and server state during setup. No local onboarding-complete flag or tutorial state is added, and graph-layout failure does not block Page health or the AI Visibility decision.
The first UI experience should show Canonry’s operating loop before asking the user to configure its paid or connected parts:
Map and check the site
↓
Define what Canonry should measure
↓
Connect demand and observe AI/search outcomes
↓
Diagnose and take a reviewed action
↓
Verify the result and keep watching
↺
The domain is the opening input. Canonry creates a minimal project and runs an approved provider-free Site Health scan while the operator remains in the focused /setup flow. Page health is the first retained proof that Canonry understands the site’s pages and can identify concrete fixes.
The destination is not “setup complete” or a raw visibility count. It is an operating brief that answers:
The review combined four disciplines:
| Discipline | Question |
|---|---|
| Product management | What product should a new operator believe Canonry is? |
| UX | What is the fastest path to a real, memorable value moment? |
| Product UI | How can the interface show breadth without creating a feature tour or configuration wall? |
| Software engineering | Which capabilities are actually shipped, which can run without credentials, and what new orchestration is required? |
The review inspected the current first-run route, project navigation, Site Health crawl/graph execution, Advanced Measurement draft flow, integrations, agents, CLI/API/MCP surfaces, reporting, automation, and the previous GSC/GA analysis.
This is a source-based expert evaluation, not a recruited usability study. It should be validated with people opening a fresh OSS install for the first time.
The previous document improved the mechanics of starting query tracking, but kept the wrong product frame:
That still teaches the user that Canonry is a tool for choosing prompts and calling LLM APIs.
The valid parts remain: domain first, GSC optional, explicit provider spend, editable demand suggestions, competitors later, and truthful fallback paths. They now sit inside a broader operating-platform model.
The experience accurately teaches the narrow mental model:
Repository evidence:
Canonry already spans the full operating loop. The onboarding should reveal these roles as one system.
| Operating role | Shipped capability | What the user should understand |
|---|---|---|
| Map the site | Canonical Site Health crawl, page/internal-link map, Inventory, exact page evidence, Properties/groups, versioned measurement plans | Canonry understands the site as structured surfaces, not only as a domain string. |
| Discover demand | GSC suggestions, Query Discovery, Research, manual/imported questions | Questions come from evidence and intent, not only a prompt text box. |
| Observe AI visibility | Multi-engine answer runs, independent mention and citation evidence, model/location comparisons | Canonry records what answer engines said, cited, and changed over time. |
| Observe search and indexing | GSC and Bing performance, coverage, sitemaps, inspections, indexing actions | AI visibility is grounded in search demand and index state. |
| Observe real activity | GA4, server-side crawler activity, AI referrals, Cloud Run, Vercel, and WordPress traffic sources | Canonry can connect visibility to crawling, visits, and outcomes. |
| Observe local and authority signals | Google Business Profile and Common Crawl backlinks | Local presence and authority are part of the operating picture. |
| Diagnose | Site Health technical checks, competitor gaps, content targets, cited sources, trends, regressions | Canonry explains likely causes and identifies the highest-value gap. |
| Improve safely | Content briefs, WordPress operations, structured data, sitemap/indexing actions, approved ad operations | Recommendations can become bounded, reviewable actions. |
| Verify | Stored evidence, diffs, history, reports, repeat measurements | Canonry proves whether the state changed after work was done. |
| Keep operating | Schedules, notifications, webhooks, Aero, external agents, MCP, CLI, API, config as code | Canonry is a persistent control plane, not a one-off report. |
Not every shipped capability has a full web-native control today. WordPress, content operations, Ads, and parts of configuration are CLI/API/MCP-first. The UI should show truthful handoffs instead of implying controls that do not exist.
The immediate onboarding aha is specific:
Canonry checked my site, showed which pages need attention, and explained the fixes. Now I can optionally see whether answer engines mention and cite me.
The visual map remains a retained Site Health capability after setup; it is not an onboarding step.
The later, connected aha remains:
Canonry found demand for this topic, showed that answer engines cite other sources instead of me, tied the gap to the relevant site surface, and proposed one safe next action with evidence.
There are four value moments:
A completed query run is useful evidence, but it is not the product definition.
The first screen should establish the platform, request one input, and provide one primary action.
┌────────────────────────────────────────────────────────────────────┐
│ CANONRY Local instance · Ready │
│ │
│ Put a site under observation │
│ │
│ Canonry connects AI visibility, search demand, site health, │
│ traffic, and authority, then surfaces the next safe action. │
│ │
│ Domain │
│ [ example.com___________________ ] [ Create and map site ] │
│ Canonry starts with a real public Site Health scan. │
│ You approve every connection, paid call, and external action. │
│ │
│ MAP PLAN OBSERVE ACT VERIFY │
│ Site health → Measurement → AI/search → Review → Monitor │
│ Structure Demand scope Outcomes safely change │
│ │
│ Aero and connected agents can operate this loop after evidence. │
│ │
│ Explore an example workspace │
│ Same product surfaces, clearly labeled read-only sample data. │
└────────────────────────────────────────────────────────────────────┘
This is one typographic operating loop, not a grid of equal feature cards. The user sees the breadth but has only one primary task.
The example-workspace action in this end-state wireframe stays hidden until the versioned read-only adapter described below is complete.
Site Health already runs through public HTTP with no answer provider or paid API call in execute-site-audit.ts. With explicit approval to scan the supplied domain, Canonry can produce:
Use the real canonical Site Health run with the existing server defaults: the full site (up to 50,000 pages) and an engine-derived link budget, with explicit partial coverage when a limit or deadline is reached. A 5–10 page preview is too small to communicate site structure and is incompatible with the current non-probe graph reads.
The map is published only when the crawl reaches a terminal complete or partial state because layout is calculated and persisted server-side. While it runs, show truthful stages, live counts, and a bounded sample of already-audited pages that need attention. Label that sample as provisional. Never show a live site score, pass state, “no issues” conclusion, progressive graph, or fabricated percentage. If layout or WebGL is unavailable, the page inventory and exact technical evidence remain the equivalent continuation path.
After the domain is accepted, keep the operator on /setup through three visible stages:
Site audit → Page health → AI Visibility (optional) → Project overview
The Site audit stage shows real persisted crawl progress. A complete or partial terminal crawl opens Page health directly, without the normal Map, Pages, or Page health tabs. The AI Visibility decision appears above the findings. Graph or WebGL failure cannot block onboarding because the setup flow does not request or render the visual map.
If an active scan is still running 20 seconds after its persisted creation time, show an explicit choice to continue into AI Visibility or finish setup while the scan continues. Do not stop the crawl, auto-navigate, or turn the provisional sample into a final Page health conclusion. Canonry completes the same bounded scan in the background; Site Health reads its saved Page health and internal dead-link evidence after terminal publication. Reloading setup must not restart the 20-second wait.
AI Visibility then reuses the existing project-scoped provider, query, competitor, and first-sweep setup. It is explicitly optional. Finishing or skipping replaces setup history with the exact project overview, so Back does not reopen onboarding.
Demand follows the site map. The map can establish which pages and folders exist; the operator may confirm which repeated surfaces represent products, locations, or other Properties. It cannot establish what buyers ask or what answer engines cite.
After onboarding, advanced operators can use the normal measurement settings to choose between two scope paths:
The selection seeds a draft only. The operator reviews every Property, group, and question assignment before publish. Never infer buyer demand from URL structure or publish a plan automatically.
When Canonry needs questions, offer four truthful paths:
GSC is the recommended path when available, but it does not define the platform.
If the public site map later reveals multiple product lines, markets, locations, or site sections, Settings can introduce Properties and Advanced Measurement. The operator should review a real measurement scope, not a flat prompt list.
Only ask for a provider when the chosen mission needs one. Query Discovery may need a provider before an answer-visibility baseline; a manual, imported, or GSC demand path may not. Explain the purpose and expected usage in the context of that mission.
Before collecting answer evidence, show:
First answer observation will add
✓ 5 reviewed buyer questions
✓ Mention and citation evidence from Gemini
✓ A brief that combines this with the existing site scan
Estimated provider calls: 5
[Start baseline]
The operator approves the provider, question scope, and expected usage. Other answer engines remain contextual additions.
Do not end at “Setup complete.” The onboarding result is Page health; the first connected result is the operating brief. The visual map remains available in the normal Site Health workspace after setup.
Initial Site Health baseline
186 pages found · 171 checked · 154 technically eligible
First finding
/emergency-services is an important linked page, but its answer
structure is incomplete. Review exact evidence and remediation.
[Inspect finding] [Set up AI Visibility]
This result is useful with no demand source, answer provider, analytics connection, or agent. It should be the first retained product surface, not an onboarding-only success card.
After demand and answer evidence are added, the same workspace graduates to:
Your first operating picture
What matters
Your site appears for branded questions but is absent from four
non-brand questions with existing search demand.
Why
Search Console shows demand, but answer engines cite three other sources.
Your relevant page is crawlable, but its answer structure and schema are weak.
Next safe action
Review an improvement brief for /emergency-services.
Evidence readiness
AI visibility Cited in 1 of 5 questions
Site readiness 62 / 100, 3 high-impact issues
Search demand Connected, 8 opportunities
Traffic outcomes Not connected
Authority Available to add
[Review first action]
Analyzed by Aero · Open analysis
Next mission: choose what Canonry should keep watching
The conclusion and one primary action dominate. Raw metrics remain supporting evidence. Monitoring returns as the next workbench mission instead of competing with the recommendation.
Aero’s first evidence-grounded analysis is a graduation moment when an agent provider is available. Without Aero, the deterministic brief still needs to explain the current state. The built-in agent must not be required to make the dashboard understandable.
The operating brief must compose truthfully from whatever evidence exists:
Aero controls appear only after evidence exists. The initial platform map can establish the agent role without presenting an empty chat surface.
Onboarding and the steady-state product should converge on the same surface.
The project Overview should lead with:
The operator should not graduate from a broad onboarding story into a query-centric dashboard. The operating brief must become the durable project home.
The onboarding narrative should use outcome language even before a full route reorganization.
| Outcome area | Content |
|---|---|
| Overview | Operating brief, readiness, current work, next action |
| Visibility | AI mentions, citations, model differences, competitive evidence |
| Opportunities | Search demand, Query Discovery, Research, content gaps |
| Site Health | Visual site map, inventory, technical checks, indexing, and schema |
| Traffic | GA4 and server-side crawl/referral evidence |
| Authority | Backlinks and cited-source landscape |
| Operations | Schedules, alerts, runs, agent activity, change history |
| Report | Evidence bundle and client-ready action plan |
| Connections | Providers, search, analytics, publishing, agent integrations |
A route consolidation is not required for the first release. The first release can preserve current routes while using this hierarchy in the launchpad, readiness model, brief, and contextual links.
Infrastructure health belongs in a compact global status or doctor drawer. It should interrupt the user only when it blocks the active mission.
| Show immediately | Activate when relevant |
|---|---|
| Canonry’s operating loop | OAuth and provider credential forms |
| Domain input and approved canonical Site Health scan with observed internal dead-link checks | Larger rescan settings |
| Evidence-readiness model | GA4 and server-log connections |
| Demand-source choices | Competitor management |
| Baseline contents and usage | Common Crawl release download |
| Aero and external-agent role | GBP, WordPress, Ads, and advanced writes |
| Example workspace, once its adapter ships | MCP/plugin/webhook configuration |
| One next action | Cron details, exports, and advanced diagnostics |
Every empty capability state should answer:
Do not use fake values outside the explicitly labeled example workspace.
Offer a secondary “Explore an example workspace” action only when its API-compatible read-only adapter ships. It is not part of the core launchpad release.
Requirements:
The existing dashboard mock data is a starting point, not a complete implementation. Several project tabs fetch live APIs, so a full sample workspace needs an API-compatible static snapshot or explicit demo adapter.
Create one shared static Capability Catalog for API, web, CLI, MCP, documentation links, and onboarding copy.
Each capability describes:
This prevents product-surface drift and gives onboarding a truthful map of the platform.
Add a thin project capabilities composite, for example:
GET /api/v1/projects/:name/capabilities
It derives current states from:
Do not run the full Doctor suite on every page load. Some checks call external services sequentially. Use stored/config state for the fast composite and run live verification on demand.
Use a normal site-audit run for the first scan. It is not disposable preview data: it is the project’s first technical baseline and belongs in Site Health history, diffs, reports, CLI, API, MCP, and agent reads.
Reuse the current crawl contract:
Do not call this a full map when coverage is partial or sampled. Show pages found, pages checked, omitted nodes/links, termination reason, and effective redirected host.
Use the stored exact-run progress DTO from site_crawl_attempts for discovered and checked counts. A separate exact-run Page health preview may read only a bounded, indexed sample of durable page-audit rows while the run is active. It must label those rows provisional and return no final score or pass claim. The browser must never render mutable attempt rows as the final graph or run layout physics.
Derive the workbench from real project state instead of a fragile linear wizard:
Preserve telemetry V1. Add a V2 mission event schema rather than changing existing event literals.
The web UI should label non-web handoffs accurately:
Do not claim the browser can execute a capability that exists only through CLI/API/MCP.
This section records the proposed scope at the time of the rework.
Build this as an additive setup orchestration layer over existing persisted project, Site Health, and AI Visibility state.
The implementation keeps the existing /setup and project routes, creates a real project before any provider work, and remains on the focused setup surface through the audit, fixes, and optional visibility stages. It enters the normal shell on the exact project overview after setup.
Six decisions keep the change inside Canonry’s current architecture:
| Decision | Technical consequence |
|---|---|
| Reuse project state | No onboardingComplete column or client-side step index becomes product truth. |
| Make the first scan canonical | Reuse the full Site Health graph, exact page evidence, history, diffs, and agent parity without a parallel preview product. |
| Reuse the persisted graph | No onboarding-specific crawl or layout schema is needed; map selection reads canonical crawl rows, not the sampled WebGL projection. |
| Add fast composite reads | Readiness and the brief come from typed server DTOs, not scattered browser cache inspection. |
| Keep the brief deterministic | The dashboard remains useful with Aero disabled and makes no ungrounded causal claim. |
| Roll out behind a runtime switch | The bundled OSS SPA can revert to the legacy experience through config or environment without rebuilding assets. |
flowchart LR
L["First-open launchpad"] --> P["Create-only project"]
P --> S["Approved canonical Site Health scan"]
S --> F["Open Page health findings"]
F --> D["Existing site_audit_* and site_crawl_* evidence"]
F --> V["Optional AI Visibility setup above findings"]
V --> H["Exact project overview"]
F --> H
Keep one route flow:
/ with zero projects
→ /setup
→ create project and request approved Site Health scan
→ remain on /setup with the exact project and Site Health run
→ open Page health directly with no view tabs
→ optional project-scoped AI Visibility setup
→ /projects/:name
Do not add an /onboarding/* route tree. Reloads, server restarts, CLI-created projects, and API-created evidence must all resume from the same durable state.
Required route changes:
GET /projects query. Redirect only after a successful empty response; an API or auth failure must render an error/retry shell, not be interpreted as zero projects. The current cache-only beforeLoad can miss a true cold load./setup as the first-open route. Select the legacy or platform experience through runtime configuration during rollout.POST /projects operation for the launchpad. The current PUT /projects/:name is an upsert and must not overwrite a same-name project after a concurrent CLI/API creation. The server normalizes and validates the canonical domain. Define a dedicated projects.write scope; the default * key/admin satisfies it. The global create route rejects viewer, read-only, and project-scoped credentials and returns 409 for a normalized name collision; it must not reuse a broad-read helper that also permits unrelated account scopes.Domain-only creation still needs explicit defaults. Derive the project slug and display name from the normalized host. Keep the domain as the only required visible input; place inferred market and language in a compact optional disclosure so they are editable without becoming new gates. Do not silently assume US and en for every operator.
Add a versioned static catalog in packages/contracts/src/capabilities.ts. It is the shared runtime product source for API, web, CLI, MCP, documentation links, and onboarding copy. Add a drift test for IDs and documentation links; do not imply that all prose documentation is generated from TypeScript.
The first catalog should include these stable IDs:
site.mappingdemand.search-consoledemand.discoverymeasurement.visibilitysearch.indexingtraffic.analyticstraffic.serverauthority.backlinkslocal.profileactions.contentactions.wordpressactions.adsoperations.monitoringoperations.agentoperations.reportingEach definition contains:
Dynamic readiness uses one state plus independent freshness:
state: available | ready | needs-connection | needs-data
| running | blocked | not-applicable
freshness: current | stale | unknown
This avoids overloading stale as both capability availability and data age.
Add:
GET /api/v1/projects/:name/capabilities
The typed response should contain:
canWrite flag is insufficient for granular scopesactiveSiteHealthRunId and latestUsableSiteHealthRunId so a reload can bootstrap progress or the exact partial/complete graph without browser-only stateEach returned action includes its required scope/control surface and an authorization result for the current caller. The server, not the browser, remains the enforcement boundary.
Derive it only from configuration and stored database state:
Answer-visibility readiness must reuse the same preflight and measurement materialization rules used by run creation. An empty project provider list inherits configured instance providers, while a V2 measurement plan pins its own engines and execution nodes; simple provider/query counts would create false blockers.
The endpoint must not run Doctor, refresh OAuth, call an answer provider, crawl a URL, or perform any external request. Doctor and the provider connection test (POST /settings/providers/{name}/test, canonry settings provider test) remain the explicit live-verification surfaces.
Connection and provider facts are therefore “configured” or “stored evidence available,” not live-verified credential claims. A provider connection’s stored lastTest is evidence of an earlier live test of its current settings, not a new check. When in-flight Aero state is required, the host must supply an explicit getAgentRuntimeState(projectId) callback from SessionRegistry; otherwise the composite reports only session existence and last activity.
Performance target for the local composite:
Current main already supplies the correct durable model. Reuse:
runs and site_crawl_run_requests for exact active-request identitysite_crawl_attempts and event receipts for mutable execution progress and idempotent event persistencesite_crawl_snapshots, pages, edges, findings, and exact page-audit evidencesite_crawl_graph_layouts, nodes, and edges for the bounded WebGL projectionNo onboarding or graph migration is required.
Use the existing operations:
POST /api/v1/projects/:name/technical-aeo/runs
GET /api/v1/projects/:name/technical-aeo/crawl?runId=...
GET /api/v1/projects/:name/technical-aeo/graph?runId=...
GET /api/v1/projects/:name/technical-aeo/crawl/pages?runId=...
GET /api/v1/projects/:name/technical-aeo/crawl/pages/audit?runId=...
GET /api/v1/projects/:name/technical-aeo/structure?runId=...
GET /api/v1/projects/:name/technical-aeo/internal-links/neighbors?runId=...
The launchpad requests a normal run with internal dead-link checks explicitly enabled. Existing run creation already replays the same active request and returns 409 for different active options. Before inserting, harden it to fail if the runtime did not supply onSiteAuditRequested; a queued run must never be stranded without an executor.
Add one small stored progress read:
GET /api/v1/projects/:name/technical-aeo/runs/:runId/progress
It verifies project and site-audit kind and returns run status, attempt state, pages discovered, pages fetched, eligible pages, observed edges, last update, and terminal graph-layout state. It performs no network work. Do not return a percent because the final discoverable page count is unknown while crawling.
Important current semantics:
runId can read a terminal partial graph, while the unscoped current graph intentionally resolves only the latest complete crawlThe crawl itself uses no answer provider or live integration. Current non-probe completion can wake proactive Aero when an agent provider is already configured. The UI must disclose that normal post-run behavior or provide a scan-only choice; it must not silently turn “Map my site” into an undisclosed billed agent call.
The visual graph is a sampled rendering transport. Measurement setup must read the canonical persisted crawl rows, never the browser selection payload or site_crawl_graph_* sample tables.
Add one transactional draft action:
POST /api/v1/projects/:name/measurement-plan/draft/actions/import-site-map
Request:
{
"runId": "...",
"selections": [
{ "kind": "page", "nodeKey": "..." },
{ "kind": "path-prefix", "path": "/locations" }
]
}
Use the existing If-Match draft ETag and Idempotency-Key contracts. The server must:
site-audit, and has canonical detailssite_crawl_pages, not only rendered nodessite-map source and crawl-run provenance into the JSON draft and audit logNo DB migration is required for V1 because the draft and discovery provenance are already versioned JSON. The operator still reviews Properties, groups, questions, and assignments. URL structure proposes measurement scope; it never fabricates buyer demand.
Automatic first-run scanning must not ship until the public-fetch boundary is verified end to end.
Current main uses the published @canonry/agent-readiness engine. The Canonry wrapper visibly resolves and rejects private addresses for the homepage and optional sitemap before delegating to the crawl engine. That does not by itself prove every redirect, nested sitemap, DNS answer, and page fetch is revalidated and pinned.
Complete a blocking spike against the pinned audit package and add or upstream the missing fetch seam. The automatic first-run scan path must enforce:
www equivalent redirect accepted automaticallyAdversarial tests must cover private redirects, DNS answer changes, nested private sitemaps, credential URLs, non-HTTP schemes, compressed/oversized bodies, infinite redirects, slow bodies, and cross-domain page locations. A rejection must occur before the forbidden network request.
Private/intranet crawling is not part of this rework. If OSS operators need it, design a separate explicit local-only opt-in later.
Add:
GET /api/v1/projects/:name/operating-brief
Define its Zod contract in packages/contracts/src/operating-brief.ts. The response contains:
empty, building, or ready stateactivePlanes[] plus single-plane or multi-plane composition; this must also represent demand-only, traffic-only, and other partial combinationsBuild it from stored evidence only. No LLM, OAuth refresh, live integration read, provider call, or crawl runs inside this GET.
Stored site evidence is eligible only while its sitemap/page hosts still match the project’s current canonical or explicitly owned domains. Changing the project domain must not let an old crawl drive the brief.
Selection is deterministic:
Tie-break by severity, observation date descending, then stable finding ID. Correlated assertions come only from a closed ruleset; V1 has no free-form inference path. The fingerprint hashes every fact that can affect output: ruleset version, project config revision, materialized provider/measurement state, readiness and connection facts, schedules, and selected evidence IDs/timestamps. Unchanged inputs therefore produce unchanged content even if database row order changes.
Current main now persists exact page factors, findings, critical defects, and recommendations behind SiteCrawlPageAuditDto. The brief can therefore select a real page-level finding and cite the exact run and node. It must still distinguish complete evidence from legacy scores-only rows and must not infer a finding from graph color alone.
Aero may explain or discuss the deterministic brief after evidence exists. It must not replace the canonical brief or become required for dashboard comprehension.
Return milestones, not one fragile wizard index:
| Milestone | Derived truth |
|---|---|
| Technical baseline started | A canonical site-audit is queued or running for the current project domain. |
| Site structure ready | A terminal complete/partial crawl has details and at least one canonical page; coverage and host still match the project. |
| Visual map ready | The exact crawl has a ready persisted layout with at least one node; inventory fallback remains valid when layout/WebGL is unavailable. |
| Measurement scope drafted | At least one operator-reviewed Target is included in the draft. |
| First value | The deterministic brief selected an exact evidence-backed finding; merely rendering graph nodes is not enough. |
| Measured | A completed/partial non-probe visibility run has usable snapshots and, for a plan-aware run, measurementRunCompleteness.complete is true. |
| Watching | At least one explicitly confirmed evidence/site schedule is enabled; a future health/Doctor-only schedule does not count. |
| Operating | Deferred from V1 until recommend, approval, execution, and verification predicates are defined; agent attachment or any ready action is not enough. |
Initial delivery needs no activation-state migration. Project records, canonical crawl evidence, queries, measurement plans, runs, schedules, notifications, and agent attachment are already durable.
Do not use local storage for semantic progress. Accordion expansion, selected mission, and unsaved form text may remain ephemeral.
If user research later requires a durable “defer,” intro dismissal, or manual-monitoring choice that creates no canonical artifact, add a small project-scoped, versioned preferences table. It may persist choices and timestamps only; it must never persist derived milestones or an onboardingComplete boolean.
Create these components:
apps/web/src/components/onboarding/PlatformLaunchpad.tsxapps/web/src/components/onboarding/ActivationWorkbench.tsxapps/web/src/components/onboarding/ActivationMission.tsxapps/web/src/components/onboarding/SiteScanMission.tsxapps/web/src/components/onboarding/SiteMapReveal.tsxapps/web/src/components/onboarding/EvidenceReadiness.tsxapps/web/src/components/onboarding/DemandSourceChooser.tsxapps/web/src/components/onboarding/BaselineApproval.tsxapps/web/src/components/project/OperatingBrief.tsxapps/web/src/components/project/SiteMapExplorer.tsxCreate these state boundaries:
apps/web/src/queries/use-project-capabilities.tsapps/web/src/queries/use-operating-brief.tsapps/web/src/queries/use-activation-workbench.tsapps/web/src/queries/use-site-health-map.tsapps/web/src/lib/activation-model.tsuseActivationWorkbench joins the server composites through a pure deriveActivationWorkbenchVm() function. It does not infer readiness from unrelated React Query caches. Poll capabilities and exact Site Health progress only while work is queued/running; otherwise use normal staleness plus focus invalidation.
Before adding more hooks, extract the current Overview branch from ProjectPage.tsx into ProjectOverviewSurface.tsx. ProjectPageContent already coordinates a large hook graph and has a dedicated loading shell to prevent conditional-hook failures.
In onboarding mode, reuse SiteHealthSection while hiding history, ordinary scan controls, view tabs, map, and inventory. Expose only persisted progress, Page health, retry, and continuation actions. Sigma, Graphology, and WebGL stay out of the setup path.
Modify the existing surfaces as follows:
SetupPage.tsx becomes a runtime-selected legacy or platform route container. The platform branch contains no provider, query, competitor, or run gate before project creation.App.tsx keeps every /setup stage focused. Project-list refreshes must not make the normal shell appear mid-flow.routes.tsx validates experience and honors ?experience=legacy only on /setup; the typed router must not silently discard the rescue switch.ProjectPage.tsx remains the normal post-setup product surface and does not own onboarding state or guided-tour behavior.AeroBar.tsx exposes the command bar only after first evidence when agent mode is enabled and an agent provider is configured. This is stored readiness, not a live credential guarantee; operation errors remain recoverable. Before that, readiness copy explains its role.run-invalidations.ts and connection/query/schedule mutations invalidate the capability and brief composites.fetch() is added.Launchpad submission order:
/projects/:name/technical-aeo when dispatch settles or times out; never hold the valid project on the form indefinitely.A failed scan never deletes the project or returns the user to a blank form.
The workbench reuses existing product surfaces rather than inventing a parallel query store:
| Mission | Existing destination |
|---|---|
| Review site scope | Site Health Map/Inventory, then a draft-only map import action |
| Search Console demand | Search Engines / GSC connection and suggestions |
| Query Discovery | Query Discovery session and promotion preview |
| Import a plan | Portfolio / Advanced Measurement draft and publish |
| Add questions manually | Existing query manager |
No branch auto-adds a suggestion. Each produces a reviewable measurement scope with provenance.
For structured sites, selected pages or path families from the map seed the existing Advanced Measurement draft. For simple sites, skip Property authoring and proceed to questions. Do not force every project through the five-step Advanced Measurement wizard merely because a crawl exists.
Treat least-privilege GSC as its own auth change. Initial authorization requests the read-only Search Console scope. Write actions use explicit signed-state scope profiles for GSC write or Indexing elevation; the callback merges granted scopes and preserves the existing refresh token when Google omits a replacement. Existing broad tokens remain valid. Sitemap submission and indexing writes detect missing scopes and request elevation at the point of mutation. GSC remains optional; cancellation, no data, or a property mismatch returns to the peer demand choices without resetting the project.
Before the first canonical answer run, add an authoritative estimate/approval operation built from the same materialization logic that stamps a run:
POST /api/v1/projects/:name/runs/estimate
The run start rejects a stale estimate rather than silently expanding scope after a concurrent CLI or API change. Query Discovery needs its own explicit probe-budget display because its seed, probe, and classification work is not equivalent to one answer per tracked question.
The estimate response carries an approvalDigest. POST /projects/:name/runs accepts that digest for the activation start; the server rematerializes the same query/plan revision, provider, model, location, and execution-node inputs and rejects a mismatch. The UI cannot enforce stale-scope safety by itself.
Before first evidence:
After first evidence:
Monitoring is an explicit mission. Reuse existing schedule and notification rows; do not create a schedule automatically. “Watching” is reached only after the operator confirms a cadence.
Viewer, read-only key, and embed modes may render evidence and readiness, but every mutation control must be removed or disabled according to that action’s real server authorization. Do not expand a global canWrite result into permission for unrelated scopes. Capability actions must say web, CLI, API, MCP, or docs accurately.
Add a runtime mode such as:
dashboard.onboardingMode: legacy | platform | auto
CANONRY_ONBOARDING_MODE=legacy|platform|auto
Environment overrides config. auto selects the platform experience only after a successful authoritative project-list read reports zero projects; a read failure is an error, not “empty.” Fresh browser sessions default to auto when no mode is injected. An explicit runtime value in window.__CANONRY_CONFIG__ overrides that default; do not use a build-time VITE_* flag because the OSS package ships one bundled SPA.
Retain ?experience=legacy as the rescue path for operators who need the established wizard.
Preserve onboarding telemetry V1 and its callback unchanged. Add a strict V2 activation schema, a separate POST /api/v1/telemetry/activation transport/callback, and separate event names:
activation.startedactivation.mission_startedactivation.mission_completedactivation.mission_blockedactivation.site_map_viewedactivation.page_finding_viewedactivation.measurement_scope_draftedactivation.first_value_viewedactivation.brief_viewedactivation.monitoring_decidedAllow only stable enums, booleans, and coarse count/time buckets. Never emit a domain, URL/path, query text, OAuth property, provider error text, model response, or credential. Telemetry must remain best-effort and must never block activation.
| Layer | New files | Important modifications |
|---|---|---|
| Contracts | capabilities.ts, operating-brief.ts |
technical-aeo.ts progress DTO, measurement-draft.ts map-source action, telemetry.ts, index.ts |
| API routes | platform-readiness.ts, operating-brief.ts, optionally measurement-site-map-import.ts |
projects.ts, technical-aeo.ts, measurement-discovery-v2.ts, telemetry.ts, auth.ts, index.ts, OpenAPI registration |
| Runtime | public-fetch verification/hardening seam | execute-site-audit.ts, server.ts, config.ts, runtime HTML config injection |
| Generated client | generated SDK and React Query operations | regenerate packages/api-client-generated/src/generated/ |
| Web | onboarding components, SiteMapExplorer.tsx, ProjectOverviewSurface.tsx, activation/site-map queries, activation-model.ts |
SiteHealthSection.tsx, SetupPage.tsx, ProjectPage.tsx, App.tsx, routes.tsx, SiteGraphSigma.tsx, AeroBar.tsx, invalidation and styles |
| MCP/CLI | read-only capabilities and operating-brief tools plus CLI commands | client methods, CLI dispatch/printing, tool registry, OpenAPI classification |
| Tests | progress, map import, workbench, brief, launchpad, security, and activation-model suites | preserve current Site Health/Sigma coverage and replace legacy wizard assertions only after equivalent platform coverage lands |
Every new route gets a registered Zod schema and generated client operation. Do not add a loose-object OpenAPI response.
Expose capabilities and operating brief as read-only core MCP tools. The existing Site Health CLI/MCP action remains the canonical scan control. Add map-to-draft import to the existing measurement-draft action family so browser and agents share the same reviewed mutation contract.
Admit the two new reads under the existing Overview embed allowlist in auth.ts. The embed UI cannot truthfully render readiness if those reads are rejected even though Overview itself is allowed.
Ship explicit CLI read parity in the same contract slice:
canonry capabilities <project> [--format json]
canonry operating-brief <project> [--format json]
These commands render the server DTOs; they do not reimplement readiness or brief rules in the CLI.
POST /projects, exact authorization, normalization, typed conflict behavior, generated client, and cross-scope tests.SiteMapExplorer in the normal Site Health workspace, retain the canonical page hierarchy, and add lazy-load, reduced-motion, narrow-screen, WebGL, layout-failure, and Inventory-fallback coverage. This is not an onboarding dependency.auto while retaining the legacy rescue path.mock-data.ts.Each PR must be independently deployable and backward compatible. Do not replace SetupPage, add preference persistence, and change canonical run semantics in one PR.
With parallel implementation, the first coherent slice is a one-day build because #976/#978 already shipped the expensive crawl, persistence, layout, graph, inventory, page evidence, and canonical Site Health UI.
Include:
Do not include automatic map-to-Property inference, the capability catalog, operating brief, Google auth changes, or provider estimate in that one-day slice. Those remain the dependency-ordered continuation above. If the audit-engine fetch-control spike finds an upstream gap, ship the slice dark and do not enable automatic scanning until the gap is fixed.
Backend:
Frontend:
0 or 0%Rollout:
auto chooses platform only after a successful empty project-list read; manual /setup on an existing install and list-read failures do not enter fresh-install activationDo not use one binary onboarding-complete event.
| State | Truthful outcome |
|---|---|
| Site structure ready | A canonical terminal complete/partial crawl has usable inventory for the current canonical/owned domain. |
| Visual map ready | That exact crawl has a published graph layout; Inventory is the fallback, not a fabricated map. |
| Scope drafted | At least one operator-reviewed measurement Target is included in the draft. |
| First value | The deterministic operating brief selects at least one evidence-backed finding. |
| Measured | A complete, non-probe answer measurement produced usable evidence. |
| Watching | The operator explicitly enabled at least one evidence/site monitoring schedule. |
| Operating | Deferred until Canonry can derive concrete recommendation, approval, execution, and verification predicates. |
First-session success is useful Page health evidence plus an exact finding. Connected first-session success is the operating brief. Product activation is Watching, not wizard completion.
A technical audit, organic evidence, demand, or visibility finding may create first value when the deterministic brief selects it. Aero may explain that finding, but agent prose alone does not create the milestone. The visibility baseline is one mission completion, not the universal definition of activation.
Primary:
Supporting:
Do not optimize primarily for query count or wizard completion.
These describe the user-visible outcomes, not implementation order. The dependency-ordered delivery plan above is authoritative; flagged UI stays dark until its API and security prerequisites land.
Test at least these fresh-install paths:
The 15-second comprehension test is decisive:
If a new operator says “Canonry sends questions to LLM APIs,” the rework failed.
The target understanding is:
Canonry monitors how my site performs across AI search, explains why it changes, helps me take a safe action, and keeps verifying the result.
GSC remains the best recommended demand connector because it can seed editable, high-impression question candidates from real search behavior.
For a self-hosted OSS instance:
gcloud can detect the active account/project and enable an API after confirmation. A future Canonry helper can calculate callback guidance, open the relevant Console screen, import credentials, and run diagnostics. Neither path can programmatically create Canonry’s normal generic OAuth client and consent configuration.
A future helper can guide:
canonry google bootstrap
1. inspect account and project
2. confirm API enablement
3. show the exact redirect URI
4. guide manual OAuth-client creation
5. import and validate credentials
6. connect and select the GSC property
GA4 is outcome evidence, not the default hook. It becomes relevant when the operator asks whether AI/search visibility produced visits and traffic or referral outcomes.
The current dashboard uses a GA property ID plus service-account JSON and prior Viewer access. gcloud can create service-account infrastructure, but the Analytics property still needs explicit administrator authorization. Service-account keys are long-lived and can be blocked by organization policy.
GA can have an advanced installer later. It should not replace GSC for demand discovery or block first value.
The current Google implementation assumes a confidential Web OAuth client with a secret. A future local flow could use a Desktop client with PKCE and a loopback callback, but that is an auth architecture change. Remote self-hosted deployments should use an operator-owned Web client and exact HTTPS redirect URI.
Existing gcloud authentication does not automatically become a durable Canonry GSC or GA connection.
auto, preserve runtime overrides, and keep the legacy rescue path.@canonry/agent-readiness expose and prove enough fetch control to enforce redirect, DNS-rebinding, size, domain, and abort guarantees for every page and nested sitemap, or is an upstream change required?