[QUALITY-733] Clean up orchestration rollout flags#11908
Conversation
|
I'm starting a first review of this pull request. You can view the conversation on Warp. I completed the review and no human review was requested for this pull request. Comment Powered by Oz |
There was a problem hiding this comment.
Overview
This PR removes the retired orchestration v2 and run-agents rollout flags, makes orchestration capability negotiation depend on request settings/tool declarations, and keeps legacy start-agent parsing/rendering paths for historical compatibility.
Concerns
- One updated spec code block now contains invalid pseudo-Rust while replacing the removed flag reference.
- No security findings.
Verdict
Found: 0 critical, 0 important, 1 suggestions
Approve with nits
Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).
Powered by Oz
| ```rust | ||
| fn child_run_ids_from_task_messages(conversation: &AIConversation) -> Vec<String> { | ||
| if !FeatureFlag::OrchestrationV2.is_enabled() { | ||
| if !the removed orchestration-v2 rollout flag.is_enabled() { |
There was a problem hiding this comment.
💡 [SUGGESTION] This Rust code block now contains invalid pseudo-Rust; rewrite it as prose or update the snippet to the current no-flag behavior instead of leaving an unparseable placeholder.
There was a problem hiding this comment.
removed this change
Remove the retired client-side orchestration rollout flags while keeping v2 runtime negotiation explicit. Current orchestration-enabled requests now advertise run_agents and send_message_to_agent without falling back to legacy start_agent tools. Co-Authored-By: Oz <oz-agent@warp.dev>
Co-Authored-By: Oz <oz-agent@warp.dev>
Co-Authored-By: Oz <oz-agent@warp.dev>
Revert historical spec edits from the orchestration flag cleanup branch and refresh comments that still described OrchestrationV2 as a runtime gate. Co-Authored-By: Oz <oz-agent@warp.dev>
Co-Authored-By: Oz <oz-agent@warp.dev>
Three follow-ups uncovered by CI after merging origin/master into the cleanup branch: 1. Gate the FeatureFlag import in terminal_pane.rs behind #[cfg(not(target_family = "wasm"))] so wasm clippy doesn't flag it as unused; the only consumer (inherit_share_for_local_child) is already cfg'd out on wasm. 2. Register OrchestrationEventService and OrchestrationEventStreamer as singletons in terminal::input_tests::initialize_app. The BlocklistAIController constructor used to gate these subscriptions on FeatureFlag::OrchestrationV2; after removing the flag they are unconditional, so any terminal-bootstrap test now panics without them. test_util/terminal.rs already registers both for the broader terminal tests. 3. Update start_new_child_conversation_persists_harness_metadata to seed the parent run_id with a valid non-nil UUID instead of using set_server_conversation_token_for_conversation. orchestration_agent_id no longer falls back to the server conversation token in the non-v2 branch (that branch was removed alongside the rollout flag), so propagating parent_agent_id now requires a real run_id. Co-Authored-By: Oz <oz-agent@warp.dev>
workspace::view::tests bootstrap a terminal through the workspace view,\nwhich constructs a BlocklistAIController. After the cleanup, that\ncontroller subscribes to OrchestrationEventService and\nOrchestrationEventStreamer unconditionally (the OrchestrationV2 flag\ngate is gone). Add both singletons to workspace/view_tests.rs's\ninitialize_app helper so the workspace::view::tests pass under the\nsame invariant as the test_util/terminal and input_tests helpers.\n\nCo-Authored-By: Oz <oz-agent@warp.dev>
50f12c5 to
e418ba4
Compare
Master added five new tests that guard themselves with\nFeatureFlag::OrchestrationV2.override_enabled(true). The cleanup\ncommit removes that flag (v2 is now baked in), so after the rebase\nthose overrides fail to compile (\"no variant or associated item named\nOrchestrationV2\") and one file is missing the FeatureFlag import. Drop\nthe overrides (they're always-true no-ops now) and remove the\nfunction-scope imports that only existed for them; the FeatureFlag\nimport in pane_group/mod_tests.rs stays because FeatureFlag::AgentView\nis still used.\n\nCo-Authored-By: Oz <oz-agent@warp.dev>
warp_cli::tests::run_help_hides_message_when_orchestration_v2_disabled asserted that "warp run message" is hidden when OrchestrationV2 is disabled. The cleanup commit removed the corresponding "!FeatureFlag::OrchestrationV2.is_enabled()" hide branch in Args::clap_command (v2 is baked in and can no longer be disabled), so the test's premise is unreachable and the assertion is now wrong (the message subcommand stays visible). The companion test raw_command_keeps_message_visible_before_runtime_help_customization still covers the visible-by-default expectation. Co-Authored-By: Oz <oz-agent@warp.dev>
Description
What:
run_agentsandsend_message_to_agentwithout advertising legacystart_agentorstart_agent_v2for new runtime negotiation.Why:
Testing
cargo fmt --allFeatureFlag::OrchestrationV2,FeatureFlag::RunAgentsTool,feature = "orchestration_v2",feature = "run_agents_tool",orchestration_v2 =,run_agents_tool =cargo test -p warp supports_orchestration_v2_matches_request_orchestration_settingcargo test -p warp supported_tools_cargo test -p warp send_messagecargo test -p warp start_agentcargo test -p warp orchestration_eventcargo test -p warp orchestration_is_enabled_when_ai_is_enabledcargo clippy --workspace --all-targets --all-features --tests -- -D warningsusing a temporary/tmpyarnshim that delegates tocorepack yarnsocommand-signatures-v2can use the repo-declared Yarn 4.0.1.Skipped:
./script/presubmitwas not run because it is broader than practical for this scoped client implementation pass; formatting, full workspace clippy, and focused tests above were run instead../script/runtesting was not run because this is an internal capability-negotiation cleanup with focused automated coverage.Agent Mode
Co-Authored-By: Oz oz-agent@warp.dev
Conversation: https://staging.warp.dev/conversation/0fe9bb6d-4d70-4121-88e3-24a3a1774184
Run: https://oz.staging.warp.dev/runs/019e7576-05d0-70b9-b994-4292c73709e9
This PR was generated with Oz.