Skip to content

Pinned the api fork that declares the notification channel API. - #19

Closed
moetemp wants to merge 3 commits into
moe/AI-198-ch-srv-0-test-infrafrom
moe/AI-198-ch-srv-1-api-pin
Closed

moetemp wants to merge 3 commits into
moe/AI-198-ch-srv-0-test-infrafrom
moe/AI-198-ch-srv-1-api-pin

Conversation

@moetemp

@moetemp moetemp commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

This PR pins the api fork that declares the notification channel API, plus what the pin forces.

What changed?

  • go.mod points go.temporal.io/api at github.com/moetemp/api-go.
  • Regenerated the frontend clients, the logtags and routing-key interceptors and workflowservicemock.
  • cmd/tools/getproto maps the new notification/v1 package.
  • The five channel RPCs (NotifyChannel, RegisterChannelListener, UnregisterChannelListener, PollChannel, DescribeChannel) get their rows in the method metadata, the frontend and persistence quotas, the redirection and DC policy tables and the telemetry list. The frontend answers them with Unimplemented for now.
  • The WORKFLOW_NOTIFICATION_CHANNEL_SUBSCRIBED and _UNSUBSCRIBED events are never buffered, like every other event a command writes.

Part of AI-198 (epic AI-37).

Why?

Nothing here is a feature. Everything in it is forced by the pin. The service has to implement every RPC the api declares, and the tables and tests that walk every method or event type fail on one without a row. Channel writes get the same priority and forwarding as a Signal, and PollChannel sits with the other long polls. The channel service in the next PRs replaces the stubs.

How did you test it?

Link to a test plan if any -

  • Unit Tests
  • Staging
  • End to End Tests

I ran the unit tests for common/rpc, common/api, the history builder, the persistence client and the frontend. That includes TestGlobalAPI and TestBufferEvent, which walk every method and event type. The functional tests compile. Lint and the errortype vet are clean.

The pin adds five WorkflowService RPCs, so the generated clients, interceptors and mock follow, and the frontend answers the RPCs with Unimplemented until the channel service serves them.
Every WorkflowService method needs a row in these tables, and the tests that walk the service fail on a method without one. Channel writes are treated like a Signal and the long poll like the other polls.
An event a command writes is never buffered, and the buffer test walks every event type the pinned API declares.
@moetemp

moetemp commented Oct 6, 2026

Copy link
Copy Markdown
Owner Author

Paused per the 2026-10-05 design review (the decision record is on the proposal page, section 14). Resumes in phase 2 with the CHASM notification work. The branch stays as a pin.

@moetemp moetemp closed this Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant