feat: add plugboard process validate CLI command#212
Open
Conversation
…, and validation utilities - Add _graph.py with Johnson's cycle-finding algorithm (no additional dependencies) - Add _validation.py with validation utilities for process topology: - validate_all_inputs_connected: check all component inputs are connected - validate_input_events: check input events have matching output producers - validate_no_unresolved_cycles: check circular connections have initial_values - Add model validator on ProcessSpec for circular connection detection - Export new utilities from plugboard_schemas - Add comprehensive unit tests Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
…t filter Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add model validation checks for Process objects
feat: add process topology validation (cycle detection, input connectivity, event matching)
Feb 15, 2026
toby-coleman
requested changes
Mar 4, 2026
Contributor
toby-coleman
left a comment
There was a problem hiding this comment.
@copilot can you refactor as follows:
- Instead of using the Pydantic validators, make all validators runtime checks.
- Provide a validation utility in plugboard_schemas that be called at runtime.
- It must accept the output of
process.dict()as input. Theiokey on the component dicts will provide the input events, output events, inputs, outputs.
- It must accept the output of
- Call the validator in
process.initand raise an exception if it is invalid before running.
- Remove Pydantic model validator from ProcessSpec - Refactor all validators to accept process.dict() format - Add validate_process() entry point combining all checks - Call validate_process() in Process.init() raising ValidationError - Update plugboard.schemas re-exports - Update tests for new runtime validation approach Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
Contributor
Author
Refactored in d96d7b2:
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:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
Benchmark comparison for |
Adds a new `validate` subcommand to the CLI that checks whether a process defined in a YAML config file is valid. It builds the process and runs all topology validation checks (connected inputs, event matching, cycle detection). Exits with code 0 on success, code 1 with error details on failure. Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
Copilot
AI
changed the title
feat: add process topology validation (cycle detection, input connectivity, event matching)
feat: add Mar 4, 2026
plugboard process validate CLI command
|
Benchmark comparison for |
|
Benchmark comparison for |
|
Benchmark comparison for |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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
Adds a
plugboard process validateCLI command that checks whether a YAML process config has valid topology (connected inputs, event matching, cycle detection) without running the process.Changes
validatesubcommand toplugboard/cli/process/__init__.py— builds the process from YAML config, runsvalidate_process(process.dict()), exits 0 on success or 1 with itemized errors on failureOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.