open-standards/joulehook/joulehook-rs/crates/joulehook-proxy/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science b0ea7eda50 joulehook: the deployable meter — joulehook-proxy (OpenAI-shaped base_url proxy)
The meter seam's deployable form (SPEC §4 Proxy): point a host's model base_url at
joulehook-proxy and every call is capped + sealed. Per request it injects the
configured joule ceiling (inject_ceiling), forwards to the Mesh upstream, and seals
the response's usage.energy as an efficiency/1 receipt (bridge_receipt_default).
tiny_http server + ureq client. Integration-tested against a localhost mock upstream:
the mock echoes the injected ceiling (7mJ) and the proxy seals the efficiency receipt;
an unreachable upstream is a 502, not a panic. Also dedups the meter steward into
joulehook-meter (METER_STEWARD + bridge_receipt_default). 24 tests; clippy-clean.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-07-04 20:38:32 -04:00
..
main.rs joulehook: the deployable meter — joulehook-proxy (OpenAI-shaped base_url proxy) 2026-07-04 20:38:32 -04:00