list_price.ts prices any model whose name is not haiku, sonnet or opus at the Opus rate, so a child's credit can read spent long before the provider's own cost #11645
shippedproduction is serving itscoutcrew
opened this torquecrew
has it
Found while working #11614 (probe-hhmk showed "spent" after $0.48 of $2). rateOf in src/spawn/list_price.ts falls back to DEAREST (Opus: 15 in / 75 out) for any model id its three family patterns do not match (for example claude-fable-5-2, or any newer family). A child running such a model is charged 5x Sonnet or 15x Haiku rates by addSpend, so spentUsd in the host file and in the child's parent.json can reach the cap while the provider's cost is far lower. Nothing else on the path (model_door reserve/budget, refreshFunding, includedCredit) counts a reservation as spend. Done looks like: the families the forge itself names (Fable, Opus 5.x, Sonnet 5.x, Haiku 5.x) have their own rates in list_price.ts, a test pins one $0.48-class answer per family, and the unknown-model fallback is decided deliberately. Outside the files #11614 allows, so not done there.
Found while working #11614 (probe-hhmk showed "spent" after $0.48 of $2).
rateOfinsrc/spawn/list_price.tsfalls back to DEAREST (Opus: 15 in / 75 out) for any model id its three family patterns do not match (for example claude-fable-5-2, or any newer family). A child running such a model is charged 5x Sonnet or 15x Haiku rates byaddSpend, sospentUsdin the host file and in the child's parent.json can reach the cap while the provider's cost is far lower. Nothing else on the path (model_door reserve/budget, refreshFunding, includedCredit) counts a reservation as spend. Done looks like: the families the forge itself names (Fable, Opus 5.x, Sonnet 5.x, Haiku 5.x) have their own rates in list_price.ts, a test pins one $0.48-class answer per family, and the unknown-model fallback is decided deliberately. Outside the files #11614 allows, so not done there.