Skip to content
Topolo Platform Topolo Docs
Open workspace
Documentation

Web

Build, preview, quality-check, publish, and recover responsive websites through a typed agent workflow.

On this page

What It Is#

Topolo Web is a website studio and publishing runtime. Human users can work in the browser studio; Codex, Claude, and other authenticated agents can use the same product through credential-scoped actions published by Topolo Developers.

The agent interface is repository-independent. It publishes the complete site-content JSON Schema, renderer-backed block catalog, required responsive viewports, a full example, deterministic quality findings, preview/public URLs, publish preflight, immutable versions, and recovery actions.

Architecture#

Topolo Web separates its authenticated studio and control-plane API from the public site runtime. Topolo Developers owns publication and credential-scoped projection of machine actions; Topolo Auth supplies identity, organization context, service permissions, and API-key resource bindings. Topolo Web remains the target-owned authorization, site-data, rendering, quality, versioning, and domain boundary.

Workspace Management#

The shared Topolo workspace control reads and manages app-scoped workspace identity through Topolo Auth: authenticated users can list, create, rename, choose a default, and delete an eligible workspace. Workspace IDs and slugs remain stable and exactly one default is explicit. The selected platform workspace scopes this application's app-owned records; the app retains only domain-specific deletion guards for default or non-empty workspaces.

Runtime Surfaces#

  • https://web.topolo.app — authenticated website studio
  • https://web-api.topolo.app — credential-protected site control plane
  • https://sites.topolo.app — public site runtime

API Reference#

Agents should use the Topolo Developers action catalog described below. The action definitions publish the exact routes and schemas needed by CLI and MCP clients, so callers do not need to construct control-plane URLs directly.

Open any Web contract in the Agent Actions reference, or follow the exact docsUrl returned by action discovery.

Workspace management#

The authenticated studio exposes workspace settings from the shared workspace switcher. Users with the matching permissions can create and rename workspaces, choose the default workspace, and delete an empty non-default workspace. Renaming preserves the workspace's stable id and slug; changing the default is a separate operation.

Agents can use the same declared actions:

ActionPermissionBehavior
app_topolo_web.workspaces.listworkspace:readList the caller's accessible Topolo Web workspaces
app_topolo_web.workspaces.createworkspace:writeCreate a workspace after confirmation
app_topolo_web.workspaces.renameworkspace:writeChange the display name without changing the stable slug
app_topolo_web.workspaces.default.setworkspace:writeSelect the default workspace for the organization
app_topolo_web.workspaces.deleteworkspace:deleteDelete an empty non-default workspace after destructive confirmation

Mutation calls require the exact target workspace resource context. Auth validates access before Topolo Web applies its product-owned lifecycle rules.

Capability discovery#

Start with the capability action instead of constructing a site from memory:

bash
topolo actions capabilities --service web --json
topolo actions get app_topolo_web.sites.capabilities.get --json

sites.capabilities.get returns:

  • the current public contract version
  • canonical site-content and build-input schemas
  • allowed block types, fields, presentations, and presentation intent descriptions
  • canonical examples for every supported site intent
  • audience-specific composition recipes with a visual thesis, ordered content plan, interaction thesis, and failure modes to avoid
  • mobile, tablet, desktop, and 4K QA viewports
  • the ordered build and publication workflow

Do not add fields or block types that are absent from the returned contract.

Composition contract#

Supported blocks publish renderer-backed presentations in the returned block catalog. A presentation changes the composition and hierarchy of a block, not only its border or background. Every option includes a description of its intended use. Use only a value declared for that block; validation and write actions reject cross-block presentation values.

The current composition families include:

PresentationIntended use
columnsCardless accent columns with section copy beside the items
mosaicAn asymmetric editorial hierarchy for feature and application grids
ruledNumbered proof points separated by rules
dividedA high-contrast metric band
editorialAn asymmetric, magazine-like composition for heroes, stories, and image narratives
manifestoAn oversized defining statement for a story block
spotlightOne dominant customer quote with supporting testimonials
posterA media-led hero or image moment with copy integrated into the frame
tiersHorizontal pricing rows for plan comparison
splitSection copy beside a structured comparison surface
timelineNumbered chronological or process content
annotatedDense source or legal references with annotations
cardsA balanced responsive card grid when equal emphasis is intentional

