Skip to content

Move GenericCloudObject to warp_server_client.#11115

Merged
vorporeal merged 1 commit into
masterfrom
david/move-GenericCloudObject-to-warp_server_client
May 22, 2026
Merged

Move GenericCloudObject to warp_server_client.#11115
vorporeal merged 1 commit into
masterfrom
david/move-GenericCloudObject-to-warp_server_client

Conversation

@vorporeal
Copy link
Copy Markdown
Contributor

@vorporeal vorporeal commented May 16, 2026

Description

Moves GenericCloudObject into warp_server_client while keeping app-local cloud object behavior in warp.

The upstream type now owns the portable data/container behavior: model accessors, constructors, server update/conflict handling, and portable upsert params. The app crate continues to own CloudObject, CloudModelType, persistence events, queue behavior, UI/Drive integration, and other runtime-specific logic.

This also adds app-local lookup extension traits so type aliases can keep readable calls like CloudAmbientAgentEnvironment::get_all(ctx), CloudScheduledAmbientAgent::get_by_id(...), and CloudMCPServer::get_by_uuid(...) without duplicating helper functions or making the upstream crate depend on AppContext/CloudModel.

Testing

Validated on the stack tip after Phase 3:

  • cargo fmt --manifest-path /Users/david/src/warp/Cargo.toml --all
  • cargo check --manifest-path /Users/david/src/warp/Cargo.toml -p warp_server_client
  • cargo check --manifest-path /Users/david/src/warp/Cargo.toml -p warp
  • cargo check --manifest-path /Users/david/src/warp/Cargo.toml -p warp --tests
  • git --no-pager diff --check

Co-Authored-By: Oz oz-agent@warp.dev

@cla-bot cla-bot Bot added the cla-signed label May 16, 2026
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 20, 2026

@vorporeal

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 /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@vorporeal vorporeal requested a review from bnavetta May 20, 2026 15:29
Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR moves GenericCloudObject and portable upsert parameter handling into warp_server_client, while keeping app-local lookup helpers, persistence events, queue behavior, and UI integrations in the app crate. The changed call sites appear to preserve the previous server update, conflict, lookup, and persistence behavior.

Concerns

  • No blocking correctness, spec-alignment, or security concerns found in the annotated diff.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@vorporeal vorporeal force-pushed the david/move-GenericServerObject-to-warp_server_client branch from 00d7ceb to dcd5b81 Compare May 20, 2026 15:56
@vorporeal vorporeal force-pushed the david/move-GenericCloudObject-to-warp_server_client branch 2 times, most recently from 56de057 to 840dafb Compare May 21, 2026 14:59
@vorporeal vorporeal force-pushed the david/move-GenericServerObject-to-warp_server_client branch from dcd5b81 to 215b603 Compare May 21, 2026 14:59
@vorporeal vorporeal force-pushed the david/move-GenericCloudObject-to-warp_server_client branch from 840dafb to 211b3f2 Compare May 21, 2026 16:47
// Callers who want to update the model need to call set_model to update the
// entire model atomically.
model: Arc<M>,
fn get_all(app: &AppContext) -> Vec<Self> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@vorporeal vorporeal force-pushed the david/move-GenericCloudObject-to-warp_server_client branch from 211b3f2 to aaf4b43 Compare May 22, 2026 18:51
@vorporeal vorporeal force-pushed the david/move-GenericServerObject-to-warp_server_client branch from d772cca to 4e61d7c Compare May 22, 2026 18:51
@vorporeal vorporeal force-pushed the david/move-GenericCloudObject-to-warp_server_client branch from aaf4b43 to afc2903 Compare May 22, 2026 18:53
@vorporeal vorporeal force-pushed the david/move-GenericServerObject-to-warp_server_client branch from 4e61d7c to 3766807 Compare May 22, 2026 18:53
@vorporeal vorporeal changed the base branch from david/move-GenericServerObject-to-warp_server_client to graphite-base/11115 May 22, 2026 19:39
@vorporeal vorporeal force-pushed the david/move-GenericCloudObject-to-warp_server_client branch from afc2903 to 3083ebc Compare May 22, 2026 20:04
@vorporeal vorporeal force-pushed the graphite-base/11115 branch from 3766807 to dc408d2 Compare May 22, 2026 20:04
@vorporeal vorporeal changed the base branch from graphite-base/11115 to master May 22, 2026 20:04
@vorporeal vorporeal enabled auto-merge (squash) May 22, 2026 20:05
@vorporeal vorporeal closed this May 22, 2026
auto-merge was automatically disabled May 22, 2026 20:07

Pull request was closed

@vorporeal vorporeal reopened this May 22, 2026
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 22, 2026

@vorporeal

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 /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@vorporeal vorporeal enabled auto-merge (squash) May 22, 2026 20:08
Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR moves the portable GenericCloudObject implementation and upsert parameter payload into warp_server_client, leaving app-specific lookup helpers, persistence events, and runtime behavior in the app crate. It updates the cloud object persistence/event APIs and call sites to pass portable upsert parameters, and adds app-local lookup traits for existing type-alias ergonomics.

Concerns

No blocking correctness, security, or spec-alignment concerns were found in the annotated diff. No approved spec context was available for deeper spec validation.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@vorporeal vorporeal merged commit a76823c into master May 22, 2026
34 checks passed
@vorporeal vorporeal deleted the david/move-GenericCloudObject-to-warp_server_client branch May 22, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants