---
title: BudgetVerdict
description: "A report's total judged against a budget: core's Budget::check, the verdict microvm cost --max-cost renders."
---

A report's total judged against a budget: core's `Budget::check`, the verdict
`microvm cost --max-cost` renders.

## Accessors

### aborts

#### Get Signature

```ts
get aborts(): boolean;
```

Whether the caller's judgement refuses the report: breached, under `"abort"`.

##### Returns

`boolean`

***

### basis

#### Get Signature

```ts
get basis(): string;
```

`"exact"` or `"lower-bound"`.

##### Returns

`string`

***

### breached

#### Get Signature

```ts
get breached(): boolean;
```

Whether the floor is over the ceiling. At the ceiling is within it.

##### Returns

`boolean`

***

### floor

#### Get Signature

```ts
get floor(): EstimatedUsd;
```

The total's floor: the whole estimate unless `isLowerBound`.

##### Returns

[`EstimatedUsd`](/microvms-agentd/reference/typescript/classes/estimatedusd/)

***

### isLowerBound

#### Get Signature

```ts
get isLowerBound(): boolean;
```

Whether the floor is a lower bound, because a line is unpriced.

##### Returns

`boolean`

***

### maxUsd

#### Get Signature

```ts
get maxUsd(): EstimatedUsd;
```

The ceiling, as the caller wrote it.

##### Returns

[`EstimatedUsd`](/microvms-agentd/reference/typescript/classes/estimatedusd/)

***

### onBreach

#### Get Signature

```ts
get onBreach(): string;
```

`"warn"` or `"abort"`: what the caller said a breach does.

##### Returns

`string`

***

### overage

#### Get Signature

```ts
get overage(): EstimatedUsd | null;
```

How far over the ceiling the floor is, when breached; at least that much for a lower
bound.

##### Returns

[`EstimatedUsd`](/microvms-agentd/reference/typescript/classes/estimatedusd/) | `null`

***

### unpricedPhases

#### Get Signature

```ts
get unpricedPhases(): string[];
```

The phases whose lines are unpriced, sorted.

##### Returns

`string`\[]

## Methods

### render()

```ts
render(): string;
```

One line for a human, the one `microvm cost --max-cost` prints.

#### Returns

`string`

***

### toJson()

```ts
toJson(): string;
```

Core's JSON shape for the verdict, as a JSON **string**: `maxUsd`, `onBreach`, `basis`,
`breached`, `overageAtLeastUsd`.

#### Returns

`string`

## Provenance

This page is generated from `bindings/microvms-js/index.d.ts` by TypeDoc 0.28.20 and typedoc-plugin-markdown 4.13.1, run from `site/scripts/gen-reference.mjs` on every `pnpm run sync`, so an edit made here is overwritten by the next run.

To change the page, change the doc comment in the binding's Rust source, then regenerate the declarations with `mise run dts`. `mise run dts:check` fails when the committed file no longer matches the source.