Repository navigation
chore(spec): watch the shared event feed and the client-hosted MCP sources - #916
Merged
Merged
Conversation
…urces The shared event feed ports packages/client/src/shared-events.ts at v2.3.0, and the client-hosted MCP door mirrors upstream's responder, attach handler, attachment stack, socket transport and tool naming. The source watch now pins those files, with the shared feed's upstream test as a behavioral oracle, and the connect ticket gains its client-MCP scope. The receipt is re-prepared at v2.3.0 and applied, so it records the new watched sources; the document and operations are unchanged.
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.
What
The source watch (
spec/source-watch.json) now pins the upstream files at the pin (v2.3.0,a6b15d33) that the shared event feed and the client-hosted MCP door mirror, so a refresh that changes them is reviewed before the pin moves.Closes #901
packages/client/src/shared-events.tsEventsClientports (ADR-0041): lazy single source, local type filter withserver.connected, marker-only replay, 4,096-event per-subscription bound, prefix before an ending, last leave stops the sourcepackages/client/test/shared-events.test.tspackages/client/src/mcp.tspackages/server/src/handlers/mcp.tspackages/core/src/mcp/index.tspackages/core/src/mcp/socket-client.tspackages/core/src/tool/runtime.ts<client name>_<tool name>)packages/core/src/pty/ticket.tsandpackages/protocol/src/groups/pty.tswere already watched. The ticket row gains a second behaviour for the per-target and per-location scope that the client MCP ticket uses; the PTY group's note now names the client MCP token route beside the PTY ticket routes. No path row is duplicated.Every anchor occurs once in its file at the pin, and every hash is the file's SHA-256 at the pin. The client-hosted MCP door itself is not in the SDK yet (Refs #529); its rows carry the
opencode-sdk-dotnetowner and describe upstream's behaviour only.Provenance route
spec/receipt.jsonandspec/SNAPSHOT.mdwere written by the synchronizer, not by hand (spec/SNAPSHOT.md, Refresh procedure):refresh-spec --ref v2.3.0prepared a receipt from the accepted state, andrefresh-spec --applyinstalled it. Against the committed receipt, onlywatchedSourceschanged (95 to 102 entries, plus the ticket's new anchor, every anchor matched);openapi.jsonis byte-identical, the operation delta is +0 -0, andSNAPSHOT.mdmoves only itsDate:line, which apply renders.docs/architecture/client-runtime.mdgains a one-line relay in the shared-feed section that links the source watch's canonical home.Verification
Local check on Windows (UNDERDARK, .NET SDK 11.0.100, Bun 1.4.4): slopwatch, the Release build, both format passes,
verify-clones,opencode-tool --help,generate --verify,refresh-spec --verify, andOpenCode.Sdk.Tools.TestswithoutNativeAot(2,826 passed, 0 failed). No file undersrc/ortests/changes, so no product test project is in scope.