Repository navigation
execd: stderr apart, per-command env, job stdin writes and a signal op - #671
Merged
Merged
Conversation
One release of the job protocol's four gaps: a job's stderr told from its stdout on one offset clock (frames keyed by pipe, `stderr_ranges` in read, one bit per byte in the ring and a sidecar per chunk), a command's own `env` (EXECD_ names refused, applied after the user switch under EXECD_RUN_AS), positional idempotent writes to a kept job's stdin (`stdin_open`, `write`), and a named `signal` op. Spec, execd, verifier checks (JOBS_STREAMS, EXEC_ENV, JOBS_STDIN, JOBS_SIGNAL_OP), mock flags, Rust/TS/Python clients, matrix scenarios, fixtures and docs. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LBGuEttMZVcyx4YEaaAvWE
…g, h2 P3, P5) - tests for every mutation (stdin fd release, window ranges, leader+child signal, runtime scan, HOME vs EXECD_HOME, EOF while alive) - signal_job delivers once to each process; signal_job_once removed - the lib tests no longer hang when pipe-user-pages-soft is exceeded (full_pipe never waits for room) - job `data` borrowed from the request Value - sandbox-mcp: env, stdin_open, job_write, job_signal, stderr_ranges; mcp driver implements all four features - P3 over one h2c connection, P5 writer sweep Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LBGuEttMZVcyx4YEaaAvWE
The request body is read into one buffer sized by Content-Length, and a write's base64 is decoded once in jobs::serve and removed from the request before anything waits. Per queued 128 KiB write: 516 KiB -> 186 KiB (4.1x -> 1.45x payload). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LBGuEqmuH3r35k31s2EJ8X
jaredLunde
enabled auto-merge
November 17, 2026 23:47
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LBGuEqmuH3r35k31s2EJ8X
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LBGuEqmuH3r35k31s2EJ8X
…-signal Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LBGuEqmuH3r35k31s2EJ8X
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.
One release of the job protocol's four gaps (plan: execd-gaps, D1-D10): a job's stderr told from its stdout on one offset clock; a command's own
env(EXECD_* refused, applied after the user switch under EXECD_RUN_AS); positional, idempotent writes to a kept job's stdin; a namedsignalop.Spec + execd + verifier checks (JOBS_STREAMS, EXEC_ENV, JOBS_STDIN, JOBS_SIGNAL_OP) + mock flags + Rust/TS/Python clients + matrix scenarios + fixtures + ARCHITECTURE/README. Perf numbers in crates/execd/ARCHITECTURE.md "Performance".
Proofs: verifier red on the unchanged execd (4 new checks only), tests/jobproto.rs 9/9 red on baseline and green here, 17 mutations red, execd suite green, E2B matrix (static musl build) jobs./exec/stream.* PASS on rust, ts, python, python-async.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LBGuEttMZVcyx4YEaaAvWE