Skip to content

unify wire protocol as type-tagged json with string ids#72

Merged
jbj338033 merged 1 commit into
mainfrom
feature/type-tagged-wire-protocol
Jun 18, 2026
Merged

unify wire protocol as type-tagged json with string ids#72
jbj338033 merged 1 commit into
mainfrom
feature/type-tagged-wire-protocol

Conversation

@jbj338033

Copy link
Copy Markdown
Collaborator

Summary

Every wire message now serializes to a uniform JSON object with a single type discriminator field, so non-Rust clients (iOS, Android, Web) decode with one rule instead of branching on string-vs-object. Applies #[serde(tag = "type")] across Op, Event, ClientFrame, ServerFrame, and nested enums; converts unit/tuple variants to named-field struct variants; serializes 64-bit ids (TaskId/ToolCallId/SessionId/ClientId/correlation) as strings for JS safe-integer correctness; and bumps PROTOCOL_VERSION to 3.

Verification

  • cargo fmt --all -- --check — passed
  • cargo clippy --workspace --all-targets -- -D warnings — passed
  • cargo test --workspace — passed (goat-protocol, goat-wire, goat-agent, goat-tui, goat-daemon, goat-store, goat-commands, goat-skill)

@jbj338033 jbj338033 merged commit 23bae41 into main Jun 18, 2026
5 checks passed
@jbj338033 jbj338033 deleted the feature/type-tagged-wire-protocol branch June 18, 2026 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant