Skip to content

feat(rpc): preserve fixed-session queries through typed public RPC - #267

Merged
ashione merged 3 commits into
mainfrom
feat/public-fixed-session-rpc
Nov 13, 2026
Merged

ashione merged 3 commits into
mainfrom
feat/public-fixed-session-rpc

Conversation

@ashione

@ashione ashione commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Scope

Closes #266. Refs #218 (umbrella remains open).
Adds FixedSessionService on the existing public gRPC listener for original OpenSession / Read / Traverse / TraversePage / Close. Existing data-local QueryService remains unchanged; async jobs and legacy listeners are intentionally retained until replacement coverage exists.

Design

Materialized fixed sessions permit multiple queries at one certified V; LocalSession retains one data-local query result. Separate types prevent changing token/Close semantics. Both use the same Handler/Invocation/admission, deadlines and lifecycle; no new port, engine, consistency semantics or storage format. Functional service categorization reference: https://etcd.io/docs/v3.6/learning/api/ .

Implementation and evidence

  • Typed request/response conversion and schema-aware preallocation prescan, exact optional V=0 vs absent latest, token/page/message bounds, stable domain errors.
  • Independent-process public fixture covers fixed V across writes/deletion, full Read/Traverse rows, duplicate-start bag pagination/replay, identity/query/cursor/close/restart fencing, exact zero and unavailable future V.
  • Public service, current status, transport inventory and roadmap updated. Fixed Page retains original bounded materialized pagination contract; protobuf delivery is checked per returned page, not a new all-future-pages claim.
  • Checked-in bindings and formatting generated by CI 43508886402 on merge tree identical to original head. Temporary codegen workflow removed from final diff.
  • Independent static review found no blocking defects; no compilation/test result inferred from that review. Suggested future direct RPC tests: cross-session-type token misuse, short TTL and cancelled-open resource release.

Final validation

Exact head 5489295740a3ec09f46899fd38f122c4401f8498 passed independent static review, CI (Test/Format/Clippy) and CoreHR, including retained 1025-write lifecycle. Squash merged as a060e9ba24cda89aeadf12df9b3ef34d107c1f6a; final tree f7049a43d94d7fd8f47965069d5c5e2cb200e759 matches tested merge 07848ce3a076f4596c6758735eddb1f7b41697b0. #266 closed; #218 remains open. No local Rust compilation/test claimed.

Refs #266; draft awaiting generated bindings and full validation.
…ventory

Generated and formatted by CI 43508886402 on verified matching source tree. Remove temporary generation workflow.

ashione commented Nov 13, 2026

Copy link
Copy Markdown
Owner Author

CI follow-up: Test and Format passed on 1fca467ab9892a6146fcdca7f7501e52ce56bd03; Clippy caught four clone_on_copy calls in the fixed-open codec test. Removed only those redundant clones in 5489295740a3ec09f46899fd38f122c4401f8498, without lint suppression or production changes. New exact-head CI/CoreHR results are required before merge; the earlier 1025-write job was still running when inspected. No local Rust test execution claimed.

@ashione
ashione marked this pull request as ready for review November 13, 2026 22:24
@ashione
ashione merged commit a060e9b into main Nov 13, 2026
7 checks passed
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.

Add typed public fixed-session read and traversal RPC without changing pinned-V semantics

1 participant