Implements markitect/llm/ package with concrete LLMAdapter implementations:
- OpenRouterAdapter: HTTP via urllib with retry/backoff on 429/5xx
- ClaudeCodeAdapter: subprocess-based Claude CLI with stdin piping
- Factory pattern: create_adapter("openrouter") or create_adapter("claude-code")
- API key resolution chain: constructor > env var > project-root key file
- 42 unit tests, 2 integration tests (gated on API key / CLI availability)
Also adds the infospace-with-history example with Wealth of Nations VSM
analysis pipeline, templates, schemas, source chapters, and processed
output for chapters 1-2. process_chapters.py now supports --provider
and --model flags for automatic LLM-driven processing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8.2 KiB
Chapter Analysis: Book I, Chapter 1 — Of the Division of Labour
Chapter Summary
Smith opens The Wealth of Nations by identifying the division of labour as the primary cause of improvement in the productive powers of labour. Using the celebrated pin-factory example, he demonstrates that ten workers collaborating under a division of labour can produce 48,000 pins per day, compared to fewer than 20 each if working independently — a productivity gain of over 240-fold. He attributes this gain to three mechanisms: increased dexterity through specialisation, time saved by eliminating task-switching, and the invention of labour-saving machinery stimulated by focused attention on single operations. Smith extends the argument from the workshop to society at large, showing that the separation of trades advances furthest in the most developed countries, and that the resulting multiplication of production creates a "universal opulence" reaching even the lowest social ranks. He illustrates this with the day-labourer's woollen coat, whose production requires the co-operation of thousands of workers across dozens of trades and multiple countries.
Entities Extracted
| # | Entity | Type | Economic Domain | Description |
|---|---|---|---|---|
| 1 | Division of labour | Concept | Production | Separation of work into specialised tasks to increase productive power |
| 2 | Productive powers of labour | Concept | Production | Capacity of labour to produce output per worker per unit time |
| 3 | Dexterity of the workman | Concept | Production | Skill and speed acquired through repeated specialised operation |
| 4 | Saving of time | Concept | Production | Elimination of time lost in switching between tasks |
| 5 | Invention of machinery | Mechanism | Production | Development of labour-saving machines stimulated by specialisation |
| 6 | Separation of trades | Mechanism | Production | Emergence of distinct occupations as separate specialisations |
| 7 | The workman | Actor | Production | Individual labourer performing productive specialised work |
| 8 | The philosopher | Actor | General Theory | Observer-specialist who combines knowledge across fields |
| 9 | Universal opulence | Concept | Distribution | Material well-being extending to all social ranks |
| 10 | Exchange | Mechanism | Exchange | Trading surplus production for goods produced by others |
| 11 | Co-operation of labour | Mechanism | Production | Interdependent collaboration across trades and locations |
| 12 | Manufactures | Concept | Production | Sector of production transforming raw materials through specialised operations |
| 13 | Agriculture | Concept | Production | Sector of production with limited division of labour due to seasonal constraints |
Total entities: 13
VSM Mappings
| Entity | VSM Concept | Strength | Key Rationale |
|---|---|---|---|
| Division of labour | S1 (Operations) | Strong | Defines internal architecture of operational units |
| Division of labour | Recursion | Strong | Operates at multiple levels: workshop, trade, nation |
| Productive powers of labour | S1 (Operations) | Strong | Key performance indicator of S1 effectiveness |
| Dexterity of the workman | S1 (Operations) | Strong | Self-optimisation capacity of individual S1 elements |
| Saving of time | S2 (Coordination) | Moderate | Eliminates oscillation between work modes |
| Invention of machinery | S4 (Intelligence) | Strong | Adaptive innovation driven by focused observation |
| Separation of trades | S1 (Operations) | Strong | Differentiation of S1 into distinct operational units |
| The workman | S1 (Operations) | Strong | Fundamental S1 element at lowest recursion level |
| The philosopher | S4 (Intelligence) | Strong | Environmental scanning and cross-domain synthesis |
| Universal opulence | Viability | Moderate | Emergent outcome of a functioning viable system |
| Exchange | S2 (Coordination) | Strong | Primary coordination mechanism between S1 units |
| Co-operation of labour | S2 (Coordination) | Moderate | Observable result of effective S2 coordination |
| Manufactures | S1 (Operations) | Strong | Major S1 domain with high internal differentiation |
| Agriculture | S1 (Operations) | Strong | S1 domain constrained by environment in differentiation |
Total mappings: 14 (some entities map to multiple VSM concepts)
VSM Coverage
| System | Covered | Entities Mapped | Notes |
|---|---|---|---|
| S1 (Operations) | Yes | Division of labour, productive powers, dexterity, separation of trades, the workman, manufactures, agriculture | Dominant system — chapter focuses on operational structure |
| S2 (Coordination) | Yes | Saving of time, exchange, co-operation of labour | Present through coordination mechanisms |
| S3 (Control) | No | — | No entities map to internal regulation or resource allocation |
| S3* (Audit) | No | — | No entities map to monitoring or verification |
| S4 (Intelligence) | Yes | Invention of machinery, the philosopher | Innovation and environmental scanning |
| S5 (Policy) | No | — | No entities map to identity, policy, or purpose |
| Recursion | Yes | Division of labour | Multi-level operation explicitly noted |
| Variety | No | — | Not explicitly addressed in this chapter |
| Requisite Variety | No | — | Not explicitly addressed |
| Attenuation/Amplification | No | — | Not explicitly addressed |
| Algedonic Signals | No | — | Not explicitly addressed |
| Autonomy | No | — | Implicit but not directly discussed |
| Viability | Yes | Universal opulence | System-level outcome |
Systems covered: S1, S2, S4 (3 of 5 primary systems) Systems not covered: S3, S3, S5* Key concepts covered: Recursion, Viability (2 of 7)
Gaps & Observations
Uncovered Systems
- S3 (Control): The chapter does not discuss regulation, resource allocation, or governance of operational units. Smith's "invisible hand" and regulatory structures appear in later chapters.
- S3 (Audit)*: No monitoring or verification mechanisms are discussed.
- S5 (Policy): The chapter does not address sovereign authority, economic policy, or the purpose of the commonwealth. Smith's brief reference to "a well-governed society" hints at S5 but does not develop it.
Difficult Mappings
- Saving of time maps only moderately to S2 because it describes the elimination of a coordination problem rather than a coordination mechanism itself.
- Universal opulence maps to Viability rather than a specific system, making it a systemic property rather than a structural element.
Emerging Themes
- S1 dominance: This chapter is overwhelmingly about operational structure. As the opening chapter of the book, it establishes the productive foundation before introducing regulatory and policy layers in subsequent chapters.
- Recursion as implicit structure: Smith's analysis naturally operates at multiple recursive levels (worker → workshop → trade → nation) even though he does not use systems-theoretic language.
- Innovation feedback loop: The connection between S1 (specialised workers) and S4 (invention/philosophy) represents a key feedback loop in the viable system: operational focus generates adaptive innovation.
Suggestions for Enriching Coverage
- S3 coverage is likely to emerge in chapters on wages, profits, and market regulation (Book I, Chapters 7-10).
- S5 coverage should appear in Book IV (political economy) and Book V (sovereign revenue).
- Variety and requisite variety may emerge when Smith discusses market size (Chapter 3) and the limitations of regulation.
- Later chapters on money (Chapter 4) and prices (Chapters 5-7) should strengthen S2 coverage through the price mechanism.
Cross-chapter Anticipations
Several entities from this chapter will likely recur and deepen in subsequent chapters:
- Division of labour → Chapter 2 (its cause) and Chapter 3 (its limits)
- Exchange → Chapter 4 (money as medium of exchange)
- Productive powers → Chapters 5-7 (price theory as measure of output)