A run needs a bounded resource policy before it starts. Input context, output size and retries all contribute to usage, but a token cap is not a promise about currency cost or model quality. Use measured or synthetic budgets without inventing current provider prices. In this lesson you configure separate input, output and attempt limits and require a stop when the budget is exhausted. The values are fictional exercise inputs. Keep the stop condition enforced by the caller rather than relying only on an instruction to be economical. A useful handoff records partial work and the reason the run stopped, so a later task can resume deliberately.
A worked artifact for a separate fictional task. Compare its actions with the contract.