infospace pipeline for wealth of nations example

This commit is contained in:
2026-05-14 18:04:38 +02:00
parent 8804461ca3
commit a729a7643e
26 changed files with 1124 additions and 32 deletions

View File

@@ -0,0 +1,10 @@
artifacts:
- id: source/book-1-chapter-03.md
path: artifacts/sources/book-1-chapter-03.md
kind: source
title: Book I Chapter III
provenance:
legacy_path: markitect-main/examples/infospace-with-history/artifacts/sources/book-1-chapter-03.md
pilot_role: one-chapter generation target
relationships: []

View File

@@ -0,0 +1,23 @@
---
id: book-1-chapter-03
title: THAT THE DIVISION OF LABOUR IS LIMITED BY THE EXTENT OF THE MARKET.
book: "1"
chapter: 3
artifact_type: content
legacy_source: markitect-main/examples/infospace-with-history/artifacts/sources/book-1-chapter-03.md
---
# Book I Chapter III
## Excerpt
As it is the power of exchanging that gives occasion to the division of
labour, so the extent of this division must always be limited by the extent of
that power, or, in other words, by the extent of the market.
When the market is very small, no person can have any encouragement to dedicate
himself entirely to one employment, for want of the power to exchange all that
surplus part of the produce of his own labour, which is over and above his own
consumption, for such parts of the produce of other men's labour as he has
occasion for.

View File

@@ -0,0 +1,25 @@
# Economic Entity Contract
```yaml contract
id: economic-entity-generation-pilot
document:
type: economic-entity
sections:
- id: definition
title: Definition
presence: required
level: 2
- id: source-chapter
title: Source Chapter
presence: required
level: 2
- id: context
title: Context
presence: required
level: 2
- id: economic-domain
title: Economic Domain
presence: required
level: 2
```

View File

@@ -0,0 +1,33 @@
# Relation Triplet Contract
```yaml contract
id: relation-triplet-generation-pilot
document:
type: relation-triplet
sections:
- id: subject
title: Subject
presence: required
level: 2
- id: predicate
title: Predicate
presence: required
level: 2
- id: object
title: Object
presence: required
level: 2
- id: relation-type
title: Relation Type
presence: required
level: 2
- id: vsm-channel
title: VSM Channel
presence: required
level: 2
- id: evidence
title: Evidence
presence: required
level: 2
```

View File

@@ -0,0 +1,106 @@
slug: wealth-vsm-generation-pilot
name: Wealth/VSM Generation Pilot
topic:
name: The Wealth of Nations / VSM Generation Pilot
domain: Classical Economics
sources: artifacts/sources
disciplines:
- name: Viable System Model
path: artifacts/vsm-reference
schemas:
entity: contracts/economic-entity.contract.md
relation: contracts/relation.contract.md
workflows:
- id: wealth-vsm-extract-entities
description: Extract economic entities from a source chapter and split the bundle into manifest artifacts.
inputs:
source:
kind: source
artifact_ids:
- source/book-1-chapter-03.md
static_macros:
discipline: Viable System Model
stages:
- id: extract-entities
kind: assisted
input: source
template: workflows/templates/extract-entities.md
provider_hint: explicit-adapter
output:
path: artifacts/generated/{{ input.slug }}-entities-bundle.md
artifact_id: generated/{{ input.slug }}-entities-bundle.md
kind: generated
title: "{{ input.title }} Entity Bundle"
- id: split-entity-bundle
kind: split_entities
input: source
static_macros:
bundle_stage: extract-entities
expected_evaluations:
- entity-contracts
- metrics
- id: wealth-vsm-map-and-analyze
description: Map generated entities to VSM relation artifacts and produce chapter analysis.
inputs:
source:
kind: source
artifact_ids:
- source/book-1-chapter-03.md
static_macros:
discipline: Viable System Model
stages:
- id: map-to-vsm
kind: assisted
input: source
template: workflows/templates/map-to-vsm.md
provider_hint: explicit-adapter
output:
path: artifacts/relations/division-of-labour-constrains-market-extent.md
artifact_id: relation/division-of-labour-constrains-market-extent.md
kind: relation
title: Division of Labour constrains Market Extent
- id: synthesize-analysis
kind: assisted
input: source
template: workflows/templates/synthesize-analysis.md
provider_hint: explicit-adapter
output:
path: artifacts/generated/{{ input.slug }}-analysis.md
artifact_id: generated/{{ input.slug }}-analysis.md
kind: generated
title: "{{ input.title }} VSM Analysis"
expected_evaluations:
- relation-contracts
- metrics
- id: wealth-vsm-evaluate-entities
description: Evaluate generated entity artifacts using successor artifact_id semantics.
inputs:
entity:
kind: entity
static_macros:
discipline: Viable System Model
stages:
- id: evaluate-entity
kind: assisted
input: entity
template: workflows/templates/evaluate-entity.md
provider_hint: explicit-adapter
output:
path: output/evaluations/{{ input.slug }}.md
artifact_id: evaluation/{{ input.slug }}.md
kind: evaluation
title: "{{ input.title }} Evaluation"
expected_evaluations:
- metrics
viability:
coverage_ratio:
min: 0.5
redundancy_ratio:
max: 0.1
coherence_components:
max: 3
consistency_cycles:
max: 0
per_artifact_mean:
min: 3.5

