feat(broker): origin_actor — bump relaycast crate 3.0.0, emit CLI path#1085
Conversation
PR4 (core) of the origin_actor rollout (cloud/plans/origin-actor.md). Aligns the broker producer with the engine 3.0.0 contract (harness -> origin_actor). - Bump the `relaycast` crate pin =2.4.0 -> =3.0.0 (the SDK renamed `with_harness` -> `with_origin_actor`; published 3.0.0 to crates.io). - The broker's own relaycast traffic (workspace stream + agent registration) now sends `origin_actor = agent-relay-cli/cli` via the renamed `with_origin_actor`, at all three client sites (WS handshake + both `build_relay_client` helpers). New `telemetry::BROKER_ORIGIN_ACTOR` const. This fixes attribution for the broker's own (@relaycast/sdk-rust) traffic — the majority of `relaycast_server_*` events. Fast-follows (separate PRs): - per-worker spawned-agent path `agent-relay-cli/agent/<harness>` (extends the open #1078) + the relay JS SDK rename so spawned agents send the new header. - model + version in the name segment (`@<version>-<model>`) — sourcing. 709 broker tests pass; clippy + fmt clean; builds against crate 3.0.0 with no other reconciliation needed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe broker's relaycast integration switches from conditional harness forwarding to a fixed origin actor constant. A new ChangesBroker origin actor for relaycast
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
PR4 (core) of the origin_actor rollout — plan:
cloud/plans/origin-actor.md. Aligns the broker producer with the engine 3.0.0 contract (harness→origin_actor, relaycast#184).Changes
relaycastcrate pin=2.4.0 → =3.0.0(the SDK renamedwith_harness→with_origin_actor; 3.0.0 is published to crates.io).origin_actor = agent-relay-cli/cliviawith_origin_actor, at all three client sites (the WS handshake + bothbuild_relay_clienthelpers). Newtelemetry::BROKER_ORIGIN_ACTORconst.This fixes attribution for the broker's own
@relaycast/sdk-rusttraffic — the majority ofrelaycast_server_*events — which would otherwise gounknownonce the gateway (engine 3.0.0) stops reading the oldX-Relaycast-Harnessheader.Scope (core only, per direction)
This lands the harness + crate-bump core. Deliberate fast-follows:
agent-relay-cli/agent/<harness>— extends the open #1078, and needs the relay JS SDK (@relaycast/sdk) renamed to sendX-Relaycast-Origin-Actorso spawned agents are attributed.@<version>-<model>) — the per-harness sourcing.Verification
3.0.0with no other reconciliation needed (clean major bump).clippy+cargo fmt --checkclean.Note
The broker's own traffic is attributed to
agent-relay-cli/cli(per the plan's "CLI driving directly" case). The previously-forwarded orchestrator harness (claude-code/codex) now surfaces on the spawned agents instead (fast-follow #1), not on the broker's own events.🤖 Generated with Claude Code