Skip to content
Topolo Platform Topolo Docs
Open workspace
Documentation

Compose

Create, revise and review workspace documents with explicit version history, approval decisions and export-attempt verification.

On this page

Create or generate a draft#

Create supplied markdown without a model, or request generation through Nexus. Both persist a new document and initial history. Generation provenance does not certify factual, scientific, legal or citation correctness; review the content before using it.

Select an authorized workspace#

Verify identity and granted workspace resources through CLI/MCP. Bootstrap supplies identity and supported formats, while platform workspace discovery supplies grants. Document reads can initialize a local mirror. Lists are creator-filtered and bounded; individual reads remain organization/workspace-scoped.

Preserve text before editing#

Save a manual version before an update or AI revision. Updates save no history automatically. Revisions snapshot the revised result and can create a new draft if the supplied id does not resolve. Suggestion previews do not save text; accepting exact suggested text requires a deliberate update.

Review and decide#

Comments persist unique mentions and attempt notification emission. Review requests create pending records and set approval metadata. Only the assigned reviewer can complete a pending decision once. Editable approval metadata is not a completed reviewer decision, signature or delivery receipt.

Export and verify an artifact#

The client produces document artifacts. The export action records attempt metadata and deduplicates its id; it does not render files or return download URLs. A ready record is not proof of artifact correctness, provider delivery or successful metering. Inspect duplicate, error and recorded fields.

Archive, restore and protect data#

Document archival retains text and history; hard deletion destroys both. Version restoration preserves pre_restore text but resets approval metadata to draft. Privacy export covers every Compose workspace in the authenticated organization; erasure is blocked by active reviews and retains external platform records under their policies.

Find action execution details#

Every Compose action has input fields, CLI/MCP preparation, captured success and refusal responses, effects, verification and recovery boundaries. The typed agent layer is separately retrievable. Captured dependency fixtures prove local behavior, while environment publication and live provider proof remain distinct.

Action reference#

Browse Compose actions

Evidence#

Responses were captured from the actual Compose Worker using synthetic users, organizations, content and identifiers. Tests simulate Auth, Nexus, Notify, metering and platform workspace transport and use an in-memory D1 adapter or local SQLite. They prove local handler behavior, not live model correctness, provider cost, notification delivery, real workspace grants or cross-store atomicity. HTTP 204 responses are exactly empty strings in the SDK transport. Replace fixture identifiers through credential-scoped discovery.

First-run checklist navigation#

The document type and intent steps open the brief panel and focus their mounted field after saved progress. Try a revision and Mark done for the revision step first check for an active draft in the selected authorized workspace. Empty or failed reads keep the step incomplete, expose the prerequisite or error, and remain retryable without saving completion. A successful check carries the exact draft and workspace into Review and focuses its revision field after progress saves. Reopening a completed revision step rechecks draft availability. Leaving a destination cancels pending focus. An empty Review view explains that a draft is required and offers Open documents or Start a brief through canonical panel navigation. These actions preserve the workspace and update the panel URL without creating a draft or generating text. Draft checks and later progress writes are separate requests; destination authorization and empty-state handling remain necessary if data changes after a check.

Responsive studio and empty Review#

Compose owns document workflow presentation in DocumentStudioHeader, while command bars, action rows, status chips, workflow strips and empty states remain shared UI-kit primitives. The focused header is extracted from the route. Its action row does not stack on narrow screens; the workflow stays in a compact horizontal scrolling row. A selected document retains revision and citation actions and the actual editing, saving, saved or failed-save status. Empty briefs ask for a brief or an unfinished outline instead of reporting generic readiness. New-document metadata does not imply an existing approval record.

When Review or Export has no active document, the short context title replaces the large drafting header. Generation, revision and citation controls and the pre-document workflow are omitted. Review guidance explains how to open a document, with Open documents as the primary action and Start a brief as the secondary action. The 280px empty surface groups its icon, heading, guidance and actions together rather than spreading them below the viewport. The empty draft also says where a future draft will appear. Existing workspace-preserving panel navigation, action endpoints, permissions and source ownership are unchanged.

Source b47dbb3170e355a85f3b346c33e9374595ee95e2 passed ordered development, staging and production release/deployment proof for both Compose Workers. It consumes required immutable worker-runtime 0.10.3. Validation includes 232 API tests and 187 web tests, build, typecheck, API and web coverage, and the full release gate. The extracted header and editor canvas both have 100% statements, branches, functions and lines; overall web coverage is 93.39% lines/statements, 80.51% branches and 91% functions. Component tests exercise real shared primitives; responsive visual checks cover 390, 768 and 1440 widths. No public action contract changed because this repair only changes presentation and preserves existing callbacks and resource boundaries.

Responsive document section actions#

Compose consumes immutable @topolo-io/ui-kit 0.11.3. The shared TopoloReportSection owns title and action layout: its header wraps to the available container width, the title retains usable space and long words can wrap, and the action group stays within the section. On phones, Focus, Preview edit and Evidence pass wrap below the title. Wider containers retain the title and actions alongside each other. Existing callbacks, busy guards, source guards, resource boundaries and permissions are preserved. This presentation repair adds no stateful capability or action-contract change.

The shared package was published from source 71b05acbf0a65004acb7cf35e1c1754d1b10b0a8 as immutable tag package/topolo-ui-kit/v0.11.3; registry tarball shasum is eea6901c3dbbaf8a0ea4f141a8b2d02456d3e151. Compose adoption source f10a3532a8d77de44eb1f85e476cd0acc44578c7 passed ordered development, staging and production provider-digest and postflight proof for both Workers. Validation passed 232 API and 193 web tests, build, typecheck, coverage and the complete release gate. DocumentWorkspaceSurface has 100% statements, branches, functions and lines, and its tests render the real shared primitives. Overall web coverage increased to 93.42% lines/statements, 81.27% branches and 91.36% functions.

