Skip to content
suit Timeline
Login

Timeline

19 ancestors of 7ecc8d52eaf57ac6

2026-11-14
06:52
Phase 7c-2: suit install sets up the two timers, and status has a one-line form

suit install writes two timers and loads them: one starts suit-run every minute, the other starts suit tend every hour. On macOS they are launchd user agents in ~/Library/LaunchAgents; on Linux, systemd user units. Each file is written with exactly mode 0644 whatever the umask. Running install again with nothing changed writes nothing and loads nothing. suit install --print shows the files and changes nothing. suit uninstall unloads the timers and removes exactly its own files. Neither touches a file that is not one of suit's own names.

Two timers stand in place of the planned single timer with a detached hourly child: the minute run stays inside its speed budget, and each job can be seen and stopped by itself.

The loader (launchctl or systemctl) is started by absolute path, never through a shell. Its path and the platform can be overridden only in the test builds; a test checks the release binary holds neither name.

suit status --line prints one short line for a status bar: suit ok, how many things need you, or not installed. Plain suit status says whether the timers are installed.

Known gaps. If the loader fails, the files stay in place and a second install says already installed without trying to load again; that needs a retry and a line in the attention file. The Linux units are checked as text and as loader arguments on macOS; systemd itself has not run them.

Found by the local gate before this check-in: an analyzer report, tests that needed a user name, and timer files written with the wrong mode under a strict umask.

1269 unit checks, 428 shell cases, 669 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 23 source files. No suite has fewer cases than at the last check-in. check-in: 7ecc8d52ea user: dmestas tags: trunk

00:48
Phase 7c-1: a wardrobe can be cloned onto a second machine, and one call tends them all

suit clone NAME URL makes a wardrobe on this machine from a remote. It clones into a temporary file, renames it into place, opens the store at the tip of trunk and records the remote last. A failure at any step removes what it made: no partial repository file, no store folder, no remotes line. A name already in use is refused with exit 20 and nothing is overwritten. A login saved beforehand is used, so a private wardrobe can be cloned.

suit tend with no name tends every wardrobe in name order. One wardrobe's failure does not stop the others; the exit code is the highest any of them returned, with one line for each that did not end clean.

After three failed syncs in a row the attention file names the wardrobe and the host. A sync that reaches the remote clears the count and the line.

A limit: libfossil's clone builds its own context, so fault injection cannot reach the system calls made inside the clone. The tests cover every step suit takes around it, and a bad remote covers a failure inside it.

One existing case changed: tend-usage expected suit tend with no name to be an error, which is now the behaviour above. It tests suit tend with two names instead.

1204 unit checks, 227 shell cases, 669 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. No suite has fewer cases than at the last check-in. check-in: 0c65a50c7f user: dmestas tags: trunk

2026-11-13
20:38
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. check-in: fe29cebc6a user: dmestas tags: trunk

12:54
Phase 7a: a lint guards every check-in, and edits made in place are checked in

suit lint and suit commit refuse a change that holds a token-shaped value, tool-attribution text, a symlink, or a skill folder with no header. A suit.lint file in the wardrobe can exempt a path or forbid an extra phrase. The lint never changes a file.

suit tend is the hourly entry point. For now it checks in edits made in the store, after the lint. A change that deletes more than five files and more than a fifth of the wardrobe is held until it is confirmed. Anything that needs a person is written to an attention file, which suit status shows under 'needs you'.

A symlink refusal now comes from the lint and exits 3, where it exited 16 before.

Also fixed, found by the forge's runner: a file suit rewrote came back with default permissions, keeping only its executable bit. On the runner a project's local exclude file went from rw-rw---- to rw-r----- across apply and off. A rewritten file now keeps exactly the permissions it had. Tests rewrite files of four different modes under two different defaults, so the development machine catches it too. Three tests that restored a folder to a fixed mode now put back only the bits they took away.

1204 unit checks, 227 shell cases, 323 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 21 source files. No suite has fewer cases than at the last check-in. check-in: 6516a0e4da user: dmestas tags: trunk

09:35
Phase 4c: suit why says which supplier of an asset is in effect, and why

suit why NAME prints, for the folder you are in, every place that supplies an asset and what became of it: placed, dropped because the machine-limited outfit wins, joined, not applied on this machine, no project with that key here, a clash with a real file, or skipped. It uses the resolver's own record of each decision, so why and apply cannot disagree. Where an asset is placed at both personal and User scope it says which the harness reads first.

suit status now prints a line for a machine-limited personal outfit that did not apply, as it did for User ones.

The project tests set a user name. The forge's runner sets none, so on the last check-in the store never opened there and 130 project cases failed. The suites are now also run with no user name before a push.

1011 unit checks, 227 shell cases, 146 store cases, 612 placement cases and 376 project cases, under clang, under gcc 16, and with no user name set. 100% coverage in all 19 source files. check-in: 5ef6c04ebd user: dmestas tags: trunk

