Skip to content
Console
Menu

Getting Started

Authentication

KV Store

Observe an owner pool

Records a live-metric observation for a member and applies the pool's demotion rules (`agents:qualify`, refused to the version's authors as…

Records a live-metric observation for a member and applies the pool's demotion rules (agents:qualify, refused to the version's authors as in :qualify). The platform computes each rule's baseline: the median of the member's first baseline_observations counted observations of the metric, set only when it is finite and positive. Values of a rule metric are lower-is-better and must not be negative. Once the baseline is set, a metric past baseline * (1 + max_regression) demotes a qualified member. Only :qualify brings a demoted member back.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/owner_pools/owner-pool:observe
  • Scope agents:qualify
  • Effect write — a successful call changes state.
  • Collection owner_pools

#Request

FieldTypeWhat it is
namestringThe owner pool. Required.
agent_versionstringThe member version. Required.
metricsmap<string, double>The observed value per metric over the caller's window, lower is better; 1 to 64. A demotion rule's metric is never negative. Required.
samplesint64The number of outcomes the values summarize. Required.

#Response

FieldTypeWhat it is
agent_versionstringThe member version. Output only.
modelstringThe model the version pins. Output only.
stateOwnerPoolMemberStateQualified, refused or demoted. Output only. One of qualified, refused, demoted.
suitestringThe suite of the latest :qualify. Output only.
scoresmap<string, double>The scores of the latest :qualify. Output only.
baselinemap<string, double>The baseline per demotion metric, computed by the platform from counted observations; a re-qualify keeps it. Output only.
observedmap<string, double>The latest observation per metric. Output only.
qualify_timetimestampWhen it last qualified. Output only.
demote_timetimestampWhen it was last demoted. Output only.
reasonstringWhy it was refused or demoted. Output only.
update_timetimestampWhen the state last changed. Output only.
suite_versionstringThe suite version of the latest :qualify. Output only.
resultstringThe suite result of the latest :qualify. Output only.
qualifierstringThe principal that recorded the latest :qualify. Output only.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/owner_pools/owner-pool:observe" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"agent_version":"…","metrics":{},"samples":1}'