Skip to content

feat(observe): isolate passive desktop control read progress - #111

Merged
rldyourmnd merged 2 commits into
mainfrom
fix/control-reader-progress-20261006
Oct 6, 2026
Merged

rldyourmnd merged 2 commits into
mainfrom
fix/control-reader-progress-20261006

Conversation

@rldyourmnd

@rldyourmnd rldyourmnd commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

A completed desktop heartbeat RTT cannot show whether a reply stalled before its length prefix, inside the body, during an I/O poll, or alongside late runtime scheduling. Periodic snapshots can also miss a burst of late replies.

Add passive framed-read progress with a separate weak observer. The existing wake-driven reader is never polled, canceled or restarted by the observer; this avoids masking a potential missed wake. The observer reads only local scalar progress and exact outstanding-probe metadata, using coherent single-writer atomic progress, probe try-lock and skipped ticks with bounded log frequency. It does not query transport state, own a stream/connection, or change wire, timeouts, retries, input replay or liveness. Logs contain byte lengths/counts and timing, without payloads/addresses.

A matched newer probe excludes older missing echoes from diagnostic freshness while preserving ordinary late correlation. Tests cover actual fragmented prefix/body read continuity, a never-waking reader remaining unpolled despite observation, owner cleanup, and diagnostic freshness without correlation changes.

Final Mac strict workspace/desktop/owned-backend Clippy and110 unit tests, Linux strict Clippy and123 unit tests (two unchanged platform ignores), optimized Mac agent and full exact-head public CI pass; this is an observability increment, not a claim that the remaining latency root cause or product acceptance is complete.

@rldyourmnd
rldyourmnd marked this pull request as ready for review October 6, 2026 06:10
@rldyourmnd
rldyourmnd merged commit c1999bb into main Oct 6, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant