Skip to content

Conversation

orlandohohmeier
Copy link
Member

This change generalizes our request/response plumbing to support multiple codecs and introduces a dedicated health codec (protocol). The network layer now exposes typed (codec) helpers to register handlers and make requests.

A new health codec (/hypha-health/0.0.1) reports health/readiness. Gateway and worker register lightweight handlers that answer health requests once they meet their readiness criteria. All binaries feauture a probe subcommand that dials a target, performs a health request, and exits non-zero on failure/timeout, making it suitable for startup and liveness checks.

@orlandohohmeier orlandohohmeier force-pushed the orlandohohmeier/health-protocol branch from e7210d3 to 70e18cc Compare September 18, 2025 13:21
@orlandohohmeier orlandohohmeier force-pushed the orlandohohmeier/decentralized-resource-allocation branch 2 times, most recently from 7b6c953 to 6bdc4fc Compare September 25, 2025 13:35
Base automatically changed from orlandohohmeier/decentralized-resource-allocation to main September 25, 2025 14:08
@orlandohohmeier orlandohohmeier force-pushed the orlandohohmeier/health-protocol branch 2 times, most recently from 2fc4453 to 32660ae Compare October 14, 2025 15:43
This change generalizes our request/response plumbing to support multiple codecs and
introduces a dedicated health codec (protocol). The network layer now exposes typed (codec) helpers
to register handlers and make requests.

A new health codec (`/hypha-health/0.0.1`) reports health/readiness. Gateway and worker
register lightweight handlers that answer health requests once they meet their
readiness criteria. All binaries feauture a `probe` subcommand that dials a target,
performs a health request, and exits non-zero on failure/timeout, making it suitable for
startup and liveness checks.

Co-Authored-By: ChatGPT <[email protected]>
@orlandohohmeier orlandohohmeier force-pushed the orlandohohmeier/health-protocol branch from 32660ae to 78ea4c5 Compare October 14, 2025 18:36
@orlandohohmeier orlandohohmeier requested a review from nfnt October 15, 2025 07:15
@orlandohohmeier
Copy link
Member Author

@nfnt i've combined the traits into one but still needed disambiguating some of the calls.

Copy link
Member

@nfnt nfnt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
The implementation for the probe subcommand is repeated among all binaries, maybe we should move the code for that to a separate library as a follow-up.

@orlandohohmeier orlandohohmeier merged commit bf0f512 into main Oct 15, 2025
7 of 8 checks passed
@orlandohohmeier orlandohohmeier deleted the orlandohohmeier/health-protocol branch October 15, 2025 12:04
@orlandohohmeier
Copy link
Member Author

@nfnt yeah there are a few bits that are basically the same for all binaries and we should move them into a shared mod but I didn't go for it as I feel that it needs a little thought on how to best do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants