Skip to main content

Crate aiegis_harness

Crate aiegis_harness 

Source
Expand description

AiEGIS Harness reference daemon β€” CLI + HTTP server.

Ports the HTTP surface of harness.py (_HarnessHandler + main) onto axum + tokio. Endpoints + response shapes are byte-compatible with the Python reference; an agent integrating against either binary can swap --harness-url without code change.

ModulesΒ§

pack_fetcher πŸ”’
Remote policy-pack fetcher.
upstream πŸ”’
Upstream-receipt POSTer.

StructsΒ§

AppState πŸ”’
Args πŸ”’
CLI arguments. Mirror of the Python ref’s argparse setup.
RateState πŸ”’
Per-agent sliding-window action timestamps for the rate-limit pack.

FunctionsΒ§

extract_agent_did πŸ”’
health πŸ”’
json_with_version_header πŸ”’
Helper: render JSON with the standard X-AEGIS-Harness-Version header.
main πŸ”’
not_found πŸ”’
protect πŸ”’