Repository navigation
Expose orchestrator Ethereum addresses in discovery - #123
Merged
Merged
Conversation
Publish the Ethereum address as `orchestrator` in discovery responses. Forward it through standalone discovery and the signer. Update the discovery schema, HTTP examples, and tests.
There was a problem hiding this comment.
🟡 Changes recommended
Inventory merging can pair fresh runners with a stale payment recipient, requiring recipient selection from winning records and regression coverage for recipient changes and off-chain transitions.
1 open issue
What changed in this PR
Exposes payment recipients’ Ethereum addresses through discovery and the signer while keeping public HTTP(S) URLs in address.
Changes:
- Adds optional
orchestratormetadata and forwards it through discovery responses. - Extends tests for recipient publication, validation, forwarding, and omission.
- Updates the discovery schema and HTTP examples.
| File | Description |
|---|---|
| signer/service.go | Preserves discovery entry metadata. |
| signer/discovery_test.go | Checks recipient forwarding and omission. |
| orchestrator/registry.go | Publishes the payment recipient. |
| orchestrator/payment_test.go | Checks paid discovery identity. |
| orchestrator/http.go | Documents payment configuration timing. |
| orchestrator/discovery_test.go | Checks off-chain field omission. |
| orchestrator/app_test.go | Checks recipient availability during startup. |
| docs/http-api.md | Updates discovery descriptions and examples. |
| docs/discovery.schema.json | Defines the optional Ethereum address field. |
| discovery/shared/inventory.go | Decodes and merges recipient metadata. |
| discovery/shared/inventory_test.go | Tests recipient validation and merging. |
| discovery/server.go | Uses typed responses to forward metadata. |
| discovery/server_test.go | Adapts response checks and verifies omission. |
| discovery/schema_test.go | Tests Ethereum address schema validation. |
Review effort: Balanced
# Conflicts: # discovery/shared/inventory.go
j0sh
added a commit
that referenced
this pull request
Dec 5, 2026
Add `orchestrator` to the signer's `GET /discover-orchestrators`. Callers can match advertised Ethereum addresses case-insensitively and combine the filter with `app` and `gpu`. Repeated addresses can select multiple orchestrators, and empty or malformed values match no address. The signer filters after merging complete inventories. It uses the Ethereum address and recipient selection added in #123. ## Verification `go test -race -count=1 ./signer ./discovery/... ./orchestrator`
This branch was previously deployed
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
orchestratorin discovery entries and forward it through standalone discovery and the signer.address. Omitorchestratorfor off-chain nodes and inventories that do not supply it.Testing
go test -race ./discovery/... ./signer