Skip to content

Commit 8449404

Browse files
nficanoclaude
andcommitted
chore: align ARCP wire protocol version with v1.1
Bumps Version.PROTOCOL and Envelope.VERSION to "1.1" and updates the round-trip test, wire-format reference, and README feature line. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 99e9e3c commit 8449404

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export JAVA_HOME=$(/usr/libexec/java_home -v 21)
131131

132132
## Features
133133

134-
- §5.1 envelope with `arcp: "1"` and `FAIL_ON_UNKNOWN_PROPERTIES=false`
134+
- §5.1 envelope with `arcp: "1.1"` and `FAIL_ON_UNKNOWN_PROPERTIES=false`
135135
- §6.1 bearer auth via `BearerVerifier` SPI; `acceptAny` and `staticToken` helpers
136136
- §6.2 capability intersection with rich `agents` shape (name + versions + default)
137137
- §6.3 resume buffer (in-memory ring) and rotating `resume_token`

arcp-core/src/main/java/dev/arcp/core/Version.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package dev.arcp.core;
22

33
public final class Version {
4-
public static final String PROTOCOL = "1";
4+
public static final String PROTOCOL = "1.1";
55
public static final String SDK = "1.0.0";
66

77
private Version() {}

arcp-core/src/main/java/dev/arcp/core/wire/Envelope.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public record Envelope(
2929
@JsonProperty("event_seq") @Nullable Long eventSeq,
3030
JsonNode payload) {
3131

32-
public static final String VERSION = "1";
32+
public static final String VERSION = "1.1";
3333

3434
public Envelope {
3535
Objects.requireNonNull(arcp, "arcp");

arcp-core/src/test/java/dev/arcp/core/EnvelopeRoundTripTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void envelopeWithSessionIdRoundTrips() throws Exception {
3535
String json = mapper.writeValueAsString(original);
3636
Envelope parsed = mapper.readValue(json, Envelope.class);
3737

38-
assertThat(parsed.arcp()).isEqualTo("1");
38+
assertThat(parsed.arcp()).isEqualTo("1.1");
3939
assertThat(parsed.id()).isEqualTo(MessageId.of("m_1"));
4040
assertThat(parsed.sessionId()).isEqualTo(sid);
4141
assertThat(parsed.type()).isEqualTo("session.hello");

docs/05-reference/wire-format.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ since: "1.0.0"
1313

1414
```json
1515
{
16-
"arcp": "1",
16+
"arcp": "1.1",
1717
"id": "01J…",
1818
"type": "session.hello",
1919
"session_id": "sess_…",
@@ -26,7 +26,7 @@ since: "1.0.0"
2626

2727
| Field | Java type | Always required |
2828
|---|---|---|
29-
| `arcp` | `String` | yes (`Envelope.VERSION = "1"`) |
29+
| `arcp` | `String` | yes (`Envelope.VERSION = "1.1"`) |
3030
| `id` | [`MessageId`](../../arcp-core/src/main/java/dev/arcp/core/ids/MessageId.java) | yes (ULID, monotonic per process) |
3131
| `type` | discriminator → [`Message.Type`](../../arcp-core/src/main/java/dev/arcp/core/messages/Message.java) | yes |
3232
| `payload` | `JsonNode` then decoded per type | yes |

0 commit comments

Comments
 (0)