Spaces:
Runtime error
Runtime error
Commit History
-
fix(security): enforce server-side actor identity (#224)
nykUnverified signature* fix(security): enforce server-side actor identity * test: align message schema assertion with actor hardening * fix(security): enforce server actor identity in chat and broadcast * feat(auth): add scoped agent API keys with expiry and revocationcec279d -
fix(agents): enforce diagnostics self-scope and validation
Nykbe0bb92
-
feat(#163): add Agent Self-Diagnostics API endpoint
New GET /api/agents/[id]/diagnostics endpoint enabling agents to query their own performance data for self-optimization. Sections (selectable via ?section= query param): - summary: KPIs (throughput, error rate, activity count) - tasks: completion breakdown by status/priority, throughput/day - errors: error frequency by type, recent error details - activity: activity breakdown with hourly timeline - trends: current vs previous period comparison with auto-alerts - tokens: token usage by model with cost totals Features: - Scoped to requesting agent only (no cross-agent data access) - Configurable time window via ?hours= param (1-720h) - Automatic trend alerts for error spikes, throughput drops, stalls - Works with existing activities, tasks, and token_usage tables Fixes #163255b4ea