Skip to content

docs: correct consumer guides, client-runtime canon and XML comments - #952

Merged
Blind-Striker merged 1 commit into
masterfrom
docs/2.0.0-audit-consumer
Nov 17, 2026
Merged

Blind-Striker merged 1 commit into
masterfrom
docs/2.0.0-audit-consumer

Conversation

@Blind-Striker

Copy link
Copy Markdown
Collaborator

What

A documentation audit of the 2.0.0 state found statements in the consumer guides, the client runtime canon, the playground README and three XML doc comments that no longer match the code at the current pin. This corrects them. No behaviour changes; the source files change only in XML comments.

Changes

  • Persistent terminals: input from an observer connection is accepted and makes that attachment the controller; it is not dropped. Fixed in the canon, the terminals guide, and the PersistentPtySession and PersistentPtyFrameDecoder comments.
  • Event cursors: a durable cursor belongs to its aggregate and retained store, not to one process lifetime; an embedded host with events.persist on and a file-backed database can resume across restarts, while the distributed CLI's persistence limit still applies. Canon and streaming guide.
  • OpenCodeServer.CreateClient in canon: Endpoint and Password must stay null and Username the default; every configured non-identity option is carried into the client, and handler ownership follows the construction section.
  • Other canon details: the terminal replay bound counts UTF-16 code units; the registration PID guard is cited by its code rather than a stale line range.
  • EventStreamIdleTimeout XML: the shared source keeps reading, and the idle window keeps running, while your code holds an event.
  • Guides: generate reads the session's context and records usage; a null Password still lets client-wide headers authenticate, while per-call headers do not reach the event feed; the media capability is the one exception to "per-call headers win"; a terminal stream settling does not prove a command finished (RunShellCommandAsync does); the exception diagram includes the subscriber overflow exception; the options table includes MediaReferences; the durable event count is no longer hard-coded; a terminal reconnect cursor gives no gap-free, duplicate-free guarantee.
  • Playground: the HQ README no longer promises SDK telemetry in 1.1.

Verification

  • Each statement re-checked against the code and upstream at the pin; the runtime claims had an owner read.
  • Local check on Linux, Release: build and the net472 test build (0 warnings, 0 errors), format whitespace and format style, Slopwatch, clone gate, generate --verify, refresh-spec --verify, the tool's --help, both packs; tests 12,914 passed, including the whole Tools test project and its documentation gates, plus 22 ServiceElection and 3 NativeAot; the tree stayed clean.

Two older inaccuracies this review surfaced outside its scope are tracked separately: #949 and #950.

Correct statements a documentation audit found wrong against the code
at the current pin. Input from an observer terminal connection is
accepted and makes that attachment the controller rather than being
dropped, in the canon, the terminal guide and the persistent terminal
XML comments. A durable event cursor belongs to its aggregate and
retained store, so an embedded host with events.persist can resume
across restarts. The server client factory copies every configured
non-identity option, the terminal replay bound counts UTF-16 code
units, and the PID guard is cited by its code rather than a stale
line range.

The guides state that generate reads the session's context, that a
null Password still lets client-wide headers authenticate, where the
media capability falls in header precedence, that a terminal stream
settling does not prove a command finished, the subscriber overflow
exception, the MediaReferences option and the durable event count.
The event stream idle window keeps running while code holds an
event, and the playground no longer promises telemetry in 1.1.
@Blind-Striker
Blind-Striker added this pull request to the merge queue Nov 17, 2026
Merged via the queue into master with commit 3cf56a2 Nov 17, 2026
17 checks passed
@Blind-Striker
Blind-Striker deleted the docs/2.0.0-audit-consumer branch November 17, 2026 12:31
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