Skip to content

measure(remote): report the lean lane's per-event-type byte share - #868

Merged
huichen merged 1 commit into
mainfrom
measure/live-type-share
Sep 26, 2026
Merged

huichen merged 1 commit into
mainfrom
measure/live-type-share

Conversation

@huichen

@huichen huichen commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

The live-lane measurement reported only totals, so a report could say how big the lean lane is but not which event types still carry it.

Adds per-type byte totals for three views of the same real journal:

  • fullByType — every source event, before the lean filter
  • leanByType — what the lean filter delivers
  • publishedByType — what actually goes on the wire after coalescing

Measurement-only (test code, #[ignore]). No production behaviour changes.

Measured on the three heaviest completed runs (real journals, shipping code path):

full lane coalesced + lean
events 174,791 8,713 msgs 1,335 msgs
body bytes 62,639,818 4,599,689 764,398

Full lane by type: thinking_delta 57.1%, tool_delta 40.7%, tool_end 0.9%, tool_start 0.7%.
Lean lane by type (published): tool_start 57.9%, usage 14.8%, tool_end 12.4%, thinking_start+thinking_end 13.2%, text_chunk 1.5%.

The two content-streaming types were 97.8% of the lane and are now zero; what remains is per-tool-call and per-thinking-block metadata.

The live-lane measurement reported only totals, so a report could say how big
the lane is but not which event types still carry it. Add per-type byte totals
for the full lane, the lean feed, and the merged (published) feed.

Motivated by needing to answer 'what is the lane made of now' — the answer is
dominated by tool_start, usage and the thinking boundaries, while
thinking_delta/tool_delta (97.8% of the full lane) are gone.
@huichen
huichen enabled auto-merge (squash) September 26, 2026 06:14
@huichen
huichen merged commit a971975 into main Sep 26, 2026
12 checks passed
@huichen
huichen deleted the measure/live-type-share branch September 26, 2026 06:23
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