50 most recent check-ins
|
2026-11-23
| ||
| 22:31 | make install: build the release and copy suit and suit-run into ~/.local/bin, then print one status line from the installed copy. The README and docs/quality.md now name it as the step after a check-in's CI passes. leaf check-in: 6dbae039ba user: dmestas tags: trunk | |
| 03:53 |
place.sh: a failed read in reader-never-sees-a-link-missing says what happened
The test counted any read that did not give A or B as a missing link and threw away what cat said, so its two failures in full gates cannot tell a missing link from a reader that could not run. It now prints, for each failed read, the exit code and error of cat and what is at the path afterwards. It still fails on any bad read. Ticket 5. check-in: 45e6118277 user: dmestas tags: trunk | |
| 02:50 |
lint rule 6: the scripts a SKILL.md names must be in its skill folder
A path in a code span or a shell code block of a SKILL.md that ends in a script extension and points into a skill folder must stay inside one skill folder and be a file there, and must be executable when a shell line starts with it. suit.lint allow exempts a SKILL.md. A take checks the files it takes. The wording came from a scan of both wardrobes (docs/decisions.md). Ticket 1. check-in: a0a62524de user: dmestas tags: trunk | |
|
2026-11-22
| ||
| 20:58 |
land docs-drift
via context session, pi-c check-in: 93a4001d70 user: dmestas tags: trunk | |
| 19:20 | merge trunk: raise the CI timeout closed check-in: ed378a8417 user: dmestas tags: docs-drift | |
| 19:20 | CI: 90-minute limit; runs had grown past 45 minutes and were being cancelled check-in: 3b2470882b user: dmestas tags: trunk | |
| 18:16 | merge trunk: the too-long-path cases in test/project.sh check-in: c0f3472c3e user: dmestas tags: docs-drift | |
| 18:15 | project tests: the too-long gitdir and commondir paths pass the limit wherever the checkout is check-in: a7b2ca0122 user: dmestas tags: trunk | |
| 17:21 | docs drift check in make check; docs fixes for pic, upstreams part two, make targets and commands check-in: 4d045e8090 user: dmestas tags: docs-drift | |
| 15:38 | phases: import and cut-over done, local upstreams and curate call-only recorded check-in: b829bcda0b user: dmestas tags: trunk | |
| 15:32 | README rewritten: what suit is, how it works, a quick start, everyday use, a command table, current status, BearSSL in build and license check-in: 624142e3c5 user: dmestas tags: trunk | |
| 15:12 | libfossil 8aa1823ae1 is public now; vendor README and decision record say so check-in: e07d9b75dd user: dmestas tags: trunk | |
| 13:35 | libfossil sql-ext-int 8aa1823ae1: push reaches every peer, writers wait for the lock, autosync settings honored check-in: bb0c9ba8cd user: dmestas tags: trunk | |
|
2026-11-21
| ||
| 20:49 | Curate limits an asset to several projects; call and auto choices set how a skill is invoked through the harness key skills.call; a typed /NAME counts as a use of the skill NAME check-in: e4a08b02ab user: dmestas tags: trunk | |
|
2026-11-20
| ||
| 12:39 | Minute run is silent when the lock is held; local upstream comments say "from FOLDER"; an empty local folder is nothing to take; needs doc names the right slot path check-in: c993443504 user: dmestas tags: trunk | |
| 00:36 |
libfossil from the public branch sql-ext-int (a88df0d594); suites never read the real SUIT_HOME
The private byot build 2f20f44ba4 was purged when it became the public anypipe branch. The new build has the same channel API and records the merge parent of a merge settled with --mine, which the old one dropped; one store case relied on the old behaviour and now uses an upstream change that does not conflict. test/run.sh points SUIT_HOME into its scratch folder from the start. check-in: a31e5c1e98 user: dmestas tags: trunk | |
|
2026-11-18
| ||
| 23:06 |
Instructions join per harness, and an upstream can be a local folder
A harness's instruction file is now joined from up to four suppliers, ranked: the shared one, the harness's own (an outfit with only = HARNESS), the one limited to this machine, and the machine's own for that harness. Each rank has at most one supplier; more than one rank is joined in that order, each source as it is in the store, separated by a blank line. One supplier still links straight to the store's file. So every harness can read a shared file and one harness an extra one, where an only outfit's instructions used to clash with the shared ones. The same rule holds at personal scope. An upstream whose url is file:// and an absolute path is a local upstream. suit upstream NAME take with no FOLDER takes from it. The hourly suit tend takes every local upstream whose folder changed since its last take, and accepts it when trust = auto, so a skill whose home is one of the owner's own repositories is placed without a copy kept by hand. Changed is decided by a stamp of the folder kept in suit's home folder (path, size, mtime, inode and executable bit of each entry): an unchanged hour costs one lstat per entry and opens no file of the upstream. As with the no-change run, an edit that keeps a file's size and mtime is not seen until the next one that does not. A missing folder is one attention item that clears when it is back. The take comment names the folder, and the pin when there is one. Three upstream usage cases changed their expected text, because take no longer needs a FOLDER. 3828 unit checks (was 3792), 625 shell cases, 1258 store cases (was 1153), 1032 placement cases (was 985), 382 project cases (was 378), 237 usage cases (was 236), 288 curate cases, 376 curate-apply cases and 172 https cases, under clang, under gcc 16, with no user name set and umask 002, and under umask 027, in one run of make gate (77 minutes). 100% coverage in all 34 source files. check-in: 75c8fde976 user: dmestas tags: trunk | |
| 19:35 |
The https tests stop their misbehaving servers on Linux too
On the forge's Linux runner the last https case found twelve test servers still listening. They were the misbehaving BearSSL servers: /bin/sh there is dash, which rejects `kill -- -PID`, so they were never signalled; the fossil servers had been stopped by pkill. Teardown now signals each server by PID, by process group and by a pkill on its port, waits up to 15 s for nothing to listen, then sends SIGKILL and waits again. The check that no server is left listening is as strict as before. Checked here under dash, three runs of the https suite normally and three under umask 002, coverage, and the whole check under gcc 16. Linux's own pkill and nc behaviour is proven only on the forge. check-in: cb8c8be8d9 user: dmestas tags: trunk | |
| 18:37 |
The gate builds and fuzzes first, and runs one stage under the forge's umask
make gate now starts with a cheap run, to build/fast.log: everything make check needs is built, not run, on a fresh build/dev with gcc 16 and again with clang, warnings being errors, and make fuzz runs every target once. A compile error or a fuzz finding stops the gate there instead of after the long suites; on this machine that stage took 18 minutes against 70 for the whole gate. make all still fuzzes again later. New target: make check-build. The no-user stage also runs under umask 002, which is the forge runner's, so a test that depends on files being private fails here first. The gate's summary listed only the first eight suites, which hid the https suite; it now lists them all and the fuzz counts. check-in: 231b7b615b user: dmestas tags: trunk | |
| 18:37 |
The https tests make their certificate files private, so they pass on any umask
The forge's runner creates files with umask 002, so the certificate files and folders the tests made were group-writable, and the new check on certificate files rightly refused them: 10 unit checks and most https cases failed there. Every certificate the tests make is now 0644 in a 0755 folder, so the tests no longer depend on the umask. The check is unchanged. A new case, under umask 002, shows a group-writable CA file refused and the same file accepted after chmod 644. In the coverage build only, a name-lookup child killed while writing its profile could corrupt it; the child now writes its own file and renames it when whole. 3792 unit checks (was 3788) and 172 https cases (was 170), with every other suite unchanged, under clang, under gcc 16, with no user name set and umask 002, and under umask 027, in one run of make gate. 100% coverage in all 34 source files. check-in: 70d6eed709 user: dmestas tags: trunk | |
| 16:19 |
suit syncs and clones over https
suit sync, suit clone and suit tend now work with https:// remotes. http:// and file:// keep libfossil's built-in channel. libfossil is the private byot build 2f20f44ba4 in place of trunk f2983dcd78, approved while suit is being proven; only libfossil.c and libfossil.h differ from trunk's files. Its stream channel does all of the HTTP: request headers, Content-Length, chunked and close-delimited replies (the last only after a clean close), the reply-size limit and the timeout. suit supplies the transport: src/tls.c, over non-blocking TCP and BearSSL 0.6, now vendored. - TLS 1.2 only, ECDHE key exchange, AES-GCM or ChaCha20-Poly1305. A server offering only TLS 1.3, RSA key exchange or CBC is refused. - The chain is verified against trust anchors and the host name against the certificate. Anchors come from the system's PEM bundle read at run time (SSL_CERT_FILE, then the usual macOS and Linux paths), or from a per-wardrobe CA file set with --ca, which replaces the bundle. No roots are compiled in and there is no way to trust anything. - A certificate file must be a regular file owned by the user or root, writable by no one else, in a folder that passes the same check; --ca refuses a symlink, and a FIFO is refused at once. - Redirects are refused, never followed, and the message names the new address. No proxy support. - Nothing is sent before the handshake has verified. The login goes out only as libfossil's login card. Commands that read the sync secret turn core files off first. - Every connect, read, write and name lookup waits in poll with a 30 s idle limit, and a whole command stops after 10 minutes. getaddrinfo has no deadline, so it runs in a forked child that is killed and reaped. - BearSSL makes no system call of its own: it is built without its own randomness or clock, and suit seeds it and gives it the time through its fault wrappers. - Exit 18 now means the secure connection failed (handshake, certificate, host name). 17 stays the network and 19 a refused login. A per-wardrobe CA file is kept in cafiles in suit's home folder, one NAME PATH line each. suit-run is built without the network code and is unchanged at 35496 bytes; the speed budget passes. Release suit went from 2291288 to 2490024 bytes. An independent security review found no critical or high issues. Its one medium finding, a CA file trusted without checking its owner, mode or type, is fixed here, as are its low ones: separate storage for each set of anchors, core files off, and the release check now covering every test-only switch. Checked against a real server: an anonymous clone of this repository over https from its forge, 8.4 s, verified with stock fossil. A new suite, test/https.sh, with 170 cases, runs local servers with test certificates made at test time, including servers that misbehave on purpose. It prints skip lines where openssl or nc is missing. A new fuzz target covers the bundle reader. 3788 unit checks (was 3669), 625 shell cases, 1153 store cases, 985 placement cases, 378 project cases, 236 usage cases, 288 curate cases, 376 curate-apply cases and 170 https cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (76 minutes, on a loaded machine). 100% coverage in all 34 source files. Three store cases that expected "cannot use https yet" now expect the refusal for a missing certificate bundle. check-in: 27d847f693 user: dmestas tags: trunk | |
| 03:02 |
suit curate apply turns the page's choices into config changes
suit curate apply FILE reads the choices file the curation page makes and prints a plan: which outfits and wears it edits, which wardrobes it checks in and in what order, and the links that will appear and disappear at each scope. Without --yes nothing changes. With --yes it edits each wardrobe's suit.conf and checks it in, with a comment such as "Curate: 3 kept, 1 limited, 12 retired". It does not place anything; the next run sees the config changed and applies. - keep leaves a worn asset as it is. A loose asset, or one coming back from the attic, goes to the outfit kept.WARDROBE, worn at user scope. - limit moves the asset from its user outfits to personal.WARDROBE.SLUG, worn by [wear personal PROJECT], created or reused wherever it is. - retire removes the asset from every outfit of its wardrobe and adds it to attic.WARDROBE, which nothing wears. Apply refuses if a wear reaches an attic. - Removing one name from an outfit that lists `*` turns the `*` into an explicit list of the names it reached, minus that one, and the plan says so: names added to the store later are then not included by that outfit. No exclusion syntax was added. Outfit names carry the wardrobe because outfit names are one set across wardrobes; a name too long for that is refused for its line. A wardrobe that defines a new outfit is checked in before any wardrobe whose wear names it, so a failure part-way leaves only an outfit nothing wears; a run that would need the opposite order is refused before anything changes. Configs are edited as text: only the lines that must change are rewritten, and comments, blank lines, alignment, line endings and the order of everything else are kept. Every edited config must parse and the combined set must pass the merge check before anything is written. A wardrobe with local changes is refused, so the check-in holds the curation only. A failed check-in puts that wardrobe's file back. A malformed line, a duplicate, a bad header or a path given as a project refuses the whole file, listing every problem. An unknown asset is warned about and skipped; a choice already true is silent. A new suite, test/curate_apply.sh, with 376 cases, is part of the gate, and a new fuzz target covers the choices parser and the line editor. 3669 unit checks (was 2993), 625 shell cases, 1153 store cases, 985 placement cases, 378 project cases, 236 usage cases, 288 curate cases and 376 curate-apply cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (44 minutes). 100% coverage in all 32 source files. No existing case was changed. check-in: 1ed63201f4 user: dmestas tags: trunk | |
|
2026-11-17
| ||
| 10:01 |
The no-change run watches what apply acts on, not every file in the stores
The stamp listed every file and folder in every store, and the compare costs one stat per path, so the per-minute run grew with the wardrobes. On a fixture of two wardrobes with 300 skills of five files, 40 agents and 20 commands it watched 1890 paths and cost 7.1 to 7.6 ms quiet and 12.6 to 13.4 ms loaded, against a budget of 1 ms. Apply links skill folders, agent and command files, and slot and file sources, and never reads them. From a store it reads the content of only the wardrobe's suit.conf and the sources of a joined instructions file, and nothing is placed by copy. An edit inside a linked skill, or to an agent's or command's content, is already seen by the harness through the link; apply would place the same links. So those are no longer watched. The stamp now watches the store folder and each folder in it; each wardrobe's folder, suit.conf, and skills, agents and commands folders (whose own entry changes when something in them is added, removed or renamed); entries in those folders that are links, whose target can come or go without the folder changing; every instructions, file and slot path of every outfit, whether or not it exists; need prompts; and the ledger, machine name, roots and project lists as before. docs/decisions.md lists every input apply reads and why each is or is not watched, and replaces the 12 Nov sentence that made an edit anywhere in a store a reason to apply. On the same fixture it watches 24 paths: 0.26 to 0.28 ms quiet, 0.48 to 0.50 ms loaded. The count no longer depends on files inside skills. Over 128 paths apply stops with a clear error and keeps the old stamp. The stamp starts with a format line, suit stamp 2. A stamp from before makes the compare report it changed, and the apply that follows rewrites it. suit and suit-run must be updated together: an older suit-run calls the new stamp bad. Known: on Linux a change within one clock tick of the stamp's own stat can be missed until the next change, as before. Ten placement cases and five shell lines changed expectation: an edit inside a store no longer causes an apply, a store with many files or deep folders no longer exceeds a limit, and the stamp has one more line. Each case is kept. 2993 unit checks, 625 shell cases (was 620), 1153 store cases, 985 placement cases (was 846), 378 project cases, 236 usage cases and 288 curate cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (40 minutes). 100% coverage in all 31 source files. check-in: cb7d42f351 user: dmestas tags: trunk | |
| 07:37 |
suit curate writes a page for deciding what each asset is worth keeping
suit curate [--since DAYS] [--out FILE] runs a usage scan and writes one self-contained HTML page, mode 0600, atomically, to curate.html in suit's home folder or to FILE. It changes no wardrobe file, config, stamp or ledger. The page names projects and stays on this machine; it loads nothing from the network and has no inline handlers. Each skill, agent and command in the wardrobes is a row: uses in the window and in each of the last four weeks, last used, the projects it was used in, its description and what that costs every session, where it is worn, whether it is in the attic, and whether it is the owner's or an upstream's. Origin comes from the entries of the check-in the upstream's record names, so an upstream's skills beside the owner's own in skills/ are told apart. A name in two wardrobes is tagged with its wardrobe. Each row starts from a suggestion with its reason: retire when unused in the window, unless its files changed within it; limit when three or more uses all came from one known project; otherwise keep. A folder that is not a known project cannot be limited to, and the page says how to make it one. The owner picks keep, limit or retire per row, with keys or in bulk on what is shown, and copies or saves the choices as a short text file. Applying it is a separate step, not in this check-in. The format is in docs/curate.md: one line per asset, `keep KIND WARDROBE NAME`, `retire KIND WARDROBE NAME`, or `personal KIND WARDROBE NAME PROJECT`. The page is src/curate.html, turned into a C array at build time with od and awk, so the release build needs no other tool. Values are written as JSON with markup characters, U+2028 and U+2029 escaped and invalid UTF-8 replaced. The page script has its own test, run under node where node is installed and reported as skipped elsewhere. A new fuzz target covers the front-matter reader and the JSON writer. Page sizes: 37 KB for the test fixture, 252 KB for 500 assets, 805 KB at the 4096-asset bound. A new suite, test/curate.sh, with 288 cases, is part of the gate. 2993 unit checks (was 2855), 620 shell cases, 1153 store cases, 846 placement cases, 378 project cases, 236 usage cases and 288 curate cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (66 minutes, on a loaded machine; one earlier run failed only the loaded speed measurement, at 1.06 to 1.11 ms, and this run passed it at 0.99 ms). 100% coverage in all 31 source files. No existing case was changed. check-in: cef6a0ad45 user: dmestas tags: trunk | |
|
2026-11-16
| ||
| 21:25 |
Suit counts how often each skill, agent and command is used
The counts come from the records a harness already keeps of its own work, read afterwards. What those records look like is data in the wardrobe's harness section: where the files are, where a record's time and folder are, and rules that say what an invocation looks like. No harness is named in suit's code. docs/harnesses.md has the rules for the first harness, checked against real records. A streaming reader walks each JSON line against the rules in 64 KiB chunks, keeps at most the first 512 bytes of any string and stops at 64 levels, so a line of any length cannot grow its memory. It has its own fuzz target. Suit keeps its own tally per machine under usage/ in its home folder, outside any wardrobe: one line per invocation with time, harness, kind, name, project and call id. A call copied into a resumed or forked record is counted once, by its id. The tally outlives the harness's own clean-up and drops what is older than 400 days. suit usage scan reads what is new; a first scan reads files changed in the last 45 days and later scans read only new bytes. suit usage prints the table for a window, default 30 days, and --tsv gives the same rows for other tools. suit tend with no name runs the scan after tending; a failed scan is reported and changes nothing else. suit-run is untouched and the speed budget passes as before. Measured: a generated tree of 200 files and 200 MiB scans in about half a second and a second scan opens no record file. On a real tree of 2547 files, read-only into a scratch home: 3756 invocations in 60 seconds, 10 MiB at peak. A new suite, test/usage.sh, with 236 cases, is part of the gate. 2855 unit checks (was 1473), 620 shell cases, 1153 store cases, 846 placement cases, 378 project cases and 236 usage cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (41 minutes). 100% coverage in all 28 source files. One existing unit line changed: a table of fault points gained entries. check-in: 38c2e6220a user: dmestas tags: trunk | |
| 18:00 |
An accepted upstream update can be undone, and merges use the recorded base
suit upstream NAME undo reverses the last accept by a new check-in on trunk. Every file that accept changed goes back to what it was, the record upstreams/NAME goes back to the check-in accepted before (or is removed), and the upstream is waiting for review again. History is not rewritten. A file edited on trunk since the accept is a conflict: the command lists it and changes nothing. Undo twice walks back two accepts. An undo is never followed by an automatic accept. The merge base for an upstream is now the branch check-in the record names, or trunk's first check-in when there is no record, and no longer what the library infers from ancestry. The dry run, the merge and suit's own check for deleted files all use that one base. Because of it: - the same update can be accepted again after an undo, and gives exactly the files it gave before; - a newer take accepted after an undo brings all of its content, not only its difference from the undone one; - after accept --mine, a later update that leaves the settled lines alone merges cleanly, where it could conflict again before. One that changes them again is a conflict, as it should be. A take no longer mistakes a file an undo brought back for one of the owner's own. The settle writer restores a file's mode as well as its bytes. Left: a record edited by hand to name a check-in that is not on the branch makes accept fall back to the library's common ancestor. 159 new store cases, among them the undo story both ways, undo across two machines, and undo in the fault sweep. 1473 unit checks, 620 shell cases, 1153 store cases (was 994), 846 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (44 minutes). 100% coverage in all 26 source files. One existing line changed: the fault sweep's list gained undo. check-in: 2d73c831f4 user: dmestas tags: trunk | |
| 14:13 |
An upstream's attention item survives tend and goes when it is settled
Two faults in how upstream items were kept. suit tend removes a wardrobe's items without naming a kind, and that matched the item of an upstream with the same name, so a pending update was forgotten until someone ran suit upstreams. A remove with no kind now leaves upstream items alone. The item's text is unchanged and files written before this read as before. A machine that had taken an upstream kept its item after the update was accepted on another machine and synced here. After the working copy is updated, every upstream whose tip the tracked file upstreams/NAME records as accepted has its item removed; one still waiting keeps its item. With no upstream branch this costs one query. 26 new store cases: a wardrobe and an upstream of one name through take, tend and accept; a file in the old form; two machines; and the read, open and rename failures. 1473 unit checks, 620 shell cases, 994 store cases (was 968), 846 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (43 minutes). 100% coverage in all 26 source files. No existing case was changed. check-in: db386ba414 user: dmestas tags: trunk | |
| 08:11 |
Phase 8c-1: an upstream is taken from a folder, reviewed, and merged
suit upstream NAME take FOLDER checks the upstream's files in on the branch upstream-NAME of the wardrobe that defines it, at INTO/ENTRY, with the comment upstream NAME at PIN. The check-in is built as a deck on a repository opened with no checkout, so the working copy is not touched. Its first parent is trunk's first check-in, so a later merge is three-way. Dot entries are skipped, links are refused, the lint runs, and a file that something else supplies is a clash. into is a new key, default skills; trust defaults to review. With trust = review the update waits: the attention file says so, suit upstreams lists each upstream as never taken, current, waiting for review or conflict, and suit upstream NAME diff lists what accept would add, change, remove or conflict on. suit upstream NAME accept merges the branch into trunk after a dry run. A conflict changes no file and writes no marker; --mine PATH and --theirs PATH settle one. With trust = auto a clean take is accepted at once. Every accept writes the tracked file upstreams/NAME, holding the hash and pin it accepted, into its merge check-in. So a merge that changes no other file can still be checked in, and keeping your version of the only conflict ends as current. The proof: a local fix to a taken file survives an update that changes another line, and an update that rewrites the same line waits as a conflict with trunk byte-identical to before. Limits, all in docs/upstreams.md. suit back after an accept refuses, as after any check-in, and no command undoes an accept. diff prints the list of files, not their text. After --mine, a later take that touches the same lines can conflict again, because the library leaves the merge parent off that check-in. Accept works only at trunk's tip. A wardrobe and an upstream of one name share an attention item. Fetching over the network is part two and is not built. 1473 unit checks (was 1431), 620 shell cases (was 612), 968 store cases (was 669), 846 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (34 minutes). 100% coverage in all 26 source files. The speed budget still passes. No existing case was changed. check-in: 3cb21b0428 user: dmestas tags: trunk | |
| 00:33 |
Suit places from every wardrobe, merged into one set
Placing read one wardrobe, named mine. It now takes every folder under the store that holds a suit.conf, in byte order of name, at most 16. Each config is parsed as before and the results are merged: harness, outfit, need and upstream names are shared, so a private outfit can include a public one. Paths and asset names resolve in the store of the wardrobe that defines the section. No wardrobe beats another; scope and limit decide, as before. The same section in two wardrobes is an error naming both places. The same destination from two wardrobes at one scope is a clash that names the wardrobes. Any error in any config stops plan and apply before anything is placed. A merge that is refused leaves the combined set as it was. suit check with no file prints the combined dump. suit why names the wardrobe when more than one takes part. The ledger's format did not change: a link's source path already names its wardrobe. The stamp watches every wardrobe's folder and the store folder, so a wardrobe that appears or goes is noticed. Nothing special-cases the name mine. This is the owner's decision of 2026-11-15, recorded in docs/decisions.md with the rejected alternative, one master config naming assets as wardrobe:path. It corrects the 2026-11-12 line that said wardrobes already stacked. The message for no config is now STORE:0: no wardrobe with a suit.conf. Fault call numbers in 12 existing cases moved because the store folder is listed first; what each asserts is unchanged. The no-change run with two wardrobes of 50 files each is 0.83 to 0.85 ms over an empty program, limit 1 ms. The cost is one stat per watched path: 100 files in each wardrobe measured 1.19 to 1.24 ms. The budget fixture watches 100 files in all, as before. Not covered: suit status with two wardrobes, which needs two repositories in the fixture. A duplicate-section message can be cut short when both paths are very long. 1431 unit checks (was 1355), 612 shell cases (was 606), 669 store cases, 846 placement cases (was 756) and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (28 minutes). 100% coverage in all 25 source files. No suite has fewer cases than at the last check-in. check-in: 71a8d2c4d3 user: dmestas tags: trunk | |
|
2026-11-15
| ||
| 18:38 |
The test for a write to a hook's input no longer trusts one tool
a-program-writing-to-its-input-fails asked /bin/echo whether its write to a read-only descriptor failed. On the forge's Linux runner echo reported success although nothing was written: the companion case, which checks that the next program reads the original bytes, passed there. The program now tries two writers, dd and /bin/echo, and the write counts as failed if either says so; a descriptor that took writes would let both succeed. No product code changed. 1355 unit checks, 606 shell cases, 669 store cases, 756 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (34 minutes). 100% coverage in all 25 source files. check-in: c79fd94232 user: dmestas tags: trunk | |
| 17:53 |
Hook programs get the event's input read-only
The dispatcher gave every program the spooled input through the one descriptor it wrote with, so a program that wrote to its standard input could change the bytes the next program read. The spool is now opened a second time, read-only, before it is unlinked; the copy is written through the first descriptor, which is then closed, and the programs inherit the read-only one. If the second open fails the message is cannot reopen the temporary file, the exit status is 1, no program runs, and no temporary file is left. 8 new shell cases: a program that tries to write to its input fails and the next program still reads the original bytes, and the new failure in the home folder and in the temporary folder. 1355 unit checks, 606 shell cases (was 598), 669 store cases, 756 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (35 minutes). 100% coverage in all 25 source files. The speed budget still passes. No suite has fewer cases than at the last check-in. check-in: d03820d0a9 user: dmestas tags: trunk | |
| 16:50 |
Phase 8b: the hook dispatcher runs what is linked into an event's slot
A harness is told once to call suit-run hook EVENT. After that, which programs run for the event is decided by what suit has linked into slots/hook/EVENT: one program, or a folder of programs run one after another in byte order of name. An outfit names them with slot hook/EVENT = PATH or slot hook/EVENT/NAME = PATH. Asking for both forms of the same event is an error at plan time that names both outfits. The dispatcher lives in suit-run, the small program, because some harnesses run a hook on every tool call. With no slot for the event it exits 0 at once, having read nothing. Otherwise standard input is read once into an unlinked temporary file, at most 16 MiB, and every program gets the same bytes from the start. A program that exits 2 stops the rest and the dispatcher exits 2. Otherwise all run and the result is the first non-zero status; a signal counts as 128 plus its number, and a program that cannot be run as 126. The dispatcher has no timeout of its own and prints nothing on success. suit hook EVENT calls the same code. suit hooks lists what would run and changes nothing. The speed budget has a second measurement: suit-run hook with no slot, 0.15 to 0.29 ms over an empty program against the 1 ms limit. The no-change run is unchanged and still passes. Stripped suit-run grew from 35064 to 35512 bytes. 1355 unit checks, 598 shell cases (was 479), 669 store cases, 756 placement cases (was 745) and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (35 minutes). 100% coverage in all 25 source files. No suite has fewer cases than at the last check-in. check-in: 1165d70f02 user: dmestas tags: trunk | |
|
2026-11-14
| ||
| 13:15 |
Phase 8a: needs are checked, listed, and shown until they are done
A need is a step a harness must do for itself, such as registering a slot in its own settings. suit never edits those settings; it says what is needed and can tell when it has been done. The done test has two forms and nothing else: PATH exists, and PATH contains "TEXT". suit needs lists every need as done, not done or cannot tell, and changes nothing. suit need HARNESS NAME prints the prompt's exact bytes so it can be handed to the harness. After each apply the attention file holds one item for each need not done and none for those that are. Other kinds of item are left alone and keep their order, and nothing is written when nothing changed. If that update fails, apply writes no stamp, so the next run tries again. A bad need stops apply before it places anything. suit off removes the items. suit-run is untouched and the speed budget still passes. An eighth fuzz target covers the done-test parser. 1355 unit checks, 479 shell cases, 669 store cases, 745 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (34 minutes). 100% coverage in all 24 source files. No suite has fewer cases than at the last check-in. check-in: 3598f9d78d user: dmestas tags: trunk | |
| 11:41 |
suit install retries a load that failed, and says so until it works
When the loader fails, suit install now writes one item to the attention file: timers load: written but not loaded, with the loader's name and exit status, or could not run when it never started. suit status and suit status --line show it. Running suit install again, with the files unchanged and that item present, loads again in place of saying already installed. A success removes the item; suit uninstall removes it too. If writing the item fails as well, install still exits 3 and reports both. make quick now rebuilds the dev binaries before it runs, so it cannot test a stale build. 49 new shell cases. 1269 unit checks, 477 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, in one run of make gate (31 minutes). 100% coverage in all 23 source files. No suite has fewer cases than at the last check-in. check-in: 79385a1b35 user: dmestas tags: trunk | |
| 10:41 |
The test gate runs in half an hour, not eighty minutes, and loses nothing
make check now runs the unit program and the four shell suites side by side, each to its own log, then prints them in the fixed order and fails if any failed. JOBS=1 gives the old one-after-another order, and a machine with fewer than four cores gets it by default. In test/store.sh the two sync fault sweeps and the clone fault loop run one worker per fault, each with its own remote and machines under a private folder of the same depth, so the same code paths run as before. Measured on a loaded machine: make check 847 s to 276 s, make cover to 83 s, the whole four-run gate to 30 minutes. Nothing was removed, renamed, skipped or made to assert less. The list of case names is identical before and after, the counts are unchanged, and coverage is still 100% in 23 files. No product code changed. Two new targets. make quick SUITE=NAME runs one suite three ways: as it is, with no user name set, and under a strict umask; it is the first thing to run after touching a suite. make gate runs the whole local gate as one command. One test fixed. a-link-already-gone-is-dropped-quietly looked for the bare text s1 in the ledger, which the scratch folder's random name can contain, so it failed about once in a few hundred runs. It now looks for the link's full path, and requires both no output and the path gone, where before any output at all let it pass. 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. check-in: c3280ef4fa user: dmestas tags: trunk | |
| 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 | |