# Maximize Coverage on a Limited Budget

A [Spending Limit](https://help.aikidogov.us/pentests/continuous-pentesting.md#set-a-spending-limit) is the maximum budget for one [Continuous Pentesting](https://help.aikidogov.us/pentests/continuous-pentesting.md) run. Use it to keep your budget under control and spread it evenly through the year.

## Where the budget goes

By default, a run covers changes down to the risk threshold Aikido uses for optimal coverage. It starts with the highest risks and works down to that point.

A Spending Limit can stop the run sooner:

- A limit that fits that coverage still reaches the threshold. You pay only for what is tested, and never more than the limit.
- A tighter limit still covers the highest risks, and may stop before the threshold. Lower-priority parts of that change may not be tested on that run.
- Documentation, test-only, and other non-security changes are skipped at no cost.

A later run starts from that commit. Anything the cap skipped stays untested unless a newer change includes it. Raise the limit when you want later runs to cover more of each change.

## Stretch the same budget

- **Spending Limit**: credits one run can spend. Leave it empty for no cap.
- **Trigger**: every deploy spends the budget on smaller slices, more often. A schedule (daily, weekly, monthly, or a custom interval) spends it less often, on a larger set of changes.
- **Branch**: test the branch that ships to your testing environment. A budget spent on every feature branch covers less of what you release.

## Examples

### Tight budget

- Trigger: **Run on schedule**, weekly.
- Spending Limit: 100 credits.

At most one run a week, and at most 100 credits a run. Over a 4 week month the ceiling is 400 credits. Each run covers the highest-risk changes first. Weeks without security-relevant changes cost nothing.

### Cap big releases

- Trigger: **Run on every deploy** on your production branch.
- Spending Limit: 500 credits.

A big release can need much more testing than usual, and the limit keeps that run from consuming a large part of your wallet. The highest risks are tested first. Lower-priority parts of that change may not be tested.

### No per-run cap

- Trigger: **Run on every deploy** on every connected repository.
- Spending Limit: empty.

When an eligible run starts with sufficient wallet balance, every security-relevant change is tested. Runs can still be delayed or skipped by the [normal guardrails](https://help.aikidogov.us/pentests/continuous-pentesting.md#how-it-works). Cost follows the size of your changes, so watch your wallet balance.

## Related

- [Continuous Pentesting](https://help.aikidogov.us/pentests/continuous-pentesting.md): Aikido Infinite: Pentest every release. Fix automatically.

- [Pentest Pricing](https://help.aikidogov.us/pentests/pentest-pricing.md): Understand Aikido Pentest pricing options, fixed tiers, and credit costs.
