Artifact d8cb8bcd589866d173bf64b54b044a0c5e5063b1f861fdb524e94eb092693057:
- File
README.md
— part of check-in
[cbd57cce10]
at
2026-11-12 22:50:34
on branch trunk
— A store interrupted mid-update can be repaired, and symlinks are refused
An update now writes a journal before it changes anything and removes it only when the update, or the put-back after a failure, has finished. If the journal is still there, every store command refuses and names the fix. suit store repair restores each file to the version the store was leaving. Tested with a double failure and by killing suit in the middle of a slowed 100-file update: repair restored every byte.
libfossil's checkout writes symlinks as regular files, so suit refuses them outright: store open and update refuse a version that holds one, and commit refuses to check one in. Each names the path.
The fuzz corpus libFuzzer grew is minimized and checked in (300 inputs for the config parser, 83 for the stamp reader), so every push replays it under the sanitizers and Fil-C.
The budget test takes the best of three runs. It measured 0.43 to 0.59 ms quiet and 0.72 to 0.88 ms at a load average of 130 to 170.
243 unit checks, 220 shell cases, 146 store cases. 100% coverage in all ten source files. (user: dmestas, size: 2607) [annotate] [blame] [check-ins using]
# suit Suit makes the folders your AI harnesses read mirror one version-controlled repository, the wardrobe. It is one C23 program with nothing to install beside it. It runs on a timer and contains no code for any particular harness. This is a rewrite. The first version, a TypeScript tool, is archived in `~/projects/suit-v0-archive` and on GitHub under danmestas. ## Status Phase 1 is built: the build, the config parser, the no-change compare and the speed test. Nothing else yet. The plan and the decisions behind it are in `docs/`: - [docs/vocabulary.md](docs/vocabulary.md): the fourteen words, frozen. - [docs/decisions.md](docs/decisions.md): what is settled, and why. - [docs/evidence.md](docs/evidence.md): the measurements the plan rests on. - [docs/phases.md](docs/phases.md): the build order, each phase with its proof. ## Build C23, libc only. The platform-specific calls are all in `src/platform.c`. Output goes in `build/`. The gates and what each proves are in [docs/quality.md](docs/quality.md). ``` make # dev build: build/dev/suit, ASan, UBSan, fault injection make release # build/release/suit and suit-run: -O2 -flto, stripped, no test code make check # unit and shell tests and fuzz replay, under ASan and UBSan make cover # fails unless src/ is 100% covered make analyze # clang static analyzer, fails on any report make check-budget # the speed test on suit-run, quiet then loaded make fuzz # both fuzz targets, 30 seconds each make corpus # fold the grown fuzz corpus into test/corpus (not a gate) make filc # tests under Fil-C (Linux only; tools/filc-docker.sh on macOS) make ci # what the Linux runner runs: check with system cc, then filc make all # every gate in that order, stopping at the first failure make clean # remove build/ ``` `make check-budget` needs `~/.claude/bin/loadgen` for the loaded run. `make cover`, `analyze` and `fuzz` use clang from `/opt/homebrew/opt/llvm` when it is there, and clang from `PATH` otherwise. `suit-run` is the program a timer starts: the no-change compare alone, which replaces itself with `suit run` when something differs. SQLite, libfossil and zlib are vendored in `vendor/` and compiled into `suit`; nothing is linked but the C library. Commands so far: `suit check FILE`, `suit stamp PATH...`, `suit run`, `suit store open|status|update|repair NAME`, `suit commit NAME -m TEXT`, `suit back NAME`, `suit bench [-n N] [-e EMPTY] [-t MICROSECONDS] [-m KIB]`. The config format is in [docs/conf-format.md](docs/conf-format.md).