{"spec_id":"grounded-cost-value-measurement","title":"Grounded Cost & Value Measurement for Prompt A/B ROI","summary":"**Idea**: `agent-grounded-measurement` (sub-idea of `coherence-network-agent-pipeline`)","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":"compute_grounded_cost returns actual_cost_usd when present, else runtime_cost_estimate; compute_grounded_value returns 0.0 for failed tasks; Quality multiplier degrades with retries (1.0/0.7/0.4/0.2); Raw signals stored alongside computed scores in every measurement; record_grounded_measurement requires no new API calls or DB queries","pseudocode_summary":null,"implementation_summary":"api/app/services/grounded_measurement_service.py (compute_grounded_cost(), compute_grounded_value()); api/app/services/grounded_idea_metrics_service.py (compute_idea_metrics())","created_by_contributor_id":null,"updated_by_contributor_id":null,"created_at":"2026-04-09T03:10:08.896299Z","updated_at":"2026-04-09T03:10:08.896299Z","content_path":"specs/grounded-cost-value-measurement.md","content_hash":"5d3872cefce24f1c","workspace_id":"coherence-network"}