Repository navigation
Conversation
5 tasks done
samuv
marked this pull request as ready for review
September 25, 2026 08:48
samuv
force-pushed
the
impl/sdk-high-level-parity-coverage
branch
from
September 25, 2026 08:56
844ad94 to
5583070
Compare
samuv
force-pushed
the
impl/sdk-high-level-parity-coverage
branch
2 times, most recently
from
September 25, 2026 11:24
79e74a5 to
e6b77bb
Compare
samuv
force-pushed
the
impl/sdk-high-level-parity-coverage
branch
from
September 25, 2026 12:24
e6b77bb to
b0f2870
Compare
Add runnable workflow examples and document the server, SDK, and application boundary for #1471. Signed-off-by: Samuele Verzi <[email protected]>
Fail closed on unknown TUI builtin names, cover indirect public SDK paths, and clarify mixed TUI workflows for #1471. Signed-off-by: Samuele Verzi <[email protected]>
Keep the descriptor and TUI builtin inventories aligned with the direct and broker MCP refresh paths after rebasing onto main. Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Cover the two upstream guardrail RPCs with public session methods, classify the new TUI builtin, and refresh SDK reference output. Signed-off-by: Samuele Verzi <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]>
samuv
force-pushed
the
impl/sdk-high-level-parity-coverage
branch
from
September 25, 2026 12:47
d40dc3c to
86073aa
Compare
peppescg
approved these changes
Sep 25, 2026
peppescg
left a comment
Contributor
There was a problem hiding this comment.
Approving: none of the points below are blocking. As the PR itself says, it must still wait for Plan/Interface PR #1916 to be approved and merged.
What I checked
- RPC gate: the classification set must exactly equal the
HarnessServiceandScheduleServicedescriptors. The AST witness counts onlyunary/streamcalls inside the declared public member, and a dedicated test proves that a bare descriptor reference does not count. The two indirect paths are proven against a recording transport. The gate fails closed rather than passing vacuously. - Guardrail methods: both carry session affinity and caller headers. On HTTP they raise
UnsupportedFeatureErrorwithout sending a request. Returning the generated response types matches the existingagents.list,learnedSkills.*anddreamPlans.*precedent. - TUI table: all 25 SDK operation names in it exist in the API report.
effort→Client.sessions.forkis correct, since/effortapplies the change through a fork-resume (ADR 0068). - Boundaries: the SDK has no TUI imports, and builtin dispatch is unchanged.
Optional follow-ups
- The lifetime-pipe fixture now differs from production.
rawPipemakes the read end nonblocking soClosewakes the watcher on Linux. ProductionadoptLifetimePipe(cmd/mecated/daemonhosting.go) adopts the inherited descriptor as-is. A pipe from Nodespawnis normally blocking, so there the watcher goroutine lingers until EOF or process exit. Shutdown does not hang, becauseClosestill returns. The test therefore now asserts a property that production doesn't have for that descriptor kind. Please either document that the test covers only pollable descriptors, or moveSetNonblockintoadoptLifetimePipe(but not the stdin mode, since stdin is shared). This change also looks out of scope for an SDK-parity PR. - SDK names in the TUI table aren't checked mechanically. AC2.2 is inspection-only, so a renamed SDK method would leave a stale row without failing CI. A cheap guard would assert that each
sdkOperationappears insdk/typescript/etc/mecatl-sdk.api.md.
Nits
TestSDKHighLevelParity_Scenario2_BuiltinDispatchUnchangedpins 8 user-facing builtins as absent from the known-name registry. Those includedream,reflectandguardrails. The test freezes an existing inconsistency rather than surfacing it; this may deserve its own issue.invocationPathmaps anySessionImplmethod toSession.<name>, including private ones. It's harmless in practice, because the row's operation is type-checked against the publicSessioninterface.
Signed-off-by: Samuele Verzi <[email protected]>
This was referenced Sep 25, 2026
Merged
jbeda
added a commit
that referenced
this pull request
Sep 25, 2026
…mit-coauthor-guidance * origin/main: (32 commits) docs: plan optional native Kubernetes execution provider (#1579) feat(mecatui): restore session status metrics (#1891) docs(plan): bound agent inventory viewport (#1946) docs: include user-docs in matlatl and use local documentation links (#1934) feat(mecatui): bound sessions inventory (#1944) feat(studio): show session delegation activity (#1907) docs(plan): define Studio session activity (#1885) Release TypeScript SDK v0.4.0 (#1940) Release v0.0.41 (#1941) docs(mecatui): plan bounded sessions inventory (#1906) feat(studio): add exact plan control and authorization review prerequisite (#1909) test(app): eliminate real ToolHive probe deadline wait (#1937) docs(plan): define Studio chat approvals and exact plan control (#1888) test(sdk): enforce SDK/TUI high-level parity (#1471) (#1917) docs(plan): propose SDK high-level parity coverage (#1471) (#1916) docs: improve gRPC schema table readability (#1842) test(app): eliminate real waits in durable learning tests (#1933) feat(studio): align chat transcript and composer (#1886) docs(plan): define Studio chat transcript and composer (#1880) feat: correlate provider requests with the root session (#1883) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Complete #1471 against proposed Plan / Interface PR #1916.
StreamSessionEventsandStreamSessionLivehave separate raw-only rationales. The gate detects new descriptors and missing invocation witnesses.Session.guardrailCoverage()andSession.guardrailReviewDetail()over the new gRPC-only guardrail RPCs, with session affinity and existing HTTP unsupported-feature behavior.Development stage
Contract linkage
docs/acceptance/sdk-high-level-parity-coverage.mdin Plan PR docs(plan): propose SDK high-level parity coverage (#1471) #1916.Interface conformance
Two additive public TypeScript
Sessionmethods invoke existing gRPC descriptors. There is no protobuf, exported Go, CLI, configuration, event, persistence, or TUI dispatch change. API Extractor reports and generated public reference are updated. The SDK release workflow generates the changelog entry.Issue relationship
Closes #1471.
Type of change
Test plan
task sdk:lint sdk:typecheck sdk:test sdk:examples:typecheck: 347 SDK unit tests passed.task sdk:e2e: 35 offline tests passed, including all four example entry points.task sdk:api:check sdk:docs:check: passed.task docsandtask site:build: passed.task lint: passed across repository modules.ac-trace: 11 acceptance criteria, zero missing proofs. Strict landed-plan gating awaits plan merge.Changes
sdk/typescript/test/high-level-surface.test.tscmd/mecatui/ui/sdk_high_level_parity_test.gosdk/typescript/src/client.ts,sdk/typescript/test/guardrails.test.tssdk/typescript/examples/,sdk/typescript/e2e/cmd/mecated/rawpipe_unix_test.go.github/workflows/ci.ymluser-docs/building/typescript-sdk/index.md,docs/architecture.mdUser-facing change
SDK developers gain two session guardrail diagnostic methods and four documented runnable workflows. The two low-level event streams remain raw-only. The SDK does not import TUI internals.
Special notes for reviewers
Plan PR #1916 is unmerged; this implementation must wait for its approval and merge.
The 84-row invocation gate inspects direct SDK source calls; it does not execute every public method and branch. Recording-transport tests exercise the two indirect paths and both new guardrail methods. AC2.2 asks reviewers to inspect the TUI-to-SDK operation mapping; the Go gate enforces the builtin key set and category shape.
CI's existing lifetime-pipe test timed out once in the Linux race shard and passed on retry. The fixture now makes its read descriptor pollable before adoption, so Close can wake the blocked watcher. Its Scenario 8 race tests passed locally across 20 repetitions; the new CI run verifies the Linux result.
The macOS storage job then hit its 15-minute limit after a 10-minute Go cache restore. The job timeout is now 30 minutes; its tests and FreeBSD cross-build are unchanged.