Skip to content
suit Timeline
Login

Timeline

15 ancestors of 5ef6c04ebd6ae4d6

2026-11-13
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