Repository navigation
feat(sdk): expose server discovery - #1559
Conversation
061d0d6 to
4bd88d8
Compare
4bd88d8 to
0b3c2ac
Compare
Panel review — PR #1559 (feat(sdk): expose server discovery)Fully or partially written by an AI agent. Fixed point: Four orthogonal axes: Spec, Standards, Test adequacy, Domain (secure-code-reviewer, software-architect, library-reuse-reviewer, code-duplication-reviewer). Findings are not merged across axes. Spec — does this implement what was asked?Source: No findings. All 13 ACs traced and confirmed against the implementation, including the trickier ones: generation-race semantics (AC2.1–2.3), the non-echo rule for rejected identity values (AC1.3/AC3.3), and cross-language registry parity (AC4.3). Nothing from the "Out of scope" table appears in the diff. Standards — does this follow project conventions?Sources read: ADR 0304, ADR 0248, ADR 0245, AGENTS.md
Test adequacy — do the tests independently prove the contract?
Everything else independently confirmed adequate: all 5 deployment-rejection rules tested independently, genuine Domain — specialist findingsPanel: secure-code-reviewer, software-architect, library-reuse-reviewer, code-duplication-reviewer Ship-blockers (1)
Important (4)
Advisory (2)
Gaps
Summary
Most important single issue: the compatibility-cache blocker — a malformed-but-harmless server response field can now fail every RPC on the client, not just the new PANEL: ship_blockers=1 important=5 advisory=4 reviewer_failures=0 |
|
Thanks for the thorough review — addressed in
I intentionally left three reviewed items unchanged:
Verification is green locally: all SDK gates (50 files, 276 tests), |
Co-Authored-By: OpenAI Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]> Co-Authored-By: OpenAI Codex <[email protected]>
9b3f2c1 to
d6522d9
Compare
Upstream released the TypeScript SDK v0.2.0 with `client.server.compatibility()` and `client.server.info()` (#1559), which cover two of this branch's SDK additions. Resolution: drop the branch's duplicate `client.compatibility()` / `client.serverInfo()` in favour of upstream's namespace; keep `session.controls(runId)` and the stdlib-JSON Timestamp/Duration decoding; regenerate the API reports and reference docs; point Studio's compatibility and About-daemon readers at `client.server.*` (whose stricter validation the Studio test fixtures now honour). Studio's ADRs move to 0345/0346 to clear the number upstream took for 0343. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Summary
client.servernamespace for compatibility and safe server identity.server.compatibility()andserver.info()without coupling unrelated SDK operations to optional projection fields.Development stage
Contract linkage
be8a8f13334fb14f16c06022ce494288d385fddcdocs/acceptance/sdk-server-discovery.mdInterface conformance
GetCompatibilityInfo,GetServerInfo, and HTTP peer contracts.Review fixes
raw.tsruntime dependency on the server namespace.Issue relationship
Closes #1470
Test plan
task sdk:lint sdk:typecheck sdk:test sdk:build sdk:api:check(50 files, 276 tests)task linttask testtask docstask site:buildgo run ./cmd/mecademoThe whole-repository
task ac-trace-strictcurrently stops on the unrelated pre-existingcallmcpwithquery-broker-support.mdstatusproposed. The equivalent targeted strict invocation passed:The directing user waived an additional post-repair panel rerun and requested that the verified fixes be pushed.
Changes
sdk/typescript/src/server.tssdk/typescript/src/raw.tssdk/typescript/src/client.tsclient.serverwiringUser-facing change
Applications can inspect typed server compatibility, capabilities, features, posture, deployment identity, and safe build information before creating a session. Unknown open-string values remain observable, and gRPC/HTTP expose the same high-level behavior and typed failures.
Special notes for reviewers
llmProviderDisplayEndpointis display-only diagnostic data, never connection configuration.server.compatibility()starts a fresh generation; ordinary operations share the newest generation.buildIdvalidation remains the approved trim-plus-nonempty contract.URL.pathnamesemantics.