View File

@@ -0,0 +1,39 @@
# Wealth/VSM Generation Pilot Report
## Summary
This pilot proves one-chapter regeneration for the Adam Smith Wealth/VSM
infospace using explicit `infospace-bench` workflows, not the legacy process
script.
This is not the legacy process script; it is the successor workflow shape.
## One-Chapter Target
- Source: Book I Chapter III
- Legacy alignment: `markitect-main/examples/infospace-with-history`
- Successor pilot: `infospaces/wealth-vsm-generation-pilot`
## Workflow Shape
- `wealth-vsm-extract-entities` produces a generated entity bundle and splits
it into stable entity artifacts.
- `wealth-vsm-map-and-analyze` produces a relation artifact and generated
chapter analysis.
- `wealth-vsm-evaluate-entities` produces evaluation Markdown files using
successor `artifact_id` semantics.
- `infospace-bench check` merges deterministic collection checks and generated
evaluations into metrics history.
## Comparison To Legacy
The legacy implementation centered on a large `process_chapters.py` script with
implicit provider execution and output conventions. This pilot keeps provider
work explicit through assisted requests and records generated outputs through
the manifest or evaluation history.
## Scale-Up Notes
Full-corpus generation should happen only after reviewing one live
provider-backed run. Cost, model, prompt version, retry settings, and resume
strategy should be recorded before processing more chapters.

View File

@@ -0,0 +1,19 @@
# Book I Chapter III VSM Analysis
## Summary
The chapter describes a viability constraint: operational specialization can
increase productive power only when the exchange environment is large enough to
absorb specialized surplus.
## VSM Interpretation
Division of Labour behaves like a System 1 operational pattern. Market Extent
acts as an environmental and coordination constraint around those operations.
The generated relation records the structural dependency that makes
specialization viable only at sufficient market scale.
## Provenance
Generated by the fixture adapter for the one-chapter successor workflow pilot.

View File

@@ -0,0 +1,52 @@
# Division of Labour
## Definition
The separation of work into specialized tasks that increases productivity and depends on opportunities for exchange.
## Source Chapter
Book I, Chapter 3
## Context
Smith explains that the power of exchanging gives occasion to the division of labour, but that this division is constrained by how much exchange the market can support.
## Economic Domain
Production
## Original Wording
Smith writes that the power of exchanging gives occasion to the division of labour.
## Modern Interpretation
Specialization works only when producers can exchange specialized output for the goods they need.
# Market Extent
## Definition
The geographical and economic reach of exchange that determines whether specialized producers can find enough demand for their surplus output.
## Source Chapter
Book I, Chapter 3
## Context
Smith states that the extent of the division of labour must always be limited by the extent of the market.
## Economic Domain
Exchange
## Original Wording
The extent of this division must always be limited by the extent of the market.
## Modern Interpretation
Market size sets the practical ceiling for specialization because small markets cannot absorb surplus production.

View File

@@ -0,0 +1,30 @@
# Division of Labour constrains Market Extent
## Subject
Division of Labour
## Predicate
is limited by
## Object
Market Extent
## Relation Type
constrains
## VSM Channel
S2 <- S1
## Evidence
Book I, Chapter 3: "the extent of this division must always be limited by the extent of that power, or, in other words, by the extent of the market."
## Feedback Role
Market extent constrains specialization; successful specialization can increase surplus exchange and eventually expand the market.

View File

