Skip to content

Platform Guardian

The Platform Guardian is System R’s monitoring and security layer. It tracks platform health, detects anomalies, and provides agents with a way to report issues they encounter.

GET /v1/guardian/status

No authentication required. Use this as a health check endpoint.

Terminal window
curl https://agents.systemr.ai/v1/guardian/status
{
"platform": "System R",
"status": "operational",
"uptime_seconds": 864000,
"latency_ms": 12,
"version": "2.1.0"
}
FieldDescription
statusPlatform status: operational, degraded, maintenance.
uptime_secondsSeconds since last restart.
latency_msCurrent API latency in milliseconds.
versionCurrent platform version.
POST /v1/guardian/report

Agents can report issues they encounter during operation. No admin authentication required. Use your agent_id to identify the report.

Terminal window
curl -X POST https://agents.systemr.ai/v1/guardian/report \
-H "Content-Type: application/json" \
-d '{
"agent_id": "agt_a1b2c3d4",
"report_type": "error",
"description": "calculate_kelly returned empty result for valid input",
"details": {
"tool_name": "calculate_kelly",
"input_count": 10,
"error_message": "Division by zero"
}
}'
ParameterTypeRequiredDescription
agent_idstringYesYour agent ID.
report_typestringYesType: error, degradation, suspicious_activity.
descriptionstringYesHuman-readable description of the issue.
detailsobjectNoAdditional context (tool name, error messages, etc.).
{
"event_id": "evt_xyz789",
"status": "recorded"
}
TypeWhen to use
errorA tool returned an unexpected error or incorrect result.
degradationResponse times are notably slower than usual.
suspicious_activityUnexpected behavior that might indicate a security issue.

The following endpoints require admin authentication via the X-Admin-Key header. These are for platform operators, not agents.

GET /v1/guardian/events
ParameterDescription
limitMax events to return (default 100, max 1000).
categoryFilter by event category.
severityFilter by severity level.
GET /v1/guardian/alerts

Returns CRITICAL and EMERGENCY severity events. Max 500 entries.

GET /v1/guardian/metrics

Returns uptime, error rate, latency percentiles, and event counts.

While the Guardian monitors the platform, you can monitor your own agent’s health using:

  • GET /v1/billing/balance to check credit balance
  • GET /v1/audit/trail to review recent activity
  • GET /v1/audit/compliance-check to run compliance analysis
  • GET /v1/billing/usage to review spending by operation