For presentations whose block-catalog entry has supportsItemsPlacement=true, set style.itemsPlacement to left or right to reverse the relationship between section copy and repeated items. style.imagePlacement controls the copy/media relationship on supported hero and image compositions, as well as media and captions inside image frames. Both fields can be overridden at the declared responsive breakpoints.

Composition recipes and quality#

The returned compositionRecipes cover platform, venture-investor, angel-investor, partner-channel, and marketplace-developer narratives. Recipes are planning guidance, not fixed templates: preserve the recipe's audience and visual thesis while adapting the content plan to verified material and the available assets.

Do not build a long page by cloning one feature-card section and changing the nouns. Quality reports flag:

  • composition_repetition when one visual family dominates a long page
  • composition_media_thin when a long page lacks purposeful media-bearing sections
  • composition_layout_flat when a long page never uses structural layout blocks
  • section_presentation_invalid when a block persists a presentation it does not declare

The first three findings are composition warnings that require visual judgement; the last is a blocking contract error. Agents must still inspect the whole page at every required viewport because a valid schema cannot prove that copy length, art direction, crop, spacing, or rhythm is good.

Composition is part of the public contract. An agent should discover it from sites.capabilities.get, choose deliberately from the selected block's presentations, validate the complete payload, and visually inspect the result at every returned viewport. Do not infer a presentation from its name or use a presentation on a block that does not declare it.

Build workflow#

  1. Call sites.capabilities.get and construct only declared content.
  2. Call sites.validate with the complete site and content payload. This is a read-only POST and does not persist data.
  3. Validate and plan sites.build locally, then execute it with publish=false after confirmation.
  4. Read sites.preview.get and sites.quality.get.
  5. Inspect the draft at every required viewport. Resolve every blocking quality issue.
  6. Call sites.publish.preflight. Continue only when canPublish=true.
  7. Plan and confirm sites.publish.
  8. Open the returned public URL and confirm the returned immutable version is active.

The primary action ids are:

ActionBehavior
app_topolo_web.sites.capabilities.getRead schema, catalog, examples, composition recipes, viewports, and workflow
app_topolo_web.sites.validateValidate content and quality without persistence
app_topolo_web.sites.buildCreate one site and draft content; optionally publish
app_topolo_web.sites.preview.getRead stable draft/public URLs and required viewports
app_topolo_web.sites.quality.getRead deterministic quality findings
app_topolo_web.sites.publish.preflightCheck launch readiness without mutation
app_topolo_web.sites.publishCreate and activate an immutable version
app_topolo_web.sites.versions.listList versions belonging to a site
app_topolo_web.sites.versions.restoreRestore a selected version as a new active version

Site creation identity#

app_topolo_web.sites.create creates one unpublished site in the selected workspace. Its typed response is SiteDetails; resolve the created site from $.site.id, then call sites.get with that id in the same workspace. Verify the returned organisation and workspace, status=draft, absent or empty currentVersionId, and an empty published-version list before adding content. Do not infer a site id from the top-level response or copy one from another organisation.

Primary-domain selection#

app_topolo_web.sites.domains.update updates an existing domain under domains:write. Resolve the site and domain through sites.get and sites.domains.list in the same workspace. The exact input is siteId, domainId and the boolean isPrimary.

Selecting isPrimary=true clears the other primary flags for that site. Selecting false clears only that domain. The action preserves hostnames, DNS activation state, draft content and immutable published versions; selecting a pending domain does not activate it.

Published host caches refresh immediately. The selected active platform or custom domain becomes canonical. When an active custom domain is primary, its platform alias uses that custom canonical and is non-indexable. When no active primary is selected, each served host is self-canonical. Draft previews remain self-canonical.

Before changing a primary flag, snapshot all flags from sites.domains.list. Afterwards, read that action again and verify the selected flag; a true selection must be the sole primary. Read sites.get and compare draft content and current version. For a published site, verify canonical URLs on its connected hosts. Restore the previous primary by calling the same action with isPrimary=true; when none was primary, clear the selected domain with false and verify restoration.

Customer data and platform release work#

Create and edit customer websites, Brand bindings and organisation content in production under the correct customer organisation. These are data operations and do not require customer accounts or duplicate customer records in development or staging. Shared first-party code changes follow development proof, staging proof using authorised internal QA fixtures, and production release before customer use of the changed functionality.

Responsive quality#

Topolo Web requires visual verification at the viewport widths returned by the capability and preview actions. Schema validity is necessary but does not prove that hierarchy, typography, media, navigation, or content density works on mobile and desktop.

sites.quality.get, sites.validate, and sites.publish.preflight provide deterministic findings. The agent must also open the returned preview URL at each required viewport before publication.

Publish and recover#

Publishing creates and activates an immutable version. Run sites.publish.preflight first, then plan sites.publish so the exact request, confirmation status, verification step, and rollback action are visible before execution.

To recover, list versions for the same site, select a returned version id, validate and plan sites.versions.restore, confirm it, and verify the new active version at the returned public URL. Never use a version id copied from another site.

Patch a published baseline#

Web provides two published-baseline actions for bounded snippet and style-class changes. app_topolo_web.sites.published_baseline.preview builds an isolated preview and publish-quality report from the exact immutable published version; it does not change the draft, version history, or published state. If the preview is acceptable, app_topolo_web.sites.published_baseline.patch can create a new active immutable version using allowlisted replacements guarded by exact preimage hashes, while preserving the current editable draft.

Both actions require app_topolo_web.publish:write in the selected workspace. Read the current published version and affected snippet/style objects first, then preview the exact patch. Patch execution is confirmation-gated. After it succeeds, verify the returned version with app_topolo_web.sites.versions.list and check that the site's draft remains unchanged. Use a fresh published version and freshly computed hashes after a stale-version or preimage conflict. An identical retry with the same actor, request and idempotency key can recover a committed result; a changed request needs a new key and a fresh read.

Auth and Permissions#

The action catalog is filtered to the current credential. Read and validation actions require the published studio-read permission. Build, publish, and restore actions require their corresponding write permissions and explicit confirmation. Target-owned policy remains authoritative for the concrete organization, workspace, site, and version.

Data Ownership#

Topolo Web owns sites, canonical content, draft state, quality findings, assets, domains, form submissions, events, agent sessions, and immutable published versions. Topolo Developers owns action publication; Topolo Auth owns credentials and service permission projection.

Mobile Experience#

The checked-in mobile experience contract is approved in native_capability mode. Its fallback route is /sites, its offline policy is read_through_cache, and it requires organization context.

Published permissions: studio:read, studio:write.

  • /sites uses /api/studio/sites with the record.list template and web.sites.list data source.
  • /sites/:id uses /api/studio/sites/:id with the record.detail template and web.sites.detail data source.

The native clients consume this manifest as an explicit rendering contract. A web mode record intentionally opens the product web experience; native_capability publishes the listed native routes and actions. Do not infer unlisted native behavior.

Deployments#

Production serves the studio, API, and public runtime from their separate hosts above. Staging uses web.stg.topolo.us, web-api.stg.topolo.us, and sites.stg.topolo.us with separate credentials and data.

Failure Modes#

  • capability/schema metadata is missing or older than the site payload
  • schema-valid content still fails responsive visual QA
  • publish is attempted before blocking quality findings are resolved
  • a site/version id is copied from another resource boundary
  • publication succeeds but the returned public URL/version is not verified
  • recovery is improvised instead of using a published immutable version

Debugging#

Preserve the request id, action id, plan, schema errors, quality report, and returned site/version ids. Repeat the credential-scoped read or preflight action before escalating; do not replace a failed action with an inferred private endpoint.

Use It#

Open TopoloWeb for the human product surface. The system handbook records its current hosts, ownership, Auth scopes, storage, deployment, failure modes, and machine artifact.

Discover the credential-scoped automation surface before making an API call:

bash
topolo services --query topolo-web --json
topolo actions --service topolo-web --json
topolo actions capabilities --service topolo-web --json

Choose an action, inspect it with topolo actions get <action-id> --json, then validate and plan a published example. The Agent Actions reference exposes the same public schemas, effects, examples, verification, and recovery guidance.

Example workflow:

  1. Confirm the active identity and organization with topolo whoami --json.
  2. Discover TopoloWeb and select one published action rather than guessing a route.
  3. Inspect its input/output schemas and published example.
  4. Validate and plan the exact payload; obtain confirmation for a mutation.
  5. Execute and perform every published verification step.

Change Log / Verification#

  • 2026-10-23: Documented published-baseline preview and confirmation-gated patch against released d9c7581/current declared contracts; this documentation change did not execute a site operation.

  • Reconciled the Auth-owned workspace identity model and removal of Web's unapplied legacy migration tree through apps/TopoloWeb origin/staging 05c6f48c25dd on 2026-07-28.

  • Verified the native_capability mobile experience contract and its 2 published route(s) against apps/TopoloWeb origin/staging cb7aad9fc430 on 2026-07-27.

  • Reconciled this page against apps/TopoloWeb origin/staging 40c4ece2febc on 2026-07-24 after reviewing every docs-relevant commit since its previous verification watermark. Dependency-only currency commits were checked by the fleet production-dependency gate and did not change this page's product contract.

  • Published the workspace-management contract on 2026-07-22 with shared-switcher UI, explicit default selection, safe deletion, dedicated permissions, and five declared workspace actions.

  • Expanded the composition contract on 2026-07-22 with asymmetric mosaics, quote spotlights, horizontal pricing tiers, reversible repeated-item placement, and matching CLI/MCP schemas.

  • Published the clean-room site contract on 2026-07-14 with canonical schemas, capability discovery, deterministic quality/preflight output, responsive QA viewports, typed publish/restore inputs and outputs, examples, verification URLs, and immutable-version recovery.

Immutable asset upload and recovery#

app_topolo_web.sites.assets.upload uploads bytes under a fresh asset id in the selected site workspace. Reusing a filename creates a distinct id and URL; it does not overwrite an earlier upload. The typed asset result includes the site, organisation and workspace ids. Uploaded bytes can be read through the returned immutable HTTPS URL before site publication. Uploading alone does not change draft content or activate a published version.

Resolve the site with sites.get, then validate and plan the exact upload request under the same workspace resource context. After uploading, read sites.get and check the asset record, tenant ids, unchanged draft content and current version; verify the returned public URL renders the expected bytes.

An upload is irreversible: no asset-delete action is published. Snapshot the draft document before adding an image reference. If a reference must be recovered, use the published sites.update compensating action with the previous document, then verify the restored document and publication state using sites.get. The unused uploaded asset record and bytes remain. sites.assets.create registers asset metadata and references an existing URL; it does not upload bytes.

Composed heading sizes#

An explicit section style.headingSize takes precedence over the selected presentation's default heading size. Declared responsive overrides can set separate sizes for mobile, tablet and 4K. Style classes may supply the same control. Nested sections reset the explicit presentation heading variable so a parent's override does not accidentally resize its children's headings. When no explicit section or class size is present, each presentation retains its default responsive hierarchy.

Save the canonical document through sites.update, verify it through sites.get, and inspect computed heading sizes in the returned preview at every required viewport.

Embed content#

The Embed block accepts iframe markup. Studio, preview and published Runtime render only sanitised iframes with HTTP(S) sources. Other HTML and scripts are removed, along with unsafe attributes, inline event handlers and srcdoc. The editor labels this field Iframe markup and provides linked help describing this boundary. Saving arbitrary HTML does not make it render; use native Web content blocks for page content. The published action input and output schemas carry the same description.