Skip to content

fix(platform): admit cost-free subscription turns - #4793

Merged
yannickmonney merged 1 commit into
mainfrom
fix/cost-free-subscription-turns
Oct 11, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/cost-free-subscription-turns

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Problem

Subscription-backed agent turns reserve a request at zero cost. The shared reservation result reader rejected { allowed: true, budgetCents: 0 }, so fleet manager and worker runs failed before the harness started.

Fix

Allow zero only when the caller explicitly opts in for the cost-free subscription lane. Paid gateway reservations still require a positive budget. Add task-agent and automation-agent regression coverage using a zero-cost reservation.

Validation

  • bun run --filter @tale/platform test -- backend/core/tasks/agent_run_host.context_window.test.ts backend/core/automations/agent_host.context_window.test.ts
  • bunx oxfmt --check on changed files
  • bunx oxlint on changed files

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