barebox 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +113 -96
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
6
 
7
+ ## [0.10.0] - 2026-11-10
8
+
9
+ Docs only; no code or behaviour changes.
10
+
11
+ ### Changed
12
+
13
+ - README rewritten: what barebox is and its scope (up to 40 agents per proxy), how it works (one proxy for HTTP and HTTPS, one gate, one `gate.jsonl` audit file you can stream), how letters `r`/`w`/`x` are assigned and what each of the three modes lets through, what it blocks by default, real output samples (the terminal question, a run summary, an audit line), one table of measured numbers, known limits, and how to replay Demo A and Demo B from a clone. The roadmap section is removed.
14
+ - The PRD is split into a current spec and four reference pages (built modules M0-M7, evidence and memory budget, the hackathon plan, scope and questions); the previous version is archived unchanged. The spec now carries the post-hackathon build order (M8-M16) and the known gaps it closes.
15
+
7
16
  ## [0.9.0] - 2026-11-03
8
17
 
9
18
  ### Added
package/README.md CHANGED
@@ -8,8 +8,8 @@
8
8
  barebox
9
9
  ```
10
10
 
11
- > An agent runs on your machine with your real tools, every write is undoable, and nothing leaves the machine without passing a doorman. You're asked only when something irreversible is about to happen.
12
- > No root, no daemon, no image. One shared proxy, many thin sandboxes: ~8 MB each, about 0.7 s from `sbx run` to exit with the proxy included.
11
+ > A lightweight sandbox you spawn per agent, to control what it may do. Reads pass, file writes can be undone, and anything irreversible (pay, send, publish, push) waits for your yes.
12
+ > Many sandboxes, one proxy, one gate, one audit file. Up to 40 agents per proxy: for a laptop or a small VPS, not for big swarms.
13
13
 
14
14
  <p align="center">
15
15
  <img src="https://img.shields.io/github/package-json/v/hamr0/barebox?label=version&color=2a4f8c" alt="version (auto from package.json)">
@@ -17,118 +17,149 @@
17
17
  <img src="https://img.shields.io/badge/platform-Linux-2a4f8c" alt="platform: Linux">
18
18
  </p>
19
19
 
20
- ## Why
20
+ ![Demo A: a real agent books a trip inside barebox. Reads and model calls go out free, a payment waits for a yes and only then gets the real key, a no never leaves the machine](assets/demo-a.gif)
21
21
 
22
- Agents need real access to be useful — shell, files, network. Today you pick one of two bad options:
22
+ Demo A, a live unedited run: Meta's muse model books a trip. 31 requests, 23 went out with no question, 8 stopped for a person (3 allowed, 5 denied); the real payment key reached the server once, after a yes. Full captioned take: [assets/demo-a.webm](assets/demo-a.webm).
23
23
 
24
- - **Approve everything.** A prompt for nearly every command and edit. People stop reading them, or switch prompts off.
25
- - **Heavy isolation.** Docker or a VM: images, a daemon, root, and the agent can't use your installed toolchain. Most people skip it.
24
+ **Replay it** (Linux, from a clone; needs network, httpbin.org stands in for the real services):
26
25
 
27
- Neither matches where the risk is. Reads are mostly harmless. File writes can be fixed. Only a few actions can't be undone: paying, sending, publishing, pushing. barebox asks about those and nothing else.
26
+ ```
27
+ git clone https://github.com/hamr0/barebox && cd barebox && npm install
28
+ bash examples/demo-a/run.sh # Demo A scripted: book a trip, all three modes, every cell asserted
29
+ bash examples/demo-a/run.sh --driver muse --live --mode auto # the live run above; needs BASETEN_API_KEY, you answer the holds
30
+ bash examples/demo-b/run.sh # Demo B: a prompt-injected agent tries 3 exfiltrations in every mode
31
+ ```
28
32
 
29
- ## What it is
33
+ ## How it works
30
34
 
31
- Three letters, each handled differently — the same `r`/`w`/`x` as [bareguard](https://github.com/hamr0/bareguard) and [rwxmap](https://github.com/hamr0/rwxmap).
35
+ ```
36
+ agent (your real node, python, git, claude ...)
37
+ |
38
+ +-----+-------- bwrap sandbox (unprivileged, one per agent) --------+
39
+ | files: your project, read-only + an undo layer (--overlay) |
40
+ | locked: ~/.ssh, cloud creds, token files -> empty |
41
+ | network: none of its own; 127.0.0.1:3128 -> its unix socket |
42
+ +-----+-------------------------------------------------------------+
43
+ | one unix socket per agent (the socket is the identity, not a header)
44
+ v
45
+ ONE proxy, HTTP and HTTPS -> ONE gate (bareguard) -> world
46
+ | |
47
+ | '-> gate.jsonl, one audit line per decision
48
+ '-> held request: asks you in the terminal, forwards or 403
49
+ ```
32
50
 
33
- | Letter | Meaning | What barebox does | You're asked? |
34
- |---|---|---|---|
35
- | `r` | reads, changes nothing | lets it through (except locked paths) | never |
36
- | `w` | changes things, can be set back | records it on an undo layer | once, at the end (review the diff) |
37
- | `x` | can't be undone: send, pay, publish, push | holds it at the door until you decide | at the moment it happens |
51
+ - **Walls:** [bubblewrap](https://github.com/containers/bubblewrap), no root, no daemon, no image. The agent uses your installed tools.
52
+ - **One proxy for all sandboxes**, plain HTTP and HTTPS. HTTPS is read through a local CA that exists only inside the sandbox, so the gate sees method, URL, headers and body.
53
+ - **One gate decides every request** by its letter and the mode (below). It is a simple policy for spawning sandboxed agents on the fly: one flag, no rule files.
54
+ - **One audit file**, `<runtime>/gate.jsonl`, one JSON line per decision in [bareguard](https://github.com/hamr0/bareguard)'s shape. It is append-only, so `tail -f` it, pipe it to `jq`, or ship it to your log stack.
38
55
 
39
- The agent works in your house:
56
+ ## r, w, x and the three modes
40
57
 
41
- - **Tracing paper (w).** The agent sees your real files, but every change lands on an overlay laid over them. At the end you commit it or roll it back (`sbx run --overlay -- <cmd>`, then `sbx diff`, `sbx commit`, `sbx rollback`).
42
- - **Locked drawers (r).** It reads most things. Keys and password stores (`~/.ssh`, `~/secrets`, `~/.gnupg`, `~/.password-store`, keyrings), browser profiles, cloud and cluster credentials (`~/.aws`, `~/.azure`, `~/.config/gcloud`, `~/.kube`, `~/.docker`, `~/.config/gh`, `~/.config/op`) and token files (`~/.netrc`, `~/.npmrc`, `~/.pypirc`, `~/.git-credentials`, `~/.cargo/credentials.toml`) stay shut. The agent's own model credentials (`~/.claude`) do not (a known gap: those tokens refresh themselves).
43
- - **One front door with a doorman (x).** No network of its own. Lookups pass; anything that sends, pays, or publishes waits for your yes.
44
- - **Keys it never holds.** The agent types a placeholder; the doorman puts the real API key in the request header only after the request is allowed, and only for the hosts that key is bound to. Your environment does not reach the sandbox.
58
+ Every request gets one letter:
45
59
 
46
- ## What it isn't
60
+ | Letter | What | How barebox gets the letter |
61
+ |---|---|---|
62
+ | `r` | reads, changes nothing | `GET`, `HEAD`, and calls to model APIs (Anthropic, OpenAI, a `localLlm`) |
63
+ | `w` | a change that can be set back | only where an [rwxmap](https://github.com/hamr0/rwxmap) label for that API says so |
64
+ | `x` | can't be undone: send, pay, publish, push, delete | every other `POST`, `PUT`, `PATCH`, `DELETE`; any other method is denied |
47
65
 
48
- - **Not a security boundary against a determined attacker.** The kernel is shared; a kernel exploit escapes. Use a VM for that. barebox is a strong guardrail against mistakes and prompt-injected agents.
49
- - No Docker, no VM, no cluster, no cloud control plane. Your box or a cheap VPS.
50
- - Not a content filter and not intent detection — the doorman sees requests, not intent. Cert-pinned apps, non-HTTP egress and UDP are denied, not inspected.
66
+ File writes are a separate layer: with `--overlay` every change lands on an undo layer, and at the end you `sbx diff`, `sbx commit` or `sbx rollback`.
51
67
 
52
- ## How it works
68
+ The mode (`sbx run --mode ...`) picks which letters pass without asking:
69
+
70
+ | Mode | Passes | Asks |
71
+ |---|---|---|
72
+ | `ask` | `r` | `w`, `x` |
73
+ | `auto` (default) | `r`, `w` | `x` |
74
+ | `trust` | `r`, `w`, `x` | nothing |
75
+
76
+ **The floor asks in every mode, `trust` included:** a card number (Luhn) in a body of 64 KB or less, or a payment path (`/checkout`, `/payment`, `/orders`, `/purchase`).
77
+
78
+ ## What it blocks by default
79
+
80
+ | Blocked | How |
81
+ |---|---|
82
+ | Keys and credentials: `~/.ssh`, `~/.gnupg`, `~/.password-store`, `~/secrets`, keyrings, browser profiles, `~/.aws`, `~/.azure`, `~/.config/gcloud`, `~/.kube`, `~/.docker`, `~/.config/gh`, `~/.config/op`, `~/.netrc`, `~/.npmrc`, `~/.pypirc`, `~/.git-credentials`, `~/.cargo/credentials.toml` | masked inside the sandbox: they read as empty |
83
+ | Your environment | cleared; only a short safe list (`TERM`, `LANG`, `LC_*`, `TZ`, `USER`, `SHELL`, ...) and names you list in `env.pass` get in (names like `*_TOKEN`, `*_KEY` are refused) |
84
+ | Any network but the proxy | the sandbox has no network of its own. `--noproxy`, unset proxy env, a direct IP or a raw socket fail closed; UDP and non-HTTP traffic are denied |
85
+ | Private and local addresses | the proxy checks every resolved IP (IPv6 spellings of IPv4 included) and refuses private ranges and names that don't resolve |
86
+ | Real API keys | the agent holds a per-run placeholder; the proxy swaps in the real key after the gate allows the request, over HTTPS, and only for the key's bound hosts (see below) |
87
+ | Answering its own questions | the ask and answer files live outside the sandbox and are masked from it |
88
+
89
+ ## What you see
90
+
91
+ A held request asks in the terminal where you ran `sbx run` (`y` allows, anything else denies):
53
92
 
54
93
  ```
55
- agent process (real node, python, git)
56
- |
57
- +-----+--------------- bwrap sandbox (unprivileged) ---------------+
58
- | files: overlay lower = real project (read only) |
59
- | upper = per-run tracing paper |
60
- | locked paths (~/.ssh etc.) -> empty tmpfs or /dev/null |
61
- | network: none of its own |
62
- | socat inside: 127.0.0.1:3128 -> per-agent unix socket |
63
- +-----+------------------------------------------------------------+
64
- | per-agent unix socket (the connection = the agent's identity)
65
- v
66
- ONE shared proxy (Node, in-process: rwxmap + bareguard)
67
- |-- r -> forward
68
- |-- x -> hold, ask the human, forward or 403
69
- '-- unknown -> per-mode default
94
+ ⏸ auto-agent-1 wants to SEND data to httpbin.org
95
+ Why: the address looks like a payment
96
+ URL: POST https://httpbin.org/anything/v1/payment_intents
97
+ Data: {"amount":35000,"currency":"usd"}
98
+ Allow? [y/N] (hold h1)
99
+ y
100
+ ✓ allowed
70
101
  ```
71
102
 
72
- - **Walls** are [bubblewrap](https://github.com/containers/bubblewrap), unprivileged: separate net/pid/ipc/uts namespaces, read-only binds, tmpfs over locked paths.
73
- - **Identity** is the socket, not a header the agent could fake. One socket per agent, all into one proxy.
74
- - **HTTPS inspection** uses a local CA that exists only inside the sandbox; the proxy reads method, URL, headers and body, then forwards.
75
- - **The doorman's x-rules**, strongest first: card numbers in the body (Luhn) → payment paths (`/checkout`, `/payment`, `/orders`, `/purchase`; a list of payment domains is not built) → rwxmap labels for known APIs → every other request by its letter and the mode (`ask`, `auto`, `trust`; see `barebox.context.md`). The card and payment floor asks in every mode, `trust` included (calls to the built-in model endpoints, Anthropic and OpenAI, and to a `localLlm` server are not card-scanned; a model API you label `r` yourself still is); card numbers are checked in bodies of 64 KB or less.
76
- - **Approvals** are asked in the terminal where you ran `sbx run`, in plain words (`agent wants to SEND data to httpbin.org … Allow? [y/N]`); `y` allows, anything else denies. Name the sandbox (`sbx run --name docs-bot -- <cmd>`) and a second terminal can answer too (`sbx pending --name docs-bot`, `sbx approve <id> --name docs-bot`, `sbx deny <id> --name docs-bot`); the first answer wins. A hold waits until you answer by default; `sbx run --hold 120 -- <cmd>` (or the `holdTimeoutSec` config key) sets a deadline, and a timeout means deny, with a clear `403` reason. One held request per agent at a time: later ones wait in line (16 at most, then `429 hold queue full`), and any deadline counts from arrival. Unattended runs (cron, CI, no terminal) have nobody to answer, so pass `--hold <seconds>` or the first held request waits forever.
103
+ Name the sandbox (`--name docs-bot`) and a second terminal can answer too: `sbx pending --name docs-bot`, `sbx approve h1 --name docs-bot`. A hold waits until you answer; for unattended runs (cron, CI) pass `--hold <seconds>`, and a timeout is a deny. One held request per agent at a time; up to 16 more wait in line.
77
104
 
78
- ## Keys the agent never holds
105
+ Demo A's end-of-run summary (from the recorded take):
79
106
 
80
- Put the key in `~/.config/barebox/config.json`, bound to its hosts:
107
+ ```
108
+ -- what barebox decided:
109
+ total 31 requests to the network: 23 free, 8 held for you (3 allowed, 5 denied) (model calls included)
110
+ search 3 free
111
+ pay 1 held: 1 allowed
112
+ POST /anything/hotels/checkout 1 held: 0 allowed, 1 denied
113
+ DELETE /anything/bookings/old-123 1 held: 0 allowed, 1 denied
114
+ model calls 18 free (labelled read-only)
115
+ key swaps 1 (the real test key went into the header only after your yes; the agent only ever had the placeholder)
116
+ ```
117
+
118
+ An audit line from `gate.jsonl` (a POST held, then denied on timeout):
119
+
120
+ ```json
121
+ {"ts":"2026-11-03T21:41:04.869Z","seq":8,"aid":"1a541f36","phase":"gate","action":{"type":"net","tool":"http.POST","url":"https://httpbin.org/post","method":"POST","agent":"rdme","rid":"r2"},"decision":"deny","rule":"rwx.ask","reason":"hold timeout"}
122
+ ```
123
+
124
+ ## Keys the agent never holds
81
125
 
82
126
  ```json
83
127
  {
84
128
  "secrets": {
85
129
  "STRIPE_API_KEY": { "fromEnv": "REAL_STRIPE_KEY", "hosts": ["api.stripe.com"] }
86
- },
87
- "env": { "pass": ["MY_TOOL_HOME"] }
130
+ }
88
131
  }
89
132
  ```
90
133
 
91
- Inside the sandbox `$STRIPE_API_KEY` is a random placeholder, new each run. The agent sends it as it would the key (`curl -H "Authorization: Bearer $STRIPE_API_KEY"`, `curl -u "$STRIPE_API_KEY:"`). The proxy swaps the real value into the request headers only after the request is allowed, and only for `api.stripe.com`. A denied request never leaves. The same placeholder sent to any other host is refused: `403 denied: secret.host`. A real value is swapped only into a request that goes upstream over TLS: a placeholder to a bound host over plain `http://` is refused `403 denied: secret.scheme`. The rest of your environment stays out too, except a short default list (`TERM`, `LANG`, `LC_*`, `TZ`, ...) and the names in `env.pass`; `env.pass` refuses names like `*_TOKEN` and `*_KEY` (use `secrets`; a harmless match such as `XKB_KEYMAP` goes in `env.set`). Keys are swapped in headers only: a placeholder in the URL is refused `403 denied: secret.url`. Details: `barebox.context.md`.
134
+ In `~/.config/barebox/config.json`. Inside, `$STRIPE_API_KEY` is a random placeholder, new each run, and the agent uses it like the key (`curl -H "Authorization: Bearer $STRIPE_API_KEY" ...`). The real value goes into the request header only after the gate allows it, only to `api.stripe.com`, only over HTTPS. Anywhere else the placeholder is refused (`403 denied: secret.host`, `secret.scheme`, `secret.url`).
92
135
 
