Skip to content

fix(budget): skip the session-naming call after a budget stop - #1173

Draft
sosidudku1 wants to merge 3 commits into
mainfrom
fix/ato-1350-no-title-after-budget-stop
Draft

sosidudku1 wants to merge 3 commits into
mainfrom
fix/ato-1350-no-title-after-budget-stop

Conversation

@sosidudku1

Copy link
Copy Markdown
Collaborator

What

A turn the spend ceiling ended still fired the session namer, a paid side call (up to 512 output tokens) that the budget never counted. The namer is now skipped when the turn stopped for money: its own budget (cost_ceiling) or the provider credit (credit_exhausted). The session stays unnamed until a later turn answers within its budget.

Why

The promise is "stop at the cap". Found by live scenario L10 on 09.11. Linear: ATO-1350 (ATO-1354 is the same bug).

L10 currently allows at most one naming call after the stop; with this change there are none, which still fits.

The "$0.01 of $0.01" vs "$0.02 of $0.01" mismatch from ATO-1354 is not changed here: the model's notice is written before the closing summary step, the card counts that step too.

How it was verified

  • New unit test for stoppedForMoney in runtime-turn-service.test.ts.
  • Not run yet: lint, tsc and vitest go in one combined pass on the second Mac.

Not yet checked on the second Mac.

A turn the spend ceiling ended still fired the session namer, a paid
side call (up to 512 output tokens) that the budget never counted. The
promise is "stop at the cap", so the namer is now skipped when the turn
stopped for money (its own budget or the provider credit). The session
stays unnamed until a later turn answers within its budget.

ATO-1350, ATO-1354

This branch has not been deployed

No deployments
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