Skip to content

fix(cli): run uses response.status, report uses correct SystemReport fields#2

Closed
vaskoevgen wants to merge 1 commit into
jmcentire:mainfrom
vaskoevgen:fix/cli-run-and-report
Closed

fix(cli): run uses response.status, report uses correct SystemReport fields#2
vaskoevgen wants to merge 1 commit into
jmcentire:mainfrom
vaskoevgen:fix/cli-run-and-report

Conversation

@vaskoevgen
Copy link
Copy Markdown
Collaborator

Summary

  • apprentice run crashed with AttributeError: 'TaskResponse' object has no attribute 'success'TaskResponse exposes status: RunStatus, not success: bool. Fixed by importing RunStatus and deriving success from response.status == RunStatus.success.
  • apprentice report crashed with AttributeError: 'SystemReport' object has no attribute 'tasks'SystemReport uses task_snapshots (not tasks), global_budget_used_usd / global_budget_remaining_usd (not total_budget_spent / total_budget_limit), and uptime_seconds (not system_uptime_seconds). ConfidenceSnapshot entries hold budget_used_usd / budget_remaining_usd / budget_exhausted directly, not via a nested .budget object.

Test plan

  • apprentice run calculator_eval --input '{"expression": "2 + 2"}' returns Success: True and output
  • apprentice report prints phase, confidence, and budget without crashing
  • apprentice status still works (was already correct)

🤖 Generated with Claude Code

…fields

TaskResponse has status:RunStatus, not success:bool — run was raising
AttributeError. SystemReport uses task_snapshots/global_budget_*/uptime_seconds,
not tasks/total_budget_*/system_uptime_seconds — report was crashing on all calls.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vaskoevgen vaskoevgen force-pushed the fix/cli-run-and-report branch from 0c0ec9d to f5da712 Compare May 8, 2026 14:14
@vaskoevgen
Copy link
Copy Markdown
Collaborator Author

Closing in favour of a new PR from the unified branch fix/all-health-fixes. Same code — branch renamed for consistency across all repos.

@vaskoevgen vaskoevgen closed this May 9, 2026
@vaskoevgen vaskoevgen deleted the fix/cli-run-and-report branch May 9, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant