Skip to content

fix(sdk): accept @agent-relay/sdk and harness-driver 17 as optional peers - #701

Merged
kjgbot merged 1 commit into
mainfrom
fix/sdk-peer-agent-relay-17
Nov 4, 2026
Merged

kjgbot merged 1 commit into
mainfrom
fix/sdk-peer-agent-relay-17

Conversation

@kjgbot

@kjgbot kjgbot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Why

The agent-relay 17.0.0 publish (relay run 41906338523) failed in Build & Version. relayflows-peer-compat.test.ts hit ERESOLVE because @relayflows/sdk@2.0.61 has optional peers >=12.3.1 <13 || >=15.1.0 <17. Nothing was published.

Change

  • packages/sdk peers @agent-relay/sdk and @agent-relay/harness-driver: >=12.3.1 <13 || >=15.1.0 <18. The lockfile's root entry is updated to match.

Compatibility with 17 (relay #2069)

  • The SDK loads only HarnessDriverClient, RelaycastMessagingClient and @agent-relay/harness-driver/broker-path.
  • Between relay v16.0.0 and main, the only change in those packages is the rename of harness-driver's PROBE_* install-path exports to RELAY_NODE_*. The SDK imports none of them, and it doesn't reference agent-relay-probe or the removed bridge methods.

After merge

  1. Lockstep release 2.0.62 (package=all).
  2. Bump relay's @relayflows/sdk pin, together with @relayflows/cli, to match relayflows#67.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…eers

The agent-relay 17.0.0 publish (relay run 41906338523) failed its
relayflows-peer-compat test: @relayflows/sdk 2.0.61's optional peers stop at
<17. The SDK loads only HarnessDriverClient, RelaycastMessagingClient and the
harness-driver broker-path export, none of which relay #2069 changed (it only
renamed harness-driver's PROBE_* install-path exports, which the SDK never
imports), so 17 is compatible.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 4, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9a2bcc58-ba4d-4aa4-b704-15673bb3f57d
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 2 files

View guided diff | Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable defects were found.

Summary

Widens the optional peers @agent-relay/sdk and @agent-relay/harness-driver to accept version 17.

  • The SDK accepts Relay 17 for both optional packages.

Reviews (1) · Last reviewed commit: "fix(sdk): accept @agent-relay/sdk and ha..." · Reviewed by Greptile

@kjgbot

kjgbot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

maintainability lens — PASS

Maintainability review — PR #701

Scope: widens the peerDependency upper bound for @agent-relay/harness-driver and @agent-relay/sdk from <17 to <18, in both packages/sdk/package.json:78-79 and the generated package-lock.json:38-39.

Concerns

1. Uncommented disjoint range. The range >=12.3.1 <13 || >=15.1.0 <18 (package.json:78-79) excludes 13.x and 14.x with no comment, no docs reference, and no linked ADR. A future maintainer looking at this in six months has no way to tell whether the gap is still load-bearing or vestigial. The implicit contract — "14.x had a breaking change, 15.1.0 restored it" or similar — lives only in whoever wrote the original range, if anywhere. A one-line comment above the peerDependencies block pointing at the reason (release note, incident, ADR) would make future widenings safer.

2. No test exercises the peer-dep contract at the new bound. A grep across packages/sdk/tests shows @agent-relay/cli-surface is the only peer-adjacent package referenced structurally (tests/relay-cli-surface.test.ts:11, tests/relay-cli-surface-live.test.ts:6), and that one is pinned via devDependencies at ^12.2.4. There is no test — unit or integration — that would fail if @agent-relay/sdk@17 or @agent-relay/harness-driver@17 broke an interface the flows SDK depends on. The structural contract between @relayflows/sdk and these peers is implicit; widening the compatible range without a proof point relies entirely on the reviewer's recall of v17's changelog.

3. No PR context in the diff. The commit body / PR description is where "v17 was released on , its breaking changes are X/Y, neither affects the SDK's usage" would normally live. From the diff alone, future git-blame will land on a mechanical range bump with no explanation of why <17 was the ceiling in the first place or what in v17 was verified.

Notes

  • package-lock.json changes mirror the package.json update as expected — no drift.
  • Both peers are bumped in lockstep, consistent with how they are declared; good.
  • @agent-relay/cli-surface (devDep at ^12.2.4, package.json:62) is unrelated to this change but may deserve its own look if the v12/v15+ split applies there too.

Blockers

None. This is a pure peer-bound widening; code semantics unchanged. The maintainability cost is a slightly thinner audit trail for the next person who widens it.

Suggested follow-ups (non-blocking)

  • Add a terse comment above peerDependencies naming the reason for the 13.x/14.x gap, or drop the lower disjunct entirely if nobody remembers it.
  • Mention in the commit body which v17 release(s) were smoke-tested and against what flow.

REVIEW_PASSED

@kjgbot

kjgbot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

history lens — PASS

Blockers: None. PR #701 passes the HISTORY lens at 9b968953.

  • Repeated mistake: packages/sdk/package.json, lines 77–79 admits Relay 17 while preserving the existing lower bounds and excluded versions. This continues 295834d7’s deliberate expansion for Relay 16. It does not restore code or behavior previously removed—the regression pattern documented in ops/DRIVE-LOG.md, lines 10021–10045.
  • New RFC contradiction: packages/sdk/package-lock.json, lines 37–39 mirrors the manifest change. These metadata edits introduce no new execution path, journal bypass, provider logic in the kernel, or modification to a judging gate. No new contradiction with a settled RFC-0001 decision is evident.
  • Commit-message untruth: The message accurately describes optional-peer acceptance and makes no claim that tests passed. Its compatibility rationale concerns exports consumed by the SDK; the upstream install-path rename does not establish a false claim about this diff.

Concerns: I did not execute a fresh installation or runtime compatibility test against Relay 17. Compatibility remains a static assessment in this review; that limitation is not a blocker under the requested lens.

Notes: The PR explicitly names the subsequent release and consumer-pin updates. ops/NEXT.md’s older gate brief is a follow-up planning concern.

Scope evidence, command: git show --format= --stat 9b968953

 packages/sdk/package-lock.json | 4 ++--
 packages/sdk/package.json      | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

REVIEW_PASSED
hook: Stop
hook: Stop Completed

@kjgbot

kjgbot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

structure lens — MISSING

@kjgbot

kjgbot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

🎯 review-swarm: FAILED (M:pass H:pass S:missing)

Lens transcripts posted as sibling comments above.

@kjgbot
kjgbot merged commit feacf60 into main Nov 4, 2026
9 checks passed
@kjgbot
kjgbot deleted the fix/sdk-peer-agent-relay-17 branch November 4, 2026 20:55
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