fix: support reusing field-input components in event-driven flows#249
Draft
fix: support reusing field-input components in event-driven flows#249
Conversation
Agent-Logs-Url: https://github.com/plugboard-dev/plugboard/sessions/b2d74c52-309e-40c7-bdd3-5880ba403b35 Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
Agent-Logs-Url: https://github.com/plugboard-dev/plugboard/sessions/b2d74c52-309e-40c7-bdd3-5880ba403b35 Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
Agent-Logs-Url: https://github.com/plugboard-dev/plugboard/sessions/b2d74c52-309e-40c7-bdd3-5880ba403b35 Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
Agent-Logs-Url: https://github.com/plugboard-dev/plugboard/sessions/b2d74c52-309e-40c7-bdd3-5880ba403b35 Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
Agent-Logs-Url: https://github.com/plugboard-dev/plugboard/sessions/b2d74c52-309e-40c7-bdd3-5880ba403b35 Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
Agent-Logs-Url: https://github.com/plugboard-dev/plugboard/sessions/b2d74c52-309e-40c7-bdd3-5880ba403b35 Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
Agent-Logs-Url: https://github.com/plugboard-dev/plugboard/sessions/b2d74c52-309e-40c7-bdd3-5880ba403b35 Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Improve reusability of components in event-driven simulations
fix: support reusing field-input components in event-driven flows
Apr 8, 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
Components like
FileWritercould not be reused in event-driven models by subclassing and adding event handlers, because process validation still required connector-backed field inputs and shutdown could replay the last event-populated value. This change allows inherited field inputs to be satisfied by events and closes the event-driven path cleanly once producers are exhausted.Changes
Validation
input_eventsto have unconnected field inputs.Runtime behavior
API surface
IOController.has_connected_field_inputsand use it for the runtime check instead of reaching into internal channel state.Coverage
FileWritersubclass consuming events to populatemessage.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
metadata.google.internal/home/REDACTED/work/plugboard/plugboard/.venv/bin/python3 /home/REDACTED/work/plugboard/plugboard/.venv/bin/python3 /home/REDACTED/work/plugboard/plugboard/.venv/lib/python3.13/site-packages/ray/dashboard/dashboard.py --host=127.0.0.1 --port=8265 --port-retries=50 --temp-dir=/tmp/ray --log-dir=/tmp/ray/session_2026-04-08_20-39-05_496118_4173/logs --session-dir=/tmp/ray/session_2026-04-08_20-39-05_496118_4173 --logging-rotate-bytes=536870912 --logging-rotate-backup-count=5 --gcs-address=127.0.0.1:37769 --cluster-id-hex=12135458e388ceb3b846ca782e5dd938de9648ae360cbb7d94ee0423 --node-ip-address=127.0.0.1 --stdout-filepath=/tmp/ray/session_2026-04-08_20-39-05_496118_4173/logs/dashboard.out --stderr-filepath=/tmp/ray/session_2026-04-08_20-39-05_496118_4173/logs/dashboard.err cal/bin/git(dns block)/home/REDACTED/work/plugboard/plugboard/.venv/bin/python3 /home/REDACTED/work/plugboard/plugboard/.venv/bin/python3 /home/REDACTED/work/plugboard/plugboard/.venv/lib/python3.13/site-packages/ray/dashboard/dashboard.py --host=127.0.0.1 --port=8265 --port-retries=50 --temp-dir=/tmp/ray --log-dir=/tmp/ray/session_2026-04-08_20-42-25_298805_5295/logs --session-dir=/tmp/ray/session_2026-04-08_20-42-25_298805_5295 --logging-rotate-bytes=536870912 --logging-rotate-backup-count=5 --gcs-address=127.0.0.1:46503 --cluster-id-hex=7cdaee0fa9731bdb3741caecaaa16ea30c42dd0e00066412731da5bb --node-ip-address=127.0.0.1 --stdout-filepath=/tmp/ray/session_2026-04-08_20-42-25_298805_5295/logs/dashboard.out --stderr-filepath=/tmp/ray/session_2026-04-08_20-42-25_298805_5295/logs/dashboard.err p/bin/git r(dns block)/home/REDACTED/work/plugboard/plugboard/.venv/bin/python3 /home/REDACTED/work/plugboard/plugboard/.venv/bin/python3 /home/REDACTED/work/plugboard/plugboard/.venv/lib/python3.13/site-packages/ray/dashboard/dashboard.py --host=127.0.0.1 --port=8265 --port-retries=50 --temp-dir=/tmp/ray --log-dir=/tmp/ray/session_2026-04-08_20-50-35_693193_6522/logs --session-dir=/tmp/ray/session_2026-04-08_20-50-35_693193_6522 --logging-rotate-bytes=536870912 --logging-rotate-backup-count=5 --gcs-address=127.0.0.1:43549 --cluster-id-hex=7a8906b6756dbfd8332941da89ea5d811afa31c7de1ee6047d690f01 --node-ip-address=127.0.0.1 --stdout-filepath=/tmp/ray/session_2026-04-08_20-50-35_693193_6522/logs/dashboard.out --stderr-filepath=/tmp/ray/session_2026-04-08_20-50-35_693193_6522/logs/dashboard.err k/_temp/ghcca-node/node/bin/git 3 /home/REDACTED/wfile(dns block)releases.astral.sh/home/REDACTED/.local/bin/uv uv venv .venv --python python3.13(dns block)If you need me to access, download, or install something from one of these locations, you can either: