Repository navigation
Conversation
The canvas prototype argued for one session that writes the report, the fix and the post, corrected by clicking on any part of it. This records how it ships: five pieces with the cheapest test first. Comments on reports go out in today's document pane before any new screen, because the riskiest assumption is that people correct by pointing at all. Also records what main already settled (the publish double-send and scheduled proposals are fixed), the helper capabilities and limits, the save-as-template lifecycle, and the estimated cost per question. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016C6UbmWxEi25k3Xm3AMqNK
Piece A of the canvas plan (docs/engineering/2026-12-05-canvas-plan.md). In the SEO audit workspace a person presses Comment, clicks any part of the report and types; the comment reaches the agent with its address (artifact, block, the JSON Pointer the block draws from) so the model answers about the exact data on screen. Why no new table: a comment is the USER event with a `pin` beside its content, the reply is the assistant rows after it, and a resolve is one `pin_resolved` event. agent_events already records what was said; the thread is read off the transcript on both sides (lib/pins.js), so the reducer and a reload agree. The address is client-written, so every field is bounded and escaped before it reaches the model (agents/core/pins.py, with a test that a label closing the tag stays text). Also: the generic artifact write tools now refuse a run of an artifact, which they could rewrite past its schema; a run is revised by the run that made it. Pins are drawn in ink, not orange, because the reports number their own ranked fixes in orange circles. Translations for the 12 new strings were written by hand through fill.py's manual path: the translation provider returned 401 in this environment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016C6UbmWxEi25k3Xm3AMqNK
Piece B of the canvas plan. When no shipped report answers the person's question, the insights agent can build one in the chat (BuildReport). The report opens in the document pane, is versioned when revised, and takes comment pins, so a comment on one section asks the agent to revise that report. Why the agent writes sections and data, never a layout or a schema: each section is one catalogue block, and Duct builds the layout and derives the schema from fixed per-block shapes (agents/artifacts/runtime.py). The shared shapes are the shipped growth reports' own $defs, read from the bundle, so they cannot drift from what the blocks draw. That leaves the data as the only thing a model can get wrong, and the data goes through the same two validators a shipped run does. Why a tool, not a tagged payload: a refusal comes back as the tool's answer, so the agent's next call is the repair turn, with no second repair mechanism. A report that never fits is not stored. The row carries its layout and schema (meta.layout, meta.schema) because no build of the app has them. Only catalogue blocks and no pages of its own, so nothing in it runs as code. A fixture written by the backend builder holds the app's validator to the same verdict as the backend's. The Chart block draws one line with its floor at zero, so the catalogue offers no bar mark and refuses negative points. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016C6UbmWxEi25k3Xm3AMqNK
A report the agent designed was a one-off: the person got the answer once and had to ask again next week. Refresh weekly makes it a standing report without a template editor, because the report already is one: its sections are fixed, only the numbers move. - The sections are kept with the report (meta.sections), so a refresh can fill the same ones again. - A new schedule job, insights.refresh_report, runs the unattended report turn with the report's own sections and schema in the plan, last week's verdict for comparison, and a window as long as the last one. The run is held to the sections' schema (parse_designed_run), gets the one repair turn every report run gets, and is stored as the report's next version. One that never fits stores nothing. - The schedule names the report's group, checked at write time to be a designed report in the same project. A deleted report says "Needs you". - The Scheduled page words the new outcome, links a refresh to the stored version, and the report pane gets a one-line Refresh weekly bar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016C6UbmWxEi25k3Xm3AMqNK
The insights chat can now bring in helpers for one part of a job: the model names a helper, writes its task and picks capabilities (read_data, read_web, read_files, edit_report). Duct maps the names to the chat's own tools, so a helper never gets a tool the chat lacks, cannot ask, pause, propose, publish, remember or spawn, and an edit_report helper is pinned to the one report it was given. At most four run at once, and the helpers started for one message stop at $1 between them: each helper model call is priced and emitted as subagent usage. The cap is per message because the runner is built per turn; a per-chat cap would need the conversation's stored usage summed. A helper runs in a clean LangChain context so it never streams into the chat or writes to its checkpoint. Its tool calls are emitted as activity rows under the Spawn row (parent_id) and drawn nested in the app. They are live only: a reloaded chat shows the Spawn row and the answer. Draft text and Publish are not offered: a pause raised inside a helper is not yet proven to come back through the chat. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016C6UbmWxEi25k3Xm3AMqNK
/canvas is the insights session with its right pane as a board: every report and brief the session wrote is a frame at reading size, and a report frame takes comment pins. It is InsightsWorkspace with `board` set, so there is one session hook, one chat and one set of events. Sessions sit in tabs. Which are open is the browser's (lib/canvasTabs.js, per project, at most eight); no table knows a tab exists. A blank tab creates nothing until the first message, only the tab on screen is mounted, and closing a tab never stops its run. The other tabs' "Needs you" and working marks come from the conversation list's run_status. The plan held this screen until comment pins had four weeks of data. The maintainer chose to ship it with A to D, so the same number now decides whether it stays; the plan says so and lists what to read. The events that read were missing: canvas_session_started and canvas_session_opened (with how many tabs were open), `surface` on the comment events, and the backend's helper_finished, one per helper with counts only (capabilities, tool calls, cost, stopped by the cap). Not on the board yet: posts (a session cannot draft or publish) and approval cards, which stay in the chat so there is one copy of their state. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016C6UbmWxEi25k3Xm3AMqNK
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft because: A to E are in; it waits on CI for the E commit (WebKit and the layout job could not run locally) and on your read of the per-message helper cap (below).
What and why
The plan (
docs/engineering/2026-12-05-canvas-plan.md): one session writes the report, the fix and the post, and the person corrects any part by clicking on it. Five pieces, cheapest test first. The riskiest assumption is that people correct by pointing at all, so comments on reports ship first, in today's workspace, before any new screen.A: comment pins on report blocks (367901f). In the SEO audit workspace, press Comment, click any part of the report, type, send. The comment reaches the agent with its address (which report, which part, the data that part draws from); the reply lands in the pin's thread and in the chat; a tick resolves it.
pinbeside it, a resolve is onepin_resolvedevent inagent_events.Known limits of A, kept on purpose until real use says otherwise:
B: the agent designs a report from catalogue blocks (92d986a). When no shipped report answers the question ("Google Ads costs me $1,500 a month, when do I stop?"), the insights agent calls
BuildReport. The report opens in the document pane, is versioned when revised, and takes comment pins from A.$defs. The model never writes a layout or a schema.run/path: what is wrong); nothing is stored; the next call is the repair.meta.layout,meta.schema). Catalogue blocks only, no pages, so nothing runs as code.lib/__fixtures__/designed-report.jsonis written by the backend builder; the backend fails when it is stale and vitest runs the app's validator on it.artifact_createdwithorigin: runtimeandattempts, for the first-try rate.Known limits of B: Chromium only so far (not WebKit); the 80% first-try target needs the eval cases from #532; the Chart block only draws lines, so the catalogue offers no bar chart.
C: refresh a designed report every week (87782fc). The report the agent built gets a one-line bar: "Fresh numbers every Monday. [Refresh weekly]". One press makes a schedule; each Monday the same sections are filled for a window as long as the last one and stored as the next version. The Scheduled page shows it beside the plan schedules, and each run opens the version it stored.
meta.sections).report_scheduled(app) andreport_refreshed(backend).Known limits of C: shipped reports have no "save as a copy" yet; a refresh that runs while the person is revising the same report in chat stores the old sections as the newest version; no conversation is left behind, so a failed refresh can't be inspected from the app.
D: helpers in the insights chat (b01c36c). The chat agent can now bring in helpers with Spawn: it names a helper, writes its task and picks what it may reach. Typical use: read Google Ads and Search Console side by side, then revise the report. Each helper is a row in the chat, and its own tool calls stream under it, indented.
read_data,read_web,read_files,edit_report(pinned to one named report). A helper cannot ask, pause, propose, publish, remember or spawn.Known limits of D: the nested rows are live only (a reloaded chat shows the Spawn row and its answer); Draft text and Publish are not offered until a pause inside a helper is proven to come back through the chat; a retry notice inside a helper is not shown.
E: the canvas (f9c4155).
/canvas, in the sidebar: one session's whole job on one page. The chat is on the left; on the right every report and brief the session wrote is a frame at reading size, and a report frame takes comment pins. Sessions sit in tabs, each marked when it is working or needs you.boardset: one session hook, one chat, one set of events, no new agent and no backend route./canvascomes out of the sidebar.canvas_session_startedandcanvas_session_opened(withtabs),surfaceon the comment events, and the backend'shelper_finished(one per helper: capabilities, tool calls, cost, stopped by the cap; never its name or task).Known limits of E: no posts on the board (a session cannot draft or publish yet); approval cards stay in the chat so their state has one copy; a run working on the canvas still pulses Home in the sidebar, not Canvas; the two new entries in
design/tools/screens.mjswere not captured here (the tool timed out), though the same journey passes in the smoke test.Area
Verification
The
/previewscenessite-health-report-pins,brief-designed-report,brief-designed-report-scheduledandactivity-helperswere driven in Playwright at 1100px light and 390px dark: drop a pin, send, reply arrives, resolve; the designed report draws every section. No console errors. The runs found and fixed: the popover off-screen on a phone, pins styled like the report's ranked-fix badges, untitled parts labelled by raw id, a bar-chart option the Chart block cannot draw.Translations for the new strings were written by hand through
fill.py --provider manual, because the translation provider returned 401 here. Worth a native-speaker glance.The agent smoke test (
scripts/smoke-agent-workspaces.mjs) gained canvas steps and passes in Chromium: start from a blank tab, the "Needs you" mark, a second tab and back, answer, the brief on the board. The live page showed no horizontal overflow at 390, 820, 1100, 1440 and 2560px.AI assistance
https://claude.ai/code/session_016C6UbmWxEi25k3Xm3AMqNK
Generated by Claude Code