Verify node↔control↔gateway connection end to end (with numbers) - #39
Merged
Conversation
Adds a durable cross-repo test (test_cross_repo_gateway) and a numbers harness (scripts/verify_connection.py). Both drive the real production path over a real socket with require_mtls=True: node enrolls, is rejected without a cert and accepted with one, heartbeats, publishes/fetches desired state, posts a Ready engine observation, and the gateway's ManagedProjectionSync turns that engine into a routable backend eligible for its served model. The harness also reports per-endpoint latencies, sequence counts, and cert rotation. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Tests and measures the full meridian-node ↔ meridian-control ↔ gateway path over a real socket with mTLS enforced (
require_mtls=True).What
tests/control/test_cross_repo_gateway.py— a durable end-to-end test: the real node agent enrolls, is rejected without a cert (NODE_NOT_AUTHORIZED) and accepted after presenting it, heartbeats, and posts a Ready-engine observation; the gateway'sManagedProjectionSyncthen registers that engine as a routable backend eligible for its served model (managed:<node>:engine_1).scripts/verify_connection.py— a numbers harness that runs the same path and prints measured latencies/counts instead of a boolean.Measured (this machine, localhost, mTLS on)
Suite totals (all green)
node 81 passed · gateway 540 passed · control+cross-repo 29 passed; ruff + mypy clean.
🤖 Generated with Claude Code