Today every confinement rests on bwrap making a user namespace. Where it cannot (Ubuntu AppArmor userns restriction without the forge-bwrap profile, hostUsers:false pods, nested forges with FORGE_CELLS=off), agent runs fall back unrestricted (src/crew/sandbox.ts:106-111) and check runs become plain processes (src/checks/run_tier.ts:252-259).
Landlock (https://docs.kernel.org/userspace-api/landlock.html) needs no root and no namespace: a process restricts itself and its children, one way.
Ask:
A small pinned helper (Go go-landlock or Rust landlock crate), exec-wrapped in cellArgv and the crew runner: read-only everywhere, write only the workspace and run tmp, TCP connect only to the egress proxy port (ABI 4+), signals and abstract sockets scoped (ABI 6+).
Probe the ABI, strip what the kernel lacks, and record the ABI that applied on the run, so partial enforcement is visible, never silent.
Stack it under bwrap where bwrap works. Where bwrap is missing, Landlock alone replaces the unrestricted fallback, and FORGE_CREW_SANDBOX=require accepts Landlock as the floor.
Prove it on a real Ubuntu 24.04 droplet and on the vxrail pod; say which ABI each has.
Not in scope: resource limits (cgroups stay), read hiding (bwrap stays). UDP is not covered before ABI 10, which should be named in the run record.
No Bun FFI: landlock_restrict_self in-process would confine the forge server itself.
Today every confinement rests on bwrap making a user namespace. Where it cannot (Ubuntu AppArmor userns restriction without the forge-bwrap profile, hostUsers:false pods, nested forges with FORGE_CELLS=off), agent runs fall back unrestricted (src/crew/sandbox.ts:106-111) and check runs become plain processes (src/checks/run_tier.ts:252-259).
Landlock (https://docs.kernel.org/userspace-api/landlock.html) needs no root and no namespace: a process restricts itself and its children, one way.
Ask:
Not in scope: resource limits (cgroups stay), read hiding (bwrap stays). UDP is not covered before ABI 10, which should be named in the run record.
No Bun FFI: landlock_restrict_self in-process would confine the forge server itself.