You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Source watch: record shared-events.ts for the shared event feed #901
Record upstream's packages/client/src/shared-events.ts as a watched source for the SDK's shared event feed. The feed (EventsClient's one shared source per root client, with ADR-0041 as its decision) ports that file's behaviour at the pin (v2.3.0). The SDK's source watch doesn't list it yet, so a pin refresh that changes it would go unnoticed.
How a hand-written door's upstream source enters spec/source-watch.json and spec/receipt.json is decided with the generator's provenance tooling. The shared-feed change shipped without touching the spec/ files, so that route can be settled once, on its own.
Done when
spec/source-watch.json lists packages/client/src/shared-events.ts, along with whatever the receipt route requires (its test file, if watched sources carry tests).
spec/receipt.json and spec/SNAPSHOT.md are updated through the generator's documented provenance route, not by hand. generate --verify and the receipt checks pass.
docs/architecture/client-runtime.md, or ADR-0041's evidence line, names the watched file, if canon says where watched sources are recorded.
The client-hosted MCP door (#529) mirrors upstream behaviour from these files at the pin (v2.3.0). Their source-watch rows belong to this issue's provenance route, alongside shared-events.ts:
packages/client/src/mcp.ts: the first-party responder, reconnect schedule, close and endpoint builder.
packages/server/src/handlers/mcp.ts: the attach handler, plus the token route's origin check, sentinel and scope.
packages/core/src/mcp/index.ts: attach, stacking and fallback.
packages/core/src/mcp/socket-client.ts: the server side of the socket client.
packages/core/src/pty/ticket.ts and packages/protocol/src/groups/pty.ts are already watched. Their behaviour notes may need the client-MCP ticket scope added, without duplicating the path rows.
#529 does not touch spec/source-watch.json, spec/receipt.json or spec/SNAPSHOT.md.
Activity
Blind-Striker commentedon Nov 15, 2026
The client-hosted MCP door (#529) mirrors upstream behaviour from these files at the pin (
v2.3.0). Their source-watch rows belong to this issue's provenance route, alongsideshared-events.ts:packages/client/src/mcp.ts: the first-party responder, reconnect schedule, close and endpoint builder.packages/server/src/handlers/mcp.ts: the attach handler, plus the token route's origin check, sentinel and scope.packages/core/src/mcp/index.ts: attach, stacking and fallback.packages/core/src/mcp/socket-client.ts: the server side of the socket client.packages/core/src/tool/runtime.ts: model-facing tool naming.packages/core/src/pty/ticket.tsandpackages/protocol/src/groups/pty.tsare already watched. Their behaviour notes may need the client-MCP ticket scope added, without duplicating the path rows.#529 does not touch
spec/source-watch.json,spec/receipt.jsonorspec/SNAPSHOT.md.