Skip to main content

Crate openkind_server

Crate openkind_server 

Source
Expand description

openkind-server: Daemon library and entrypoint for openkindd.

§Architecture & Responsibilities

openkind-server packages the openkindd daemon binary. Per docs/ARCHITECTURE.md, it composes:

Modules§

grpc
Tonic gRPC service implementation for openkind.SystemOne. gRPC layer — tonic 0.14.
http
Axum HTTP router and endpoint handlers. HTTP layer — axum 0.8.

Structs§

AppState
Shared application state passed to every axum handler and tonic method.
AuthConfig
Optional bearer-auth state. None ⇒ no auth required.
EngineRegistry
A registry mapping model alias → engine. Lets the server dispatch by the model field in the request without the engine itself knowing.
MockEngine
A mock that returns distributions seeded from (id, instructions). Always satisfies sum-to-1 and confidence-in-range so the validator passes.

Traits§

DecisionEngine
The trait every backend implements. The engine is runtime-agnostic: it doesn’t know it’s being served over HTTP or gRPC — that’s deliberate. Callers pass SystemRequest in and get SystemResponse back.