Interface: ThriftTrace
Defined in: src/batteries/context/thrift/subtractive_pass.ts:121
The full record of one subtractive pass — before/after weights per bucket, and whether the dispatch ultimately fits the budget.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
buckets | BucketTrace[] | One entry per step of the pass, in the order the steps ran, for diagnostics/tracing. | src/batteries/context/thrift/subtractive_pass.ts:138 |
budget | number | The INPUT token budget — contextWindow - reserve. | src/batteries/context/thrift/subtractive_pass.ts:127 |
contextWindow | number | The active model's context window this pass was run against. | src/batteries/context/thrift/subtractive_pass.ts:123 |
fits | boolean | Whether totalAfter fits within budget. | src/batteries/context/thrift/subtractive_pass.ts:133 |
refused | boolean | The dispatch should be refused: !fits — even after every possible shed, the irreducible floor (system prompt + standing instructions + newest turn + output reserve) still exceeds the window. | src/batteries/context/thrift/subtractive_pass.ts:136 |
reserve | number | Tokens held back for the model's own output (see resolveBudget). | src/batteries/context/thrift/subtractive_pass.ts:125 |
totalAfter | number | Total measured token weight AFTER every shedding step ran. | src/batteries/context/thrift/subtractive_pass.ts:131 |
totalBefore | number | Total measured token weight BEFORE any shedding (the "everything reasonable" starting point). | src/batteries/context/thrift/subtractive_pass.ts:129 |