Skip to main content

Module compliance

Module compliance 

Source
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§

ComplianceScoreRequest
Request body for POST /compliance/score.
ComplianceScoreResponse
Response body for POST /compliance/score.
ComplianceScoreWindow
Time window over which to compute the score.
ComplianceSourceResult
Inputs the handler requires from the backing store.

Enums§

ComplianceScoreError
Error shape for handle_compliance_score.

Traits§

ComplianceSource
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.