wifi-densepose/rust-port
eriirfos-eng ec37ab1674 feat(types): add optional trit_signal() on Confidence via ternlang feature
Adds a `trit_signal()` method to `Confidence` that maps a scalar
confidence score to a ternary trit value:
  - >= 0.65 → Affirm  (high confidence — act)
  - 0.35..0.65 → Tend (uncertain — defer to human review)
  - < 0.35  → Reject  (low confidence — discard / retry)

The Tend state is the key addition: it provides an explicit
"I need more data" signal rather than forcing a binary yes/no
when confidence is genuinely ambiguous. This maps naturally to
EU AI Act Article 14 human oversight requirements.

This is a purely additive change:
- `Confidence(f32)` and all existing API surface are unchanged
- `trit_signal()` is gated behind `features = ["ternlang"]`
- Dependency: `ternlang-core = "0.3"` (crates.io), optional
- No breaking changes, no existing tests affected
2026-04-11 05:25:45 +00:00
..
wifi-densepose-rs feat(types): add optional trit_signal() on Confidence via ternlang feature 2026-04-11 05:25:45 +00:00