Skip to content

Protocol drift detected in the claude binary / SDK #87

Description

@github-actions
================= DRIFT REPORT =================
# Protocol drift report

| Source | Baseline | Latest (updated) |
|---|---|---|
| SDK (`@anthropic-ai/claude-agent-sdk`) | `0.3.270` | `0.3.284` |
| `claude` binary | `2.1.270` | `2.1.284` |

⚠️ **Drift detected — protocol code changes needed.**

## SDK — `subtype`s not modeled by the parser
- `mcp_read_resource`
→ add a typed branch + serializer in `protocol/ClaudeEvent.kt` (system subtype) or `protocol/ControlProtocol.kt` (control kind), then add it to `KNOWN_SUBTYPES`.

## SDK — `subtype`s the parser models but the SDK dropped (informational)
- `generate_session_title`
- `get_plan`
- `get_workspace_diff`
- `side_question`
→ verify we don't still send/expect these; prune `KNOWN_SUBTYPES` if truly gone.

Then bump the baseline versions and re-run `./gradlew checkDrift` to confirm green.

===============================================

DriftLiveCheck > update tools then report protocol drift() FAILED
org.opentest4j.AssertionFailedError at DriftLiveCheck.kt:42

1 test completed, 1 failed

Task :checkDrift FAILED

[Incubating] Problems report is available at: file:///__w/claude-code-native/claude-code-native/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':checkDrift'.

There were failing tests. See the report at: file:///__w/claude-code-native/claude-code-native/build/reports/tests/checkDrift/index.html

  • Try:

Run with --scan to get full insights from a Build Scan (powered by Develocity).

Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/9.5.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 3m 56s
13 actionable tasks: 13 executed


Produced by this run.
Reconcile it by hand — see docs/DRIFT_DETECTION.md. Do not bump the baseline without
checking whether the new surface needs modelling in ProtocolSurface.KNOWN_SUBTYPES.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions