copilot-credit-spike-contain
Stop a Copilot Studio agent burning credits faster than it was budgeted for, before deciding whether the consumption is genuine.
Procedure
- start start. Goes next to s1
- check Confirm the spike in the consumption grid. Goes on_fail to __end_aborted; next to s2
- end aborted. Terminal
- check Check for an existing per-agent limit. Goes on_fail to s9; next to s3
- action Apply or lower the per-agent limit, RW (reversible-write). Goes on_fail to s9; next to s4
- decision Is consumption still rising?. Goes if rising to s5; if default to s6
- action Disable the agent in its environment, DEL (destructive), requires approval. Goes rollback to s7; on_fail to s9; next to s6
- action Re-enable the agent, RW (reversible-write). Goes next to __end_success
- check Determine the cause before re-enabling. Goes on_fail to s9; next to s8
- escalate Escalate to the Power Platform admin. Terminal
- action Record the incident and its resolution, RW (reversible-write). Goes next to __end_success
- end success. Terminal
Open the graph on its own page — larger, printable, and an address you can send.
Walk it without running it — you answer what your environment would answer, and the path, the capabilities, the approvals and the distance back to an undo come out of the document. Nothing executes; there is no Run button here and there will not be one.
Trust
T2 · attested 2026-10-11 · runbooks.directory
Nobody has attested this record. That is the ordinary case: T2 is what the catalog can check on its own, and T3 needs somebody to run the procedure and sign for it.
- Link liveness has not been checked: it needs a network and the catalog builds without one. Run
pnpm gates --onlinewhere there is one.
Steps
s1check — Confirm the spike in the consumption grids2check — Check for an existing per-agent limits3action — Apply or lower the per-agent limit (reversible-write)s4decision — Is consumption still rising?s5action — Disable the agent in its environment (destructive) — requires approvals6check — Determine the cause before re-enablings7action — Re-enable the agent (reversible-write)s8action — Record the incident and its resolution (reversible-write)s9escalate — Escalate to the Power Platform admin
Capabilities
This is a privilege request. Check it against your own allowlist before running.
Provenance
- Source
- https://github.com/microsoft/ai-agent-runbooks/blob/083f33eec889/02-patterns/Copilot-Credits-Cost-Control/Copilot-Credits-Cost-Control-Runbook.md
- Fetched
- 2026-09-04
- Source last checked
- not since it was captured on 2026-09-04 — recorded as
current - Licence
- MIT
- How it got here
- Rewritten here from the source above, under its licence. The words and the steps are this catalog's; the procedure it describes is not this catalog's invention, and the source is where to check it.
- Highest risk in this procedure
- destructive
Take it with you
- SKILL.md — the record as an Agent Skills file
- workflow.yaml — Open Workflow DSL 1.0.3, for a runner
- record.json — the catalog's own JSON
- graph.svg — the graph, standalone
Run it under supervision
This procedure contains destructive steps. Run it here, where the supervisor is the thing invoking the commands and therefore sees every one of them: each step is proposed before it happens and a gate stops for you. Nothing about the run leaves this machine.
# destructive steps: every one stops for you before it runs.
npx @runbooks/cli run adapted/copilot-credit-spike-contain@1.0.0 --as "$(whoami)" \
--input environment=<the Power Platform environment the spike is in> \
--input agent=<the agent named in the consumption grid>