Skip to content

Decompose PipelineRunner: extract CostUsageRecorder (cost/usage cluster only) - #476

Merged
AdamFrisby merged 1 commit into
mainfrom
codeybox/6cc82156
Sep 14, 2026
Merged

Decompose PipelineRunner: extract CostUsageRecorder (cost/usage cluster only)#476
AdamFrisby merged 1 commit into
mainfrom
codeybox/6cc82156

Conversation

@AdamFrisby

Copy link
Copy Markdown
Owner

Automated via CodeyBox — work item 6cc821560a404d7d8a11d7b3e515259e


Co-Authored-By: CodeyBox noreply@codeybox.invalid
🤖 Generated with CodeyBox

…ding ONLY)

Extract CostUsageRecorder from PipelineRunner god-object.

Mechanical, behavior-preserving extraction of the cost and token-usage
recording cluster (TryRecordCostAsync, TryRecordCompletionCostAsync,
TryGetUsageSummaryAsync, NormalizeCostSnapshot, ClampCostSnapshot,
ResolveCostRowModelId, BuildUsageEvent) into an internal sealed collaborator
constructed in the existing PipelineRunner constructor body. Facade keeps
thin delegating forwarders so all call-sites and test qualifiers are
unchanged. Public surface and DI registration unchanged.

CodeyBox-Prompt-Revision: 4
Co-Authored-By: CodeyBox <noreply@codeybox.invalid>
@AdamFrisby
AdamFrisby merged commit f312739 into main Sep 14, 2026
@AdamFrisby
AdamFrisby deleted the codeybox/6cc82156 branch September 14, 2026 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant