# 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 | Built, except recording. In use on the real home since 2026-11-19. Proven on both: the lint, the hourly check-in, held deletions, the attention file. Built: sync over `file://`, `http://` and `https://` (BearSSL, libfossil's stream channel; tested against local servers and one clone from zeitforge), `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: 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`. Built (8c-1): upstreams taken from a folder, `suit upstream NAME take\|diff\|accept\|undo` and `suit upstreams` (the branch, the review gate, the merge into trunk, and `undo`, a new check-in that reverses the newest accept, after which the update can be accepted again, since each merge is made against the check-in the record names; [upstreams.md](upstreams.md)). Built: local upstreams (`url = file:///...`), re-taken by the hourly pass when the folder changes, with `trust = review` or `auto`; an empty folder is nothing to take. Not started: fetching an upstream over the network (8c-2), which can now use the https transport; 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. |
| Usage counts | Part one built: three harness keys that describe a harness's session records as data, a streaming bounded-memory reader with its own fuzz target, the per-machine tally in `$SUIT_HOME/usage`, `suit usage scan`, `suit usage`, and the scan in the hourly `suit tend` ([usage.md](usage.md)). Proven on macOS under ASan and UBSan, on a scratch tree of made-up records and on the real Claude Code records read-only. Part two built: `suit curate` writes one local page of every asset beside its use, with keep, limit and retire choices and a text file of them ([curate.md](curate.md)); it applies nothing. Part three built: `suit curate apply FILE [--yes]` reads the choices file, prints a plan (the outfits it edits, the placements that would change, the wears affected) and with `--yes` edits the wardrobes' `suit.conf` files as text and checks each in; it never applies ([curate.md](curate.md)). Proven in scratch wardrobes that are real repositories. Since then: an asset may be limited to several projects, and the `call` and `auto` choices make a skill call-only or automatic through each harness's `skills.call` line; a typed `/NAME` counts as a use of the skill. |
| 5 | Done. The assets were imported into two wardrobes: `public` (the owner's own skills, on a public remote) and `mine` (private: everything else, with third-party skills kept unworn in an attic outfit until they become upstreams). The instruction files were joined per harness after review. |
| 6 | Done on 2026-11-19. The real folders were snapshotted, suit applied, and the other installers' shims, commands and hook markers were moved aside to `~/suit-cutover-moved-2026-11-19`. Suit has run the real home on its own timers since. |
| 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 landed on a tool that
already kept itself in sync.