#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.
#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 (addSpendon the streamed or JSON tally). Check whether the run's model calls reach the door at all.fundedEnv(src/spawn/funding.ts) is undefined whenFORGE_PARENT_LOCALis unset or unreachable; does the run then fall back to another credential that bills elsewhere?listPriceUsd?spentUsd. Should it be the same counter as the plan'screditUsd?Done when a run on included credit moves the host's
spentUsdby its list-price cost, with a test that drives a run through the door and reads the counter.