Files
pxpipe/tests
teamchong 1d46b72221 rip(proxy): remove count_tokens probe path — leaks original text
Sending the pre-compression body to /v1/messages/count_tokens means
Anthropic sees the original text, which is exactly what pixelpipe is
built to prevent. Probe results were 'free' in dollars but not in
privacy; the whole point of imaging the slab is that Anthropic does
NOT receive the slab text.

Removed:
  - countTokensUpstream + buildCountTokensBody in src/core/proxy.ts
  - measurePromise wiring + finalize await
  - baselineTokensMeasured / actualTokensMeasured on TransformInfo
  - baseline_tokens_measured / actual_tokens_measured on TrackEvent
  - measuredEvents / effectiveCostActualMeasured / *Baseline*
    fields on DashboardState
  - measured_events / saved_pct_measured / effective_cost_*_measured
    / saved_effective_tokens_measured on /proxy-stats payload
  - HTML headline branch + 'show calculation' rows for measured path
  - 2 dashboard-fit tests asserting the measurement-path behavior

Added regression test: proxy must NOT hit any upstream path other than
/v1/messages.

Real-savings path now: self-derive α from billed usage + own char
walker. Coming next.
2026-05-19 21:28:26 -04:00
..