Repository navigation
Description
Problem
afx open serves templates/open.html — a bespoke annotator with its own markdown rendering and annotation system that predates the canvas package. Spec 945 explicitly deferred 'dashboard host integration' to a future issue; #859 delivered the VS Code host only. That deferral is now materially expensive: every canvas improvement of the last month exists only in the VS Code webview — the in-row add-comment affordance (#1343), keyboard-first review with jump keys (#1237), the cursor and sizing fixes (#1232/#1236), and the upcoming horizontal reading mode (#1380) — while the afx open browser surface runs the legacy renderer with none of them. The gap widens with every canvas feature shipped.
Goal
afx open renders documents through @cluesmith/codev-artifact-canvas, the bespoke renderer retires, and the browser surface inherits the canvas feature set — current and future — from the single implementation.
Requirements (architect-provided; builder's spec/plan elaborates)
- The served page hosts the canvas package (it is already React; bundling strategy for a Tower-served page is a design decision — inline bundle vs served assets).
- Annotation continuity: existing open.html annotations (storage format, write-back path through Tower) either migrate to the canvas marker system or the adapters bridge them — no user-visible loss of existing annotations. This is the heart of the migration and the main risk.
- Tower adapter wiring: the canvas's MarkerAdapter seam (spec 945's D-series contracts) implemented against Tower's annotation endpoints.
- Toolbar/feature parity audit: whatever open.html offers today that the canvas lacks gets an explicit keep/drop/replace decision — no silent capability loss.
- The legacy renderer is deleted in the same arc (single source of truth), with the template reduced to a canvas host shell.
- Feature inheritance verified: the artifact-canvas: full-row '+' affordance (GitHub-diff pattern) — structurally eliminate the hover travel-gap bug class #1343 affordance, artifact-canvas: keyboard-first review navigation — jump keys, focus management audit, minimap focusability #1237 keyboard flow, and (once merged) artifact-canvas: horizontal multi-column reading mode for spec/plan review (toggleable, vertical stays default) #1380's reading modes work in the served page.
Sequencing
Independent of #1380 (which delivers column mode in the canvas package + VS Code host; this issue is the delivery path for afx-open parity). Touches packages/artifact-canvas only as a consumer — Track-A single-lane constraint applies loosely (coordinate, don't block).
Origin
Surfaced by spir-1380's spec-phase ground-truthing (2026-08-10): the issue's 'both hosts' requirement assumed canvas adoption that never happened. Architect ruling A on that scope question made this the separately-tracked migration.
Activity