# SourceTruncationProcessor

**Kind:** Class

**Source:** [`atloria-monorepo/libs/agent-core/src/context/history-processors.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/agent-core/src/context/history-processors.ts#L95)

Hard character limit per tool output observation.
Prevents any single tool from injecting massive payloads into context.

Applied first in the pipeline so downstream processors work with
bounded-size items.

**Implements:** `HistoryProcessor`

## Methods

| Method | Signature | Returns |
|---|---|---|
| `process` | `process(items: AgentInputItem[])` | `AgentInputItem[]` |

## Properties

| Property | Type |
|---|---|
| `name` | `any` |

## Where it refuses work

- `SourceTruncationProcessor` stops the work with an early return when `!isToolOutput(item)`.
- `SourceTruncationProcessor` stops the work with an early return when `output.length <= this.maxChars`.
