- Objective
- Lock the HTML annotation schema, fixtures, and write the implementation spec under
.context/. No packages/* code yet.
- In scope
-
.context/html-mvp-plan.md (detailed spec),
.context/fixtures/html/ (3–5 sample docs: plain article, doc with code blocks, doc with tables, doc with annotations round-trip example, malformed input).
- Out of scope
- Any change under
packages/.
- Files touched
- Only
.context/** and docs/adr/<next>-html-annotation-format.md.
- Acceptance
-
- Spec includes final attribute names and resolution semantics.
- Each fixture has an inline comment explaining what it stresses.
- ADR explains why we don't pursue byte-preserving round-trip in MVP.
- Tests
pnpm check (no code changed, must still pass).
- Dab verifies
- Reads spec + ADR in Roughdraft; confirms fixtures parse as valid HTML in a browser; OKs schema before Goal 1.
Show /goal-0 prompt
/goal-0 — HTML MVP spec, fixtures, ADR
CONTEXT
We're shipping MVP parity of Roughdraft for HTML documents. This goal
is plan-only: no production code. We need a frozen schema and fixtures
before the implementation goals start.
OBJECTIVE
Produce: (1) .context/html-mvp-plan.md spec, (2) fixtures under
.context/fixtures/html/, (3) docs/adr/<next>-html-annotation-format.md.
IN SCOPE
- Finalize on-disk annotation schema (mark[data-rd-comment-ids],
rd-comment[data-rd-id/by/at/re/status], ins/del[data-rd-change-id],
span[data-rd-change-kind]).
- 5 fixtures: plain article, code-heavy doc, table doc, fully
annotated round-trip doc, malformed input.
- Decide naming: keep @roughdraft/rfm and expose HTML functions, OR
create @roughdraft/rhfm. Recommend one with reasoning.
OUT OF SCOPE
- Any change under packages/.
- Implementation of parser/emitter.
CONSTRAINTS
- Annotations must survive a browser opening the raw HTML file
without errors (use custom element rd-comment, valid attrs).
- script/style/pre/code/textarea are literal zones in the spec.
DONE CRITERIA
- Spec, ADR, fixtures committed (or in working tree) under listed paths.
- pnpm check passes.
RETURN FORMAT
Standard template. Include schema table and the recommended package
naming decision with one paragraph of reasoning.