Artifact 01cea7326e67a683d6b79993945d61e87e2e24c38697679d8cfbfd94009a737f:
- File
test/corpus/conf/grown-6c14f405f254
-
2026-11-15 18:38:39
— part of check-in
[c79fd94232]
on branch trunk
— 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. (user: dmestas, size: 4) [annotate] [blame] [check-ins using]
-
2026-11-16 18:00:10
— part of check-in
[2d73c831f4]
on branch trunk
— 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. (user: dmestas, size: 4) [annotate] [blame] [check-ins using]
-
2026-11-17 07:37:01
— part of check-in
[cef6a0ad45]
on branch trunk
— 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. (user: dmestas, size: 4) [annotate] [blame] [check-ins using]
-
2026-11-15 18:38:39
— part of check-in
[c79fd94232]
on branch trunk
— The test for a write to a hook's input no longer trusts one tool