Client Outcomes
Last reviewed November 15, 2026 (checked against the app).
Client Outcomes is where you deliver work to a client and collect their answer. It has two tabs:
- Reviews (default): publish a website prototype or any static build on your own CPLai link, let the client leave notes and a decision, and ship revisions under the same link. This is the delivery flow for prototypes and design rounds.
- Run outcomes: a client-safe view of one agent run with one-time approve or reject tokens. This is the older, run-based flow and is unchanged.
Both tabs exist on desktop and web. Desktop can also publish a build straight from a folder on your machine.
Client Reviews
How do I publish a prototype for a client?
- Choose Client Outcomes in the sidebar. The Reviews tab opens.
- Choose New review.
- Enter a Title (what the client sees), the Client name, and the company. A project is optional.
- Under Version 1 pick the source:
- URL: the prototype is already hosted (Vercel, Netlify, your own server). Paste its public address. CPLai checks whether that host allows embedding and adapts the client page accordingly.
- Zip upload: a zip of the built site with
index.htmlat the top level. A single wrapping folder such asdist/is unwrapped automatically. Limit 200 MB and 5,000 files after skipping. - Folder (desktop only): choose the built site folder on this machine and CPLai copies it. Development clutter is skipped automatically:
.git,.cloudpeaklabs, other dot-folders,node_modules, and OS metadata files. An oversize build is refused with the largest folders named, so you can see what to leave out.
- Optionally add a note to the client for this version, then choose Create review.
- In the review, choose Create link. The link text is shown once. Choose Copy and send it to the client through a channel you trust.
The link uses your public dashboard address (the public URL in Settings -> Remote access). On desktop, Copy stays disabled until that address is configured, because a tauri.localhost address is useless to a client. On the web dashboard the link uses the address already open in your browser.
CPLai hosts uploaded builds itself. Files live under the CPLai data folder (setting client_reviews_storage_root overrides the location) and are served only through an active link. Choose the built site folder containing only files intended for the client. CPLai skips the development folders listed above; it does not determine which files your site needs.
Tip: Next.js or Node applications that need a server cannot be uploaded as a build. Host them yourself and add them as a URL version.
From Designer
A design on the Designer page goes to the client without an upload. Choose Send to client for review on the design. The first time, CPLai creates the review with the title and client filled in from the design, creates its board ticket, publishes the current version and creates the link, whose text is shown once. Later versions go to the same link with Publish vN to the same link; nothing reaches the client until you choose it. Designs kept from the old v0 page cannot be sent.
- A version built by any model except v0 is hosted as its own files, taken from the design's folder on the machine that runs the CPLai service.
- A v0 version is sent as one page that loads React, Tailwind and Babel from public CDNs (unpkg.com and cdn.tailwindcss.com), so the client's browser must be able to reach both. If the client's network blocks them, publish the design to Vercel from Designer and add the deployment to the review as a URL version.
The review then works like any other, with the same link controls, statuses, notes and board ticket. Designer also shows the review status, the client's decisions and their notes in the design's right column, and brings the client's feedback into the design chat as one card.
How is the client page branded?
The client page carries the review's company branding, the same white-label settings the branded web login uses (the company's White Label tab on the web dashboard, Branding settings): the logo, the product or company name, and the accent color for every primary button. Turn on Hide CloudPeakLabs branding for client logins there to drop the "Delivered with CPLai" footer. Without a branding row the page falls back to the company name and the CPLai accent. Logos are drawn for a light surface, so in dark mode the page seats the logo on a light chip.
The page uses the same Midnight (dark) and Daybreak (light) themes as CPLai. It follows the client's operating-system preference on first visit, and the sun or moon button in the header switches modes; the choice is remembered in that browser.
What can the client do on the review link?
The client opens the copied review link with no login. On the first visit they enter their name and email, which CPLai remembers in that browser so the card does not return. They then see:
- the prototype filling the page, with a desktop, tablet, and phone width toggle;
- a Notes panel where they can leave as many notes as they want and read your replies;
- four decisions: Approve, Approve with changes, Request changes, and Reject. Every decision except Approve requires a comment. A decision can be changed until you publish the next version;
- an Open in new tab link. When a hosted URL refuses to be embedded, the page shows that link instead of the frame and the notes panel opens on its own.
Uploaded builds run in a sandboxed frame with a throwaway origin. Their scripts cannot read your dashboard session or call the CPL API as you, even if the file address is opened directly.
How do versions work?
Every review keeps one client link across revisions. When the client asks for changes, open the review, choose Add version, pick the source for version 2, and publish. The client's link now shows version 2, the review returns to In review, and the earlier round stays available to the client under Previous rounds in the notes panel. Notes and decisions are stored per version, so you always know which build a comment refers to.
Previous rounds shows earlier notes and decisions read-only. The prototype preview stays on the current build when the client opens an earlier feedback round.
Where do I see client feedback?
- The review itself. Open it from the Reviews list. Each version's thread shows client notes, decisions with comments, and your replies. Replies are available on the current version while the review is open; the client sees them on their link. The right rail lists who has opened the link and when.
- The sidebar badge. The Client Outcomes item shows an amber count of reviews with client activity not yet opened by an operator. This read state is shared: opening a review clears its unread count for other operators too.
- The bell. The review creator receives a notification for client notes and decisions, with a link to the review.
- The board ticket. Creating a review also creates a task ticket on the company board, assigned to you, titled
Client review: <title>. Client notes and decisions are mirrored there as comments, and the ticket status follows the review: in progress while in review, blocked when the client requests changes or rejects, done when approved or closed. Comments written on the ticket stay internal and are never shown to the client. If the ticket could not be created, the review shows a Link ticket button.
How do I manage the link?
In the review's Client link panel:
- Extend 30 days adds 30 days to the link's current expiry. A link that has already expired runs for 30 days from now. Links last 30 days by default (1 to 365 at creation).
- New link replaces the current token. The old link stops working immediately and the new link text is shown once.
- Revoke disables the link. The client page shows "This review is no longer available".
- Close review marks the review finished and turns the link off. Delete removes the review, its versions, notes, decisions, and hosted files; the board ticket stays.
Review statuses
| Status | Meaning |
|---|---|
| Draft | No version published yet |
| In review | A version is published and the client has not decided on it |
| Changes requested | The client's latest decision on the current version asked for changes |
| Approved | The client approved the current version (with or without changes) |
| Rejected | The client rejected the current version |
| Closed | You closed the review; the link is off |
Statuses other than Closed are derived from the client's latest decision on the current version and cannot be set by hand.
Run outcomes
The Run outcomes tab turns one agent run into a concise delivery view for an authorized client or operator. It presents the run's status, timeline, summary, attention state, client-visible evidence, and approval decisions without exposing internal prompts, reasoning, tool activity, logs, secrets, URLs, or internal record IDs.
The tab is available on desktop and web. Both surfaces show the same outcome content.
How do I open a run outcome?
Desktop
- Choose Client Outcomes in the Workspaces section of the sidebar, then the Run outcomes tab.
- Paste the full run ID into Run ID.
- Choose Load.
Web
- Choose Client Outcomes in the Workspaces section, then the Run outcomes tab.
- Paste the full run ID and choose Load.
After a successful load, the browser moves to /outcomes/:runId. You can copy that address for another signed-in CPLai user who is authorized to view the same company. The route still requires a normal authenticated dashboard session. It is not a public client link.
Tip: The current page does not include a run picker or a copy-run-ID action. Use the full run ID from the source run record or an outcome link supplied by an operator.
What does the outcome show?
| Section | What it means |
|---|---|
| Mission | The linked work item, company/project context, and delivery state |
| Milestones | When the run started, whether it completed, and when the outcome was generated |
| Budget / SLA | Run duration, a derived attention signal, client-visible evidence count, and agent owner |
| Deliverables | The client-safe run summary, when one was recorded |
| Attention | A redacted error or attention message when the run needs review |
| Evidence | Client-visible outcome summary, delivery record, attention record, and linked work-item record |
| Updates | A short status history derived from the current outcome |
| Delivery | Status, timestamps, duration, agent, and linked work item in the right-side summary |
| Approvals | Pending, approved, rejected, or expired client decisions with their request note, decision comment, and timestamps |
The delivery state is derived from the current run:
- a recorded error shows Needs attention;
- a completed run shows Delivered;
- a running run shows In progress;
- other states use the run's saved status.
The Budget / SLA section does not currently show financial budget consumption or a contractual deadline. Its SLA signal is derived from run completion and error state: Monitoring, On record, or Attention required.
How is client-safe content protected?
CPLai loads outcomes through an authenticated, tenant-scoped endpoint. The viewer must be allowed to read the run's owning agent and company. A user or agent scoped to another company cannot load the outcome.
The public approval route is the exception to the normal dashboard login. It returns the client-safe outcome only when the request includes a valid approval token. CPLai stores a hash of that token, enforces its expiry, and accepts only one approve or reject decision.
Before the summary or error reaches the page, CPLai:
- replaces URLs with a redacted marker;
- removes recognized credentials and secrets;
- limits each summary or error field to 20,000 characters;
- marks trimmed content in the interface;
- returns a narrow set of delivery fields instead of raw run events;
- includes only artifacts marked as client-visible.
The response does not include the run ID, agent ID, company ID, ticket ID, raw transcript, prompt, tool calls, or reasoning content.
Tip: Client-safe means the response is deliberately reduced and redacted. Review the visible result before sharing an authenticated web address with a client.
How do I refresh an outcome?
Choose Refresh in the top bar. CPLai reloads the saved run state and regenerates the displayed delivery snapshot.
Refresh after a running agent finishes or after its linked ticket changes. The page does not update automatically while you leave it open.
How do I export a client-safe outcome?
- Load the outcome in the authenticated Client Outcomes page.
- In Approvals, find Operations.
- Choose Export JSON.
CPLai downloads the client-safe outcome currently shown on the page. The export uses the same reduced, redacted response as the delivery view. It does not add raw prompts, reasoning, tool activity, internal logs, or hidden artifacts.
How do I request a client decision?
- Open the authenticated Client Outcomes page and load the run.
- In Approvals, enter an optional request note that explains the decision.
- Choose Create token.
- Choose Copy link to copy the complete public approval address.
- Share the link through a trusted channel.
- The client reviews the same client-safe outcome, adds an optional decision comment, then chooses Approve or Reject.
The public approval route does not require a normal dashboard session. The token is the access credential, so send it through a trusted channel and do not place it in tickets, logs, or public posts.
The clear token appears only when the request is created. CPLai stores the token's SHA-256 hash rather than the token itself, so copy the link before leaving the page. If the link is lost, create a new approval request.
Web builds the link from the dashboard address already open in your browser. Desktop uses the configured public dashboard URL. If that URL is missing, Copy link stays disabled and explains what to configure. Set the public URL in Settings -> Remote access, then create a new request if the one-time token is no longer visible.
Tip: Do not share a
tauri.localhostor local-only address. The desktop copy action only enables when it can build a public dashboard link.
Approval tokens expire after seven days by default. A decision can be recorded only while the request is pending and before it expires. After an approval or rejection is saved, the token cannot record another decision. The authenticated outcome keeps the approval history and shows the request status, expiry, notes, and decision time.
Tip: An outcome approval records the client's decision on this delivery view. It does not approve an unrelated agent action or automatically change the linked ticket.
How do I revoke a pending approval request?
- Open the authenticated Client Outcomes page and load the run.
- Find the pending request in Approvals.
- Choose Revoke.
The request changes to Expired, and its public link can no longer record a decision. Revocation is available only while a request is pending. Approved, rejected, expired, or previously revoked requests keep their history and cannot be revoked again.
Tip: Revoke a request when its link was sent to the wrong person, the delivery changed, or you want to replace it with a new request note.
How do I read incomplete or failed outcomes?
An active run shows an incomplete Active milestone and Monitoring in the SLA signal. Its duration reads In progress.
When a stored error is present, the page adds an Attention panel and changes the delivery state to Needs attention. The error text receives the same redaction and length limit as the summary.
If no summary was recorded, Deliverables says that no client-visible delivery summary is available. The evidence list can still include a delivery record and a linked work-item record.
Troubleshooting
The page says the run was not found
Confirm that you pasted the complete run ID and that the run still exists. If the feature was just deployed, confirm that the current CPLai service includes the Client Outcomes API, then try again.
The page says access is forbidden
Sign in with an account that can view the run's company. A direct /outcomes/:runId address does not bypass company permissions.
The outcome looks stale
Choose Refresh. Client Outcomes is a read-only snapshot of the saved run and linked work item, not a live event stream.
An expected artifact is missing
Only client-visible artifacts appear. Internal files, raw logs, prompts, tool results, and arbitrary project artifacts are intentionally excluded from this view.
The approval decision cannot be saved
The token may have expired, been revoked, or already have an approved or rejected decision. Ask the operator who created the request to review its status in the authenticated outcome and create a new token when another decision is required.
Current boundaries
Client Reviews
- Hosted builds must be static:
index.htmlat the top level, no server. Root-absolute asset paths such as/assets/app.jsare rewritten to relative paths at upload so builds made with a/base still work. Sites with client-side routers need a relative base or hash routing. - Reviewer identity is name and email as typed. The link is the credential; it is attribution, not authentication.
- Pinned comments on specific elements are not available yet. Notes are per version, not per element.
- Server-rendered applications (Next.js with server components, Node backends) are added as URL versions and hosted by you.
Run outcomes
- Both authenticated surfaces can export the current client-safe JSON, create approval requests, copy a client-shareable address, and revoke pending requests. Desktop requires a configured public dashboard URL before it enables Copy link.
- The token route can approve or reject that specific request with an optional comment.
- Approval tokens are public bearer credentials. There is no public run browser or unrestricted outcome link.
- There is no run browser or outcome list. Loading requires a run ID.
- Evidence is a client-safe projection of the run and linked work item, not a file-download portal.
- Desktop does not place the run ID in the address because desktop navigation uses mounted views instead of browser routes.