Skip to content

docs: define SDK server discovery surface - #1551

Merged
samuv merged 2 commits into
mainfrom
plan/sdk-server-discovery
Sep 15, 2026
Merged

samuv merged 2 commits into
mainfrom
plan/sdk-server-discovery

Conversation

@samuv

@samuv samuv commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • define the high-level client.server compatibility and safe-identity namespace
  • settle open feature/posture constants, defensive response validation, and typed errors
  • specify explicit-refresh and ordinary-operation cache generations under concurrency
  • record gRPC/HTTP parity, API-report, registry-guard, and focused documentation acceptance

Development stage

  • Plan / Interface — Bounded/Architectural behavioral and exact-interface contract; no implementation
  • Implementation — based on an approved, merged Plan / Interface PR
  • Combined — compact one-task Bounded/Architectural exception
  • Spike / Routine — acceptance-plan spine exempt

Contract linkage

  • Work classification: Architectural
  • Classification rationale: adds durable public TypeScript SDK resource, projection, constant, validation, and compatibility-cache contracts before session creation
  • Decision record: ADR 0304, applying ADR 0248 and ADR 0245
  • Human waiver of spine: No
  • Acceptance plan: docs/acceptance/sdk-server-discovery.md
  • Human decisions resolved and recorded: Yes
  • Plan / Interface PR: This PR
  • Approved commit baseline: absent until this PR merges
  • Combined/exemption rationale: N/A — Split delivery

Interface conformance

The proposed contract adds Client.server, the Server/ServerCompatibility/ServerInfo projections, ServerFeature and ServerPosture const/type pairs, and a deprecated watch-feature alias. It changes no server wire, Go, CLI/config, event, or persistence interface.

Issue relationship

Relates to #1470

Type of change

  • Behavioral/interface plan
  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation/process
  • Other (describe):

Test plan

Baseline checks

  • Acceptance-plan checker
  • Linting (task lint) — no implementation or Go source change
  • Offline test suite (task test) — no implementation change
  • Offline demo (go run ./cmd/mecademo) — no runtime change
  • Markdown changed: docs generation/link checks (task docs)
  • User docs/user-facing behavior changed: site build (task site:build) — the implementation PR owns the focused guide
  • Guarded engine API affected: compatibility check (task api:check) — no engine API change
  • Intentional engine API change: task api:update + engine/CHANGELOG.md — not applicable
  • Landed plan: strict acceptance trace (task ac-trace-strict) — plan is proposed
  • Final implementation review: /panel-review — implementation has not begun

Additional authoring gate: check-acceptance-plan-test.sh passes.

Changes

File Change
docs/acceptance/sdk-server-discovery.md Four-scenario behavioral and exact-interface contract
docs/acceptance/README.md Acceptance-plan catalogue entry

User-facing change

None in this PR. It defines the contract for the later implementation PR.

Special notes for reviewers

@samuv samuv self-assigned this Sep 15, 2026
@samuv
samuv added this pull request to stack #1560 September 15, 2026 12:55
@samuv samuv mentioned this pull request Sep 15, 2026
8 of 11 tasks
Co-Authored-By: OpenAI Codex <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
@samuv
samuv force-pushed the plan/sdk-server-discovery branch from 996619e to 569d6ea Compare September 15, 2026 13:03
@samuv
samuv merged commit be8a8f1 into main Sep 15, 2026
29 checks passed
@samuv
samuv deleted the plan/sdk-server-discovery branch September 15, 2026 14:17
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 15, 2026
2 tasks
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.

2 participants