State endpoint

GET /v1/state

Current allostatic state. See state and the Allostatic State concept.

curl https://mneva.dev/v1/state -H "x-mneva-key: $MNEVA_KEY"

No parameters.

Response:

{
  "state": "overloaded",
  "load": 20,
  "variance": 0,
  "reserve": 0.67,
  "active_minutes": 1,
  "window_minutes": 60,
  "last_active": "2026-05-23T00:14"
}
FieldTypeDescription
staterest | engaged | overloadedThe summary verdict.
loadnumberMean tool-calls per minute across active minutes in the window.
variancenumberStd-dev across active minutes.
reservenumber 0..1Headroom against a 60/min per-tenant soft cap.
active_minutesintHow many minutes in the window had any activity.
window_minutesintAlways 60 today.
last_activestring | nullMinute-truncated ISO timestamp of the latest activity. null on fresh tenants.

Calls to /v1/state are exempt from the per-minute activity tick — polling state does not inflate the load it returns.

Verdict bands:

  • load > 15 OR (load > 4 AND variance > load × 1.5) → overloaded
  • load >= 2engaged
  • otherwise → rest

Was this page helpful?