summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--README.md23
1 files changed, 16 insertions, 7 deletions
diff --git a/README.md b/README.md
index c44bdec..4530686 100644
--- a/README.md
+++ b/README.md
@@ -6,8 +6,9 @@ Built because the existing harnesses are TypeScript bundles that need a modern
6CPU, and the target here is a Debian 12 i386 machine with 2 cores and 4 GB. 6CPU, and the target here is a Debian 12 i386 machine with 2 cores and 4 GB.
7 7
8``` 8```
92.0 MB ELF 32-bit LSB pie, Intel i386 93.5 MiB ELF 32-bit LSB pie, Intel i386
10GLIBC_2.34 required (target has 2.36) 10GLIBC_2.34 required (target has 2.36)
11startup ~0.8 ms
11``` 12```
12 13
13## Build 14## Build
@@ -44,9 +45,11 @@ honoured); a 429 that survives them explains itself instead of dumping JSON.
44 45
45## Tools 46## Tools
46 47
47`read` (numbered lines), `write` (never creates directories), `edit` (exact 48`read` (numbered lines, streamed, regular files only), `write` (atomic, never
48match, must be unique), `bash` (fresh shell per call, 120 s timeout, capped 49creates directories), `edit` (exact match that must be unique; CRLF files
49output), `grep` (literal, recursive), `glob` (`*`, `?`, `**`). 50supported), `bash` (fresh shell per call, own process group, 120 s timeout,
5164 MiB output limit), `grep` (regular expression; `fixed: true` for literals),
52`glob` (`*`, `?`, `**`, follows file symlinks).
50 53
51Reads never prompt. The first `write`/`edit` of a session shows a diff and asks; 54Reads never prompt. The first `write`/`edit` of a session shows a diff and asks;
52answering `a` allows the rest of the session. Every `bash` call asks, because 55answering `a` allows the rest of the session. Every `bash` call asks, because
@@ -55,9 +58,10 @@ that is where `rm -rf` lives.
55## Tests 58## Tests
56 59
57```sh 60```sh
58cargo test # 29 tests, no network 61cargo test # 64 tests, no network
59python3 scripts/mock-provider.py & # canned SSE provider 62python3 scripts/mock-provider.py & # canned SSE provider
60docker run --rm --platform linux/386 debian:12 /b/agent686 # target-shaped gate 63docker run --rm --platform linux/386 \
64 -v "$PWD/target/i686-unknown-linux-gnu/release:/b:ro" debian:12 /b/agent686 --version
61``` 65```
62 66
63`tests/sse.rs` feeds the stream one byte at a time, so splits inside lines and 67`tests/sse.rs` feeds the stream one byte at a time, so splits inside lines and
@@ -68,7 +72,12 @@ executed, recorded, and that a denial is returned to the model as data.
68 72
69MAJOR for API-breaking changes, MINOR for features that do not break the 73MAJOR for API-breaking changes, MINOR for features that do not break the
70interface, PATCH for bug fixes. The interface is the CLI flags, the session file 74interface, PATCH for bug fixes. The interface is the CLI flags, the session file
71format, the config file, and the tool schemas. See [CHANGELOG.md](CHANGELOG.md). 75format, the config file, and the tool schemas.
76
77While the major version is 0, interface changes ride on MINOR and are called out
78explicitly, because there is no stability promise to break yet. The `grep`
79change in 0.4.0 (literal to regex) is the example. See
80[CHANGELOG.md](CHANGELOG.md) and [docs/KNOWN-ISSUES.md](docs/KNOWN-ISSUES.md).
72 81
73## Design notes 82## Design notes
74 83