feat(apss): add AgentStateService protobuf schema#5
Merged
Conversation
…y, seq+version, text body now, extensible)
|
The latest Buf updates on your PR. Results from workflow buf-pr / buf (pull_request).
|
…1 and rename package/go_package
…rvice to AgentState; update java_outer_classname
…language-agnostic schema
…ntextSnapshot and integrity hash
…rialized snapshot messages
…; remove call_id from request and snapshot; keep exact-order ids
…implify ContextSnapshot; add listing RPCs for snapshot messages and IDs, and conversation message IDs
…and conversation message ids
Contributor
Test & Lint
|
Contributor
Test & Lint
|
vitramir
requested changes
Feb 27, 2026
| message Message { | ||
| string id = 1; // server-assigned UUID | ||
| string conversation_id = 2; // routing key | ||
| int64 seq = 3; // monotonic per conversation |
| Role role = 4; // user | assistant | tool | ||
| string kind = 5; // free-form tag (e.g., system, summary, memory, restriction, tool_output) | ||
| MessageBody body = 6; // payload | ||
| MemoryAttrs memory = 7; // optional placement attributes (for memory kinds) |
| MessageBody body = 6; // payload | ||
| MemoryAttrs memory = 7; // optional placement attributes (for memory kinds) | ||
| google.protobuf.Timestamp created_at = 8; | ||
| bool archived = 9; // soft delete / superseded flag |
| MemoryAttrs memory = 7; // optional placement attributes (for memory kinds) | ||
| google.protobuf.Timestamp created_at = 8; | ||
| bool archived = 9; // soft delete / superseded flag | ||
| google.protobuf.Timestamp archived_at = 10; |
Comment on lines
94
to
95
| int64 version = 2; // CAS token (monotonic) | ||
| int64 last_seq = 3; // highest seq among active messages |
Comment on lines
142
to
143
| int64 expect_version = 2; | ||
| string idempotency_key = 3; |
Comment on lines
160
to
162
| int64 expect_version = 2; | ||
| string idempotency_key = 3; | ||
| int64 anchor_seq = 4; |
| // Each snapshot item is a materialized message copy with integrity hash. | ||
| message SnapshotItem { | ||
| string message_id = 1; // original message id | ||
| int64 seq = 2; // original message seq |
Comment on lines
236
to
238
| int64 seq_gte = 2; | ||
| int64 seq_lte = 3; | ||
| bool include_archived = 4; |
| bool include_archived = 4; | ||
| int32 page_size = 5; | ||
| string page_token = 6; | ||
| bool descending = 7; |
Contributor
Test & Lint
|
vitramir
requested changes
Feb 27, 2026
Comment on lines
140
to
141
| int64 expect_version = 2; | ||
| int64 anchor_seq = 3; |
Comment on lines
214
to
215
| int64 seq_gte = 2; | ||
| int64 seq_lte = 3; |
| // Delete | ||
| message DeleteConversationMessagesRequest { | ||
| string conversation_id = 1; | ||
| int64 expect_version = 2; |
Comment on lines
108
to
109
| int64 seq_gte = 4; // inclusive lower bound (optional) | ||
| int64 seq_lte = 5; // inclusive upper bound (optional) |
|
|
||
| message AppendConversationMessagesRequest { | ||
| string conversation_id = 1; | ||
| int64 expect_version = 2; // optimistic concurrency; 0 to bypass on create |
|
|
||
| message ConversationMetadata { | ||
| string conversation_id = 1; | ||
| int64 version = 2; // CAS token (monotonic) |
Contributor
Test & Lint
|
Contributor
Test & Lint
|
Contributor
Test & Lint
|
vitramir
previously approved these changes
Feb 28, 2026
Contributor
Test & Lint
|
Contributor
Test & Lint
|
Contributor
Test & Lint
|
vitramir
approved these changes
Feb 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the Agent Persistent State Service (APSS) protobuf schema:
After merge, platform runtime can consume this API as the persistence layer for stateless CLI LLM loop.