Repository navigation
Description
E11 now has two Exec clients, and each classifies a failed Exec into the same six-value cause
vocabulary independently:
- bash —
grpc_exec_recordindeploy/microvm/e11-density.sh(~:1262-1272), agrep -qichain
overgrpcurl's stderr. - Go —
causeForinremote-worker/cmd/exec-driver/cause.go(:17-31), aswitchover
strings.Containson a lower-cased message.
Both produce empty-workspace-key, memory-gate, max-runs, spawn-failure,
vsock-short-response, unknown, in that order — and the order is load-bearing, because a message
matching two rules must classify the same way on both paths or the two clients' execErrorsByCause
stop being comparable.
The gap
Nothing automated keeps them in sync. Raised by @huang195 reviewing rossoctl/moca#296, and on checking it is
slightly worse than that review assumed:
remote-worker/cmd/exec-driver/cause_test.gomentionse11-density.shonly in a comment
(:6). Its expectations are hardcoded Go literals, so it passes unchanged if the bash side is
edited.- The bash suite has no assertion about the cause chain at all. The one check labelled
DRIFT GUARDindeploy/microvm/tests/e11-density.test.sh(:2710) coversexecTimeoutS— the
Exec deadline — not the cause vocabulary.
So the mirror is currently held together by a code comment and reviewer diligence. A one-sided edit —
adding a seventh cause, reordering mem above workspace_key, or renaming one — would leave both
suites green while silently making the two clients' error attribution incomparable. That defeats the
specific thing rossoctl/moca#294 exists to enable: driver-control ladders from the two clients being subtractable.
Why rossoctl/moca#294 did not fix it
The fix touches the reference path's classification. rossoctl/moca#294 deliberately left the grpcurl path's
driving behaviour alone so the two-client comparison stays valid, and changing how it classifies would
alter execErrorsByCause on published ladders mid-comparison. Better done once that comparison has
run and §E11's conclusions are settled.
Candidate approaches
- A shared data file — e.g.
deploy/microvm/exec-error-causes.tsvwith one ordered
substring<TAB>causerow per rule, read bycauseForat startup and bygrpc_exec_record's
classification. One source of truth, no drift possible. Costs a file read on the Go side (outside
the timed window) and restructures the bash grep chain into a loop — which needs care, because that
function is asserted to contain no command substitution at all (the E11: the density knee may be a driver artifact — host resource signals are sampled post-load, and the driver spawns ~9 processes per Exec moca#291 item-2
no-fork-in-the-timed-window guarantee). - A cross-language drift test — cheaper and non-invasive: have the bash suite extract the cause
strings and their order from both sources and assert they match. Does not remove the duplication
but makes desync impossible to merge. Good interim step if option 1 waits on the metal run. - Generate one side from the other at build time.
Option 2 is probably the right first move: it closes the actual risk without touching the reference
path, so it can land before the comparison rather than after.
Context
- The vocabulary and order are documented in
docs/superpowers/specs/2026-09-18-e11-go-exec-client-design.md§4. causeFor's doc comment already states it is a deliberate mirror and why the order matters — that
comment is currently the only thing enforcing it.
🤖 Generated with Claude Code
Activity
pdettori commentedon Oct 2, 2026
Transferred from rossoctl/moca on 2026-10-02, along with the other experiment issues, because their drivers moved here on 2026-09-25 (
deploy/microvm/EXPERIMENTS-MOVED.md,deploy/knative/EXPERIMENTS-MOVED.md,experiments/MOVED.mdin moca).Bare
#Nreferences in this issue's body and earlier comments point to rossoctl/moca, not to this repo. GitHub doesn't rewrite them on transfer. For example,#253means rossoctl/moca#253. The issues moved together, old number to new:coldAcquireRateProduct-code issues they reference stay in moca, for example rossoctl/moca#274 (per-Exec VM lifetime), #277 (P4.1 egress), #297 (vmpool test flakes), #307 (
Destroycost) and #338 (workspace lifetime).pdettori commentedon Nov 12, 2026
Closing as won't fix. E11's ladders are historical and the two clients' subtractability is no longer used. A real guard would span two repos (the bash mirror here,
remote-worker/cmd/exec-driver/cause.goin moca); the suite's only drift guard coversexecTimeoutS. Reopen together with #8 if E11 is rerun.