# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ## v5.0.2 — 2026-05-13 — Operator-driven annotation HTML (the actual fix) **No new breaking changes beyond v5.0.0.** Forks that consumed the v5.0.1 `/playground document-critique` invocation from the producing commands' final report should switch to opening the `.html` that `scripts/annotate.mjs` now produces directly. ### Why v5.0.0 added a read-only `scripts/render-artifact.mjs` HTML render that didn't afford annotation. v5.0.1 deleted that and pointed operators at `/playground document-critique` instead — but the `document-critique` template pre-generates **Claude's** suggestions and asks the operator to approve/reject them. The operator asked for the opposite: a surface where **they** select content and write **their own** notes, then ship those notes back to Claude. v5.0.1 still missed the actual ask. v5.0.2 ships `scripts/annotate.mjs` — a small, focused, zero-dependency Node script that takes any artifact `.md` and writes a self-contained HTML next to it. The HTML renders the document with line numbers, lets the operator click any line to attach their own note, keeps a sidebar of all notes (editable + deletable, persisted in `localStorage` per artifact path so refresh doesn't lose work), and exposes a "Copy Prompt" button that gathers every note into one structured prompt. The operator copies that prompt and pastes it back into Claude; Claude revises the `.md` freehand from the notes. **One file → one HTML → click + write notes → copy prompt → paste back.** No Claude-generated suggestions in the loop. The operator drives every annotation. This is the v4.2/v4.3 *concept* (operator-driven annotation) without the broken v4.2/v4.3 UX, without the 388 KB SPA, without `/trekrevise`, without anchor parsers + Handover 8 + the JSON batch round-trip. ~430 lines of self-contained `.mjs`. Zero npm deps. Deterministic. ### Added - **`scripts/annotate.mjs`** — operator-annotation HTML generator. Takes ``, writes `.html` (or `--out `). Self-contained, design-system-aligned (light + dark + print), zero external network, deterministic. CLI: `node scripts/annotate.mjs [--out ]`. Also `npm run annotate -- `. - **`tests/scripts/annotate.test.mjs`** (10 tests) — self-contained HTML shape, no external ``/`