Skip to content
suit Artifact [65263870cb]
Login

Artifact [65263870cb]

Artifact 65263870cb8efae53493b94622384d1279b6acb06b8a177a38771c324e946503:


# Evidence

Measured on 2026-11-12 on an Apple silicon Mac, against the libfossil
build in `~/libfossil` (debug, check-in 3d8f959f).

## Extracting a version gives an exact tree

A wardrobe of 602 files, including one executable script and one symlink,
with one file deleted in the second check-in.

- Extracted in 392 ms.
- The executable bit and the symlink were kept.
- The deleted file was absent.
- The skills tree was identical to the source.

## A local edit survives an upstream update

Replayed with a skill file: an upstream branch, a local edit on trunk that
rewrites one line, then two upstream updates.

| Upstream change | Result |
|---|---|
| A different line | Merged. Both the local edit and the upstream change are in the file. |
| The same line | Reported as a conflict, with three-way markers. The local edit is not overwritten. |

## What one run costs

400 runs each, at load average 65.

| What ran | Median | 95th percentile |
|---|---|---|
| Starting any process (`/usr/bin/true`) | 6.4 ms | 19.5 ms |
| 33 KB C23 binary: read a stamp, compare, exit | 6.8 ms | 11.2 ms |
| 3 MB binary with libfossil linked in | 7.8 ms | 13.1 ms |
| Plain SQLite query on the repository | 12.0 ms | 19.8 ms |
| Load libfossil, open the repository, resolve trunk | 15.7 ms | 24.2 ms |

Starting a process is the cost. A large binary adds about 1 ms. Opening
the repository adds 5 to 9 ms, so the no-change run never opens it.

## From ctx, which is built the same way

- Capture a real payload from a harness before writing a parser for it.
- Time under load. Two regressions were invisible on a quiet machine.
- Log a start and an end line for every run, so a run killed at its
  deadline leaves a trace.
- Never write into a folder from something an agent is waiting on.

## Phase 1 bench

Measured on 2026-11-12 by `make check-budget`: 600 rounds of three programs
(order rotated each round), a stamp over 100 files, load average 22 to 30 on
a 14-core machine. The budget is judged on the median of per-round
differences, suit over empty.

| Run | Program | Median | p95 | Max | Peak resident (median) |
|---|---|---|---|---|---|
| Quiet | `/usr/bin/true` (info only) | 3.168 ms | 12.601 ms | 25.369 ms | 1232 KiB |
| Quiet | empty | 3.825 ms | 14.008 ms | 23.375 ms | 1408 KiB |
| Quiet | `suit run` | 4.926 ms | 16.049 ms | 25.539 ms | 1440 KiB |
| Loaded (`loadgen 30 8`) | `/usr/bin/true` (info only) | 4.195 ms | 9.456 ms | 23.113 ms | 1232 KiB |
| Loaded (`loadgen 30 8`) | empty | 5.372 ms | 10.481 ms | 24.658 ms | 1408 KiB |
| Loaded (`loadgen 30 8`) | `suit run` | 6.214 ms | 11.579 ms | 36.684 ms | 1440 KiB |

| Run | Suit over empty, per-round median | Suit over `/usr/bin/true` | Resident over empty |
|---|---|---|---|
| Quiet | 0.917 ms | 1.502 ms | +32 KiB |
| Loaded | 0.935 ms | 1.811 ms | +32 KiB |

Both pass the 1 ms and 1 MiB budgets. Earlier runs the same day measured
0.65 to 0.76 ms over empty, so run-to-run spread is about 0.3 ms.

Two causes, measured separately on the same machine:

- Binding about 50 libc symbols at launch costs about 0.28 ms (5 to 6 us
  each) against an empty program. `suit` binds 47.
- Statting 100 files costs about 0.3 ms more than statting one. Paths in the
  same folder are now statted through one open handle on that folder.

Also: a byte-for-byte copy of `/usr/bin/true` starts 0.4 to 1.0 ms slower
than the original, and an empty built program 0.6 to 1.5 ms slower, which is
why the baseline is an empty built program.