diff options
Diffstat (limited to '')
| -rw-r--r-- | README.md | 23 |
1 files changed, 16 insertions, 7 deletions
| @@ -6,8 +6,9 @@ Built because the existing harnesses are TypeScript bundles that need a modern | |||
| 6 | CPU, and the target here is a Debian 12 i386 machine with 2 cores and 4 GB. | 6 | CPU, and the target here is a Debian 12 i386 machine with 2 cores and 4 GB. |
| 7 | 7 | ||
| 8 | ``` | 8 | ``` |
| 9 | 2.0 MB ELF 32-bit LSB pie, Intel i386 | 9 | 3.5 MiB ELF 32-bit LSB pie, Intel i386 |
| 10 | GLIBC_2.34 required (target has 2.36) | 10 | GLIBC_2.34 required (target has 2.36) |
| 11 | startup ~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 |
| 48 | match, must be unique), `bash` (fresh shell per call, 120 s timeout, capped | 49 | creates directories), `edit` (exact match that must be unique; CRLF files |
| 49 | output), `grep` (literal, recursive), `glob` (`*`, `?`, `**`). | 50 | supported), `bash` (fresh shell per call, own process group, 120 s timeout, |
| 51 | 64 MiB output limit), `grep` (regular expression; `fixed: true` for literals), | ||
| 52 | `glob` (`*`, `?`, `**`, follows file symlinks). | ||
| 50 | 53 | ||
| 51 | Reads never prompt. The first `write`/`edit` of a session shows a diff and asks; | 54 | Reads never prompt. The first `write`/`edit` of a session shows a diff and asks; |
| 52 | answering `a` allows the rest of the session. Every `bash` call asks, because | 55 | answering `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 |
| 58 | cargo test # 29 tests, no network | 61 | cargo test # 64 tests, no network |
| 59 | python3 scripts/mock-provider.py & # canned SSE provider | 62 | python3 scripts/mock-provider.py & # canned SSE provider |
| 60 | docker run --rm --platform linux/386 debian:12 /b/agent686 # target-shaped gate | 63 | docker 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 | ||
| 69 | MAJOR for API-breaking changes, MINOR for features that do not break the | 73 | MAJOR for API-breaking changes, MINOR for features that do not break the |
| 70 | interface, PATCH for bug fixes. The interface is the CLI flags, the session file | 74 | interface, PATCH for bug fixes. The interface is the CLI flags, the session file |
| 71 | format, the config file, and the tool schemas. See [CHANGELOG.md](CHANGELOG.md). | 75 | format, the config file, and the tool schemas. |
| 76 | |||
| 77 | While the major version is 0, interface changes ride on MINOR and are called out | ||
| 78 | explicitly, because there is no stability promise to break yet. The `grep` | ||
| 79 | change 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 | ||
