================= 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
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.
DriftLiveCheck > update tools then report protocol drift() FAILED
org.opentest4j.AssertionFailedError at DriftLiveCheck.kt:42
1 test completed, 1 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.
Execution failed for task ':checkDrift'.
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 withoutchecking whether the new surface needs modelling in
ProtocolSurface.KNOWN_SUBTYPES.