From 254f751ef3ec86244e80d44a281f4518d3e8bcbf Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Fri, 30 Oct 2026 14:43:36 -0700 Subject: [PATCH] Document minimal runtime test fixture assertions --- .../remote-runtime-request-connection.integration.test.ts | 2 ++ .../structured-agent-session-legacy-command-wait.test.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/runtime/remote-runtime-request-connection.integration.test.ts b/src/main/runtime/remote-runtime-request-connection.integration.test.ts index a24978c5a25..6f263dce719 100644 --- a/src/main/runtime/remote-runtime-request-connection.integration.test.ts +++ b/src/main/runtime/remote-runtime-request-connection.integration.test.ts @@ -117,6 +117,7 @@ describe('remote runtime request connection integration', () => { ] const clientEventListeners = new Set<(event: RuntimeClientEvent) => void>() const subscriptionCleanups = new Map void>() + // oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: this socket fixture implements every runtime method used by client-events subscribe and repo.list. const runtime = { configureNotificationDismissalStore: () => {}, getRuntimeId: () => 'events-runtime-test', @@ -285,6 +286,7 @@ describe('remote runtime request connection integration', () => { listener(event) } } + // oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: this sleep socket fixture implements every runtime method reached by its subscriptions and list requests. const runtime = { configureNotificationDismissalStore: () => {}, getRuntimeId: () => 'remote-sleep-runtime-test', diff --git a/src/main/runtime/rpc/methods/structured-agent-session-legacy-command-wait.test.ts b/src/main/runtime/rpc/methods/structured-agent-session-legacy-command-wait.test.ts index 626de05993d..4cee22e028b 100644 --- a/src/main/runtime/rpc/methods/structured-agent-session-legacy-command-wait.test.ts +++ b/src/main/runtime/rpc/methods/structured-agent-session-legacy-command-wait.test.ts @@ -60,7 +60,7 @@ it.each(['accepted', 'pending', 'oldest'] as const)( ) }, { - // SAFETY: the installed-host path does not read the runtime. + // oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: the installed-host registry path never reads runtime methods. runtime: {} as RpcContext['runtime'], clientId: QUEUED_RIG_CALLER.callerKey, clientKind: 'runtime',