Local rendered checks and authenticated staging visual proof cover 320, 390, 768 and 1440px. The staging proof uses an existing saved document without changing its content or invoking AI actions. It proves title/action separation and page containment for the staging admin persona, not model output quality or other personas. Development proof uses deployment evidence and local rendering, without claiming an authenticated development browser session. This adoption does not establish fleet-wide uptake. The separate platform action audit remains open with 15 review rows across 55 manifests, 53 with actions.

Compact document and section controls#

Compose owns document command hierarchy in DocumentCommandBar and reuses the shared SegmentedControl, Button, IconButton and action-row primitives. The previous mobile command bar put Read/Edit on a separate row and wrapped full-label edit commands unevenly beneath it. This was mechanically contained but did not meet the intended visual quality. The corrected toolbar uses a scoped container query to align Read/Edit, Preview edit, Source review and Checkpoint in one row whenever the available toolbar width is 760px or less, including a narrow desktop review pane. Each edit action keeps a 44px target, an accessible localized name and a native title; phone labels are visually hidden. Wider toolbar containers retain full primary editing labels and use compact named shared icon controls for Ask Compose, Copy, Share and Export. Output controls keep their existing mobile visibility through 760px. Document actions retain their callbacks and busy/source guards.

Section actions live in the focused Compose DocumentSectionActions component. Focus, Preview edit and Evidence pass use quiet shared IconButtons in one unbroken row, each with a localized accessible name, native title and 44px target. The section title, health metadata and document content keep their hierarchy; the previous heavy outlined two-plus-one button stack is removed. Focus remains available while working; Preview edit remains disabled while working; Evidence pass remains disabled while working or without attached sources. Section health semantics and content remain unchanged. Regression tests reproduce the former wrapping state, use real shared primitives and cover callbacks plus both disabled conditions. DocumentSectionActions and DocumentWorkspaceSurface retain 100% statements, branches, functions and lines coverage. The toolbar has no redundant bottom padding. Local and authenticated staging rendering at 320, 390, 768 and 1440px, plus constrained review panes at 1024 and 1440px, verify one 44px toolbar row and an 8px gap to the paper, with no horizontal page overflow. Visual review covers all section headings, controls, health metadata and body content as well as the complete toolbar and paper boundary rather than accepting overlap geometry alone. Source 1a0c0e847a441522c23e757ff1355590cf700a07 passed ordered development, staging and production deployment proof for both Compose Workers, the complete release gate, build, typecheck, 232 API tests and 196 web tests. DocumentCommandBar coverage is 100% for statements, branches, functions and lines; overall web branch coverage increases to 81.47%, with 93.50% lines/statements and 91.39% functions. The downstream shared-panel placement test verifies Ask Compose wiring without pinning the old CSS string.

This is app-specific presentation with existing shared controls and no new operational capability or action contract. Staging proof uses an existing document and staging admin persona without editing content or invoking AI/checkpoint commands. Development browser authentication, other personas and translated-label widths are outside this visual proof. The earlier production Roadmap resource authorization denial remains a tracking boundary; deployment and documentation proof do not imply that a production checkpoint status was written.

Document-owned save status and persistent workspace ownership#

Opening a persisted Compose document reports Saved immediately. Each document retains its own pending, Saving, Saved or Save failed state. The app-local DocumentWorkspaceProvider lives in the persistent protected Compose shell and owns one canonical, workspace-scoped document cache and autosave queue. The editor route and sidebar consume this same owner. The shared app shell remains the route host; no shared permission policy, action contract or new API capability is introduced.

Leaving the document route for another route in the same shell and workspace no longer cancels pending changes. The debounce and in-flight save continue while the editor is unmounted. Returning to the document reads its existing save state and content. Failed patches remain available for retry with the next edit, including failures that occurred while the document route was closed. A failure from an inactive document does not surface its error in another document.

Rapid edits merge and each document's PATCH requests serialize. Save requests and document reads are explicitly pinned to the provider's workspace. Background reads preserve queued and in-flight fields. Each read captures save revisions before the request starts: a response older than a save completed during that read cannot replace the newly persisted document. This reconciliation belongs to Compose's document save lifecycle.

The final candidate passes 218 web and 232 API tests, typecheck, build, action checks, combined engineering validation and the full development release gate. Provider and autosave have 100% statements, branches, functions and lines coverage. Global web coverage improves to 93.67% lines/statements, 92.01% functions and 82.63% branches. Real MemoryRouter interaction tests exercise queued and in-flight saves across route unmount, return after a failed save, retry, workspace and identity isolation, pending-field reload reconciliation and stale reads finishing after successful saves. The delayed-read regression fails before the read-revision correction and passes afterwards. Existing archive/index contract tests now inspect the persistent owner; their assertions remain enabled.

Development and staging deployment proof precede production. Both Workers in all three environments have exact-source provider-digest and postflight proof. Authenticated staging Read-mode inspection at 390px and 1440px confirms Saved, the existing document rendering and no horizontal page overflow. Live document content was not changed during visual acceptance, and no live service failure was injected.

Staging's post-deploy translation sync still declines its shrink guard: current source uses 594 keys and the existing ready English catalog has 595. Published Localize reads verified all current keys are present; the sole extra is unused compose.studio.editing. The historical entry is retained. No source pruning, retirement or successful sync is claimed.

The provider resets when its protected shell, identity or workspace changes. Browser close, reload, logout and workspace-switch recovery are outside this release; unsent changes can still be lost at those boundaries. The prior production Roadmap resource denial remains authoritative, so production checkpoint closure is not claimed.

Source revision: 82e115baca30466e40939a1cffeae9e8ece9657d.