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
+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