markitect-main/examples
tegwick 81a4c8796a feat(infospace): add L2 entity classification with type × VSM matrix (S2.9)
Implements the L2 typed-entities layer — each entity is assigned an
Entity Type (Element, Process, Relation, Principle, Institution) and a
VSM System (S1–S5) by an LLM, with one-sentence rationales for each.

New modules:
- markitect/infospace/classification.py — EntityClassification dataclass
  + ENTITY_TYPES / VSM_SYSTEMS controlled vocabularies
- markitect/infospace/classification_io.py — write/read classification
  files (YAML frontmatter + markdown body, mirrors evaluation_io)
- markitect/infospace/classifier.py — build_classification_prompt(),
  parse_classification_response(), run_entity_classification(); batch
  runner writes files incrementally (same resumable pattern as evaluate)

CLI: markitect infospace classify [--entity SLUG] [--provider P] [--model M]
  - Incremental skip: checks output/classifications/ for existing files
  - Defaults to openrouter provider; 2000 max_tokens (Gemini 2.5 Flash
    uses ~787 thinking tokens, so 800 was too low)

CLI: markitect infospace classify-summary [--update-metrics]
  - Entity type counts + VSM system counts with percentages
  - 5 × 6 type × VSM matrix (spots structural blind spots at a glance)
  - --update-metrics writes type_distribution, type_entropy,
    vsm_type_matrix_cells to metrics.yaml

Config: InfospaceConfig gains classifications_dir (default output/classifications)
Schema: schemas/typed-entity-schema-v1.0.md — type/VSM vocabulary tables,
  rationale format rules, validation rules, metrics enabled at L2
infospace.yaml: schemas.typed_entity references typed-entity-schema-v1.0.md

Seed classifications (3): division_of_labour (Process/S1),
  natural_price_as_central_price (Principle/S2),
  invisible_hand_mechanism (Principle/S4)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 09:35:58 +01:00
..
asset-management refactor: reorganize examples directory with topic-based subdirectories 2025-10-29 22:31:52 +01:00
content-generator feat(examples): add content-generator example demonstrating Prompt Dependency Resolution 2026-02-09 23:50:07 +01:00
design-patterns docs: Add design pattern examples and update submodule 2025-12-16 17:00:31 +01:00
essays refactor: reorganize examples directory with topic-based subdirectories 2025-10-29 22:31:52 +01:00
image-assets feat: implement comprehensive asset shipping for md-render command 2025-10-29 23:12:44 +01:00
infospace-with-history feat(infospace): add L2 entity classification with type × VSM matrix (S2.9) 2026-02-23 09:35:58 +01:00
invoicing refactor: reorganize examples directory with topic-based subdirectories 2025-10-29 22:31:52 +01:00
issue-demos refactor: reorganize examples directory with topic-based subdirectories 2025-10-29 22:31:52 +01:00
manpages docs: update manpage and terminology examples to schema-of-schemas standard 2026-01-05 13:13:24 +01:00
plugins refactor: reorganize examples directory with topic-based subdirectories 2025-10-29 22:31:52 +01:00
schemas chore: establish schema-of-schemas workplan and reorganize roadmap 2026-01-04 23:47:02 +01:00
supply-chain-vsm feat(example): add supply-chain-vsm composition demo (S3.5) 2026-02-23 00:08:51 +01:00
templates feat: complete schema-evolution topic with ADR schema and markdown support 2026-01-06 12:32:38 +01:00
terminology docs: update manpage and terminology examples to schema-of-schemas standard 2026-01-05 13:13:24 +01:00