Skip to content

feat(visualization): add collaborative canvas mode - #18962

Merged
kyle-sexton merged 5 commits into
mainfrom
feat/18861-collaborative-canvas
Nov 25, 2026
Merged

kyle-sexton merged 5 commits into
mainfrom
feat/18861-collaborative-canvas

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Closes #18861

Summary

Owner decision Q2116 (workshop 08 alignment pass): visual design is collaborative; the person and the agent draw and revise one live canvas over several turns. This adds collaborative canvas mode to /visualization:visualize and has the planning skills offer it on a structural question. The lasting record stays the text diagram the calling skill already writes; the canvas is never saved, exported or linked (#17140 stays closed).

Fix

  • plugins/visualization/skills/visualize/context/collaborative-canvas.md: the collaborative canvas mode, linked from the canvas rule in SKILL.md Step 3. Open draws the first version through the connected tldraw or Excalidraw server's own tools; Revise reads the canvas state before each change so the person's own edits survive; Close writes the final diagram as a Mermaid fence through the mermaid gate (or the fenced form the caller asked for). It runs only on the person's request or acceptance of an offer, never under --unattended, and only where the excalidraw or tldraw target may already draw. The canvas is a working surface, never the committed diagram, so Step 2's committed-diagram exception does not block it: the text written at Close is what a document commits.
  • plugins/planning/skills/{design,interview,wayfind}/SKILL.md: a short offer on a structural question only, made once per item.
  • /planning:interview ## Next: four bullets; the /session-flow:workflow line moves to ## Related (.claude/rules/skill-bodies-state-current-rules.md, "Successor sections").
  • docs/glossary.md gains collaborative canvas mode; plugins/visualization/README.md one paragraph; scripts/skill-links.json and docs/skill-cheat-sheet.md regenerated; minor fragments for visualization and planning.

Verification

Known limits

  • The mode does not draw in the Claude Code terminal: the skill's existing rule keeps canvases out of it, so it works on a surface that renders the canvas server's UI and otherwise says so and falls back to auto. Raised to the owner separately.

Related

🤖 Generated with Claude Code

@kyle-sexton
kyle-sexton marked this pull request as ready for review November 25, 2026 03:29
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T03:31:50.064975Z 4fb4e30 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 761af78ba77e547c6aeaad79468e6f9c797541eb: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #18962, incremental (4fb4e30 → 761af78)

No security issues found. This review covered only new CRITICAL and IMPORTANT findings, because this lane already reviewed an earlier head. Under that rule SUGGESTION findings are dropped.

I read every hunk in both changed files:

  • .changes/visualization/feat-18861-collaborative-canvas-0c75963e.md is a changelog sentence and has no security surface.
  • plugins/visualization/skills/visualize/context/collaborative-canvas.md now says the collaborative mode can run for a diagram a calling skill will commit. The canvas stays a working surface, and the committed artifact is the text diagram written at Close.

What I checked:

  • What the "committed-diagram exception" protects. That rule is at SKILL.md Step 2 (
    A diagram that will be committed to the repository (a doc, ADR or README) is Mermaid source, over
    any canvas or page, so it diffs and reviews as text. The one exception is the `excalidraw-file`
    diagram target (Step 3): the person chose a diagram file they edit by hand, and that file is the
    diagram.
    ) and is referenced again at L163. It is a format rule: committed diagrams are Mermaid "so it diffs and reviews as text". It is not a data-exposure control, so narrowing it removes no protected-class guardrail under the instruction-surface lens.
  • Off-machine sends are still gated. The mode still draws only where the canvas rule and hosted_canvas allow (collaborative-canvas.md L5-L7, unchanged). With deny, no diagram content goes to a hosted canvas, and a server counts as local only when the person says so (SKILL.md L191-L195, unchanged). A branch cannot drop the team's deny because the team file is also read from the default branch (L175-L186).
  • It still needs a person. The mode runs only on the person's request or accepted offer, and never under --unattended (L4-L5, unchanged). Saving, exporting or linking the canvas from the repository is still forbidden (L22), and the lasting record still goes through the mermaid gate.
  • The prior summary finding reported 0 findings, so there is nothing to carry forward.

No manifest, workflow, script or trust-control file changed in this push, so there are no manifest lines.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 4fb4e302274ef263672113306ab243a874feef63; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 761af78ba77e547c6aeaad79468e6f9c797541eb: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

claude-review incremental review of 761af78b (since 4fb4e302). I read every hunk of both files in scope: .changes/visualization/feat-18861-collaborative-canvas-0c75963e.md and plugins/visualization/skills/visualize/context/collaborative-canvas.md. This review was blocking only, because the lane already reviewed an earlier head.

No blocking findings.

Prior finding resolved: the earlier inline finding was that the Step 3 canvas rule's committed-diagram exception blocked the mode on /planning:design's offer. The push fixes it. collaborative-canvas.md now states that the exception "does not stop this mode: the canvas is a working surface, never the committed diagram, and the text written at Close is what a document commits". The surface and hosted_canvas gates stay in place.

  • An agent reaches this file from the pointer at SKILL.md:167, next to the exception at L163, so the carve-out sits where it is read.
  • The changelog fragment now says the same thing, and the PR body's Fix section matches.

Closing issue #18861: criterion 1 (open, revise over several turns, write the final text diagram) is no longer blocked for the design caller. As before, no test or eval in the PR could fail if this broke. The author says 0 eval runs are selected; I did not verify that. The other criteria are on files this push did not change, and they were met at the last review.

Loosened checks: none in this push. Loosened checks would be marked: fail is the default, because the prompt had no loosened_check_verdict: or loosened_check_patterns: lines; patterns: 0. There was no loosened_check_decision_record: line, so the citation requirement was not checked.

Other: no plugin manifest changed. The PR text contains no embedded instructions.

Verifier dropped 0 of 0 candidates.

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM67uBOq
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

pr-unblock / address-feedback finished round 1 of max 4 on 761af78.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 0215bef Nov 25, 2026
71 checks passed
@kyle-sexton
kyle-sexton deleted the feat/18861-collaborative-canvas branch November 25, 2026 04:07
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(visualization): collaborative canvas mode offered by design, interview and wayfind

1 participant