Artifact 48536a4158f932c803a8a330ea32e4324a5dc69254e3043d95cc41619b05375e:
- File
docs/phases.md
— part of check-in
[71a8d2c4d3]
at
2026-11-16 00:33:58
on branch trunk
— 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. (user: dmestas, size: 3562) [annotate] [blame] [check-ins using]
Phases
Each phase ends with a proof. All four scopes and both limits are in the config format from the first day and are switched on in this order.
| # | Phase | Done when |
|---|---|---|
| 1 | Skeleton and the speed test: the build, the config parser and its fuzzer, the no-change compare, suit bench |
The budget test passes under load. |
| 2 | Store: open a wardrobe, keep a working copy, update it file by file, go back | The store is byte-identical to a Fossil checkout, an update never leaves a half-written file, and suit back restores the previous state. |
| 3 | User scope: links and the ledger for Claude Code, Codex and pi in a scratch home folder. plan, status, off. |
One edit to the instruction file shows in every harness, a real file is never replaced, and off leaves the folder as it found it. |
| 4 | Limits and Project personal: machine names, project discovery, the ignore block, worktrees, the winning order, joined instructions, why |
A personal skill for a project appears in it and its worktrees, in no other project and in no git status, and a clash with a committed file is reported and left alone. |
| 5 | Content: import the sx vault, hand-made skills, agents and commands. Join the instruction files after review. | The scratch home folder matches today's, minus duplicates. |
| 6 | Cut over: snapshot the real folders, apply, remove the other installers | Done after the full asset list has been reviewed. The only destructive phase. |
| 7 | The hourly pass: suit install, the timer, checking in edits, recording per machine, push and pull, repair, the status line |
An edit to a linked skill on one machine reaches another with no command run, and a conflicting edit leaves no markers in a live file. |
| 8 | Upstreams, needs and slots: fetching pinned archives, upstream branches, merge, the review gate, the status line slot, the hook dispatcher | A local fix survives an upstream update, a conflicting update waits for review, and a hook limited to one machine runs there and nowhere else. |
| 9 | Enterprise and publishing to Project shared | An Enterprise asset beats a User one of the same name, and a teammate's edit to a published file is reported and not overwritten. |
| 10 | Linux and suit upgrade |
The Linux build passes the same tests. |
State
| # | State |
|---|---|
| 1, 2, 3, 4 | Built. Proven on macOS and on Linux under gcc sanitizers and Fil-C. |
| 7 | Part built. Proven on both: the lint, the hourly check-in, held deletions, the attention file. Built: sync over file:// and http://, suit clone, suit tend for every wardrobe, the failing-sync line. Built (7c-2): suit install and uninstall (the run and tend timers on macOS and Linux) and suit status --line; proven with a fake loader in a scratch home, the Linux files only as text on this Mac. Not started: https://, recording. |
| 8 | Part built (8a): needs. suit needs, suit need, and the need items in the attention file. Proven in a scratch home. Built (8b): the hook dispatcher suit-run hook EVENT, hook slots, suit hooks. Not started: upstreams, the other slots. |
| Stacking | Built: placing takes every wardrobe under the store, merged into one set (decisions.md, 2026-11-15). It unblocks phase 5, which imports content into a public and a private wardrobe. |
| 5, 6, 9 | Not started. |
| 10 | The Linux build already passes the same tests on every push. suit upgrade is not started. |
Phase 7 was started before 5 and 6 so that the cut-over lands on a tool that already keeps itself in sync.