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>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
---
|
||||
entity_slug: division_of_labour
|
||||
entity_type: Process
|
||||
vsm_system: S1
|
||||
type_rationale: The definition describes "the separation of a work process into distinct
|
||||
tasks performed by specialised workers," which is an activity or transformation
|
||||
in how work is conducted.
|
||||
vsm_rationale: Division of Labour directly concerns the organization and execution
|
||||
of "productive activities" by specialized workers to increase output, which is the
|
||||
core function of S1.
|
||||
classified_at: '2026-02-23T05:14:54.928218'
|
||||
---
|
||||
|
||||
# Classification: Division Of Labour
|
||||
|
||||
## Entity Type
|
||||
|
||||
Process
|
||||
|
||||
## VSM System
|
||||
|
||||
S1
|
||||
|
||||
## Type Rationale
|
||||
|
||||
The definition describes "the separation of a work process into distinct tasks performed by specialised workers," which is an activity or transformation in how work is conducted.
|
||||
|
||||
## VSM Rationale
|
||||
|
||||
Division of Labour directly concerns the organization and execution of "productive activities" by specialized workers to increase output, which is the core function of S1.
|
||||
@@ -0,0 +1,30 @@
|
||||
---
|
||||
entity_slug: invisible_hand_mechanism
|
||||
entity_type: Principle
|
||||
vsm_system: S4
|
||||
type_rationale: The Invisible Hand Mechanism is an abstract theoretical claim about
|
||||
how individual self-interest unintentionally leads to broader public welfare, functioning
|
||||
as a fundamental rule of market operation.
|
||||
vsm_rationale: The Invisible Hand Mechanism describes the system's inherent capacity
|
||||
for adaptation and self-organization, producing beneficial outcomes from individual
|
||||
actions without central direction, aligning with S4's function of intelligence.
|
||||
classified_at: '2026-02-23T05:15:10.936874'
|
||||
---
|
||||
|
||||
# Classification: Invisible Hand Mechanism
|
||||
|
||||
## Entity Type
|
||||
|
||||
Principle
|
||||
|
||||
## VSM System
|
||||
|
||||
S4
|
||||
|
||||
## Type Rationale
|
||||
|
||||
The Invisible Hand Mechanism is an abstract theoretical claim about how individual self-interest unintentionally leads to broader public welfare, functioning as a fundamental rule of market operation.
|
||||
|
||||
## VSM Rationale
|
||||
|
||||
The Invisible Hand Mechanism describes the system's inherent capacity for adaptation and self-organization, producing beneficial outcomes from individual actions without central direction, aligning with S4's function of intelligence.
|
||||
@@ -0,0 +1,30 @@
|
||||
---
|
||||
entity_slug: natural_price_as_central_price
|
||||
entity_type: Principle
|
||||
vsm_system: S2
|
||||
type_rationale: The natural price is an abstract concept describing an equilibrium
|
||||
point and a tendency for market prices to gravitate towards it, functioning as a
|
||||
fundamental economic law.
|
||||
vsm_rationale: The natural price acts as a central price signal that coordinates market
|
||||
activity by drawing fluctuating market prices towards an equilibrium, thereby performing
|
||||
an anti-oscillation function.
|
||||
classified_at: '2026-02-23T05:15:04.916853'
|
||||
---
|
||||
|
||||
# Classification: Natural Price As Central Price
|
||||
|
||||
## Entity Type
|
||||
|
||||
Principle
|
||||
|
||||
## VSM System
|
||||
|
||||
S2
|
||||
|
||||
## Type Rationale
|
||||
|
||||
The natural price is an abstract concept describing an equilibrium point and a tendency for market prices to gravitate towards it, functioning as a fundamental economic law.
|
||||
|
||||
## VSM Rationale
|
||||
|
||||
The natural price acts as a central price signal that coordinates market activity by drawing fluctuating market prices towards an equilibrium, thereby performing an anti-oscillation function.
|
||||
Reference in New Issue
Block a user