Skip to content

docs: sequence diagrams of an ordinary call and a streamed call - #74

Merged
jeff377 merged 1 commit into
mainfrom
claude/jsonrpc-sequence-diagram-e7d879
Dec 2, 2026
Merged

jeff377 merged 1 commit into
mainfrom
claude/jsonrpc-sequence-diagram-e7d879

Conversation

@jeff377

@jeff377 jeff377 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds two user documents, each with a Traditional Chinese translation, so that developers can see how a call travels through the packages:

  • docs/request-flow.md: an overview, then the client (PayloadConnector, JsonRpcConnector, HttpTransport), the server (JsonRpcHttpHandler, JsonRpcDispatcher, filters, object factory) and the payload envelope pipeline.
  • docs/streaming.md: only what a streamed call adds. It covers the SSE exchange, when the server starts the stream, the client's reading loop, cancellation and failures, the binding of encrypted items and results to their request, and the cases that are not streamed.

Both READMEs get a short "How a call is processed" section linking them.

Key agreement is deliberately left out: it belongs to the application (IPayloadServerPolicy.GetKeyAsync, PayloadConnectorOptions.KeyProvider), not to these packages.

The documents state no default values and no byte layout. They name the options and link ADR-002, ADR-003 and ADR-005, so nothing here can drift from the code.

No change to code, wire format or behavior, so nothing downstream (Polhem, polhem-connector-js) is affected.

Verification

  • ./check-md-links.sh passes.
  • All Mermaid blocks in the four documents rendered without errors with Mermaid 11.4.1.

Add docs/request-flow.md and docs/streaming.md, each with a Traditional
Chinese translation, and link them from both READMEs. The ordinary-call
document follows a call through the client, the HTTP endpoint, the
dispatcher and the payload envelope; the streaming document covers only
what a streamed call adds. Neither repeats defaults or the byte layout:
they point to the options and to ADR-002, ADR-003 and ADR-005.
@jeff377
jeff377 enabled auto-merge (squash) December 2, 2026 12:51
@jeff377
jeff377 merged commit 684708c into main Dec 2, 2026
4 checks passed
@jeff377
jeff377 deleted the claude/jsonrpc-sequence-diagram-e7d879 branch December 2, 2026 12:52
@sonarqubecloud

sonarqubecloud Bot commented Dec 2, 2026

Copy link
Copy Markdown

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