Artifact 4b6fb50e76bc540cc1b118ed7f8480bcfd929908aa67fca6d750c4ceff9f4f1f:
- File
docs/phases.md
— part of check-in
[fe29cebc6a]
at
2026-11-13 20:38:51
on branch trunk
— 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. (user: dmestas, size: 2908) [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://. Not started: https://, suit install, the timer, the status line, recording, a clone command. |
| 5, 6, 8, 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.