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

@@ -0,0 +1,19 @@
# revenue
**Definition**
Revenue is the total inflow of economic value received by an individual, firm, or institution from its productive activities. It can originate from labour (wages), capital (profit), land (rent), or financial assets (interest).
**Source Chapter**
*The Wealth of Nations*, Book1, Chapter6.
**Context**
Smith discusses revenue toward the end of the chapter, stating that “All other revenue is ultimately derived from some one or other of those three original sources of revenue.” He categorizes revenue into wages, profit, and rent.
**Economic Domain**
General Theory
**Smiths Original Wording**
> “All other revenue is ultimately derived from some one or other of those three original sources of revenue, and are paid either immediately or mediately from the wages of labour, the profits of stock, or the rent of land.”
**Modern Interpretation**
Revenue is a core accounting term representing total income before expenses. In macroeconomics, it aligns with factor income distribution and the national accounts measurement of Gross Domestic Product (GDP) components.