You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[MOCA SBX] Verify MOCA's sandbox grant and pass the moca-egress conformance suite #1489
Priority: final gate · Part of the Cortex × MOCA SBX epic · #905 breakdown step 5 · MOCA contract: MI1 §12.2-12.3
Problem
Cortex replaces moca-egress only when it passes the same black-box suite. This issue is the integration gate for the epic.
What it involves
Grant verification. A control-plane-signed Ed25519 JWS:
aud=moca-sandbox, with exp and sid;
verified on Register and Rebind;
MOCA distributes public keys as kid:base64-DER, not JWKS;
cross-language golden vectors are checked in on the MOCA side (§12.2).
The suite lives at remote-worker/egress/conformance (public package) with a runnable cmd/moca-egress-conformance (rossoctl/moca#583). It drives the implementation only through:
MOCA_EGRESS_* and MOCA_TENANCY environment variables;
the control socket;
per-VM proxy sockets;
named refusals (the X-Moca-Egress-Error header plus a <code>: <host> body);
Grounding review on 2026-11-23 (moca maine464dd6, Cortex main7f3eec7). It changes what this gate needs:
moca's suite has 30 cases: 13 transport, 2 timeout, and 15 interception cases. The interception cases came from the sandbox service and are already in the suite (remote-worker/egress/conformance/conformance.go:80-111).
grant_refused_under_single also requires that MOCA_TENANCY=multifails to start (cases.go:908-921). A Cortex that serves multi fails that case as written. moca must split it before this gate can pass under multi (moca draft, not posted).
Plan update (2026-11-23, #2042 revised): this gate is now the end state of a CI job, not a separate last step.
feat: Add a host-egress build and keep moca's vmcontrol driver out of every other build #2085 adds a moca-conformance CI job. It builds moca's runner from a clone pinned in scripts/moca-conformance/MOCA_COMMIT (go install …@<commit> does not work, because moca's remote-worker/go.mod has a replace directive), runs it against the hostegress build, and compares the FAIL names with scripts/moca-conformance/known-failures.txt. The job fails on a new failure and on a listed case that passes, so the list only gets shorter.
This issue is done when the job passes with MOCA_TENANCY=multi and an empty list. That still needs moca's multi-tenant cases and a split of grant_refused_under_single.
Activity
huang195 commentedon Nov 23, 2026
Grounding review on 2026-11-23 (moca
maine464dd6, Cortexmain7f3eec7). It changes what this gate needs:remote-worker/egress/conformance/conformance.go:80-111).moca-egress-conformance -bin) starts the binary with only the case's environment: no arguments and no config file. It waits up to 10 s for the control socket. So thehostegressbuild must start from the environment alone (feat: Add a host-egress build and keep moca's vmcontrol driver out of every other build #2085).grant_refused_under_singlealso requires thatMOCA_TENANCY=multifails to start (cases.go:908-921). A Cortex that servesmultifails that case as written. moca must split it before this gate can pass undermulti(moca draft, not posted).destination_privatecases today: the suite expects moca's refusal shape, and Cortex answers in JSON (cases.go:254, 297, 309, 321, Cortexforwardproxy/server.go:885). feat: Answer egress refusals in Cortex's own shape and move moca's format and MOCA_EGRESS_ALLOW into the moca driver #2086 fixes it.Order and details: #2042.
Assisted-By: Claude (Anthropic AI) [email protected]
huang195 commentedon Nov 23, 2026
Plan update (2026-11-23, #2042 revised): this gate is now the end state of a CI job, not a separate last step.
moca-conformanceCI job. It builds moca's runner from a clone pinned inscripts/moca-conformance/MOCA_COMMIT(go install …@<commit>does not work, because moca'sremote-worker/go.modhas areplacedirective), runs it against thehostegressbuild, and compares theFAILnames withscripts/moca-conformance/known-failures.txt. The job fails on a new failure and on a listed case that passes, so the list only gets shorter.MOCA_EGRESS_RESOLVERand the nameup.test, which Cortex reads only after feat: Answer egress refusals in Cortex's own shape and move moca's format and MOCA_EGRESS_ALLOW into the moca driver #2086.MOCA_TENANCY=multiand an empty list. That still needs moca's multi-tenant cases and a split ofgrant_refused_under_single.Assisted-By: Claude (Anthropic AI) [email protected]