Skip to content

agentplane: give sampler Runner execution its own package - #16230

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

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

Conversation

@agentydragon

@agentydragon agentydragon commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Move the concrete Runner execution adapter and its tests into internal/executor: session handshake/rebind, incarnation fencing, process/file operations, output cursors, reconnection and outcome evidence stay together. The runtime consumes the concrete Executor API rather than reaching into its fields.

The existing caller-visible tool failure becomes toolcontract.Rejection, shared with Code Mode input validation. Executor-owned ToolOutcomeError retains remote-outcome evidence and unwraps to the same caller-visible classification, including when effects are unknown. Image evidence keeps digest redaction. No replay, cursor, timeout, dispatch, auth or process-lifecycle policy changes.

Runtime drain tests now use a loopback generated Executor gRPC server and the real constructor instead of importing private fake-client helpers or mutating Executor fields. Existing drain gates and ownership-release assertions remain. Tests and their PostgreSQL setup follow the behavior they verify; no production test hooks or generic port are added.

Validation: Executor tests, remaining sampler integration/unit targets and both command targets compile on RBE. Formatting, Gazelle and commit hooks pass. Executor and sampler unit suites pass on the extraction branch. Its older-base sampler integration run encountered the known Store request-read fixture omission already corrected in #16228/#16229; the combined final runtime/RPC suites pass in #16232. Hosted CI checks the published head separately.

Proposed, ready successor to #16229 in native stack #16208. RPC and Executor are independently specified after Store; this is their review order. The final resident-runtime package move follows separately.

@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