Skip to content

agentplane: make sampler RPC handlers owner-private - #16229

Open
agentydragon wants to merge 1 commit into
codex/agentplane-sampler-store-batch4from
codex/agentplane-sampler-rpc-batch4
Open

agentydragon wants to merge 1 commit into
codex/agentplane-sampler-store-batch4from
codex/agentplane-sampler-rpc-batch4

Conversation

@agentydragon

@agentydragon agentydragon commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Move Sampler's gRPC implementation and its tests from the service root into internal/rpc. The command composes the concrete Store, runtime, resolver, settings and wakeup hub; public protobuf contracts remain in api/.

All twelve handlers preserve account/UID authorization, fixed status mapping, transaction-scoped admission, post-commit runtime wakeup, Follow revalidation and provider-request streaming. The request-read integration test uses the real Store and a real prepared request large enough for multiple chunks; it checks exact retained/transmitted bytes and credential redaction, plus cross-account, wrong-session and missing-request denial.

Validation: RPC unit/integration test targets and both command targets compile on RBE; formatting, Gazelle and commit hooks pass. Parent review confirms all 141 production SQL literals and all 290 existing sampler test functions remain, with every tracked sampler test file registered in a go_test. Both RPC behavioral suites pass: unit (4.2s) and real PostgreSQL integration (28.1s). Hosted CI checks the published head separately.

Proposed, ready successor to #16228 in native stack #16208. The Executor extraction is independent after Store; the final resident-runtime move updates RPC's concrete Runtime import without a forwarding package. No auth, protocol, persistence or lifecycle redesign is included.

@agentydragon agentydragon added the proposed Concrete implementation proposed for review; not approved for automatic merge label Nov 13, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

proposed Concrete implementation proposed for review; not approved for automatic merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant