feat(broker): append spawn model to spawned-agent origin_actor#1091
Conversation
Spawned agents are now attributed as agent-relay-cli/agent/<harness>@<model>
when the broker knows the model from the spawn request, so relaycast server
telemetry can segment by model ("what models are people using"). Cloud parses
the digit-less @-suffix as a model (cloud#2077).
- New telemetry::agent_origin_actor(harness, model) helper building
agent-relay-cli/agent/<harness>[@<model>] (blank model omitted).
- worker.rs (the AgentSpec path, which the relaycast spawn action flows
through with the requested model) passes spec.model.
- spawn_env_vars uses the same helper (SpawnParams has no model -> None).
Harness version stays deferred (it needs a subprocess on the spawn hot path);
the encoding + cloud parser already support `@<version>-<model>` when it lands.
714 broker tests pass; clippy + fmt clean.
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 selected for processing (3)
📝 WalkthroughWalkthroughThis PR centralizes the construction of the ChangesIncorporate model into agent origin actor telemetry
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 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 |
Part 2 of model sourcing (#3 fast-follow) — the broker producer side. Pairs with cloud#2077 (the parser).
Spawned agents are now attributed as
agent-relay-cli/agent/<harness>@<model>when the broker knows the model from the spawn request, sorelaycast_server_*telemetry can segment by model ("what models are people using").Changes
telemetry::agent_origin_actor(harness, model)helper →agent-relay-cli/agent/<harness>[@<model>](blank model omitted).worker.rs— theAgentSpecpath, which the relaycast spawn action flows through with the requested model (relaycast_events.rscarriesevent.agent.model) — passesspec.model.spawn_env_varsuses the same helper (SpawnParamshas no model →None).Deferred
Harness version stays deferred — it needs a
<cli> --versionsubprocess on the spawn hot path. The encoding + cloud parser (cloud#2077) already support@<version>-<model>for when it lands.Verification
714 broker tests pass (+1
agent_origin_actor); clippy + fmt clean.Rollout
After this + cloud#2077 merge and a broker release ships, spawned agents with a model report e.g.
agent-relay-cli/agent/codex@gpt-5, and cloud derivesorigin_actor_model=gpt-5.🤖 Generated with Claude Code