open-standards/jcp/jcp-rs/crates/jcp-efficiency/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science b0f174bb8c jcp-efficiency: the session example's illustrative figures are estimates
The `session` example seals five efficiency/1 receipts for an
illustrative fleet — no task runs — and built each energy figure with
Energy::measured(uj), commented "a HwShunt reading in this demo". Every
receipt claimed a hardware reading nothing took.

`task()` now seals Energy::estimator(uj), the module docs say the fleet is
illustrative and that a binding metering real work seals its meter's
grade, and the run prints that the energy is sealed as estimates. The
figures, and so every rate the example prints, are unchanged.

tests/session_example.rs compiles the example in as a module, builds its
records and seals them: each record must be Estimator with no measured
figure, and each verified receipt's provenance "Estimator".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 17:47:11 -04:00
..
energy_trace_pack.rs jcp: publish the energy_trace/1 conformance pack, and replay it 2026-10-02 00:06:10 -04:00
session_example.rs jcp-efficiency: the session example's illustrative figures are estimates 2026-10-10 17:47:11 -04:00