feat(llm): add OpenAI adapter, entity archive policy, process chapters 5-7

Add OpenAIAdapter for the OpenAI chat completions API (apikey-chatgpt.txt
or OPENAI_API_KEY). Set default model to arcee-ai/trinity-large-preview:free
for the infospace pipeline and increase max_tokens from 4096 to 8192.

Reprocess chapter 05 with Trinity Large (was Gemini: 1 truncated entity,
now 19 complete entities). Process chapters 06 (Aurora Alpha, 10 entities)
and 07 (Trinity Large, 15 entities including regenerated violent-policy.md).
Canonical set now at 85 unique entities.

Add entity archive policy: entities are never silently deleted. Retired
entities move to output/entities/archive/ with a dated reason header.
New CLI option: --archive-entity <slug> --reason "...". The --list
output shows the archive count alongside the canonical set.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-11 23:39:44 +01:00
parent 880c1d1374
commit 41773f1320
68 changed files with 6500 additions and 136 deletions

View File

@@ -593,22 +593,115 @@ changing environment. A viable system continuously adapts while maintaining
its identity.
## Existing Entities
The following entities have already been extracted from previous chapters
of this work. Do NOT re-extract any of these. If one of these entities
appears in the current chapter, you may omit it entirely — the infospace
already contains it. Only extract entities that are genuinely new.
- accidental-fluctuation
- agriculture
- average-produce
- barter
- benevolence
- bullion-price
- capital
- central-price
- co-operation-of-labour
- command-over-labour
- commercial-society
- commodity
- common-stock
- component-part-of-price
- component-parts-of-price
- corn-rent
- cost-of-transport-relative-to-value
- country-workman
- degradation-of-coinage
- dexterity-of-the-workman
- difference-of-talents
- division-of-labour
- effectual-demand
- effectual-demanders
- encouragement-to-industry
- enlarged-monopoly
- exchange
- extent-of-the-market
- extraordinary-profit
- gold-as-measure-of-value
- improvement-of-art-and-industry
- inland-navigation
- inspection-and-direction-labour
- insurance-differential-land-vs-water
- interest-of-money
- invention-of-machinery
- labour-as-measure-of-value
- land-carriage
- legal-tender
- manufactures
- maritime-commerce
- market-price
- market-price-fluctuation
- mediterranean-sea-as-economic-geography
- mint-price
- money
- money-as-measure-of-value
- money-rent
- monopoly-price
- nailer
- natural-price
- natural-rate
- nominal-price
- north-american-colonial-settlement-pattern
- permanent-enhancement
- porter
- power-of-exchanging
- power-of-purchasing
- principal-clerk
- productive-powers-of-labour
- profit-of-stock
- propensity-to-truck-barter-and-exchange
- real-nominal-price-distinction
- real-price
- rent-of-land
- revenue
- saving-of-time
- seignorage
- self-interest
- self-sufficiency-of-the-farmer
- separation-of-trades
- silver-as-measure-of-value
- stock
- surplus-produce
- territorial-obstruction-of-trade
- the-bargain
- the-philosopher
- the-workman
- toil-and-trouble
- universal-opulence
- value-of-silver
- wages-of-labour
- water-carriage
## Instructions
1. Read the source chapter carefully.
2. Identify all distinct economic concepts, actors, mechanisms, and institutions.
3. For each entity, produce a separate markdown document following the
2. Review the list of existing entities above and do not duplicate them.
3. Identify all distinct economic concepts, actors, mechanisms, and institutions
that are NOT already in the existing entities list.
4. For each new entity, produce a separate markdown document following the
Economic Entity Schema v1.0.
4. Each entity document must include:
5. Each entity document must include:
- An H1 heading with the entity name
- A Definition section (20-150 words)
- A Source Chapter section citing the specific chapter
- A Context section describing where in the argument the entity appears
- An Economic Domain section classifying the entity
5. Optionally include Smith's Original Wording (direct quote) and
6. Optionally include Smith's Original Wording (direct quote) and
Modern Interpretation sections.
6. Use neutral, analytical language throughout.
7. Ensure each entity is distinct and self-contained.
7. Use neutral, analytical language throughout.
8. Ensure each entity is distinct and self-contained.
## Output Format