Add missing verify_latency.py to fix CI "Verify Closed-Loop Latency" step#6
Merged
DaScient merged 2 commits intocopilot/fix-test-collection-errorfrom Apr 9, 2026
Conversation
Agent-Logs-Url: https://github.com/DaScient/Energy/sessions/e462099f-0a38-43a1-96b8-5e2c435823d3 Co-authored-by: DaScient <25983786+DaScient@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix verify latency script file path issue
Add missing verify_latency.py to fix CI "Verify Closed-Loop Latency" step
Apr 9, 2026
DaScient
approved these changes
Apr 9, 2026
b0f1ea7
into
copilot/fix-test-collection-error
2 of 4 checks passed
There was a problem hiding this comment.
Pull request overview
Adds the missing src/distributed_routing/verify_latency.py script so the CI workflow’s “Verify Closed-Loop Latency” step no longer fails due to a nonexistent file, and enforces a latency tolerance check using the same ( \tau = L / v ) formula as the Rust delay-line implementation.
Changes:
- Introduces
verify_latency.pyto compute propagation delays from path length and conduction velocity. - Validates each configured routing path’s delay against a fixed
[0.5, 20.0] mstolerance window and exits non-zero on any failure.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
The CI workflow references
src/distributed_routing/verify_latency.pybut the file never existed, causing the "Verify Closed-Loop Latency" step to hard-fail on every run.Changes
src/distributed_routing/verify_latency.py— new script that verifies inter-organoid routing delays satisfyτ = L / v, consistent with the formula already implemented inprogrammable_delay_lines.rs. Checks each path against a[0.5, 20.0] mstolerance window and exits non-zero on any violation.Tolerance bounds (
0.5 msmin,20.0 msmax) reflect cultured cortical network coupling windows at representative conduction velocities of 0.1–1 m/s over millimetre-scale organoid separations.