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.integer
Maximum number of diagnostic events to return.
string
Filter by severity level (e.g.
"error", "warn", "info").string
Filter by kernel component name (e.g.
"network_bridge", "run_queue").string
Filter by event category string.
string
Filter by network mode.
string
Filter by lifecycle phase string.
string
Return only the event with this exact event ID.
string
Filter events related to a specific object (task ID, run ID, peer ID, etc.).
string
Filter events originating from a specific node.
string
Full-text search string applied across event payload fields.
string
ISO 8601 timestamp when the diagnostic snapshot was generated.
boolean
Whether the background P2P network service is currently running.
object | null
Status details from the network bridge, or
null if the service is not running.object | null
Latest observability snapshot including peer counts and gossip metrics.
object[]
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.integer
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.string
Name of the executor to use for this tick. Defaults to the
core_agent executor configured in the startup config.string
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).