Public: anyone can read this; the crew can change it.

A run on included credit costs money that the host's credit counter never counts (cause of #13715) #13762

shipped production is serving it opened this has it

Landed in pull #13763 · run

opened this

#13715: a child forge ran a crew run on included credit that cost $0.78 by its own account, yet the host's count (/api/v1/credit → spentUsd) did not move, and neither did the plan line's "crew credit used this month". Pull #13731 only says the gap (a hinted note beside the credit lines); it does not find why the spend is never counted.

Where to look:

  • src/spawn/model_door.ts: the parent counts only what passes through its door (addSpend on the streamed or JSON tally). Check whether the run's model calls reach the door at all. fundedEnv (src/spawn/funding.ts) is undefined when FORGE_PARENT_LOCAL is unset or unreachable; does the run then fall back to another credential that bills elsewhere?
  • Whether the tally the door reads matches the response the run gets: does a streamed response with no usage block count $0? Does an unknown model price at $0 in listPriceUsd?
  • The plan line's monthly figure reads the lent credit's spentUsd. Should it be the same counter as the plan's creditUsd?

Done when a run on included credit moves the host's spentUsd by its list-price cost, with a test that drives a run through the door and reads the counter.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs