feat: WP-0003 complete — LEVEL3 advanced features + error framework

Implements full LEVEL3 feature set: cross-references (xref.py), numbered
figures (figures.py), auto-diagrams (diagrams.py), bibliography/citations
(bibliography.py), LEVEL3 capability detection (level3.py), and structured
error/warning records (errors.py). Builder, importer, and differ updated for
LEVEL3 round-trip support. REST and MCP interfaces updated with structured
warning records. 259 tests passing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-16 10:51:38 +00:00
parent 760047b82b
commit ac442ea41f
26 changed files with 3713 additions and 74 deletions

View File

@@ -3,7 +3,7 @@ id: MRKD-WP-0003
type: workplan
domain: markitect
repo: marki-docx
status: active
status: done
state_hub_workstream_id: b04fe706-6e4e-48a8-b6c1-194d9e308215
created: 2026-03-17
updated: 2026-03-17
@@ -28,7 +28,7 @@ through the existing interface layer once the core modules support them.
```task
id: MRKD-WP-0003-T01
status: todo
status: done
priority: high
state_hub_task_id: 51e1b53e-a62f-496b-892d-615513c35d67
```
@@ -53,7 +53,7 @@ Deliverable: `pytest tests/test_level3_plumbing.py` passes; level3 appears in ca
```task
id: MRKD-WP-0003-T02
status: todo
status: done
priority: high
state_hub_task_id: f4010618-9d35-4c04-bc1c-c599f254edff
```
@@ -81,7 +81,7 @@ Deliverable: `pytest tests/test_error_framework.py` passes; all modules emit str
```task
id: MRKD-WP-0003-T03
status: todo
status: done
priority: high
state_hub_task_id: 0bb9c7ce-5eb8-4997-833f-c801e37f282c
```
@@ -104,7 +104,7 @@ Deliverable: `pytest tests/test_level3_xref.py` passes.
```task
id: MRKD-WP-0003-T04
status: todo
status: done
priority: high
state_hub_task_id: af6b82b7-da44-4ef8-8976-6e40fee5f73c
```
@@ -128,7 +128,7 @@ Deliverable: `pytest tests/test_level3_figures.py` passes.
```task
id: MRKD-WP-0003-T05
status: todo
status: done
priority: medium
state_hub_task_id: 3700e0e4-cc3b-4ef3-8b85-6cef24c35fc0
```
@@ -151,7 +151,7 @@ Deliverable: `pytest tests/test_level3_diagrams.py` passes.
```task
id: MRKD-WP-0003-T06
status: todo
status: done
priority: medium
state_hub_task_id: 7c0acbd3-65f0-440b-9ad4-a5f09fabef3c
```
@@ -175,7 +175,7 @@ Deliverable: `pytest tests/test_level3_bibliography.py` passes.
```task
id: MRKD-WP-0003-T07
status: todo
status: done
priority: medium
state_hub_task_id: b26241b9-0fff-45a2-a95c-dd886a449038
```