Skip to content

Source watch: record shared-events.ts for the shared event feed #901

Closed

Description

@Blind-Striker

What

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.

Refs #851

Why it is separate

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.

Activity

  1. added this to the Next milestone on Nov 15, 2026
  2. Blind-Striker commented on Nov 15, 2026

    @Blind-Striker
    CollaboratorAuthor

    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/tool/runtime.ts: model-facing tool naming.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions