Skip to content

Preserve user query attribution in shared-session transport - #86

Draft
Legoben wants to merge 1 commit into
mainfrom
bens/populate-user-query-attribution
Draft

Preserve user query attribution in shared-session transport#86
Legoben wants to merge 1 commit into
mainfrom
bens/populate-user-query-attribution

Conversation

@Legoben

@Legoben Legoben commented Sep 11, 2026

Copy link
Copy Markdown

Preserve per-query author, origin, and source metadata when agent input passes through shared-session transport. The new optional user_query_attribution_b64 field carries an opaque protobuf envelope through JSON and both WebSocket directions, including persisted requests.

The relay and clients must treat this metadata as unverified. It does not determine authentication, authorization, or requester identity. Encoded envelope bytes count toward session byte accounting. Legacy requests deserialize without the field and omit it when serialized.

Companion PRs: schema, relay, server, and native client. Merge this protocol before the relay and native consumers; refresh their pins if the merged commit ID changes.

Validation: cargo fmt --all -- --check, cargo test --offline (5 passed), and cargo clippy --offline --all-targets -- -D warnings passed. Tests cover legacy payloads, malformed and empty envelope preservation, transport round trips, and byte accounting.

Carry optional opaque attribution envelopes and account for their wire size.

Co-Authored-By: Warp Agent <agent@warp.dev>
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.

1 participant