Skip to content

Event bus topics ​

The topics protoAgent's core publishes, and the rules for subscribing to them. A plugin reacts to these with registry.on or sdk.react_on, and a console view through the view bridge.

The bus carries inter-plugin events. For direct calls, use registered plugin services. Plugins must not import one another's internals (ADR 0039). The bus is ephemeral: a small ring buffer lets a reconnecting subscriber catch up via since, but there is no durable log. Persist what you need to keep.

Matching ​

Topics are dot-namespaced. A subscription pattern may use two wildcards:

PatternMatchesDoesn't match
#everything—
watch.*watch.metwatch.a.b
watch.#watch, watch.met, watch.a.bgoal.changed
watch.metexactly thatanything else

* matches one segment; # matches the tail. (Verified against topic_matches: watch.* vs watch.a.b → False, watch.# vs watch.a.b → True.)

Core topics ​

Generated by scanning every publish/emit call in the core packages, so this is what the runtime actually emits — not a list someone remembered to update. Payload keys are the union of what the emitting call sites pass; a key may be absent on a given event.

TopicPayload keysEmitted from
activity.messagecontext_id, error, inbox_id, origin, origin_session, priority, role, state, stimulus, task_id, text, triggersrc/server/a2a.py, src/server/interrupted_turns.py +1
background.completeddescription, error, job_id, origin_session, result, status, subagent_typesrc/background/manager.py, src/server/a2a.py
background.progresserror, job_id, output, phase, task_id, tool, tool_call_idsrc/background/manager.py, src/server/a2a.py
background.starteddescription, job_id, origin_session, status, subagent_typesrc/background/manager.py
chat.progresssession_id, task_idsrc/server/a2a.py
chat.resumederror, origin, session_id, state, task_id, text, triggersrc/server/a2a.py
decision.changedid, session_id, statesrc/graph/decisions.py
delegation.finishedcompletion, cost_usd, duration_ms, error, from, id, nudges, outcome, parent_id, run_id, to_instance, to_kind, to_namesrc/graph/ledger.py
delegation.progressid, progress, to_namesrc/graph/ledger.py
delegation.started(varies)src/graph/ledger.py
directive.changedid, instance_wide, session_idsrc/graph/directives.py
fs.changedpaths, project, sourcesrc/graph/fs_changes.py
goal.achieved / goal.failedcondition, evidence, reason, session_id, statussrc/graph/goals/controller.py
goal.changedsession_idsrc/graph/goals/store.py
goal.iterationcondition, iteration, max_iterations, reason, session_idsrc/graph/goals/controller.py
inbox.itemdelivery, id, needs_human, priority, session, source, textsrc/operator_api/console_handlers.py, src/server/a2a.py
inbox.replyid, replied_at, source, textsrc/tools/lg_tools.py
media.savedid, mime, plugin, urlsrc/graph/plugins/registry.py
memory.hot_writtenchunk_id, preview, source, source_typesrc/knowledge/store.py
model.fallbackfallback_index, fallback_model, primary_error, skipped_blockedsrc/graph/agent.py
persona.drift_detectedbaseline_id, baseline_saved_at, rationale, score, signals, thresholdsrc/server/maintenance_loops.py
persona.untooled_action_detectedcount, findings, soul_revision, triggersrc/server/maintenance_loops.py
plugin.changedscopesrc/server/settings_apply.py
plugin.updatedby, id, reloaded, resolved_sha, versionsrc/server/maintenance_loops.py
provider.usage(varies)src/observability/usage_store.py
scheduler.changedaction, job_idsrc/operator_api/console_handlers.py, src/scheduler/local.py +1
scheduler.completed(varies)src/server/a2a.py
scheduler.firedjob_id, prompt, schedulesrc/scheduler/local.py
turn.finishedok, origin, origin_session, session_id, state, task_id, triggersrc/background/manager.py, src/scheduler/local.py +1
turn.input_requiredcontext_id, prompt, task_idsrc/server/a2a.py
turn.resumedcontext_id, task_idsrc/server/a2a.py
turn.startedcaller, origin, origin_session, session_id, summary, task_id, triggersrc/background/manager.py, src/scheduler/local.py +1
turn.usagecontext_id, cost_usd, duration_ms, input_tokens, model, output_tokens, soul_rev, state, task_idsrc/server/turn_telemetry.py
ui.navigateplugin, viewsrc/graph/plugins/registry.py
watch.changedidsrc/graph/watches/store.py
watch.expired(varies)src/graph/watches/controller.py
watch.met(varies)src/graph/watches/controller.py
watch.stalled(varies)src/graph/watches/controller.py
watch.value_changed(varies)src/graph/watches/controller.py

Publishing your own ​

registry.emit("created", {...}) publishes <your-plugin-id>.created — the namespace is forced, so a plugin can only publish under its own id. Declare your topics in the manifest (emits) so other plugins can discover the contract instead of reverse-engineering it, optionally with a payload schema (emits_schemas). Declarations are for discovery only — payloads are never validated at publish time.

Publishing is safe from any thread: an off-loop publish reroutes itself onto the bound event loop, so emitting from a sync middleware hook works. One exception — an off-loop publish before any loop is bound is dropped with a warning.

Related: Plugins ▸ Events · Plugin SDK · Lifecycle events

Part of the protoLabs autonomous development studio.