Skip to content
suit Timeline
Login

Timeline

7 ancestors of 2f274ce15b0c3ff3

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