Compare commits

..

2 commits

Author SHA1 Message Date
bbb08b7789 Merge pull request 'Display budget as spend status, not exhaustion alarm' (#31) from fix/budget-display-clarity into main
Reviewed-on: #31
2026-04-08 22:20:01 +00:00
Jeff Smith
c0d4f391b6 Display budget as spend status, not exhaustion alarm
Replace 'Budget exhausted: True/False' with 'Budget status: spent /
under cap' in the Confidence panel. The previous wording read as a
failure indicator when in practice 'exhausted' just means the agent
spent its tool-use cap before voluntarily stopping — the normal,
expected outcome on real questions with the default 20k budget.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 16:12:39 -06:00

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"Contradiction detected: {cf.contradiction_detected}\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'}")
console.print(Panel(conf_text, title="Confidence", border_style="green"))