Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,10 @@ async def start_consumers(

# Duck typing: check for subscribe capability rather than concrete type
# Per CLAUDE.md: "Protocol Resolution - Duck typing through protocols, never isinstance"
if not hasattr(config.event_bus, "subscribe"):
if not (
hasattr(config.event_bus, "subscribe")
and callable(getattr(config.event_bus, "subscribe", None))
):
return ModelDomainPluginResult.skipped(
plugin_id=self.plugin_id,
reason="Event bus does not support subscribe",
Expand Down
5 changes: 5 additions & 0 deletions src/omnibase_infra/runtime/service_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,11 @@ async def bootstrap() -> int:
version=config.contract_version or "v1",
)
else:
# Graceful degradation (OMN-1992): config.name absence is logged
# rather than raising ProtocolConfigurationError so kernels with
# optional introspection can still boot. Plugins that require
# node_identity (e.g. PluginRegistration.start_consumers) will
# return a "skipped" result instead of failing.
logger.error(
"runtime_config.yaml missing 'name' field — plugin consumers "
"will not subscribe to introspection events. "
Expand Down