> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Module: runtime/adapters/accounting

> Reference for the bijection/runtime/adapters/accounting entry point.

## Type Aliases

### WorkAllocation

Ƭ **WorkAllocation**: `Record`\<`string`, \{ `limit`: `string` ; `reserved`: `string` ; `spent`: `string`  }>

Counters from the native allowance ledger, never a worker estimate.

## Variables

### workAccounting

• `Const` **workAccounting**: `Object`

Accounting for an actual ordinary record in the invoking installation.
Components own admission, attempts, retry policy and result selection. This
interface provides no worker identity, execution state or data permission.
Open belongs to the transaction inserting the record; its immutable pools
preserve actual caller ancestry and deployment transfer limits.

#### Type declaration

| Name | Type |
| :- | :- |
| `open` | (`args`: \{ `record`: `string` ; `limits`: `Record`\<`string`, `string`> ; `until`: `number` ; `runtime?`: \{ `reference`: `string` ; `definition_digest`: `string` ; `program_digest`: `string`  }  }) => `Promise`\<`void`> |
| `reserve` | (`args`: \{ `record`: `string` ; `effect`: `string` ; `metric`: `string` ; `maximum`: `string` ; `until`: `number`  }) => `Promise`\<`void`> |
| `observe` | (`args`: \{ `record`: `string` ; `effect`: `string` ; `metric`: `string` ; `consumed`: `string` ; `is_final`: `boolean`  }) => `Promise`\<`void`> |
| `pools` | (`record`: `string`) => `Promise`\<[`WorkAllocation`](https://docs.bijection.com/api/modules/runtime_adapters_accounting#workallocation)> |
| `fence` | (`record`: `string`, `until`: `number`) => `Promise`\<`void`> |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.