07:44
Phase 4b-2: your own assets placed inside each project that matches

An outfit worn at personal scope for a project's key is now linked into every project with that key, and into each of its linked worktrees: skills, agents, commands, instructions and files, under the folders the harness names for a project. The machine limit and joined instructions work there as they do at the User scope.

The links are hidden from version control per project, never globally. For a git project suit keeps one marked block in that project's local exclude file, leaves every other byte of the file as it was, and removes only the block on suit off. A Fossil or zit project has no such file, so its links are placed and suit status says they are visible.

Suit never runs git and never stages or commits anything. A file already in the project at a destination is a clash, left as it is and reported, so a committed file always wins.

1006 unit checks, 227 shell cases, 146 store cases, 612 placement cases and 310 project cases, under clang and under gcc 16. 100% coverage in all 19 source files. The no-change run costs about 0.43 ms over an empty program. check-in: 45a7e1e117 user: dmestas tags: trunk

05:53
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. check-in: d74c54957c user: dmestas tags: trunk

03:51
Phase 4a: outfits limited to a machine, and instruction files joined

suit machine shows or sets this machine's name. An outfit worn with machine=NAME applies on that machine and nowhere else, and where it and an unlimited outfit supply the same destination the machine's wins.

A harness has one instruction file per scope. When the unlimited and the machine-limited outfit both supply instructions, suit writes one file with the unlimited text first and the machine's after it, and links the harness to that. It is rewritten when either source changes and removed when no longer needed. This is the one case where an edit in the store reaches a harness only after suit's next run.

The ledger gains an entry for a file suit wrote, so suit off removes the joined file too.

420 unit checks, 227 shell cases, 146 store cases, 612 placement cases, under clang and under gcc 16. 100% coverage in all 16 source files. The no-change run costs about 0.46 ms over an empty program quiet and 0.66 to 0.79 ms loaded.

The checked-in fuzz corpus now includes inputs grown for the ledger reader (61) and more for the stamp reader (108), beside the config parser's 300. The replay tool's input table grew, because fuzzing had filled the old one on the development machine. check-in: f96cbc3342 user: dmestas tags: trunk

02:45
The placement tests that were checked in unrun now pass, and build on Linux

The last check-in included about 240 placement cases that an agent appended while the gates were running, so they went in untested. Nine failed. All nine were wrong tests: a fault injected at the wrong call, a setup that an earlier case had already undone, or an expected message the code never gives for that input. No source file changed. The suite now runs 426 placement cases.

The forge's build failed on that check-in for a separate reason: a test helper uses nftw, which glibc declares only when X/Open is asked for. The unit test file now asks for it on Linux.

One placement case still expected glibc's wording for an I/O error. It now learns the wording from the binary under test.

Live proof now covers Codex as well as Claude Code: 12 cases pass, both harnesses answering through the local proxy on a DeepSeek model. pi is not installed on the development machine and stays at path-level proof. docs/harnesses.md records each harness's paths and which are verified.

Known and left as is: if the final ledger write in suit off fails, the links are gone but the ledger still lists them. A later off or apply clears them.

383 native unit checks, 227 shell cases, 146 store cases, 426 placement cases. 100% coverage in all 14 source files. The tree was fingerprinted before and after the gates and did not change. check-in: 2c1a6a62ec user: dmestas tags: trunk

02:12
Phase 3: the User scope, placed by links that suit owns and nothing else

suit reads suit.conf from the store, works out which links should exist for the User scope, and makes each harness's folders match. suit plan, apply, status and off. suit run now applies when something changed.

The ledger is a text file listing every link suit made. A link is made under a temporary name and renamed into place. A real file, a real folder or someone else's link at a destination is left byte-identical and reported as a clash. suit off leaves a home folder exactly as it was before the first apply.

Proven with a real harness: Claude Code, run against a scratch home through a local proxy on a DeepSeek model, returned the marker word from the instruction file suit placed, listed the skill suit placed, returned a new marker after the file was edited in the store with no suit command run, and no longer saw it after suit off. make live runs this on purpose; it is not part of the automatic gates.

385 unit checks, 227 shell cases, 146 store cases, 157 placement cases. 100% of functions, lines, regions and branches in all 14 source files. The no-change run costs 0.45 to 0.72 ms over an empty program with the stamp now watching 128 paths.

Not yet done in this phase: live proof with Codex and pi, and the document of each harness's paths. check-in: c3b2afcdc0 user: dmestas tags: trunk

2026-11-12
22:58
The store tests ask the binary how its C library words an I/O error

Under Fil-C on the forge 143 of 146 store cases passed. The three failures expected glibc's wording for errno 5 in the new journal tests, the same assumption fixed earlier in the main suite. check-in: 4345393b20 user: dmestas tags: trunk

22:50
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. check-in: cbd57cce10 user: dmestas tags: trunk

22:28
Phase 2: the store, a working copy that is never half written

The store is a working copy of a wardrobe, kept through libfossil's C API with suit's own file writer: every file is written beside itself and renamed, so a reader sees the old file or the new one.

suit store open, status and update, suit commit and suit back. An update refuses when there are local changes, runs as a dry run first, and changes nothing if any file would conflict.

Proven here: the store is byte-identical to fossil's own checkout of a 600-file wardrobe at each version; a reader hashing files during a slowed update saw only old or new contents; an update that fails at any call leaves the old bytes and no temporary file. 100% of functions, lines, regions and branches in all ten source files.

Vendored, unedited: libfossil trunk f2983dcd78, SQLite 3.55.0, zlib 1.3.1. The release binary links only the system library.

Speed: with everything linked, suit costs 0.82 ms over an empty program quiet and up to 1.38 ms under load, which is over budget. The timer's entry point is now suit-run, a 35 KB program built from the no-change path alone, at 0.40 ms quiet and about 0.5 ms loaded. It runs suit only when something changed. The budget test is on suit-run.

Known limits, recorded in docs/decisions.md: libfossil's checkout writes symlinks as regular files, so wardrobes may not hold them; suit back undoes an update and not a check-in; and a store left half updated by a double failure has no repair command yet.

Not yet run: Fil-C and the Linux build of this phase. check-in: 2f274ce15b user: dmestas tags: trunk

21:31
The shell suite asks the binary how its C library words an I/O error

Under Fil-C on the forge all 210 unit checks passed and 201 of 214 shell cases did. The 13 failures were one cause: the cases expected glibc's wording for errno 5, and Fil-C's C library words it differently. The suite now learns the wording from the binary under test. check-in: 143986639c user: dmestas tags: trunk

21:28
The assertion test accepts how a memory-safe runtime ends the process

Under Fil-C on the forge's runner 209 of 210 unit checks passed. The one failure expected a failed ensure() to end the process with SIGABRT. The test now requires an abnormal end by a signal, requires SIGABRT only in native builds, and prints the exit status when the process was not signalled, so the next run shows what Fil-C does. check-in: 7a8f4be6b5 user: dmestas tags: trunk

21:26
The assertion test silences stderr without freopen

glibc marks freopen's result as one that must be checked, so the Linux build failed with warnings as errors. The test already redirected stderr with dup2, which it now checks. check-in: f01e25f20a user: dmestas tags: trunk

21:24
The suite builds and passes under gcc as well as clang

make ci was run here with gcc 16: the unit checks, the shell suite and the fuzz replay pass under its ASan and UBSan. Two test-only fixes came out of it: a buffer gcc flagged in the stamp fuzz target, and two stat calls in the shell suite that assumed macOS.

The Fil-C fetch now verifies its download once and skips it when the cache is warm, and falls back to python3 when wget is missing. check-in: 76d18efd61 user: dmestas tags: trunk

21:17
Every branch of suit's own code is tested, and the gates that keep it so

make cover fails unless every function, line, region and branch in src/ is run by a test. Every system call goes through a wrapper in platform.c that a test build can make fail, so failed-call branches are tested too. The release binary carries none of that code, and a test checks it.

Also: ensure() for invariants, a wider warning set as errors, the clang static analyzer, a second fuzz target for the stamp reader, a replay binary for saved fuzz inputs, a release build that the speed budget now measures, and make ci for the forge's Linux runner: the suite under gcc's sanitizers, then under a pinned Fil-C.

210 unit checks and 214 shell cases. The no-change run measured 0.56 to 0.60 ms over an empty program with the release build.

The Fil-C run and the Linux build have not been run yet. They run first on the forge's runner.

Decisions recorded: the wardrobe is two repositories, libfossil is used through its C API with suit's own file writer, and where each gate runs. check-in: 3f905be4f2 user: dmestas tags: trunk

19:36
Phase 1: the config parser, the no-change run and the speed bench

suit check parses suit.conf strictly and prints a canonical dump. Any unknown kind or key, duplicate, cycle or dangling name rejects the whole file with its line number.

suit run compares a stamp against the files it names and exits without writing, allocating or printing when nothing changed.

suit bench times suit run against an empty program built the same way and against /usr/bin/true, interleaved, and fails the build when the no-change run costs more than 1 ms over the empty program or 1 MiB more memory. It measured 0.65 to 0.94 ms over, quiet and under load. A system binary starts 0.6 to 1.5 ms faster than any built binary on macOS, so it is shown for information and is not the baseline.

94 unit checks, 100 shell cases and a libFuzzer target for the parser. check-in: 6d70dcc76a user: dmestas tags: trunk

19:36
Start the rewrite: vocabulary, decisions, evidence and phases check-in: ac44a32bed user: dmestas tags: trunk