Skip to content

Expose orchestrator Ethereum addresses in discovery - #123

Merged
j0sh merged 3 commits into
mainfrom
ja/discovery-addr
Dec 5, 2026
Merged

j0sh merged 3 commits into
mainfrom
ja/discovery-addr

Conversation

@j0sh

@j0sh j0sh commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Publish the payment ticket recipient as orchestrator in discovery entries and forward it through standalone discovery and the signer.
  • Keep the public HTTP(S) base URL in address. Omit orchestrator for off-chain nodes and inventories that do not supply it.
  • Update the discovery schema and HTTP examples.

Testing

  • go test -race ./discovery/... ./signer

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.
Copilot AI balanced review requested due to automatic review settings December 5, 2026 08:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 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 orchestrator metadata 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

Comment thread discovery/shared/inventory.go Resolved
Copilot AI balanced review requested due to automatic review settings December 5, 2026 08:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain for the payment-recipient discovery changes.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@j0sh
j0sh temporarily deployed to docker-publish December 5, 2026 08:59 — with GitHub Actions Inactive
@j0sh
j0sh temporarily deployed to docker-publish December 5, 2026 09:00 — with GitHub Actions Inactive
@j0sh
j0sh temporarily deployed to docker-publish December 5, 2026 09:00 — with GitHub Actions Inactive
@j0sh
j0sh temporarily deployed to docker-publish December 5, 2026 09:00 — with GitHub Actions Inactive
@j0sh
j0sh merged commit 7815a29 into main Dec 5, 2026
13 checks passed
@j0sh
j0sh deleted the ja/discovery-addr branch December 5, 2026 09:23
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

1 inactive deployment
docker-publish — 8853dc27 Deployed Dec 5, 2026 by j0sh via docker-pr / promote #247
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