Merge pull request 'Display budget as spend status, not exhaustion alarm' (#31) from fix/budget-display-clarity into main

Reviewed-on: #31
This commit is contained in:
archeious 2026-04-08 22:20:01 +00:00
commit bbb08b7789

View file

@ -137,7 +137,8 @@ def render_result(result: ResearchResult, console: Console) -> None:
conf_text.append(f"Source authority: {cf.source_authority}\n") conf_text.append(f"Source authority: {cf.source_authority}\n")
conf_text.append(f"Contradiction detected: {cf.contradiction_detected}\n") conf_text.append(f"Contradiction detected: {cf.contradiction_detected}\n")
conf_text.append(f"Query specificity match: {cf.query_specificity_match:.2f}\n") conf_text.append(f"Query specificity match: {cf.query_specificity_match:.2f}\n")
conf_text.append(f"Budget exhausted: {cf.budget_exhausted}\n") budget_status = "spent" if cf.budget_exhausted else "under cap"
conf_text.append(f"Budget status: {budget_status}\n")
conf_text.append(f"Recency: {cf.recency or 'unknown'}") conf_text.append(f"Recency: {cf.recency or 'unknown'}")
console.print(Panel(conf_text, title="Confidence", border_style="green")) console.print(Panel(conf_text, title="Confidence", border_style="green"))