Skip to content

Commit 48c29a3

Browse files
Nick Ficanoclaude
andcommitted
chore: align ARCP wire protocol version with v1.1
Bumps Version.Protocol to "1.1" and updates codec/envelope round-trip tests + the README envelope description. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 319200a commit 48c29a3

4 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
@@ -168,7 +168,7 @@ The SDK is organised as eight projects (`Arcp.Core`, `Arcp.Client`,
168168
`Arcp.Runtime`, `Arcp.AspNetCore`, `Arcp.Giraffe`, `Arcp.Otel`,
169169
`Arcp`, `Arcp.Cli`). The high-level shape:
170170

171-
- **Wire envelope**: 8 fields; `arcp = "1"`; `payload : JsonElement` for
171+
- **Wire envelope**: 8 fields; `arcp = "1.1"`; `payload : JsonElement` for
172172
lazy decode; codec uses `FSharp.SystemTextJson` with
173173
`JsonUnionEncoding.InternalTag` keyed on `type` so the discriminator
174174
sits at the same level as peer fields.

src/Arcp.Core/Version.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace ARCP.Core
55
module Version =
66
/// Wire-level protocol version emitted as the envelope `arcp` field.
77
[<Literal>]
8-
let Protocol = "1"
8+
let Protocol = "1.1"
99

1010
/// SDK package version. Pinned alongside `Directory.Build.props`.
1111
[<Literal>]

tests/Arcp.UnitTests/CodecTests.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ let ``job.event with progress body roundtrips`` () =
5151
[<Fact>]
5252
let ``unknown message type returns InvalidRequest`` () =
5353
let env = {
54-
Arcp = "1"
54+
Arcp = "1.1"
5555
Id = "x"
5656
Type = "nonsense.type"
5757
SessionId = None

tests/Arcp.UnitTests/EnvelopeTests.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ let ``envelope roundtrip preserves wire fields`` () =
2626
parsed.EventSeq |> should equal (Some 7L)
2727

2828
[<Fact>]
29-
let ``envelope arcp field is "1" not "1.0"`` () =
29+
let ``envelope arcp field is "1.1"`` () =
3030
let env = Envelope.create "session.hello" (Json.parseElement "{}")
3131
let wire = Codec.writeEnvelope env
32-
wire |> should haveSubstring "\"arcp\":\"1\""
33-
wire |> should not' (haveSubstring "\"1.0\"")
32+
wire |> should haveSubstring "\"arcp\":\"1.1\""
33+
wire |> should not' (haveSubstring "\"arcp\":\"1.0\"")

0 commit comments

Comments
 (0)