Skip to content
1 min read · 174 words

Interface: BucketTrace

Defined in: src/batteries/context/thrift/subtractive_pass.ts:103

A line in the "what got cut" trace — one bucket's before/after token weight.

Properties

PropertyTypeDescriptionDefined in
afterCountnumberHow many items this bucket held after this step ran.src/batteries/context/thrift/subtractive_pass.ts:114
afterTokensnumberThis bucket's measured token weight after this step ran.src/batteries/context/thrift/subtractive_pass.ts:110
beforeCountnumberHow many items this bucket held before this step ran.src/batteries/context/thrift/subtractive_pass.ts:112
beforeTokensnumberThis bucket's measured token weight before this step ran.src/batteries/context/thrift/subtractive_pass.ts:108
bucketstringThe bucket's name (e.g. 'thoughts', 'tools', 'image', 'toolCalls', 'retrievables', 'memories', 'messages', 'thoughts-shed', 'tools-shed') — one entry per step of the pass.src/batteries/context/thrift/subtractive_pass.ts:106
note?stringA short human-readable rationale for what this step did (or didn't do), for diagnostics/tracing.src/batteries/context/thrift/subtractive_pass.ts:116