Artifact 0a40db6bb052ebf1e3a00e0495a2abfd0c127a8c57054248a839b2ada96b6bb7:
- File
README.md
— part of check-in
[d74c54957c]
at
2026-11-13 05:53:44
on branch trunk
— Phase 4b-1: suit finds your projects and gives each its key
suit roots names the folders to look in. suit projects scan walks them and lists each project with its key: the remote address reduced to host and path. suit project set gives a key by hand.
git: the key is read from the project's own config file, and a linked worktree gets its project's key. Fossil: read from the checkout's database through SQLite. zit: no key from a scan; one is set by hand. The scan runs no other program, follows no symlink, and does not look inside a project for more projects.
A user name or password in a remote address never reaches suit's files or output; a test checks it.
Nothing is placed in a project yet. That is the next piece.
993 unit checks, 227 shell cases, 146 store cases, 612 placement cases and 118 project cases, under clang and under gcc 16. 100% coverage in all 18 source files. A fourth fuzz target covers the new file formats, with 297 inputs checked in. (user: dmestas, size: 3893) [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
Phases 1 to 3 are built: the build, the config parser, the no-change compare
and the speed test; the store; and the User scope (plan, apply, status,
off, run) for Claude Code, Codex and pi. Nothing else yet. The plan and the decisions behind it are in docs/:
- docs/vocabulary.md: the fourteen words, frozen.
- docs/decisions.md: what is settled, and why.
- docs/evidence.md: the measurements the plan rests on.
- docs/phases.md: the build order, each phase with its proof.
- docs/harnesses.md: the three harness stanzas, how to add one, the live test.
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.
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 # the three 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 live # real harnesses through the local proxy; not part of all or ci
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. suit run applies the
change and exits 0. SQLite, libfossil and zlib are vendored in vendor/ and
compiled into suit; nothing is linked but the C library.
Commands: suit plan prints what apply would do and changes nothing;
suit apply links every asset the User scope wears into each harness's
folders and records it in the ledger; suit status shows the store version,
links per harness and kind, clashes, missing links, what was skipped and which
machine-limited sections did not apply;
suit off removes every link suit still owns and empties the ledger;
suit run applies when the stamp says something changed; suit machine [NAME]
shows or sets this machine's name, which [wear user machine=NAME] sections
match. suit roots, suit projects scan and suit project set find your
projects and give each its key; see docs/projects.md. Suit never replaces
or removes what it did not make: a real file, a real folder or someone else's
link at a destination is a clash, reported and left alone.
Also: suit check FILE, suit compare (the no-change compare, exit 10 and the
changed paths when something differs), suit stamp PATH...,
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.