@@ -0,0 +1,51 @@
---
artifact_id: entity/division-of-labour.md
evaluator: fixture
evaluated_at: "2026-05-14T12:00:00+00:00"
scores:
- name: definition_precision
value: 4.0
max_value: 5.0
rationale: The definition is concise and grounded in exchange-mediated specialization.
- name: source_grounding
value: 5.0
max_value: 5.0
rationale: The entity is directly supported by Book I Chapter III.
- name: domain_placement
value: 4.0
max_value: 5.0
rationale: Production is the correct primary domain.
- name: vsm_relevance
value: 4.0
max_value: 5.0
rationale: The entity maps clearly to System 1 operations and coordination needs.
- name: explanatory_value
value: 5.0
max_value: 5.0
rationale: It explains why productive organization depends on exchange scale.
notes:
- Fixture evaluation for the explicit Wealth/VSM workflow pilot.
---
# Evaluation: entity/division-of-labour.md
## definition_precision - 4.0 / 5.0
The definition is concise and grounded in exchange-mediated specialization.
## source_grounding - 5.0 / 5.0
The entity is directly supported by Book I Chapter III.
## domain_placement - 4.0 / 5.0
Production is the correct primary domain.
## vsm_relevance - 4.0 / 5.0
The entity maps clearly to System 1 operations and coordination needs.
## explanatory_value - 5.0 / 5.0
It explains why productive organization depends on exchange scale.

View File

@@ -0,0 +1,51 @@
---
artifact_id: entity/market-extent.md
evaluator: fixture
evaluated_at: "2026-05-14T12:00:00+00:00"
scores:
- name: definition_precision
value: 4.0
max_value: 5.0
rationale: The definition captures market reach and demand capacity.
- name: source_grounding
value: 5.0
max_value: 5.0
rationale: The chapter states the relation directly.
- name: domain_placement
value: 4.0
max_value: 5.0
rationale: Exchange is the correct economic domain.
- name: vsm_relevance
value: 4.0
max_value: 5.0
rationale: The entity captures the environment that constrains operations.
- name: explanatory_value
value: 4.0
max_value: 5.0
rationale: It explains the limit on specialization.
notes:
- Fixture evaluation for the explicit Wealth/VSM workflow pilot.
---
# Evaluation: entity/market-extent.md
## definition_precision - 4.0 / 5.0
The definition captures market reach and demand capacity.
## source_grounding - 5.0 / 5.0
The chapter states the relation directly.
## domain_placement - 4.0 / 5.0
Exchange is the correct economic domain.
## vsm_relevance - 4.0 / 5.0
The entity captures the environment that constrains operations.
## explanatory_value - 4.0 / 5.0
It explains the limit on specialization.

View File

@@ -0,0 +1,22 @@
responses:
- stage_id: extract-entities
input_artifact_id: source/book-1-chapter-03.md
provider: fixture
markdown_path: responses/book-1-chapter-03-entities-bundle.md
- stage_id: map-to-vsm
input_artifact_id: source/book-1-chapter-03.md
provider: fixture
markdown_path: responses/book-1-chapter-03-relation.md
- stage_id: synthesize-analysis
input_artifact_id: source/book-1-chapter-03.md
provider: fixture
markdown_path: responses/book-1-chapter-03-analysis.md
- stage_id: evaluate-entity
input_artifact_id: entity/division-of-labour.md
provider: fixture
markdown_path: responses/division-of-labour-evaluation.md
- stage_id: evaluate-entity
input_artifact_id: entity/market-extent.md
provider: fixture
markdown_path: responses/market-extent-evaluation.md

View File

@@ -0,0 +1,12 @@
# Evaluate Entity
Discipline: {{ macros.discipline }}
Entity: {{ input.artifact_id }}
Return a successor evaluation Markdown file with YAML frontmatter containing
artifact_id, evaluator, evaluated_at, and scores.
## Entity Text
{{ input.content }}

View File

@@ -0,0 +1,12 @@
# Extract Economic Entities
Discipline: {{ macros.discipline }}
Source: {{ input.artifact_id }}
Return one Markdown entity document per top-level heading. Each entity must
include Definition, Source Chapter, Context, and Economic Domain sections.
## Source Text
{{ input.content }}

View File

@@ -0,0 +1,13 @@
# Map Source To VSM Relation
Discipline: {{ macros.discipline }}
Source: {{ input.artifact_id }}
Return one relation triplet that links the generated economic entities and
includes Subject, Predicate, Object, Relation Type, VSM Channel, Evidence, and
Feedback Role sections.
## Source Text
{{ input.content }}

View File

@@ -0,0 +1,12 @@
# Synthesize Chapter Analysis
Discipline: {{ macros.discipline }}
Source: {{ input.artifact_id }}
Write a concise VSM analysis of the chapter using the generated entities and
relation as evidence.
## Source Text
{{ input.content }}