Agents and Autonomous Mode¶
Every action passes the trust guard. It combines the sender's verified identity, its credentials or web-of-trust roles, the genesis policy, the runtime policy and the local trust state.
Policies¶
The genesis policy comes from the constitution. A runtime policy can be set at any time. It consists of deny rules only, so it can restrict the genesis policy but never extend it:
curl -X PUT http://agent/v1/runtime-policy -H "Authorization: Bearer $ADMIN_TOKEN" -H "Content-Type: application/json" -d '{
"rules": [{"id": "no-transfers", "effect": "deny", "routes": ["/transfer/*"]}]
}'
Senders without a credential¶
A sender that presents no credential is accepted if the agent has a trust path to it, and only by rules of the genesis policy with a condition on trust.*, for example {"path": "trust.score", "op": "ge", "value": 0.5}. A banned sender is always denied.
Local trust state¶
The agent leases the part of the trust graph around itself and its initial contacts from the intelligence platforms, every SYNC_SECONDS (5). It resolves each author's key event log itself and keeps only events that are anchored there. What it keeps survives restarts.
Evaluate someone¶
curl http://agent/v1/trust/<aid> -H "Authorization: Bearer $ADMIN_TOKEN"
The answer contains the evaluation, the mode and the age of the data.
Autonomous mode¶
If no platform answers and the data becomes older than max_slice_age_seconds, or identities cannot be resolved, the agent switches to autonomous mode. Only the routes in autonomous.routes are allowed, only for senders with at least min_score, and only while cached key states are younger than max_age_seconds. Conflicting identities are never accepted. Normal operation resumes when the network is back.
Requests to platforms¶
Requests are signed, addressed to one platform and protected against replay. Responses are signed and verified. Heavy computations can be requested with POST /v1/compute.