markitect-main/markitect/infospace
tegwick ef3d47779e feat(infospace): add entity-relation graph export (Mermaid + DOT)
New graph_export.py module supporting the `markitect infospace graph`
command added in the previous commit.

- build_entity_graph(): constructs node/edge graph from L2 classifications
  and L3 relation triplets, with feedback loop detection via networkx
- apply_filters(): subgraph filters by entity type, VSM system, ego
  neighbourhood, feedback-loops-only, and classified-only
- to_mermaid(): Mermaid flowchart export
  - Uses "-- label -->" syntax for all edges (robust with parentheses);
    "== label ==>" thick arrows for feedback loop edges
  - markdown_fence=True wraps output in ```mermaid block (VS Code / GitHub)
  - color_by="type" or "vsm" with distinct palettes for each
- to_dot(): Graphviz DOT export with fillcolor per type/VSM system

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 13:14:25 +01:00
..
checks docs(metrics): clarify C2 coverage — domain×chapter matrix, not domain×VSM 2026-02-20 00:08:46 +01:00
__init__.py feat(infospace): add infospace configuration model and state (S2.1) 2026-02-19 01:44:14 +01:00
classification.py feat(example): add L2 classifications for 823/988 WoN entities (S3.4) 2026-02-23 12:49:11 +01:00
classification_io.py feat(example): add L2 classifications for 823/988 WoN entities (S3.4) 2026-02-23 12:49:11 +01:00
classifier.py feat(example): add L2 classifications for 823/988 WoN entities (S3.4) 2026-02-23 12:49:11 +01:00
cli.py feat(example): add L2 classifications for 823/988 WoN entities (S3.4) 2026-02-23 12:49:11 +01:00
composition.py feat(infospace): add composition model for discipline binding (S2.6) 2026-02-19 02:03:54 +01:00
config.py feat(infospace): add L2 entity classification with type × VSM matrix (S2.9) 2026-02-23 09:35:58 +01:00
entity_parser.py feat(example): add supply-chain-vsm composition demo (S3.5) 2026-02-23 00:08:51 +01:00
evaluate.py feat(infospace): add eval-summary command and improve evaluate pipeline (S3.3) 2026-02-23 01:26:45 +01:00
evaluation.py feat(infospace): add structured evaluation output with history and diffing (S1.5) 2026-02-19 01:35:22 +01:00
evaluation_io.py feat(infospace): add structured evaluation output with history and diffing (S1.5) 2026-02-19 01:35:22 +01:00
graph_export.py feat(infospace): add entity-relation graph export (Mermaid + DOT) 2026-02-23 13:14:25 +01:00
history.py feat(example): add L2 classifications for 823/988 WoN entities (S3.4) 2026-02-23 12:49:11 +01:00
models.py feat(infospace): add entity metadata parser (S1.1) 2026-02-19 00:27:45 +01:00
pipeline.py fix(pipeline): retry on all LLM errors (not just rate limits) 2026-02-19 20:32:23 +01:00
relation_models.py feat(infospace): add L3 relation graph with VSM-aware triplets (S2.8) 2026-02-23 06:04:28 +01:00
relation_parser.py feat(infospace): add L3 relation graph with VSM-aware triplets (S2.8) 2026-02-23 06:04:28 +01:00
schema.py feat(infospace): add schema compliance validator (S1.2) 2026-02-19 00:48:57 +01:00
state.py feat(infospace): add infospace configuration model and state (S2.1) 2026-02-19 01:44:14 +01:00
validator.py feat(infospace): add schema compliance validator (S1.2) 2026-02-19 00:48:57 +01:00