Skip to content

feat: meter eval gate context by encoded request bytes, drop dead Eval modules - #12

Merged
mchav merged 1 commit into
mainfrom
feat/eval-gate-metric
Aug 31, 2026
Merged

mchav merged 1 commit into
mainfrom
feat/eval-gate-metric

Conversation

@mchav

@mchav mchav commented Aug 31, 2026

Copy link
Copy Markdown
Member

Summary

  • contextChars priced context growth by a char count of the final transcript, missing retries and tool payloads. Replaced with meteredTlsManagerSettings, which sums encoded HTTP request-body bytes across every retry.
  • GateResult now tags each row with a ContextMetric (LegacyTranscriptChars | EncodedRequestBodyBytes). gateKeysForMetric only resumes runs measured under the current metric; legacy rows are excluded from resume and disclosed as "legacy" in renderCtx/renderGateResults rather than silently averaged in with the new numbers.
  • Drops ~13 Eval.* modules from siza-eval.cabal that were no longer exposed anywhere (Eval.Provider, Eval.Discover, Eval.HoleFit, Eval.Owned, Eval.Repair, Eval.Salvage, Eval.Scaffold, …) — unrelated dead-code cleanup bundled here since it's the same file.

Split out of a larger staged diff into an independent PR.

Test plan

  • cabal build on eval/neuro-symbolic succeeds
  • CI green

…l modules

contextChars counted the final transcript, missing retries and tool
payloads. meteredTlsManagerSettings sums encoded HTTP request-body
bytes across every retry instead. GateResult now tags each row with
a ContextMetric (LegacyTranscriptChars | EncodedRequestBodyBytes);
gateKeysForMetric only resumes runs measured under the current
metric, and legacy rows are disclosed rather than silently averaged
in. Also drops ~13 Eval.* modules no longer exposed by any component.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@mchav
mchav merged commit 82475b3 into main Aug 31, 2026
4 of 18 checks passed
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