Adopt the user's development rule: one lane at a time, no test suites

CLAUDE.md gains a 'How this project is developed' section: strictly
serial Dev (Opus 5) -> QA (Sonnet 5, code quality) -> lead inspection;
commit along the way without requiring every commit to compile; the
user is the tester. docs/loop.md, docs/topo.md and TODO.md are
rewritten to a serial lane order with no test-writing items; the test
targets are removed and tools/gates.sh is lint + layering grep + build.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5.1 committed 2026-09-15 23:55:41 -07:00
1 parent 671b3dfa61
commit 87aeee6f93
15 files changed
+391 -617

No files matched your search

+38 -28
View File
@@ -2,10 +2,9 @@
**Purpose.** The map an agent reads before touching anything: which
targets depend on which, which features consume which, and where the two
graphs meet. It exists to make parallel multi-agent development safe —
every edge below is an interface somebody can break. An absent edge is
only a candidate for independent work: confirm imports, shared files and
open handshakes before assigning ownership.
graphs meet. It exists so each lane starts only after everything it
consumes is merged, and so the lead knows which interfaces a lane can
break — every edge below is one.
Sources of truth this document is derived from (and defers to on
conflict): `Package.swift`, each `docs/features/<name>/README.md`
@@ -83,16 +82,13 @@ lead's; a lane needing a change there files a Handshake request.
## 2. Feature dependency graph
### 2.1 Milestone order (sequencing, `─▶`)
### 2.1 Lane order (sequencing, `─▶`)
```
bootstrap ─▶ { packet-codec ‖ cipher-stream }
─▶ { session ‖ matrix-edge }
─▶ { control-channel ‖ event-tap }
─▶ { input-inject ‖ screens-cursor }
─▶ { clipboard-inband ‖ menubar-app }
─▶ { clipboard-bulk ‖ interop-vectors }
─▶ end-to-end ─▶ soak
bootstrap ─▶ packet-codec ─▶ cipher-stream ─▶ session ─▶ matrix-edge
─▶ control-channel ─▶ event-tap ─▶ screens-cursor ─▶ input-inject
─▶ menubar-app (first user-testable build)
─▶ clipboard-inband ─▶ clipboard-bulk ─▶ end-to-end polish
```
### 2.2 Consumption edges (`──▶`)
@@ -109,13 +105,14 @@ bootstrap ─▶ { packet-codec ‖ cipher-stream }
| clipboard-inband | packet-codec | 64-byte chunk packets |
| clipboard-bulk | cipher-stream, packet-codec, clipboard-inband | stream layout, `DATA`, header/text format |
| menubar-app | every `MWBCore` type, control-channel, event-tap, screens-cursor | wiring |
| interop-vectors | packet-codec, cipher-stream, clipboard-inband | fixtures are tests for these |
| end-to-end | all | |
### 2.3 Handshakes (`◀──▶`) — all open at planning time
Numbered so lanes can cite them. A lane that needs one not listed here
files it in its README and flags it in its report; the lead adds it.
Numbered so lanes can cite them. With serial lanes a handshake is simply
"the earlier lane publishes, the later lane consumes as published"; the
list still matters because it names the APIs the lead checks at
inspection.
1. **packet-codec ◀──▶ session**: the `Packet` API shape (value type
with typed union views, `Data` in/out). packet-codec proposes in its
@@ -141,19 +138,32 @@ files it in its README and flags it in its report; the lead adds it.
8. **menubar-app ◀──▶ everyone**: `Settings` is the one struct passed
down; lanes read fields, never the file.
## 3. Which pairs may run in parallel
## 3. Lane order
Proven independent by disjoint files **and** no edge above:
Lanes run **one at a time** (CLAUDE.md, the user's standing
instruction), so this section is an order, not a parallelism proof. The
order follows the consumption edges in §2.2: nothing is started before
everything it consumes is merged.
| wave | lane A | lane B | shared files |
|---|---|---|---|
| 1 | packet-codec | cipher-stream | none (both create their own files; `Package.swift` untouched) |
| 2 | session | matrix-edge | none; both consume packet-codec read-only |
| 3 | control-channel | event-tap | none; different targets |
| 4 | input-inject | screens-cursor | **edge 6** — screens-cursor publishes its API in its README first; input-inject codes against the README. Acceptable only because the API is two rectangles. |
| 5 | clipboard-inband | menubar-app | `Settings.swift` is menubar-app's; clipboard reads `ShareClipboard` via a constructor parameter, not the struct |
| 6 | clipboard-bulk | interop-vectors | `Tests/Fixtures/` is interop-vectors'; bulk adds tests under `Tests/MWBNetTests/` only |
| # | lane | consumes (must be merged first) |
|---|---|---|
| 1 | packet-codec | bootstrap |
| 2 | cipher-stream | bootstrap |
| 3 | session | packet-codec, cipher-stream |
| 4 | matrix-edge | packet-codec |
| 5 | control-channel | session, cipher-stream, packet-codec |
| 6 | event-tap | matrix-edge |
| 7 | screens-cursor | matrix-edge |
| 8 | input-inject | event-tap (KeyMap), matrix-edge, screens-cursor |
| 9 | menubar-app | all of the above — the first build the user can test |
| 10 | clipboard-inband | packet-codec, menubar-app (Settings) |
| 11 | clipboard-bulk | cipher-stream, packet-codec, clipboard-inband |
| 12 | end-to-end polish | everything; driven by the user's testing |
Anything not in this table runs serially. `TODO.md`, `docs/protocol.md`
and `docs/perf/README.md` are shared-by-nature: append in your own
section only.
`interop-vectors` is no longer a lane: there are no test suites. If a
Windows machine becomes available, the lead verifies protocol facts by
hand against a capture and flips `[transcribed]` marks in
`docs/protocol.md`.
`TODO.md`, `docs/protocol.md` and `docs/perf/README.md` are
shared-by-nature: append in your own section only.