open-standards/joule-code/examples/l3-jouleclaw/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science cbcc27f1f7 l3-jouleclaw: grade a fallback span as no reading; never read the llama engine whole
The docs said a host with no per-process counter gets the token-count
estimate off macOS, but there ProcessSpanMeter falls back to detect_meter()
(the 28.6 W x wall estimator in this build), which it marks Whole, and grade()
kept that figure. A fallback span is the machine's figure, not the engine's,
so grade() now treats it as no reading and uses the rest (host_counter, else
the token estimate): one way of reading the host whichever engine ran, and
the docs hold. That is simpler than documenting a second host figure that
only the in-process engine would get.

JOULE_CODE_L3_SELF_CONTAINED could never take effect: the llama engine is
read at its exit, which the tree meter always marks (TreeGap::Exited), so no
reading was ever whole. The setting and its plumbing are gone and the docs
say the reading is a lower bound, always graded as an estimate.

A missing llama binary had become LlmError::Upstream("... exited 127"): the
binary is exec'd by the gating sh, whose failed exec reads as the model's own
failure. The binary is now resolved first (a path as given, else PATH; a
regular executable file) and one that cannot run is Unavailable, as a failed
spawn was, with nothing spawned.

The README says the oracle tests run only locally on Apple Silicon (CI tests
this workspace on Linux, where they take the fallback), and lines this branch
added name the capability, not a third-party engine.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 22:24:01 -04:00
..
bin l3-jouleclaw: grade a fallback span as no reading; never read the llama engine whole 2026-10-10 22:24:01 -04:00
hybrid_backend.rs l3-jouleclaw: a fabric-priced projection is graded by its weakest input 2026-09-30 20:48:47 -04:00
lib.rs l3-jouleclaw: a fabric-priced projection is graded by its weakest input 2026-09-30 20:48:47 -04:00
llama_backend.rs l3-jouleclaw: grade a fallback span as no reading; never read the llama engine whole 2026-10-10 22:24:01 -04:00
runtime_backend.rs joule-code L3 ← hybrid families: the two arcs meet 2026-06-10 17:57:27 -04:00