omega-mcp
aien-dev/omega-mcp
Brought by drakestapleton
omega-mcp / evidence / b2ad967e / trust-gate.json
| 1 | { |
| 2 | "server": "/tmp/omcp-ev-2dd1d9bb/omega-mcp/build/omega-mcp", |
| 3 | "rows": [ |
| 4 | { |
| 5 | "gate": "read", |
| 6 | "case": "canary + state dir", |
| 7 | "server": "sandbox", |
| 8 | "seconds": 0.03, |
| 9 | "want": "exit 0: canary and ~/.local/state both invisible, secret absent from stdout", |
| 10 | "observed": { |
| 11 | "compile_ok": true, |
| 12 | "exit": { |
| 13 | "kind": "normal", |
| 14 | "code": 0 |
| 15 | }, |
| 16 | "stdout": "", |
| 17 | "stdout_bytes": 0, |
| 18 | "isolation": "bwrap+prlimit: no network, no host files, cleared environment, cpu/as/fsize/nproc limits, server wall clock" |
| 19 | }, |
| 20 | "leftover_processes": [], |
| 21 | "pass": true |
| 22 | }, |
| 23 | { |
| 24 | "gate": "read", |
| 25 | "case": "canary + state dir (control)", |
| 26 | "server": "noiso", |
| 27 | "seconds": 0.01, |
| 28 | "want": "exit 10 and the secret on stdout (the gate sees a leak)", |
| 29 | "observed": { |
| 30 | "compile_ok": true, |
| 31 | "exit": { |
| 32 | "kind": "normal", |
| 33 | "code": 10 |
| 34 | }, |
| 35 | "stdout": "omega-mcp-canary-eb0b450cf12210fb\n", |
| 36 | "stdout_bytes": 34, |
| 37 | "isolation": "OFF (--test-only-no-isolation): ran on the host with the server environment and no limits except the wall clock" |
| 38 | }, |
| 39 | "leftover_processes": [], |
| 40 | "pass": true |
| 41 | }, |
| 42 | { |
| 43 | "gate": "forkbomb", |
| 44 | "case": "unbounded bomb", |
| 45 | "server": "sandbox", |
| 46 | "seconds": 3.03, |
| 47 | "want": "stopped by a limit or the wall clock within 15 s; mid-run the sandbox's bwrap, its reaper and 1..5 bomb processes seen (most bomb processes in any 0.1 s sample <= 5); none left", |
| 48 | "observed": { |
| 49 | "compile_ok": true, |
| 50 | "exit": { |
| 51 | "kind": "limit", |
| 52 | "limit": "wall_clock", |
| 53 | "timeout_ms": 3000 |
| 54 | }, |
| 55 | "stdout": "", |
| 56 | "stdout_bytes": 0, |
| 57 | "isolation": "bwrap+prlimit: no network, no host files, cleared environment, cpu/as/fsize/nproc limits, server wall clock" |
| 58 | }, |
| 59 | "leftover_processes": [], |
| 60 | "pass": true, |
| 61 | "mid_run_processes": [ |
| 62 | "3922017 /usr/bin/bwrap --unshare-all --unshare-user --disable-userns --die-with-parent --new-session --clearenv --block-fd 0 --info-fd 1 --ro-bind /tmp/omcp-ev-2dd1d9bb/omega-mcp/build/omega-mcp /r --ro-bind /tmp/omega-mcp-b0bfd52c91b9b19a/bin /p --ro-bind /tmp/omega-mcp-b0bfd52c91b9b19a/in /i --bind /tmp/omega-mcp-b0bfd52c91b9b19a/out /o --bind /tmp/omega-mcp-b0bfd52c91b9b19a/err /e --size 16777216 --tmpfs /w --chdir /w --remount-ro / /r reap /p", |
| 63 | "3922021 /usr/bin/bwrap --unshare-all --unshare-user --disable-userns --die-with-parent --new-session --clearenv --block-fd 0 --info-fd 1 --ro-bind /tmp/omcp-ev-2dd1d9bb/omega-mcp/build/omega-mcp /r --ro-bind /tmp/omega-mcp-b0bfd52c91b9b19a/bin /p --ro-bind /tmp/omega-mcp-b0bfd52c91b9b19a/in /i --bind /tmp/omega-mcp-b0bfd52c91b9b19a/out /o --bind /tmp/omega-mcp-b0bfd52c91b9b19a/err /e --size 16777216 --tmpfs /w --chdir /w --remount-ro / /r reap /p", |
| 64 | "3922027 /r reap /p", |
| 65 | "3922031 /p", |
| 66 | "3922032 /p", |
| 67 | "3922033 /p" |
| 68 | ] |
| 69 | }, |
| 70 | { |
| 71 | "gate": "forkbomb", |
| 72 | "case": "count 20 forks", |
| 73 | "server": "sandbox", |
| 74 | "seconds": 0.03, |
| 75 | "want": "at most 5 forks succeed (nproc 5)", |
| 76 | "observed": { |
| 77 | "compile_ok": true, |
| 78 | "exit": { |
| 79 | "kind": "normal", |
| 80 | "code": 2 |
| 81 | }, |
| 82 | "stdout": "", |
| 83 | "stdout_bytes": 0, |
| 84 | "isolation": "bwrap+prlimit: no network, no host files, cleared environment, cpu/as/fsize/nproc limits, server wall clock" |
| 85 | }, |
| 86 | "leftover_processes": [], |
| 87 | "pass": true |
| 88 | }, |
| 89 | { |
| 90 | "gate": "forkbomb", |
| 91 | "case": "count 20 forks (control)", |
| 92 | "server": "noiso", |
| 93 | "seconds": 0.01, |
| 94 | "want": "all 20 forks succeed without the limit", |
| 95 | "observed": { |
| 96 | "compile_ok": true, |
| 97 | "exit": { |
| 98 | "kind": "normal", |
| 99 | "code": 20 |
| 100 | }, |
| 101 | "stdout": "", |
| 102 | "stdout_bytes": 0, |
| 103 | "isolation": "OFF (--test-only-no-isolation): ran on the host with the server environment and no limits except the wall clock" |
| 104 | }, |
| 105 | "leftover_processes": [], |
| 106 | "pass": true |
| 107 | }, |
| 108 | { |
| 109 | "gate": "loop", |
| 110 | "case": "wall clock 2 s", |
| 111 | "server": "sandbox", |
| 112 | "seconds": 2.03, |
| 113 | "want": "killed at the 2 s wall clock", |
| 114 | "observed": { |
| 115 | "compile_ok": true, |
| 116 | "exit": { |
| 117 | "kind": "limit", |
| 118 | "limit": "wall_clock", |
| 119 | "timeout_ms": 2000 |
| 120 | }, |
| 121 | "stdout": "", |
| 122 | "stdout_bytes": 0, |
| 123 | "isolation": "bwrap+prlimit: no network, no host files, cleared environment, cpu/as/fsize/nproc limits, server wall clock" |
| 124 | }, |
| 125 | "leftover_processes": [], |
| 126 | "pass": true |
| 127 | }, |
| 128 | { |
| 129 | "gate": "loop", |
| 130 | "case": "cpu limit (wall 30 s)", |
| 131 | "server": "sandbox", |
| 132 | "seconds": 10.12, |
| 133 | "want": "killed by RLIMIT_CPU (10 s) before the 30 s wall clock", |
| 134 | "observed": { |
| 135 | "compile_ok": true, |
| 136 | "exit": { |
| 137 | "kind": "limit", |
| 138 | "limit": "cpu_time", |
| 139 | "signal": 24, |
| 140 | "cpu_seconds": 10 |
| 141 | }, |
| 142 | "stdout": "", |
| 143 | "stdout_bytes": 0, |
| 144 | "isolation": "bwrap+prlimit: no network, no host files, cleared environment, cpu/as/fsize/nproc limits, server wall clock" |
| 145 | }, |
| 146 | "leftover_processes": [], |
| 147 | "pass": true |
| 148 | }, |
| 149 | { |
| 150 | "gate": "loop", |
| 151 | "case": "cpu limit (control)", |
| 152 | "server": "noiso", |
| 153 | "seconds": 30.01, |
| 154 | "want": "without prlimit only the 30 s wall clock stops it", |
| 155 | "observed": { |
| 156 | "compile_ok": true, |
| 157 | "exit": { |
| 158 | "kind": "limit", |
| 159 | "limit": "wall_clock", |
| 160 | "timeout_ms": 30000 |
| 161 | }, |
| 162 | "stdout": "", |
| 163 | "stdout_bytes": 0, |
| 164 | "isolation": "OFF (--test-only-no-isolation): ran on the host with the server environment and no limits except the wall clock" |
| 165 | }, |
| 166 | "leftover_processes": [], |
| 167 | "pass": true |
| 168 | }, |
| 169 | { |
| 170 | "gate": "write", |
| 171 | "case": "10 GiB to a file", |
| 172 | "server": "sandbox", |
| 173 | "seconds": 0.2, |
| 174 | "want": "SIGXFSZ at the 1 MiB file-size limit", |
| 175 | "observed": { |
| 176 | "compile_ok": true, |
| 177 | "exit": { |
| 178 | "kind": "limit", |
| 179 | "limit": "file_size", |
| 180 | "signal": 25, |
| 181 | "file_size_bytes": 1048576 |
| 182 | }, |
| 183 | "stdout": "", |
| 184 | "stdout_bytes": 0, |
| 185 | "isolation": "bwrap+prlimit: no network, no host files, cleared environment, cpu/as/fsize/nproc limits, server wall clock" |
| 186 | }, |
| 187 | "leftover_processes": [], |
| 188 | "pass": true |
| 189 | }, |
| 190 | { |
| 191 | "gate": "write", |
| 192 | "case": "10 GiB to stdout", |
| 193 | "server": "sandbox", |
| 194 | "seconds": 0.22, |
| 195 | "want": "SIGXFSZ; at most 1 MiB reached the host capture file", |
| 196 | "observed": { |
| 197 | "compile_ok": true, |
| 198 | "exit": { |
| 199 | "kind": "limit", |
| 200 | "limit": "file_size", |
| 201 | "signal": 25, |
| 202 | "file_size_bytes": 1048576 |
| 203 | }, |
| 204 | "stdout": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", |
| 205 | "stdout_bytes": 1048576, |
| 206 | "isolation": "bwrap+prlimit: no network, no host files, cleared environment, cpu/as/fsize/nproc limits, server wall clock" |
| 207 | }, |
| 208 | "leftover_processes": [], |
| 209 | "pass": true |
| 210 | }, |
| 211 | { |
| 212 | "gate": "write", |
| 213 | "case": "8 MiB to stdout (control)", |
| 214 | "server": "noiso", |
| 215 | "seconds": 0.1, |
| 216 | "want": "without the limit all 8 MiB are written", |
| 217 | "observed": { |
| 218 | "compile_ok": true, |
| 219 | "exit": { |
| 220 | "kind": "normal", |
| 221 | "code": 0 |
| 222 | }, |
| 223 | "stdout": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", |
| 224 | "stdout_bytes": 8388608, |
| 225 | "isolation": "OFF (--test-only-no-isolation): ran on the host with the server environment and no limits except the wall clock" |
| 226 | }, |
| 227 | "leftover_processes": [], |
| 228 | "pass": true |
| 229 | } |
| 230 | ], |
| 231 | "fails": [], |
| 232 | "server_exit": [ |
| 233 | 0, |
| 234 | 0 |
| 235 | ], |
| 236 | "server_stderr": { |
| 237 | "sandbox": "omega-mcp: ready; isolation bwrap+prlimit; compiler f4fa7951816bbd09c5eaaae6692852a70c3c305164b365027c5b683dec7d63e9\nreq initialize id=1 -> ok\nreq notifications/initialized no reply\nreq tools/call id=2 tool=run compile=0 ms=6 run=1/0 ms=5 -> ok\nreq tools/call id=3 tool=run compile=0 ms=7 run=6/0 ms=3004 -> ok\nreq tools/call id=4 tool=run compile=0 ms=7 run=1/2 ms=7 -> ok\nreq tools/call id=5 tool=run compile=0 ms=10 run=6/0 ms=2004 -> ok\nreq tools/call id=6 tool=run compile=0 ms=8 run=3/24 ms=10099 -> ok\nreq tools/call id=7 tool=run compile=0 ms=57 run=5/25 ms=135 -> ok\nreq tools/call id=8 tool=run compile=0 ms=34 run=5/25 ms=169 -> ok\nomega-mcp: end of input; exiting\n", |
| 238 | "noiso": "omega-mcp: WARNING: --test-only-no-isolation is set; programs run on the host without sandbox, limits or environment clearing. Test use only; never use this flag with an agent.\nreq initialize id=1 -> ok\nreq notifications/initialized no reply\nreq tools/call id=2 tool=run compile=0 ms=2 run=1/10 ms=2 -> ok\nreq tools/call id=3 tool=run compile=0 ms=2 run=1/20 ms=2 -> ok\nreq tools/call id=4 tool=run compile=0 ms=2 run=6/0 ms=30002 -> ok\nreq tools/call id=5 tool=run compile=0 ms=2 run=1/0 ms=74 -> ok\nomega-mcp: end of input; exiting\n" |
| 239 | }, |
| 240 | "verdict": "PASS" |
| 241 | } |