diff --git a/docs/loop.md b/docs/loop.md index 498bfb2..a09b83f 100644 --- a/docs/loop.md +++ b/docs/loop.md @@ -153,8 +153,8 @@ Strictly one at a time, in this order (mirrors `TODO.md`): |---|---|---| | 0 | bootstrap | merged 2026-09-15 (lead, solo) | | 1 | wire-core | merged 2026-09-16 (worktree; the last lane to use one) | -| 2 | session-matrix | | -| 3 | control-channel | | +| 2 | session-matrix | merged 2026-09-16 (one rework) | +| 3 | control-channel | in progress from b085023 | | 4 | input-capture | | | 5 | input-inject | | | 6 | app-shell | **CP1**: first manual acceptance checkpoint (contracts C5) | @@ -174,6 +174,13 @@ Strictly one at a time, in this order (mirrors `TODO.md`): ## 8. Lane log +- **2026-09-16, lane 2 (session-matrix)** — Dev (Opus), QA (Sonnet) + REWORK with three findings (read-error budget, persist-on-learn, + parkCursor gating); an external plan review the same day produced + `docs/contracts.md` (C1 sequencing folded into the rework); Dev + rework, QA PASS, lead merge. What the brief got wrong: it named + `Session.send` per connection, contradicting Windows' one-Id + broadcast; and it did not say who owns cross-module state — now C3. - **2026-09-16, lane 1 (wire-core)** — Dev (Opus) one pass, QA (Sonnet) PASS with one doc typo fixed, lead merge. Brief held. Findings the dev surfaced for later lanes are in `docs/protocol.md` §10.1. Mid-lane diff --git a/docs/topo.md b/docs/topo.md index 60a004a..03eefe8 100644 --- a/docs/topo.md +++ b/docs/topo.md @@ -117,19 +117,24 @@ inspection. returning `Data` with internal partial-block buffering; header and sacrificial block handled inside the cipher types, not by the channel. Closed when control-channel lands. -3. **session ◀──▶ control-channel**: `Session.feed(_:) -> [Event]`, - `Session.outgoing() -> Data`, injected `Clock`. The channel never - inspects packet bytes. -4. **session-matrix ◀──▶ input-capture**: `Edge.evaluate(point:rect:now:)` - returns a `Switch?` decision. Debounce lives in `Edge` with the - injected clock; the tap only supplies points and timestamps. +3. **session-matrix ◀──▶ control-channel**: `Session.feed(_:)`, + `noteReceiveError(bytesReceived:)`, `tick(now:userActive:)`, + `drain() -> [Data]`, `events() -> [SessionEvent]`, `forward(_:)` + (contracts C1). The channel never inspects packet bytes and must + pass read byte counts through, never collapse them. +4. **session-matrix ◀──▶ input-capture**: `Edge.crossing(...)` returns a + `Direction?`; `Switcher.crossing` turns it into a switch. Debounce + lives in `Edge`; the tap supplies `CGPoint`s and timestamps. Geometry + uses Foundation's bare `CGRect`/`CGPoint` (no `.zero`, `minX`, + `Equatable`); helpers are on `Coordinates`, not CG extensions. 5. **input-capture ◀──▶ input-inject**: the injected-event tag value (`eventSourceUserData`) is one constant defined in `MWBCore/InputTypes.swift` by input-capture and read by `Injector.swift` (contracts C4). 6. **input-capture ◀──▶ input-inject**: `Screens.desktopBounds` and - `primaryBounds` in CG coordinates (top-left origin, points). -7. **clipboard ◀──▶ clipboard**: the `"*"` + `primaryBounds` in CG coordinates (top-left origin, points), passed + into `Coordinates.fromUniversal` / `EdgeConfig` as plain `CGRect`s. +7. **clipboard in-band ◀──▶ clipboard bulk** (same lane): the `"*"` header codec and the text tag/SEP codec live in `ClipboardCodec.swift` and are reused by bulk unchanged. 8. **app-shell ◀──▶ everyone**: earlier lanes take lane-specific config