{"spec_id":"coherence-credit-internal-currency","title":"Coherence Credit (CC) — Internal Currency (Phase 1: Unit of Account)","summary":"The Coherence Network tracks ideas, specs, and value lineage but currently uses raw USD floats with hardcoded conversion rates scattered across services. This spec introduces an internal unit of account called \"Coherence Credit\" (CC) that represents real resource cost, preserves resource-type breakdowns, has a configurable exchange rate anchored to observable market prices, and makes all formulas dimensionally consistent. Phase 1 is purely additive: new models, config, service, and a `value_basi","potential_value":0.0,"actual_value":1.0,"estimated_cost":0.0,"actual_cost":1.0,"value_gap":0.0,"cost_gap":1.0,"estimated_roi":0.0,"actual_roi":1.0,"idea_id":"coherence-credit","process_summary":"R1: CostVector and ValueVector Pydantic models that decompose any CC amount into resource categories; R2: ExchangeRate config loaded from `data/exchange_rates.json` with epoch-locked rates; R3: `cc_from_usd()` and `usd_from_cc()` conversion functions (verified inverses); R4: `value_basis` field on the Idea model — dict mapping field names to human-readable rationale strings; R5: ProviderRate model for comparing providers in CC terms","pseudocode_summary":null,"implementation_summary":"api/app/services/coherence_credit_service.py (exchange rates, CC conversion); api/app/models/coherence_credit.py (CostVector, ValueVector, ExchangeRate, ProviderRate)","created_by_contributor_id":null,"updated_by_contributor_id":null,"created_at":"2026-04-09T03:10:08.846503Z","updated_at":"2026-04-09T03:10:08.846503Z","content_path":"specs/coherence-credit-internal-currency.md","content_hash":"8a0c11463e8e9745","workspace_id":"coherence-network"}