session-matrix: topo handshakes 3/4/6, loop log
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
5f9a18cf83
commit
0db3aa8c9a
2 files changed
+22
-10
No files matched your search
+9
-2
@@ -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
|
||||
|
||||
+13
-8
@@ -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 `"<len>*<name>"`
|
||||
`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 `"<len>*<name>"`
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user