Expand description
Phase 19.1 – HTTP handler for POST /compliance/score.
The handler is substrate-agnostic: adapters feed in raw request
bytes, the handler parses them into a ComplianceScoreRequest,
hands the filtered query to a pluggable ComplianceSource, and
returns a ComplianceScoreResponse carrying the score and the
per-factor breakdown.
The kernel never signs the response itself – chio-kernel already
guarantees receipts are authenticated. Operators who need a signed
report compose this handler with the regulatory API.
Structs§
- Compliance
Score Request - Request body for
POST /compliance/score. - Compliance
Score Response - Response body for
POST /compliance/score. - Compliance
Score Window - Time window over which to compute the score.
- Compliance
Source Result - Inputs the handler requires from the backing store.
Enums§
- Compliance
Score Error - Error shape for
handle_compliance_score.
Traits§
- Compliance
Source - Pluggable compliance source. Substrate adapters plug in an chio-store-sqlite-backed implementation; the handler itself stays decoupled from storage.
Functions§
- handle_
compliance_ score - Handler for
POST /compliance/score.