Skip to content

fix: budget tracker drops test costs due to tuple index bug#518

Open
Serhan-Asad wants to merge 1 commit intopromptdriven:mainfrom
Serhan-Asad:fix/issue-508-v3
Open

fix: budget tracker drops test costs due to tuple index bug#518
Serhan-Asad wants to merge 1 commit intopromptdriven:mainfrom
Serhan-Asad:fix/issue-508-v3

Conversation

@Serhan-Asad
Copy link
Contributor

@Serhan-Asad Serhan-Asad commented Feb 13, 2026

Summary

  • 5 failing unit tests reproducing the tuple index bug at sync_orchestration.py:1752
  • 2 failing E2E tests verifying budget tracking at integration level
  • result[-2] on a 4-tuple returns model name string instead of cost float, silently dropping test/test_extend costs

Root Cause

result[-2] on (content, cost, model, agentic_success) returns result[2] (model), not result[1] (cost). The isinstance(..., (int, float)) check fails silently, defaulting to $0.00.

Fixes #508

result[-2] on a 4-tuple returns model name string instead of cost float,
silently dropping test/test_extend costs.

Fixes promptdriven#508

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

Budget tracker drops test/test_extend costs due to wrong tuple index

1 participant