Skip to content

docs(hosting): document the background service's config administration (#213, S-e) - #940

Merged
Blind-Striker merged 5 commits into
masterfrom
feat/213-service-config-guide
Nov 17, 2026
Merged

Blind-Striker merged 5 commits into
masterfrom
feat/213-service-config-guide

Conversation

@Blind-Striker

@Blind-Striker Blind-Striker commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

📝 Description

What does this PR do?

The last slice of #213: the canon, the consumer guides and the CHANGELOG for OpenCodeServiceConfiguration, the typed administration of the background service's config that #926 (read and write path), #930 (every set and unset) and #936 (remote access on through the installed CLI) shipped. Documentation only: no code, no test, no spec/ file.

  • docs/architecture/client-runtime.md:
    • the environment and roots the configuration doors read;
    • the caller-token and failure-plane statements extended to the configuration operations;
    • the migration paragraph corrected to what ships: both the config and the registration donor are written as the CLI's decoded UTF-8 text, and a donor whose decoded text still begins with U+FEFF is not migrated;
    • a configuration-administration section covering the shared read, the write publication, the nine changing operations and which of them stop the service, the CORS policy and its bounded oracle evidence, and remote-on;
    • the refusal divergence with its reason and reversal.
  • docs/guide/connection-modes.md and docs/guide/errors-and-responses.md: configuring the background service from .NET, linking the canon for the rules.
  • CHANGELOG.md: the OpenCodeServiceConfiguration surface under [Unreleased], and the donor-decoding fix.
  • GLOSSARY.md: one definition, "SDK-managed write".
  • docs/ROADMAP.md: the remote-access research item now names what Background-service configuration administration: keep or drop #213 ships and what stays open (the maintainer approved the text, 2026-11-17).

Every new canon sentence either describes shipped code (each checked against the code at 2b61e55c) or records a decision already made: "maintainer's decision, 2026-11-15, #213". That covers:

  • tunnel setup delegated to the installed CLI;
  • the route treated as a credential;
  • the refusal divergence with its reason and reversal.

The relation between CliCommand, Channel and Environment is stated as a fact: the SDK reads the config they select together and does not check that they agree.

"SDK-managed write" is defined in GLOSSARY.md as exactly these members of OpenCodeServiceConfiguration (at 2b61e55c):

Member Public door Write path
GetOrCreatePasswordAsync OpenCodeServiceConfiguration.cs:76-81 ServiceConfigEditor.cs:101-112 (writes when absent or empty)
SetDisabledAsync :118-128 ServiceConfigEditor.cs:16-17, 72-87
SetHostnameAsync :94-106 :12-13, 72-87
SetPortAsync :140-152 :20-21, 72-87
SetPasswordAsync :165-177 :24-25, 72-87
SetCorsOriginsAsync :190-220 :28-29, 72-87
SetEnvironmentVariableAsync :234-247 :32-39, 72-87
DisableRemoteAsync :259-268 :42-51, 72-87
UnsetAsync :280-295 :54-56, 72-87
UnsetEnvironmentVariableAsync :308-320 :59-70, 72-87

Shared publication is ServiceConfigStore.cs:114-150. ReadAsync and EnableRemoteAsync are excluded, although their shared read can migrate or repair a file.

Related Issue(s):

🔄 Type of Change

  • 📚 Documentation update

🎯 Protocol & API Surface

  • No change to the public API surface
  • The pinned snapshot (spec/) is untouched
  • Nothing under external/ was hand-edited

🧪 Testing

How has this been tested?

Local check on cc73d615 (macOS arm64, on master dccfb731 after #936 merged), all green: slopwatch, both Release builds, both format passes, verify-clones, Tools tests (2861, including the canon-source guard and the documentation gates), SDK tests (9718), ServiceElection (22), --help, generate --verify, and the oracle pair. Links and anchors, the angle-bracket rule, table pipes, wrapping and the protected #848/#902 passages were checked statically.

Review: a fresh cross-family read checked every sampled sentence against the code and found nothing blocking. Its findings were fixed: a dropped env clause, a dropped stop reason, and the CHANGELOG's naming. The Windows config-publication rename is recorded in the existing Windows divergence entry, per the maintainer's decision on #939.

Known follow-ups

@Blind-Striker Blind-Striker added this to the Next milestone Nov 16, 2026
Base automatically changed from feat/213-service-config-remote-on to master November 17, 2026 00:06
@Blind-Striker
Blind-Striker force-pushed the feat/213-service-config-guide branch from 61aff4a to cc73d61 Compare November 17, 2026 00:21
@Blind-Striker
Blind-Striker marked this pull request as ready for review November 17, 2026 00:21
@Blind-Striker
Blind-Striker added this pull request to the merge queue Nov 17, 2026
Merged via the queue into master with commit 8633b29 Nov 17, 2026
13 checks passed
@Blind-Striker
Blind-Striker deleted the feat/213-service-config-guide branch November 17, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant