Skip to main content

Module host_contract

Module host_contract 

Source
Expand description

Host contract common to every cog runtime (ADR-100 section 4): COG_CSI_BIND, COG_SENSOR_URL, a per-instance COGNITUM_COG_TOKEN and COGNITUM_COG_DATA_DIR.

The token is a secret: it is handed to the instance’s environment only, and anything written to the chain carries HostContract::token_hash.

Structs§

HostContract
Host contract for one instance.

Constants§

DEFAULT_CSI_PORT
Default CSI feed port (ADR-069).
ENV_CSI_BIND
Env var: UDP bind address for the ESP32 CSI feed.
ENV_DATA_DIR
Env var: writable data directory.
ENV_INGEST_URL
Env var: full URL of this instance’s ingest bridge (for cogs that honour it; released cogs post to the fixed 127.0.0.1:80).
ENV_SENSOR_URL
Env var: HTTP sensor fallback (host:port).
ENV_TOKEN
Env var: per-instance token accepted by that instance’s ingest bridge.