Phase 2: Process Control Plane, Profiling, Settings in GraphServer, and Dashboard Hooks#234
Open
griffinmilsap wants to merge 14 commits intofeature/session-metadatafrom
Open
Phase 2: Process Control Plane, Profiling, Settings in GraphServer, and Dashboard Hooks#234griffinmilsap wants to merge 14 commits intofeature/session-metadatafrom
griffinmilsap wants to merge 14 commits intofeature/session-metadatafrom
Conversation
This was referenced Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements Phase 2 of the GraphServer high-level control-plane roadmap, relative to
feature/session-metadata.It adds a multiprocess process-control plane, push-based settings/topology/profiling APIs, low-level pub/sub profiling instrumentation, and dashboard-oriented data/control surfaces while keeping low-level API workflows intact.
Base / Compare
feature/session-metadatafeature/process-controlMotivation
Phase 1 established session-scoped metadata and snapshot foundations.
Phase 2 adds the runtime control/observability layer needed for:
What Changed
1) Multiprocess Control Plane
Added process control registration and request routing primitives:
ProcessControlClient(src/ezmsg/core/processclient.py)GraphContext.process_request(...))graphmeta.pyPINGGET_PROCESS_STATSGET_PROFILING_SNAPSHOTSET_PROFILING_TRACEGET_PROFILING_TRACE_BATCHUPDATE_SETTING_FIELD2) Settings as GraphServer Source-of-Truth
GraphServer now tracks settings snapshots/events with push-capable APIs:
GraphContext.settings_snapshot()GraphContext.settings_events(after_seq=...)GraphContext.subscribe_settings_events(...)(push stream)PROCESS_SETTINGS_UPDATEGraphContext.update_settings(...)publishes toINPUT_SETTINGSGraphContext.update_setting(...)supports field-level patching routed to owning processsrc/ezmsg/core/settingsmeta.py) to improve dashboard/widget feasibility without importing source settings classes.3) Topology Push Stream
Added push-based topology event streaming:
GraphContext.subscribe_topology_events(...)4) Low-level Profiling Instrumentation + APIs
Implemented profiling with low-level compatibility focus (Publisher/Subscriber/Channel):
src/ezmsg/core/profiling.py)pubclient.py,subclient.py,messagechannel.py)GraphContextAPIs:process_profiling_snapshot(...)process_set_profiling_trace(...)process_profiling_trace_batch(...)profiling_snapshot_all(...)subscribe_profiling_trace(...)5) Identity + Safety Hardening
PROCESS_REGISTERunit ownership conflictsPROCESS_UPDATE_OWNERSHIPadded-unit conflictsSESSION_REGISTERmetadata component-address collisions6) TUI Demos for Manual Validation
Added one-off example clients:
examples/settings_tui.pyexamples/profiling_tui.pyexamples/topology_tui.pyThese demonstrate live settings/profiling/topology views via the new GraphContext APIs.
7) Test Coverage
Added new suites and expanded behavior coverage:
tests/test_process_control.pytests/test_process_routing.pytests/test_settings_api.pytests/test_profiling_api.pytests/test_topology_api.pyAlso includes related runner/harness updates (
tests/shutdown_runner.py) and bugfixes discovered during Phase 2 integration.Key Files
src/ezmsg/core/processclient.py(new)src/ezmsg/core/profiling.py(new)src/ezmsg/core/settingsmeta.py(new)src/ezmsg/core/graphcontext.pysrc/ezmsg/core/graphserver.pysrc/ezmsg/core/graphmeta.pysrc/ezmsg/core/backendprocess.pysrc/ezmsg/core/backend.pysrc/ezmsg/core/netprotocol.pysrc/ezmsg/core/pubclient.pysrc/ezmsg/core/subclient.pysrc/ezmsg/core/messagechannel.pyBackward Compatibility Notes
feature/session-metadata.