Skip to content

docs: place the Relay adaptor on the V1 route surface - #968

Merged
jeremi merged 1 commit into
mainfrom
docs/relay-v1-route-surface
Sep 9, 2026
Merged

jeremi merged 1 commit into
mainfrom
docs/relay-v1-route-surface

Conversation

@jeremi

@jeremi jeremi commented Sep 9, 2026

Copy link
Copy Markdown
Member

Why

Follow-up to #967. Its explanation/openfn-adaptors page told readers that the V1 metadata route serving evidence offerings was retired, and that they should not build on the adaptor's offering listing. Both halves were off.

The route is not retired from anything an adopter can reach: the public lab's Relay reports 0.4.0 in its own openapi.json and still serves /metadata/evidence-offerings. Retirement applies to Relay V2, not to the V1 runtime the lab runs.

The warning was also far too narrow. @openfn/language-registry-relay builds every request against the V1 route surface (/v1/datasets, /v1/datasets/{dataset}/entities/{entity}/records, /metadata/...), while crates/registry-relay-v2/src/server.rs routes only under /v2/resources/{resource}. Point the adaptor at a V2 deployment and every operation misses, not just the offering listing. What is specific to offerings is that they have no V2 successor: unsupported_families in crates/registry-relay-v2/src/artifacts.rs includes evidence, and offerings are published by Registry Manifest.

What changed

One page, explanation/openfn-adaptors.mdx:

  • a caution replacing the old paragraph, naming the V1 routes the adaptor targets, the V2 prefix that replaced them, that upstream places Relay outside its 0.1.0 beta, and that the pilot's worker image omits the adaptor
  • the evidence-offering sentence kept, restated as "belongs to that same V1 surface and has no V2 successor" rather than "the route is retired"
  • the adaptor table's product column now reads Registry Relay V1
  • a paragraph naming the fourth upstream package, @openfn/language-registry-notary, which the 0.1.0 beta leaves outside its scope alongside Relay, so readers reach for the Evidence adaptor. Written as an identifier only, per check:notary-surface
  • the TODO[evidence] block repinned from a commit SHA to that repository's v0.1.0 tag, and its source list extended with CHANGELOG.md
  • the evidence anchor extended to cite crates/registry-relay-v2/src/server.rs

The upstream README carried the same two errors; corrected in registrystack/openfn-language-registry-stack#3.

Checks

  • npm test in docs/site: 565 passed, 0 failed
  • npm run check:production in docs/site: pass, which covers check:source (evidence anchors, notary surface, style, links) and the built production checks

The page told readers the evidence-offering route was retired. It is still
served by the public lab's V1 Relay, and the real boundary is wider: every
operation in the adaptor targets V1 paths that Relay V2 does not answer.

Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-09T16:14:43.841337Z 6ab3019 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jeremi
jeremi merged commit d6de8ef into main Sep 9, 2026
37 checks passed
@jeremi
jeremi deleted the docs/relay-v1-route-surface branch September 9, 2026 16:27
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.

1 participant