open-standards/jcp/jcp-rs/crates/jcp-cli/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science 667d75916d jcp-cli: the meter line names the rung and the probe's own grade
The demo printed `meter HwShunt backend → 2388 µJ probe [ModelBased]
(estimated, and says so)` here: the rung's best grade (Meter::provenance)
beside a probe the model graded, because the 20,000-addition probe was
too short for the per-process counter to advance. The module docs and
jcp/README.md called the line "a real reading" / "its one measurement".

The line now names the rung (Meter::rung) and prints only the probe's
figure at the grade the meter gave it, "a hardware reading of the probe"
or "an estimate: no counter read the probe". The probe is a fixed
2,000,000-step loop, long enough for a live counter to read it (here:
`ProcessEnergy rung → 44215 µJ probe [HwShunt]`). The docs say what the
line is.

Test: the_meter_line_names_only_the_probes_grade (exactly one grade
label on the line, and it is the bracketed probe grade) fails on the old
line and passes now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 18:08:00 -04:00
..
demo.rs jcp-cli: the meter line names the rung and the probe's own grade 2026-10-10 18:08:00 -04:00