GET /api/diagnostics
Returns a comprehensive diagnostic snapshot of the kernel, including the network service status, the latest observability snapshot from the p2p bridge, and a filterable list of recent diagnostic events.Maximum number of diagnostic events to return.
Filter by severity level (e.g.
"error", "warn", "info").Filter by kernel component name (e.g.
"network_bridge", "run_queue").Filter by event category string.
Filter by network mode.
Filter by lifecycle phase string.
Return only the event with this exact event ID.
Filter events related to a specific object (task ID, run ID, peer ID, etc.).
Filter events originating from a specific node.
Full-text search string applied across event payload fields.
ISO 8601 timestamp when the diagnostic snapshot was generated.
Whether the background P2P network service is currently running.
Status details from the network bridge, or
null if the service is not running.Latest observability snapshot including peer counts and gossip metrics.
Filtered list of recent diagnostic events matching the query parameters.
GET /api/log/head
Returns the current head sequence number of the kernel’s Structured Event Log (SEL). The head sequence is the highest event sequence number written so far. Use this to determine how many events are in the log or to compare sequence positions across nodes.The sequence number of the most recently written SEL event.
POST /api/log/replay
Triggers a full replay of the Structured Event Log to rebuild all kernel projections from scratch. This is useful after a kernel upgrade that introduces schema changes to the read-model, or to recover from a corrupt projection state. The operation runs synchronously and may take several seconds on large logs.POST /api/log/verify
Verifies the cryptographic integrity of the Structured Event Log. The kernel checks that the event chain hashes are consistent from genesis to the current head. Returns{"ok": true} if the log is intact, or an error if a hash mismatch or gap is detected.
GET /api/swarm/state
Returns the current swarm task state as rendered by the dashboard engine. This endpoint is used by the built-in swarm dashboard UI but is equally useful for external monitoring tools or CI pipelines that need a structured view of in-flight tasks, candidates, and votes.POST /api/swarm/tick
Advances the swarm by one execution tick. A single tick runs the full claim→execute→verify→vote→commit→finalize pipeline for any eligible tasks in the store. This endpoint is designed for development, testing, and step-by-step debugging of swarm behavior without requiring background workers.Name of the executor to use for this tick. Defaults to the
core_agent executor configured in the startup config.Executor profile to activate for this tick. Defaults to
"default"./api/swarm/tick is a blocking call backed by tokio::task::spawn_blocking. For tasks that invoke slow executors, the HTTP request will remain open until the tick completes. Set an appropriate client timeout (recommend ≥ 60 s for tasks with non-trivial prompts).