feat(truapi-server): payload-blind wire-debug tap, sinks, and the codegen decode surface - #295
Open
decrypto21 wants to merge 1 commit into
Open
feat(truapi-server): payload-blind wire-debug tap, sinks, and the codegen decode surface#295decrypto21 wants to merge 1 commit into
decrypto21 wants to merge 1 commit into
Conversation
decrypto21
force-pushed
the
nidish/debug-host-port
branch
from
July 25, 2026 06:30
f752ca3 to
70c230f
Compare
decrypto21
force-pushed
the
nidish/debug-host-port
branch
2 times, most recently
from
July 25, 2026 09:42
6869ac4 to
0ac06b0
Compare
decrypto21
marked this pull request as ready for review
July 25, 2026 09:43
Imod7
reviewed
Jul 27, 2026
decrypto21
force-pushed
the
nidish/debug-host-port
branch
from
July 28, 2026 09:03
0ac06b0 to
65ac1ff
Compare
decrypto21
force-pushed
the
nidish/debug-host-port
branch
3 times, most recently
from
July 28, 2026 20:04
9ef0a44 to
6a6060f
Compare
decrypto21
force-pushed
the
nidish/debug-host-port
branch
from
August 2, 2026 19:51
6a6060f to
79d24d4
Compare
Imod7
reviewed
Aug 3, 2026
decrypto21
force-pushed
the
nidish/debug-host-port
branch
from
August 5, 2026 11:35
9498dbb to
6835784
Compare
decrypto21
force-pushed
the
nidish/debug-host-port
branch
2 times, most recently
from
August 24, 2026 07:26
409cd07 to
b5fe5e7
Compare
This was referenced Aug 24, 2026
decrypto21
force-pushed
the
nidish/debug-host-port
branch
4 times, most recently
from
August 28, 2026 06:44
9aa85e4 to
f95621c
Compare
decrypto21
force-pushed
the
nidish/debug-host-port
branch
2 times, most recently
from
August 31, 2026 08:33
788dceb to
715bfec
Compare
…egen decode surface
decrypto21
force-pushed
the
nidish/debug-host-port
branch
from
August 31, 2026 10:25
715bfec to
af7b25a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the producer side of the wire debugger: a
DebugSinktrait in the Rust host core (truapi-server) with taps at the two frame choke points, a loopback WebSocket sink for native hosts, and the codegen surface a debugger decodes against — the wire table plusTRUAPI_WIRE_SCHEMA_HASHover every frame id and its method leg.The tap is payload-blind:
DebugEvent::Framecarries the rawVec<u8>and the inbound tap runs before decode, so a corrupt frame is still observed. Outbound delivers to the product first, then taps. With no sink installed it is one relaxed atomic load. Every emit is wrapped incatch_unwind, and the mutexes on the frame and dispatch paths recover from poisoning, because a sink may be out-of-repo.Nothing consumes the frames yet. The WASM host installs a sink when the JS side passes a
debugEmitcallback; no caller in this stack passes one until the web host dial-out, so the tap is present but unsupplied.docs/design/wire-observability-debug-host.md(docs(design): wire observability and debug host #315)