Artifact 5a60656029bb989cba8541e668cb3dc9e177b3532d806ddd0a314c5b94468bb9:
- File
README.md
— part of check-in
[fe29cebc6a]
at
2026-11-13 20:38:51
on branch trunk
— Phase 7b-1: a wardrobe syncs with a remote, over file:// and http://
suit remote sets, shows or clears a wardrobe's remote address. An address that carries a user name or password is refused. suit login reads a secret from standard input into a credentials file of mode 0600, and suit refuses to use that file if anyone else can read it. The secret is never printed, never put in an error message or another file, and is wiped from memory after each use.
suit sync pulls, brings the working copy forward with the safe update, and pushes. When both sides have new check-ins it tries a merge as a dry run. A clean merge is checked in and pushed. A conflicting one changes no file, is pushed as a fork so nothing is lost, and is written to the attention file. No conflict marker is ever written to a live file. With local changes in the working copy the pull is kept and nothing else happens.
suit tend now continues into a sync after its check-in.
Three limits of libfossil, each handled here: its merge drops a file the other side deleted, so suit finds those itself and treats a delete against an edit as a conflict; a merge that changes no file cannot be checked in, so the files are put back and the fork stays open; and a file:// remote is reached through the stock fossil program, which must be on the path. http:// uses libfossil's own socket code and starts no other program.
An https:// address is accepted and stored, and syncing it says this build cannot use https yet. There is no clone command yet.
Also: LICENSE (BSD 2-Clause, the same as libfossil), a license section and current status in the README, and a state table in docs/phases.md.
1204 unit checks, 227 shell cases, 555 store cases, 612 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask. 100% coverage in all 22 source files. Seven fuzz targets. No suite has fewer cases than at the last check-in. (user: dmestas, size: 5273) [annotate] [blame] [check-ins using]
# suit Suit makes the folders your AI harnesses read mirror one version-controlled repository, the wardrobe. It is written in C23, 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 Built and proven on macOS and on Linux, under gcc with ASan and UBSan and under Fil-C: the build, the config parser, the no-change compare and the speed test; the store; the User scope (`plan`, `apply`, `status`, `off`, `run`) for Claude Code, Codex and pi; the machine limit; the Project personal scope, your own assets linked inside each project that has the key and hidden from git by that project's own exclude file; `suit why`; the lint in front of every check-in; and the hourly check-in of edits. Syncing a wardrobe with a remote works over `file://` and `http://`; `https://` is next. Not built yet: `suit install` and the timer, importing content, upstreams, the Enterprise and Project shared scopes. [docs/phases.md](docs/phases.md) has the state of each phase. 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. - [docs/harnesses.md](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](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 # every fuzz target, 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 every asset a `[wear personal KEY]` section wears into each project with that key, and records it in the ledger; `suit status` shows the store version, links per scope (for a project, per project), clashes, missing links, what was skipped, which machine-limited sections, user or personal, did not apply and which personal sections match no project; `suit why NAME` lists every place that supplies one asset for the current folder and which one is in effect; `suit off` removes every link suit still owns, and the block it keeps in a project's exclude file, 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](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 lint NAME`, `suit commit NAME -m TEXT [--confirm-deletions]`, `suit tend NAME` (the hourly check-in; see [docs/store.md](docs/store.md)), `suit back NAME`, `suit remote NAME [URL|--none]`, `suit login NAME USER`, `suit logout NAME`, `suit sync NAME` (see [docs/store.md](docs/store.md)), `suit bench [-n N] [-e EMPTY] [-t MICROSECONDS] [-m KIB]`. The config format is in [docs/conf-format.md](docs/conf-format.md). ## License BSD 2-Clause; see [LICENSE](LICENSE). The vendored code keeps its own terms: libfossil is BSD 2-Clause, SQLite is public domain and zlib is under the zlib license. Their license files and origins are in [vendor/README.md](vendor/README.md).