ri-esp-policy
Deterministic sensor policy.
What it provides
sensor readings to canonical local-language PromptId decisions.
It depends on ri-esp-core only and is safe to use from firmware and host tests.
Install
[]
= "0.1"
Quick start
use EnvironmentReading;
use ;
let ctx = new
.with_last_read_ms;
let d = default.evaluate;
assert_eq!;
assert_eq!;
API shape
- no_std by default
- fixed-capacity data structures where strings/payloads are needed
- explicit receipt/schema constants where the crate crosses firmware/host boundaries
- small public API intended to be readable in firmware reviews
Verification
From the workspace root:
This crate is also covered by the workspace gate:
Integration path
Use this crate as one boundary in the larger ESP32 physical-AI stack:
sensor reading -> deterministic policy -> local-language receipt -> proof receipt -> display/log/optional escalation
Claim boundary
This crate is a reusable building block. It does not certify physical wiring, safety-critical behavior, production deployment, or model quality outside tests/receipts stated in the repository.
License
MIT OR Apache-2.0