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

@@ -0,0 +1,44 @@
# Document with Diagram Sources
## State Machine
The following Mermaid diagram describes the state machine:
```mermaid
stateDiagram-v2
[*] --> Idle
Idle --> Processing: start
Processing --> Done: complete
Processing --> Error: fail
Done --> [*]
Error --> Idle: reset
```
## Dependency Graph
The Graphviz diagram shows dependencies:
```graphviz
digraph G {
A -> B;
A -> C;
B -> D;
C -> D;
}
```
## Sequence
The PlantUML sequence diagram:
```plantuml
@startuml
Alice -> Bob: Request
Bob --> Alice: Response
Alice -> Carol: Forward
@enduml
```
## Summary
All three diagram types are supported in LEVEL3 source-only mode.