93
136
  ## Numbers
94
137
 
95
- Measured, not estimated. Fedora, kernel 7.2, bubblewrap 0.12.0, Node 22.
138
+ Measured, not estimated: Fedora, kernel 7.2, bubblewrap 0.12.0, Node 22. Method and raw runs: [findings](docs/logs/findings.md).
96
139
 
97
- | | barebox (measured) | [srt](https://github.com/anthropic-experimental/sandbox-runtime) 0.0.81 (measured) |
140
+ | | barebox | [srt](https://github.com/anthropic-experimental/sandbox-runtime) 0.0.81 |
98
141
  |---|---|---|
99
- | Memory per sandbox | **7.8 MB** mean, 8.0 MB max | ~100 MB (each sandbox runs its own proxy) |
100
- | Proxy | one shared: **about 95-160 MB** in normal use over HTTPS (10 to 40 agents, keep-alive tunnels open, no holds; plain HTTP alone is about 85-120 MB); **about 117 / 133-151 / 177-207 / 207-241 MB** at 10 / 20 / 30 / 40 agents in the full HTTPS worst case (each agent with 1 parked + 16 waiting + a filled body slot, every request in its own TLS tunnel). The low end is a quiet machine, the high end a busy one. HTTPS costs more because each live TLS session holds about 50 KB of OpenSSL state | one per sandbox |
101
- | Start + exit | **0.70 s** median for `sbx run -- true`, proxy start to teardown (0.80 s with `--overlay`; 11 runs, quiet machine). The sandbox alone (bwrap) is 6 ms; Node's own start is 0.16 s of it | 1.87-2.05 s |
102
- | One real agent | Claude Code peaks at **248 MB** inside vs 249 MB bare: barebox does not change the agent. barebox itself adds **about 91 MB** for the first agent (the `sbx` process with its proxy 83 MB, plus 8 MB of walls), then about 11 MB per further agent | not measured |
103
- | 10 agents | ~195-200 MB worst case (proxy + 10 x 8 MB) | ~1 GB |
104
- | 20 agents | ~295-310 MB worst case | ~2 GB |
105
- | 40 agents | ~525-560 MB worst case | not measured |
106
-
107
- **What the demos show** (scripts in `examples/`, run by hand, every cell asserted):
108
-
109
- ![Demo A: a real agent books a trip inside barebox. Reads and model calls go out free, a payment waits for a yes and only then gets the real key, a no never leaves the machine](assets/demo-a.gif)
110
-
111
- The full 92-second take, captioned: [assets/demo-a.webm](assets/demo-a.webm).
142
+ | Memory per sandbox | **7.8 MB** mean, 8.0 MB max | ~100 MB (a proxy per sandbox) |
143
+ | Shared proxy, normal use (HTTPS, 10-40 agents) | **95-160 MB** | one per sandbox |
144
+ | Shared proxy, worst case (HTTPS, every agent with a held request, a full line and a full body slot) | **117 / 133-151 / 177-207 / 207-241 MB** at 10 / 20 / 30 / 40 agents | |
145
+ | Total, worst case (proxy + walls) | ~195-200 MB at 10, ~295-310 MB at 20, ~525-560 MB at 40 agents | ~1 GB at 10, ~2 GB at 20 |
146
+ | Start to exit, `sbx run -- true` | **0.70 s** median (0.80 s with `--overlay`; bwrap alone 6 ms) | 1.87-2.05 s |
147
+ | One real agent (Claude Code) | 248 MB inside vs 249 MB bare; barebox adds ~91 MB for the first agent, ~11 MB per further one | not measured |
148
+ | Agents per proxy | **40 max**, enforced (the 41st is refused; run another proxy) | |
149
+ | Demo B, 3 exfiltration attempts | **3 of 3 blocked** in every mode | |
112
150
 
113
- - **Demo A, a real agent books a trip.** Meta's muse model (via Baseten) planned and booked a trip inside barebox in a recorded, unedited live run: 31 requests, **23 went out with no question** (3 searches, weather, exchange rate, and 18 model calls, one of them to a second model) and **8 stopped for a person** (payments, a hotel order, a car, a calendar entry, a chat message, a `DELETE`, an email). The real Stripe-style key reached the server once, after a yes; the agent only ever held a placeholder. Log, timing and captions: `docs/logs/m7-muse-runs/`.
114
- - **Demo B, a prompt-injected agent.** In every mode (`ask`, `auto`, `trust`) all three exfiltration attempts fail: `~/.ssh` reads empty, the POST to the attacker's host is refused, a direct socket has no route. The good edits are committed and the injected agent's edits rolled back.
151
+ Ranges run from a quiet machine to a busy one.
115
152
 
116
- barebox is for small teams: free, local and lightweight, built to assist and to connect to many tools, not to run swarms or thousands of agents. Budget: shared proxy about 205-245 MB in the full HTTPS worst case at 40 agents, each extra sandbox 10 MB or less. 40 agents per proxy is the maximum and it is enforced: `addAgent` refuses the 41st with an error telling you to run another proxy. Above 40, run more proxies. Machine load moves the number. A long audit file does not: 205 MB of audit measured the same as 3 MB. Bypass attempts (`--noproxy`, unset proxy env, direct IP, host localhost) all fail closed, and a red-team script breaks each wall on purpose to prove the checks can fail. Setup, dead ends and why: [findings](docs/logs/findings.md).
153
+ ## Known limits
117
154
 
118
- ## Roadmap
155
+ barebox is a guardrail against mistakes and prompt-injected agents, not a security boundary against a determined attacker: the kernel is shared, so use a VM for that. Known gaps, each with a planned fix in [the PRD](docs/product/agent-sandbox-prd.md) (section 10):
119
156
 
120
- | Module | What |
121
- |---|---|
122
- | M0 | Walls + front door |
123
- | M1 | Proxy sees inside HTTPS (curl, node, python requests, git) |
124
- | M2 | Hold one `x` request, ask, keep everything else running |
125
- | M3 | Decide r/w/x deterministically (rwxmap + bareguard), audit log |
126
- | M4 | Undo layer: `diff`, `commit`, `rollback`, conflict flagging |
127
- | M5 | Keys the agent never holds |
128
- | M6 | Scale run: 20 agents + shared proxy |
129
- | M7 | Demos: payment held for approval; prompt-injected `~/.ssh` exfil blocked |
130
-
131
- M0–M2 are the go/no-go. Later: macOS (`sandbox-exec` + APFS clones), Windows via WSL2, Landlock/seccomp hardening. Full spec: [the PRD](docs/product/agent-sandbox-prd.md).
157
+ - Data in a `GET` URL goes out free: reads are `r`.
158
+ - The proxy resolves DNS before the gate decides, so data hidden in a hostname can leak.
159
+ - Model API calls pass with any key, an attacker's included.
160
+ - Bodies over 64 KB and compressed bodies are not scanned for card numbers.
161
+ - `~/.claude` stays readable: Claude Code's tokens refresh themselves.
162
+ - Writes over local sockets (a Postgres, a Docker daemon) are not on the undo layer.
132
163
 
133
164
  ## Install
134
165
 
@@ -136,19 +167,7 @@ M0–M2 are the go/no-go. Later: macOS (`sandbox-exec` + APFS clones), Windows v
136
167
  npm install barebox
137
168
  ```
138
169
 
139
- Requires Node.js >= 22.21. Two production dependencies, [bareguard](https://npmjs.com/package/bareguard) (the gate) and [rwxmap](https://npmjs.com/package/rwxmap) (the labels), pinned exactly. Needs bubblewrap >= 0.11.0 for `--overlay` / `sbx diff|commit|rollback` (Ubuntu 24.04 ships 0.9.0: build from source or use a newer distro); plain runs work with older bwrap. CI builds bubblewrap 0.12.0 from a checksum-pinned source tarball (`scripts/ci-runner-deps.sh`) and fails if any test is skipped. The host's Node runs inside the sandbox: one under `$HOME` (a default nvm) or `/usr` is already visible, and one outside both (a CI toolcache, a Node with `HOME` set elsewhere) is bound read-only, with its `bin` dir first on the inside `PATH`. A runtime or project under that bound install stays hidden or writable as it would elsewhere. The API is in [`barebox.context.md`](barebox.context.md) and `primitives.json` (both ship in the package); the `sbx` CLI comes with it.
140
-
141
- ## Try the POCs
142
-
143
- Linux only, with `bwrap` (>= 0.11.0 only for the overlay), `socat`, `openssl`, Node >= 22.21 and Python 3. Needs a normal shell (namespaces + listening sockets), not a tool sandbox. The POCs are throwaway proofs, not the product.
144
-
145
- ```
146
- git clone https://github.com/hamr0/barebox && cd barebox
147
- npm run poc:m0 # 20 sandboxes, bypass suite
148
- npm run redteam:m0 # breaks each wall on purpose; passes iff all detected
149
- bash poc/m1/run-m1.sh local # HTTPS inspection against a local TLS echo server
150
- bash poc/m1/run-m1.sh real # same, real internet, incl. git over https
151
- ```
170
+ Linux. Node.js >= 22.21, `bwrap`, `socat`, `openssl`; bubblewrap >= 0.11.0 for `--overlay` (Ubuntu 24.04 ships 0.9.0). Two dependencies, [bareguard](https://npmjs.com/package/bareguard) and [rwxmap](https://npmjs.com/package/rwxmap), pinned exactly. The `sbx` CLI comes with it; the API is in [`barebox.context.md`](barebox.context.md).
152
171
 
153
172
  ## The bare ecosystem
154
173
 
@@ -159,7 +178,7 @@ mix and match, each module works standalone.
159
178
 
160
179
  - **[bareagent](https://npmjs.com/package/bare-agent)** — the think→act→observe loop. *Goal in → coordinated actions out.* Replaces LangChain, CrewAI, AutoGen.
161
180
  - **[bareguard](https://npmjs.com/package/bareguard)** — the single gate every action passes through. *Action in → allow / deny / ask-a-human out. Work in → green / red.* Replaces hand-rolled allowlists and scattered policy code.
162
- - **[barebox](https://github.com/hamr0/barebox)** [WIP] — the walls and the front door, this repo. *Agent in → contained run out: writes undoable, irreversible actions held for a human.* Replaces Docker/VM isolation and approve-everything prompts.
181
+ - **[barebox](https://github.com/hamr0/barebox)** — the walls and the front door, this repo. *Agent in → contained run out: writes undoable, irreversible actions held for a human.* Replaces Docker/VM isolation and approve-everything prompts.
163
182
  - **[litectx](https://npmjs.com/package/litectx)** — tree-sitter code + memory graph with activation decay, plus lightweight context engineering (write · select · compress · isolate). *Query in → ranked context out.*
164
183
 
165
184
  **Add-on for bareguard** — labels API operations for the gate.
@@ -172,8 +191,6 @@ mix and match, each module works standalone.
172
191
  - **[baremobile](https://npmjs.com/package/baremobile)** — Android + iOS device control. *Screen in → pruned snapshot out.* Replaces Appium, Espresso, XCUITest.
173
192
  - **[beeperbox](https://github.com/hamr0/beeperbox)** — 50+ messaging networks via one MCP server (headless Beeper Desktop in Docker). *Chat in → unified message stream out.* Replaces Twilio, per-platform bot APIs.
174
193
 
175
- bareguard decides the action; barebox contains where it runs.
176
-
177
194
  ## License
178
195
 
179
196
  Apache 2.0. See [LICENSE](LICENSE).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barebox",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Lightweight local sandbox for AI agents: every write undoable, nothing leaves the machine without passing the doorman.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {