You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adjust s3 write path for claude code cloud telemetry (#293)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> **Medium Risk**
> Breaking change for anything listing or ingesting the old object key
scheme; upload wire format is now gzip with updated headers and S3
canonical request signing.
>
> **Overview**
> Cloud agent runtime uploads now use a **new object layout** and **gzip
payloads** on both GCS and S3. Keys move from hive-style paths like
`provider=…/user_id=…/run_id=…/runtime.jsonl` to
`<prefix>/runtime/date=YYYY-MM-DD/<unix>-<provider>-<run_id>.jsonl.gz`,
with `user_id` and `repository` no longer in the key.
>
> Before upload, snapshots are compressed; requests set `Content-Type`
to `application/x-ndjson`, `Content-Encoding: gzip`, and S3 SigV4
signing includes `content-encoding`. Shuttle state stores `provider` and
`run_id` and **`uploadObjectName` reuses `LastObject`** for the same run
so later uploads in a session target the same key instead of minting a
new one each time.
>
> Tests cover the new naming, gzip bodies, and key reuse; README and
Claude/Cursor cloud docs describe the new paths and `gzip -dc`
inspection.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
0453cf5. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
0 commit comments