chimera_budget_lock
Lock approved token budget and track usage across actions. Check remaining tokens and status to avoid exceeding limits, with automatic compression at critical status.
Instructions
Lock approved token budget after user approves CSM proposal. Actions: lock/check/update/release. Returns remaining_tokens and status (ok/warn/critical). At critical status, compress draft before sending.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_output_tokens | Yes | The approved output token budget (from chimera_csm.max_output_tokens). | |
| tokens_generated | No | Tokens generated so far this turn (update this to check remaining budget). Default 0. | |
| label | No | Optional label for this budget (e.g. task name or user message summary). | |
| action | No | lock=set budget, check=query remaining, update=add generated tokens, release=clear budget. Default: lock | lock |