ktg-plugin-marketplace/plugins/voyage/tests/integration
Kjell Tore Guttormsen 75130fe979 feat(voyage): implement block-boundary-fallback for code-fence/table/list anchors
Step 17 of v4.3 playground plan. Pure function relocateAnchorsToBlockBoundaries
(text, anchors) detects atomic markdown blocks (fenced code, tables, deeply
nested lists) and relocates anchor-comment insertion to the line BEFORE block
opening rather than inside the block. Pure markdown-text -> markdown-text
transform (no DOM, no markdown-it dependency).

Companion test tests/integration/annotation-block-boundary.test.mjs extracts
the function via balanced-brace scan and exercises it through Function() —
7 unit tests covering empty anchors, outside-block stays, fenced-code
relocation, table relocation, deeply-nested list relocation, mixed
inside/outside, and shape contract.

Trace: SC6, research/04 Dim 3 (Notion block-level fallback), plan-critic
major #6 (DOM-vs-no-DOM contradiction resolved via pure-function design).
2026-05-10 17:04:27 +02:00
..
annotation-block-boundary.test.mjs feat(voyage): implement block-boundary-fallback for code-fence/table/list anchors 2026-05-10 17:04:27 +02:00
annotation-roundtrip.test.mjs test(voyage): add annotation roundtrip + rollback + source_annotations integration — v4.2 Step 7 2026-05-09 15:13:27 +02:00
observability-compose.test.mjs test(voyage): add tests/integration/observability-compose.test.mjs — SC #16 skip-if-no-docker pattern 2026-05-09 09:52:23 +02:00
profile-jaccard-smoke.test.mjs test(voyage): add tests/integration/profile-jaccard-smoke.test.mjs — cross-tier smoke per research/02 2026-05-09 09:58:02 +02:00
schema-rollback.test.mjs test(voyage): add annotation roundtrip + rollback + source_annotations integration — v4.2 Step 7 2026-05-09 15:13:27 +02:00