From 5a4debad2a5a54f587e2bf2f2d86c96081e2b655 Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 05:30:18 -0800 Subject: [PATCH 01/20] fix(mcp): name the reason on the workflow MCP serve route's malformed-message 400s (#10482) The serve route builds its own JSON-RPC 400s for an unparseable body, an invalid notification, a non-request message and an invalid request, so they reached the route log line with no reason. Record the JSON-RPC code and a fixed reason for each; response bodies and statuses are unchanged. --- .../api/mcp/serve/[serverId]/route.test.ts | 32 ++++++++++++++ .../sim/app/api/mcp/serve/[serverId]/route.ts | 43 +++++++++++-------- 2 files changed, 57 insertions(+), 18 deletions(-) diff --git a/apps/sim/app/api/mcp/serve/[serverId]/route.test.ts b/apps/sim/app/api/mcp/serve/[serverId]/route.test.ts index 6f0a61fd6a1..f401693b120 100644 --- a/apps/sim/app/api/mcp/serve/[serverId]/route.test.ts +++ b/apps/sim/app/api/mcp/serve/[serverId]/route.test.ts @@ -141,6 +141,7 @@ vi.mock('@/lib/workflows/executor/execute-service', () => ({ })) import { PERSONAL_KEY_DENIED } from '@/lib/api-key/policy-messages' +import { readResponseError } from '@/lib/core/utils/response-error' import { DELETE, GET, POST } from '@/app/api/mcp/serve/[serverId]/route' executionLimitsMockFns.mockGetMaxExecutionTimeout.mockReturnValue(60_000) @@ -821,6 +822,37 @@ describe('MCP Serve Route', () => { expect(fetchMock).not.toHaveBeenCalled() }) + it.each([ + ['an unparseable body', '{ this is not json', ErrorCode.ParseError, 'invalid_json'], + [ + 'a JSON-RPC 1.0 envelope', + JSON.stringify({ jsonrpc: '1.0', id: 1, method: 'ping' }), + ErrorCode.InvalidRequest, + 'not_a_request', + ], + ])('names why it refuses %s on the route log line', async (_label, body, code, reason) => { + dbChainMockFns.limit.mockResolvedValueOnce([ + { + id: 'server-1', + name: 'Public Server', + workspaceId: 'ws-1', + isPublic: true, + createdBy: 'owner-1', + }, + ]) + + const req = new NextRequest('http://localhost:3000/api/mcp/serve/server-1', { + method: 'POST', + body, + }) + + const response = await POST(req, createRouteContext({ serverId: 'server-1' })) + + expect(response.status).toBe(400) + expect((await response.clone().json()).error.code).toBe(code) + expect(readResponseError(response)).toEqual({ errorCode: String(code), errorReason: reason }) + }) + it('rejects streamed MCP request bodies that exceed the cap without content-length', async () => { const cancelSpy = vi.fn() dbChainMockFns.limit.mockResolvedValueOnce([ diff --git a/apps/sim/app/api/mcp/serve/[serverId]/route.ts b/apps/sim/app/api/mcp/serve/[serverId]/route.ts index 02ef61e0dbe..fe335424ea1 100644 --- a/apps/sim/app/api/mcp/serve/[serverId]/route.ts +++ b/apps/sim/app/api/mcp/serve/[serverId]/route.ts @@ -67,6 +67,7 @@ import { import { getMaxExecutionTimeout } from '@/lib/core/execution-limits' import { acceptsMediaType } from '@/lib/core/utils/media-types' import { generateRequestId } from '@/lib/core/utils/request' +import { describeResponseError } from '@/lib/core/utils/response-error' import { encodeSSE, encodeSSEComment, SSE_HEADERS } from '@/lib/core/utils/sse' import { assertContentLengthWithinLimit, @@ -151,6 +152,17 @@ function createError( } } +/** A 400 for a body that is not a usable JSON-RPC message, with its reason kept for the route's log line. */ +function malformedMessageResponse( + code: ErrorCode, + message: string, + reason: 'invalid_json' | 'invalid_notification' | 'not_a_request' | 'invalid_request' +): NextResponse { + const response = NextResponse.json(createError(0, code, message), { status: 400 }) + describeResponseError(response, { errorCode: String(code), errorReason: reason }) + return response +} + const SESSION_SIGNAL_STATUSES = new Set([400, 401, 404]) /** @@ -751,20 +763,17 @@ export const POST = withRouteHandler( ) } if (request.signal.aborted) return clientCancelledJsonRpcResponse(0) - return NextResponse.json(createError(0, ErrorCode.ParseError, 'Invalid JSON body'), { - status: 400, - }) + return malformedMessageResponse(ErrorCode.ParseError, 'Invalid JSON body', 'invalid_json') } const message = body as JSONRPCMessage if (isJSONRPCNotification(message)) { const notificationValidation = mcpJsonRpcNotificationSchema.safeParse(message) if (!notificationValidation.success) { - return NextResponse.json( - createError(0, ErrorCode.InvalidRequest, 'Invalid JSON-RPC message'), - { - status: 400, - } + return malformedMessageResponse( + ErrorCode.InvalidRequest, + 'Invalid JSON-RPC message', + 'invalid_notification' ) } @@ -773,21 +782,19 @@ export const POST = withRouteHandler( } if (!isJSONRPCRequest(message)) { - return NextResponse.json( - createError(0, ErrorCode.InvalidRequest, 'Invalid JSON-RPC message'), - { - status: 400, - } + return malformedMessageResponse( + ErrorCode.InvalidRequest, + 'Invalid JSON-RPC message', + 'not_a_request' ) } const requestValidation = mcpJsonRpcRequestSchema.safeParse(message) if (!requestValidation.success) { - return NextResponse.json( - createError(0, ErrorCode.InvalidRequest, 'Invalid JSON-RPC message'), - { - status: 400, - } + return malformedMessageResponse( + ErrorCode.InvalidRequest, + 'Invalid JSON-RPC message', + 'invalid_request' ) } From e460b2fb071e654d3fdadb7084e327ce47b0006a Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 05:42:27 -0800 Subject: [PATCH 02/20] fix(neo4j): connect TLS sessions to the validated address (#10481) * fix(neo4j): connect TLS sessions to the validated address * fix(neo4j): bound the port and honour aborts during relay setup * fix(neo4j): keep the driver error on relay failures and move socket tests to integration --- .../api/contracts/tools/databases/neo4j.ts | 6 +- .../lib/internal/neo4j/client.integration.ts | 156 +++++++++++++++ apps/sim/lib/internal/neo4j/client.test.ts | 28 +++ apps/sim/lib/internal/neo4j/client.ts | 178 ++++++++++++++++-- .../sim/lib/internal/neo4j/operations.test.ts | 6 +- apps/sim/lib/internal/neo4j/operations.ts | 14 +- 6 files changed, 361 insertions(+), 27 deletions(-) create mode 100644 apps/sim/lib/internal/neo4j/client.integration.ts create mode 100644 apps/sim/lib/internal/neo4j/client.test.ts diff --git a/apps/sim/lib/api/contracts/tools/databases/neo4j.ts b/apps/sim/lib/api/contracts/tools/databases/neo4j.ts index 5077dc21abe..0d8f41bb028 100644 --- a/apps/sim/lib/api/contracts/tools/databases/neo4j.ts +++ b/apps/sim/lib/api/contracts/tools/databases/neo4j.ts @@ -12,7 +12,11 @@ import { export const neo4jConnectionBodySchema = z.object({ host: z.string().min(1, 'Host is required'), - port: z.coerce.number().int().positive('Port must be a positive integer'), + port: z.coerce + .number() + .int() + .min(1, 'Port must be between 1 and 65535') + .max(65_535, 'Port must be between 1 and 65535'), database: z.string().min(1, 'Database name is required'), username: z.string().min(1, 'Username is required'), password: z.string().min(1, 'Password is required'), diff --git a/apps/sim/lib/internal/neo4j/client.integration.ts b/apps/sim/lib/internal/neo4j/client.integration.ts new file mode 100644 index 00000000000..1a898e5f725 --- /dev/null +++ b/apps/sim/lib/internal/neo4j/client.integration.ts @@ -0,0 +1,156 @@ +/** + * Encrypted connections against a real loopback TLS listener: what reaches the wire (address, + * SNI, first Bolt bytes) is only observable on a socket. + */ +import { execFile } from 'node:child_process' +import { mkdtempSync, readFileSync, rmSync } from 'node:fs' +import type { AddressInfo, Socket } from 'node:net' +import { tmpdir } from 'node:os' +import { join } from 'node:path' +import { + createServer as createTlsServer, + getCACertificates, + setDefaultCACertificates, +} from 'node:tls' +import { promisify } from 'node:util' +import { + inputValidationMock, + inputValidationMockFns, +} from '@sim/testing/mocks/input-validation.mock' +import { Neo4jError } from 'neo4j-driver' +import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest' + +vi.mock('@/lib/core/security/input-validation.server', () => inputValidationMock) + +import { openNeo4jConnection } from '@/lib/internal/neo4j/client' + +/** `.invalid` never resolves, so only a connection pinned to the validated IP can reach the server. */ +const DATABASE_HOST = 'neo4j.invalid' +const BOLT_MAGIC = '6060b017' + +interface TlsDatabase { + port: number + /** SNI and first application bytes of every TLS session that completed. */ + sessions: Array<{ servername: string | undefined; firstBytes: string }> + close: () => Promise +} + +const certificateDirectory = mkdtempSync(join(tmpdir(), 'neo4j-tls-')) +const certificates: Record = {} +const defaultCertificates = getCACertificates('default') + +async function issueCertificate(name: string) { + const certPath = join(certificateDirectory, `${name}.crt`) + const keyPath = join(certificateDirectory, `${name}.key`) + await promisify(execFile)('openssl', [ + 'req', + '-x509', + '-newkey', + 'rsa:2048', + '-sha256', + '-nodes', + '-keyout', + keyPath, + '-out', + certPath, + '-days', + '2', + '-subj', + `/CN=${name}`, + '-addext', + `subjectAltName=DNS:${name}`, + ]) + certificates[name] = { cert: readFileSync(certPath, 'utf8'), key: readFileSync(keyPath, 'utf8') } +} + +/** A TLS listener that records the session, then hangs up: enough to see what the driver sent. */ +async function startTlsDatabase(certificateName: string): Promise { + const sessions: TlsDatabase['sessions'] = [] + const sockets = new Set() + const server = createTlsServer(certificates[certificateName], (socket) => { + socket.once('data', (chunk: Buffer) => { + sessions.push({ + servername: socket.servername || undefined, + firstBytes: chunk.subarray(0, 4).toString('hex'), + }) + socket.destroy() + }) + }) + server.on('connection', (socket) => { + sockets.add(socket) + socket.on('close', () => sockets.delete(socket)) + }) + server.on('tlsClientError', () => {}) + await new Promise((resolve) => server.listen(0, '127.0.0.1', resolve)) + return { + port: (server.address() as AddressInfo).port, + sessions, + close: () => + new Promise((resolve) => { + for (const socket of sockets) socket.destroy() + server.close(() => resolve()) + }), + } +} + +describe('openNeo4jConnection with encryption enabled', () => { + beforeAll(async () => { + await issueCertificate(DATABASE_HOST) + await issueCertificate('other.invalid') + setDefaultCACertificates([ + ...defaultCertificates, + certificates[DATABASE_HOST].cert, + certificates['other.invalid'].cert, + ]) + }) + + afterAll(() => { + setDefaultCACertificates(defaultCertificates) + rmSync(certificateDirectory, { recursive: true, force: true }) + }) + + beforeEach(() => { + inputValidationMockFns.mockValidateDatabaseHost.mockResolvedValue({ + isValid: true, + resolvedIP: '127.0.0.1', + originalHostname: DATABASE_HOST, + }) + }) + + const open = (port: number) => + openNeo4jConnection({ + host: DATABASE_HOST, + port, + database: 'neo4j', + username: 'neo4j', + password: 'secret', + encryption: 'enabled', + }) + + it('carries Bolt over TLS to the validated IP with the hostname as SNI', async () => { + const database = await startTlsDatabase(DATABASE_HOST) + try { + await expect(open(database.port)).rejects.toThrow() + expect(database.sessions[0]).toEqual({ servername: DATABASE_HOST, firstBytes: BOLT_MAGIC }) + } finally { + await database.close() + } + }) + + it('refuses a certificate issued for another hostname before sending any Bolt bytes', async () => { + const database = await startTlsDatabase('other.invalid') + try { + const error = await open(database.port).catch((caught: unknown) => caught) + expect(error).toBeInstanceOf(Neo4jError) + expect(error).toMatchObject({ + code: 'ServiceUnavailable', + message: expect.stringMatching( + /Failed to connect to server.*Caused by: Hostname\/IP does not match certificate's altnames/ + ), + }) + expect(database.sessions).toEqual([]) + } finally { + await database.close() + } + }) +}) diff --git a/apps/sim/lib/internal/neo4j/client.test.ts b/apps/sim/lib/internal/neo4j/client.test.ts new file mode 100644 index 00000000000..267c8e28b67 --- /dev/null +++ b/apps/sim/lib/internal/neo4j/client.test.ts @@ -0,0 +1,28 @@ +import { + inputValidationMock, + inputValidationMockFns, +} from '@sim/testing/mocks/input-validation.mock' +import { describe, expect, it, vi } from 'vitest' + +vi.mock('@/lib/core/security/input-validation.server', () => inputValidationMock) + +import { openNeo4jConnection } from '@/lib/internal/neo4j/client' + +describe('openNeo4jConnection', () => { + it('rejects an out-of-range port instead of throwing from the relay', async () => { + inputValidationMockFns.mockValidateDatabaseHost.mockResolvedValue({ + isValid: true, + resolvedIP: '127.0.0.1', + }) + await expect( + openNeo4jConnection({ + host: 'neo4j.invalid', + port: 65_536, + database: 'neo4j', + username: 'neo4j', + password: 'secret', + encryption: 'enabled', + }) + ).rejects.toThrow('Port must be an integer between 1 and 65535') + }) +}) diff --git a/apps/sim/lib/internal/neo4j/client.ts b/apps/sim/lib/internal/neo4j/client.ts index 89ae5de8e40..3fccb24cc53 100644 --- a/apps/sim/lib/internal/neo4j/client.ts +++ b/apps/sim/lib/internal/neo4j/client.ts @@ -1,49 +1,193 @@ +import { createServer as createTcpServer, isIP, type Socket } from 'node:net' +import { checkServerIdentity, connect as connectTls } from 'node:tls' import neo4j, { type Driver } from 'neo4j-driver' import { validateDatabaseHost } from '@/lib/core/security/input-validation.server' import type { Neo4jConnectionConfig } from '@/tools/neo4j/types' +const CONNECTION_TIMEOUT_MS = 10_000 +/** The driver pools one connection; the rest of the budget covers reconnects after a drop. */ +const MAX_RELAYED_CONNECTIONS = 4 +const CONNECT_FAILURE_PREFIX = + 'Failed to connect to server. Please ensure that your database is listening on the correct host and port and that you have compatible encryption settings both on Neo4j server and driver.' + +/** An open Neo4j driver and everything that must be released with it. */ +export interface Neo4jConnection { + driver: Driver + close: () => Promise +} + +interface PinnedTlsRelay { + port: number + failure: () => Error | undefined + close: () => Promise +} + function isAuraHost(host: string): boolean { return host === 'databases.neo4j.io' || host.endsWith('.databases.neo4j.io') } -export async function createNeo4jDriver( +/** + * Accepts the driver's plaintext Bolt on loopback and carries it over TLS to the already + * validated `address`, sending `serverName` as SNI and verifying the certificate against it. + * + * The driver's direct `bolt+s` channel connects by name, so the host would be resolved again + * after validation (DNS rebinding), and neo4j-driver has no supported way to pin the address + * while keeping hostname verification. The relay owns TLS instead, against the pinned IP. + */ +async function startPinnedTlsRelay(target: { + address: string + port: number + serverName: string +}): Promise { + const sockets = new Set() + let accepted = 0 + let lastFailure: Error | undefined + let closePromise: Promise | undefined + + const server = createTcpServer((client) => { + accepted += 1 + sockets.add(client) + client.once('close', () => sockets.delete(client)) + if (accepted > MAX_RELAYED_CONNECTIONS) { + client.destroy() + return + } + + const upstream = connectTls({ + host: target.address, + port: target.port, + servername: isIP(target.serverName) ? undefined : target.serverName, + checkServerIdentity: (_name, certificate) => + checkServerIdentity(target.serverName, certificate), + rejectUnauthorized: true, + }) + sockets.add(upstream) + upstream.setNoDelay(true) + upstream.setTimeout(CONNECTION_TIMEOUT_MS) + + const finish = () => { + sockets.delete(upstream) + client.destroy() + upstream.destroy() + } + upstream.once('secureConnect', () => { + upstream.setTimeout(0) + client.pipe(upstream) + upstream.pipe(client) + }) + upstream.once('timeout', () => { + lastFailure = new Error(`Failed to establish connection in ${CONNECTION_TIMEOUT_MS}ms`) + finish() + }) + upstream.once('error', (error) => { + lastFailure = error + finish() + }) + upstream.once('close', finish) + client.once('error', finish) + client.once('close', finish) + }) + + await new Promise((resolve, reject) => { + server.once('error', reject) + server.listen(0, '127.0.0.1', () => { + server.removeListener('error', reject) + resolve() + }) + }) + + const address = server.address() + if (!address || typeof address === 'string') { + server.close() + throw new Error('Neo4j TLS relay did not bind a TCP port') + } + + return { + port: address.port, + failure: () => lastFailure, + close: () => { + closePromise ??= new Promise((resolve) => { + for (const socket of sockets) socket.destroy() + server.close(() => resolve()) + }) + return closePromise + }, + } +} + +/** + * Opens a verified Neo4j driver for a validated host. + * + * - Encryption off: plain `bolt` straight to the validated IP. + * - Encryption on: plain `bolt` to {@link startPinnedTlsRelay}, which reaches the validated IP + * over TLS with SNI and certificate hostname verification against the configured host. + * - Aura (`*.databases.neo4j.io`): the driver's own `neo4j+s` routing, by name. Those hosts and + * the routing table they return are operated by Neo4j, not chosen by the caller. + */ +export async function openNeo4jConnection( config: Neo4jConnectionConfig, signal?: AbortSignal -): Promise { +): Promise { signal?.throwIfAborted() + if (!Number.isInteger(config.port) || config.port < 1 || config.port > 65_535) { + throw new Error('Port must be an integer between 1 and 65535') + } const hostValidation = await validateDatabaseHost(config.host, 'host') signal?.throwIfAborted() if (!hostValidation.isValid) throw new Error(hostValidation.error) const aura = isAuraHost(config.host) - const protocol = aura ? 'neo4j+s' : config.encryption === 'enabled' ? 'bolt+s' : 'bolt' - const usePinnedIp = !protocol.endsWith('+s') const resolvedHost = hostValidation.resolvedIP ?? config.host - const uriHost = usePinnedIp - ? resolvedHost.includes(':') - ? `[${resolvedHost}]` - : resolvedHost - : config.host - const uri = `${protocol}://${uriHost}:${config.port}` + const relay = + !aura && config.encryption === 'enabled' + ? await startPinnedTlsRelay({ + address: resolvedHost, + port: config.port, + serverName: config.host.replace(/^\[|\]$/g, ''), + }) + : undefined + if (signal?.aborted) { + await relay?.close() + signal.throwIfAborted() + } + + let uri: string + if (aura) { + uri = `neo4j+s://${config.host}:${config.port}` + } else if (relay) { + uri = `bolt://127.0.0.1:${relay.port}` + } else { + uri = `bolt://${resolvedHost.includes(':') ? `[${resolvedHost}]` : resolvedHost}:${config.port}` + } const driverConfig: Exclude[2], undefined> = { maxConnectionPoolSize: 1, - connectionTimeout: 10_000, - } - if (!protocol.endsWith('+s')) { - driverConfig.encrypted = config.encryption === 'enabled' ? 'ENCRYPTION_ON' : 'ENCRYPTION_OFF' + connectionTimeout: CONNECTION_TIMEOUT_MS, } + if (!aura) driverConfig.encrypted = 'ENCRYPTION_OFF' const driver = neo4j.driver(uri, neo4j.auth.basic(config.username, config.password), driverConfig) + const close = async () => { + try { + await driver.close() + } finally { + await relay?.close() + } + } const abort = () => { - void driver.close() + void close() } signal?.addEventListener('abort', abort, { once: true }) try { await driver.verifyConnectivity() signal?.throwIfAborted() - return driver + return { driver, close } } catch (error) { - await driver.close().catch(() => undefined) + await close().catch(() => undefined) + const relayFailure = relay?.failure() + if (relayFailure && !signal?.aborted && error instanceof neo4j.Neo4jError) { + error.message = `${CONNECT_FAILURE_PREFIX} Caused by: ${relayFailure.message}` + error.cause = relayFailure + } throw error } finally { signal?.removeEventListener('abort', abort) diff --git a/apps/sim/lib/internal/neo4j/operations.test.ts b/apps/sim/lib/internal/neo4j/operations.test.ts index 54c7b104f06..34e24d73aaa 100644 --- a/apps/sim/lib/internal/neo4j/operations.test.ts +++ b/apps/sim/lib/internal/neo4j/operations.test.ts @@ -8,7 +8,7 @@ const mocks = vi.hoisted(() => ({ })) vi.mock('@/lib/internal/neo4j/client', () => ({ - createNeo4jDriver: mocks.createDriver, + openNeo4jConnection: mocks.createDriver, })) import { isPayloadSizeLimitError } from '@/lib/core/utils/stream-limits' @@ -69,7 +69,9 @@ describe('Neo4j operations', () => { mocks.sessionClose.mockResolvedValue(undefined) mocks.driverClose.mockResolvedValue(undefined) mocks.createDriver.mockResolvedValue({ - session: vi.fn().mockReturnValue({ run: mocks.run, close: mocks.sessionClose }), + driver: { + session: vi.fn().mockReturnValue({ run: mocks.run, close: mocks.sessionClose }), + }, close: mocks.driverClose, }) }) diff --git a/apps/sim/lib/internal/neo4j/operations.ts b/apps/sim/lib/internal/neo4j/operations.ts index 0e644a1e653..23cff8d2a60 100644 --- a/apps/sim/lib/internal/neo4j/operations.ts +++ b/apps/sim/lib/internal/neo4j/operations.ts @@ -9,7 +9,7 @@ import type { Neo4jQueryRequest, Neo4jUpdateRequest, } from '@/lib/api/contracts/tools/databases/neo4j' -import { createNeo4jDriver } from '@/lib/internal/neo4j/client' +import { openNeo4jConnection } from '@/lib/internal/neo4j/client' import { convertNeo4jValue } from '@/lib/internal/neo4j/values' import { createResponseRowsBudget } from '@/lib/internal/tool-operations/response-limits' import type { Neo4jNodeSchema, Neo4jRelationshipSchema } from '@/tools/neo4j/types' @@ -150,8 +150,8 @@ function statementResponse( async function executeStatement(input: StatementInput, kind: StatementKind, signal?: AbortSignal) { signal?.throwIfAborted() validateCypherQuery(input.cypherQuery) - const driver = await createNeo4jDriver({ ...input, port: Number(input.port) }, signal) - const session = driver.session({ database: input.database }) + const connection = await openNeo4jConnection({ ...input, port: Number(input.port) }, signal) + const session = connection.driver.session({ database: input.database }) const unbindAbort = bindSessionAbort(session, signal) try { const result = await readResult(session.run(input.cypherQuery, input.parameters ?? {}), kind) @@ -160,7 +160,7 @@ async function executeStatement(input: StatementInput, kind: StatementKind, sign } finally { unbindAbort() await session.close().catch(() => undefined) - await driver.close().catch(() => undefined) + await connection.close().catch(() => undefined) } } @@ -188,8 +188,8 @@ export async function executeNeo4jIntrospection( signal?: AbortSignal ) { signal?.throwIfAborted() - const driver = await createNeo4jDriver({ ...input, port: Number(input.port) }, signal) - const session = driver.session({ database: input.database }) + const connection = await openNeo4jConnection({ ...input, port: Number(input.port) }, signal) + const session = connection.driver.session({ database: input.database }) const unbindAbort = bindSessionAbort(session, signal) try { const labelsResult = await session.run( @@ -298,6 +298,6 @@ export async function executeNeo4jIntrospection( } finally { unbindAbort() await session.close().catch(() => undefined) - await driver.close().catch(() => undefined) + await connection.close().catch(() => undefined) } } From 7f5e81c8c5fe16b1d641b742833164fc30d1ad20 Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 11:34:11 -0800 Subject: [PATCH 03/20] feat(library): Make.com Pricing: Credits, Plans, and When AI Agents Cost Less (#10484) * feat(library): Make.com Pricing: Credits, Plans, and When AI Agents Cost Less * Pi Babysit: address PR #10484 feedback --------- Co-authored-by: Sim Pi Agent --- .../index.mdx | 189 ++++++++++++++++++ .../cover.jpg | Bin 0 -> 27943 bytes 2 files changed, 189 insertions(+) create mode 100644 apps/sim/content/library/make-com-pricing-credits-ai-agents-cost/index.mdx create mode 100644 apps/sim/public/library/make-com-pricing-credits-ai-agents-cost/cover.jpg diff --git a/apps/sim/content/library/make-com-pricing-credits-ai-agents-cost/index.mdx b/apps/sim/content/library/make-com-pricing-credits-ai-agents-cost/index.mdx new file mode 100644 index 00000000000..6b8a01cd359 --- /dev/null +++ b/apps/sim/content/library/make-com-pricing-credits-ai-agents-cost/index.mdx @@ -0,0 +1,189 @@ +--- +slug: make-com-pricing-credits-ai-agents-cost +title: 'Make.com Pricing: Credits, Plans, and When AI Agents Cost Less' +description: 'Understand Make.com pricing, credit usage, AI costs, and how to compare Make with an AI agent workspace using measured monthly workload costs.' +seoTitle: 'Make.com Pricing: Credits, Plans, and AI Costs' +date: 2026-11-28 +updated: 2026-11-28 +authors: + - andrew +readingTime: 9 +tags: [AI Agents, Pricing, Automation, Make.com, Sim] +ogImage: /library/make-com-pricing-credits-ai-agents-cost/cover.jpg +draft: false +faq: + - q: "Can Make.com AI costs change between runs?" + a: "Make.com AI costs can change between runs when dynamic credit consumption or model token usage changes with the size of the input and output." + - q: "Does the number of Make.com scenarios determine the monthly bill?" + a: "Make.com does not base normal usage cost only on the number of scenarios because the more important variables are how often each scenario runs and how many module actions it executes." + - q: "Can one Make.com scenario run consume multiple credits?" + a: "Make.com can consume multiple credits in one scenario run because each executed module, repeated bundle, retry, route, and dynamic AI feature can add usage." + - q: "Can Sim use local models instead of paid model APIs?" + a: "Sim can use Ollama, vLLM, LM Studio, or LiteLLM on any self hosted Sim deployment, replacing hosted model API charges with the cost of operating the required infrastructure." + - q: "Is Sim fully covered by the Apache 2.0 license?" + a: "Sim’s core is licensed under Apache 2.0, while code in apps/sim/ee is governed by the separate Sim Enterprise License and requires an active Enterprise subscription for production use." + - q: "When should a company stay with Make.com instead of moving to an AI workspace?" + a: "Make.com remains a strong fit when a company mainly needs deterministic application automation, already depends on Make.com integrations, and can keep execution within a predictable credit allowance." + - q: "When should a company compare Make.com with Sim?" + a: "Sim is worth comparing with Make.com when AI model calls, agent behavior, bring your own keys, local models, or self hosting are central to the workload." +--- + +## TL;DR + +Make.com pricing starts at $0 and scales through credit allowances. AI features, repeated module executions, retries, and external model charges can make the real monthly cost higher than the advertised plan price. + +As of November 2026, estimate Make.com cost by calculating expected credit consumption, adding any separate AI provider bill, and then selecting the required allowance on [Make.com’s pricing page](https://www.make.com/pricing). + +## How Does Make.com Pricing Work? + +Make.com prices its cloud automation service by plan and credits. Paid plans combine a credit allowance with different collaboration, development, and administration features, while the selected tier and billing cycle affect the final price. + +A credit is Make.com’s usage unit. For most non-AI modules, one operation consumes one credit. A scenario that executes six modules normally starts at about six credits each time it runs, although bundles, iterators, retries, polling, and AI usage can increase that total. Make documents the current rules in its [credits guide](https://help.make.com/credits). + +The basic planning formula is: + +**Monthly Make.com credits = completed runs × average credits per run + retries + polling + dynamic AI credits** + +Model provider charges may be separate from Make.com credits when a scenario uses a custom connection to an external AI provider. + +## What Does Each Make.com Plan Cost? + +Make.com offers Free, Core, Pro, Teams, and Enterprise options. Its live pricing interface changes the displayed price when a buyer selects a different credit tier or billing cycle, so the entry price is not a universal quote for every workload. + +As of November 2026, Make’s public pages show a Free allowance of 1,000 credits per month and paid plans starting with Core at $9 per month for 10,000 credits. Enterprise pricing is customized. Buyers should confirm the current amount for their region and selected allowance on the [official Make pricing page](https://www.make.com/pricing). + +| Make.com plan | Public pricing approach | Included credits | Fit | +|---|---|---:|---| +| [Free](https://www.make.com/pricing) | $0 | 1,000 per month | Testing and very small personal automations | +| [Core](https://www.make.com/pricing) | Starts at $9 per month with annual billing | Starts at 10,000 per month | Individuals and small teams running production scenarios | +| [Pro](https://www.make.com/pricing) | Varies by credit tier and billing cycle | Selected tier | Teams that need additional execution and development controls | +| [Teams](https://www.make.com/pricing) | Varies by credit tier and billing cycle | Selected tier | Groups that need shared administration and team roles | +| [Enterprise](https://www.make.com/pricing) | Custom quote | Custom | Organizations that need negotiated support, security, and governance | + +Make distinguishes plans from credit tiers. Plans determine available features, while tiers determine the credit quantity. Its [subscription documentation](https://help.make.com/monthly-and-annual-subscriptions) also explains that annual credit allocation differs by plan, so teams should check both the headline monthly equivalent and the actual billing terms. + +## What Counts as a Credit in Make.com? + +Make.com generally counts each non-AI module operation as one credit, but a single visible scenario run can execute many operations and consume many credits. + +For example, a workflow that receives a form, looks up a CRM record, enriches the record, calls an AI model, updates the CRM, and sends a Slack message contains six module actions. If every action executes once, that run starts at roughly six credits before variable AI usage or retries. + +Credit consumption can grow when: + +- An iterator sends multiple bundles through downstream modules +- A search returns several records that each trigger later steps +- A route executes more than one branch +- An error causes a retry +- A polling trigger checks for new data repeatedly +- An AI feature applies a usage formula based on operations and tokens + +The [Make credits guide](https://help.make.com/credits) explains how non-AI apps, third-party AI apps, and built-in AI connections consume credits. Execution history is the most useful source for measuring the average credits consumed by an existing scenario. + +## How Much Do Make.com Operations Cost? + +Make.com now uses credits as its billing unit, so the cost of an operation depends on the selected plan, credit allowance, and number of module actions executed. + +As of November 2026, the entry Core package starts at $9 per month with annual billing for 10,000 credits. That produces a simple entry benchmark of $0.0009 per included credit. Buyers should not extend that ratio into a final quote because larger allowances, extra credits, billing cycles, and plan choices can change the effective rate. + +Older articles and internal budgets may still refer to operations. For non-AI apps, Make states that one operation equals one credit. AI features make a universal conversion incomplete, so current budgets should use the rules in the [credits guide](https://help.make.com/credits) rather than assuming every action has an identical cost. + +## What Counts as a Credit for AI Steps in Make.com? + +Make.com can apply variable credit usage to AI features, so an AI step may consume more than the single credit associated with an ordinary module operation. + +The final cost depends on the feature, connection type, selected model, and amount of input and output. Make’s AI Provider uses credits based on tokens and operations. With a custom AI provider connection on a paid plan, Make counts operations while the external provider bills token usage directly. These distinctions are documented in Make’s [current AI credit rules](https://help.make.com/credits). + +As of November 2026, an AI workflow budget should track two possible meters: + +1. Make.com credits for scenario execution and applicable AI usage +2. Model provider charges for tokens or other services billed outside Make.com + +Teams should run a representative sample, record Make.com credits from execution history, and inspect the model provider’s usage dashboard before projecting a monthly total. + +## How Do I Estimate My Real Monthly Make.com Cost? + +Make.com cost is best estimated from measured credits per successful business outcome rather than from the number of scenarios in the workspace. + +Use this process: + +1. Count how many business events the workflow will process each month. +2. Run a representative sample through every normal route, including typical retries and AI usage. +3. Divide the sample’s total credits by completed business events to find the all-in average credits per event. +4. Multiply the all-in average by the expected monthly business events. +5. Add the separate model provider bill when applicable. +6. Select the required allowance on Make.com’s [live pricing page](https://www.make.com/pricing). + +A useful cost formula is: + +**Real monthly cost = Make.com plan cost + extra credit cost + external AI provider cost + connected service cost** + +This approach also exposes expensive design choices. A workflow that processes ten records individually through five downstream modules can use far more credits than a workflow that batches the same records into one request. + +## What Does Make.com Cost at Three Workflow Volumes? + +A six-action workflow requires about 6,000, 60,000, or 600,000 base credits for 1,000, 10,000, or 100,000 runs when every action executes once. + +The example below assumes five standard module actions and one AI module action per run. It treats the AI module as one base operation, excludes variable AI credits, and excludes the separate model provider bill. + +| Monthly workflow runs | Base credits per run | Estimated base credits | Entry Core ratio benchmark | Pricing implication | +|---:|---:|---:|---:|---| +| 1,000 | 6 | 6,000 | $5.40 before the plan minimum | The 1,000-credit Free allowance is too small, so a paid tier is required | +| 10,000 | 6 | 60,000 | $54 before tier pricing | Select an allowance that covers at least 60,000 credits and add AI charges | +| 100,000 | 6 | 600,000 | $540 before tier pricing | Request the appropriate high-volume allowance and compare alternative execution models | + +As of November 2026, the benchmark uses the Core entry ratio of $9 for 10,000 credits. It is a planning comparison, not a quoted Make.com price for 60,000 or 600,000 credits, because the live pricing interface can apply different tier pricing. + +If the AI step averages two additional credits per run, the same workloads rise to about 8,000, 80,000, and 800,000 total credits. If the workflow fans out across several records, consumption can rise further. + +## When Is Sim a Simpler Pricing Alternative for AI Workflows? + +Sim fits teams that want an AI-focused workspace, direct control over model providers, and the option to use their own keys or self-hosted models. + +Sim is the open-source AI workspace where teams build, deploy, and manage AI agents. Workspace BYOK works on every Sim Cloud plan, while organization-level keys require Pro for Teams, Max for Teams, or Enterprise. With BYOK, teams pay the provider directly for covered calls, as documented in [Sim’s cost guide](https://docs.sim.ai/platform/costs#bring-your-own-key-byok). + +According to [Sim’s cost guide](https://docs.sim.ai/platform/costs), each billable Sim Cloud workflow run has a base charge of one credit ($0.005), including runs that use BYOK. Hosted tools and sandbox runtime can add usage charges. Billing-disabled self-hosted deployments do not apply Sim plan-based usage billing, but provider and infrastructure costs still apply. + +Sim may cost less when Make.com execution credits are the main cost driver, a workflow contains many AI calls, or a team can obtain suitable model pricing directly from its provider. Make.com may cost less when a workflow is mostly deterministic, already uses Make.com integrations effectively, and remains within a predictable credit allowance. + +The comparison is: + +**Make.com total = Make.com subscription and credits + model provider charges + connected service charges** + +**Sim Cloud total = Sim subscription + base run and other usage charges + model provider charges + connected service charges** + +**Billing-disabled self-hosted Sim total = hosting and infrastructure costs + model provider charges + connected service charges** + +Teams considering a move can compare broader product tradeoffs in [6 Best Make.com Alternatives for AI Agents in 2026](https://www.sim.ai/library/best-make-com-alternatives-ai-agents-2026). + +## What Are the Key Make.com and Sim Pricing Facts? + +Make.com and Sim use different cost structures, so buyers should compare total workflow cost rather than entry subscription prices alone. + +- Make.com is a proprietary cloud automation service whose public plans use credits as the billing unit. +- Make.com usually charges one credit for an ordinary non-AI operation, while its AI credit rules depend on the connection type. +- Sim is the open-source AI workspace. Sim’s core is licensed under Apache 2.0, while code in `apps/sim/ee` uses the separate [Sim Enterprise License](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE). +- Sim supports workspace BYOK on every Sim Cloud plan as of November 2026. +- Sim supports Ollama, vLLM, LM Studio, and LiteLLM on self-hosted deployments. The [self-hosting environment reference](https://docs.sim.ai/platform/self-hosting/environment-variables) documents the relevant provider endpoints. + +## How Should Buyers Compare Value for AI Agents? + +Sim fits buyers who prioritize model flexibility, bring your own keys, self-hosting options, and an open-source core. The right choice still depends on workload and governance requirements. + +A buyer should compare model cost, execution metering, deployment options, collaboration, governance, and maintenance burden. Entry subscription price alone does not reveal the cost of a production agent. + +For a broader platform comparison, see [Best AI Agent Platforms and Builders in 2026](https://www.sim.ai/library/best-ai-agent-platforms-2026). For a startup-focused cost comparison, see [Cheapest AI Agent Builders for Startups in 2026](https://www.sim.ai/library/cheapest-ai-agent-builders-for-startups-2026). + +## What Should a Startup Comparing Automation Tools Measure? + +Startups should compare Make.com, Sim, Zapier, and n8n with the same real workload because each product meters usage differently and serves a different primary use case. + +The test should record: + +- Successful business outcomes per month +- Platform credits, tasks, or executions per outcome +- AI model charges per outcome +- Time required to build and maintain the workflow +- Collaboration and approval requirements +- Hosting and operational work + +A representative test is more useful than comparing entry prices because it captures fan-out, retries, model usage, and maintenance effort. See [Zapier Pricing at Scale](https://www.sim.ai/library/zapier-pricing-at-scale) for task economics and [n8n vs Zapier vs Make](https://www.sim.ai/library/n8n-vs-zapier-vs-make) for broader platform tradeoffs. diff --git a/apps/sim/public/library/make-com-pricing-credits-ai-agents-cost/cover.jpg b/apps/sim/public/library/make-com-pricing-credits-ai-agents-cost/cover.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0455969ca7867c594e04d6ffa9c5cfeee0e2983e GIT binary patch literal 27943 zcmeFYWl&t*wl>?0tA;3+~Jb!{l4ei zyLX+cUH8vd^__0$wR*0pL!U9`?B|8&Wq>3A{vR&{1b8Immp2+J3JNM3E;`1`8J)OvHw|XN&wq zYp74=mW3bipA9iBvs=rFf-#hclKr`*3!tT4RS~3{)cK|Hif1%WZEjTAHc9JT(lz{0 zbpU$|MO)w_s^IGc$P0QD+SyYG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u5wF^ngeV-`@>5m5KgJ_xA4 z$3OixgbYsnvIhrd@uI)tb)O>aH_sD8pDJXE zuCa+K@!q{Z6e3;4#;iLc1E3R~wII`axph~uc^?T&N^>Y(f0;9-%hP?huJS%e5`HB- z>^t!=c56xA<$6r*fQ^T(wYKRGxrQJ>`3osg4B|k4ChkWzgfO6C?SP~tLB$%EZl$`|?Ot1t2xMC_tI>>UzgNWK%eYf?~ z`qVN=Mmyzaa?sG6)x3i#>%F3{JH7uGfG|_JzGh~T+BYK9?0$Fgh!cKoW3+dSye6!) z(W7~$@tX*K!aXHLm~2y|y~FIKN*@iH<+vsL1vXF#>=p?QM7n*yg+yu5Tl%c|Qs`ty#e%=`k9 zs#OjcP=^D4G5~-8lWOS_X0Z(_RNn~ny=SJ(2MS!pnA9SGd|DieGZC^YC|&WLz|dO* z#AIE$DKgaEEw;2@6EZ{Xh)C=qLJPaXt|Ik?S8;6dNniiZ#wsE2z>m$u579?#$4UQO zGF6JC2VO_I{(P?#>5t+w*5o!E)1^}f%797P_T-EMt=Aa88+A^_C4xJd$PfPlPRuXP k2xI;~&JO#hW^~;@rI#;}k*Ndp3;#bONXL%-Gh*(40ov~#e*gdg literal 0 HcmV?d00001 From ab6b5c195fe7e265d6766afb948d193806a66148 Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 11:34:27 -0800 Subject: [PATCH 04/20] feat(library): Which AI Agent Platforms Do Teams Actually Use in Production in 2026? (#10485) * feat(library): Which AI Agent Platforms Do Teams Actually Use in Production in 2026? * Pi Babysit: address PR #10485 feedback --------- Co-authored-by: Sim Pi Agent --- .../index.mdx | 152 ++++++++++++++++++ .../cover.jpg | Bin 0 -> 30178 bytes 2 files changed, 152 insertions(+) create mode 100644 apps/sim/content/library/ai-agent-platforms-teams-use-production-2026/index.mdx create mode 100644 apps/sim/public/library/ai-agent-platforms-teams-use-production-2026/cover.jpg diff --git a/apps/sim/content/library/ai-agent-platforms-teams-use-production-2026/index.mdx b/apps/sim/content/library/ai-agent-platforms-teams-use-production-2026/index.mdx new file mode 100644 index 00000000000..f9784494411 --- /dev/null +++ b/apps/sim/content/library/ai-agent-platforms-teams-use-production-2026/index.mdx @@ -0,0 +1,152 @@ +--- +slug: ai-agent-platforms-teams-use-production-2026 +title: 'Which AI Agent Platforms Do Teams Actually Use in Production in 2026?' +description: 'Compare six AI agent platforms teams use in production in 2026, with evidence from repositories, releases, customer stories, licenses, and production controls.' +seoTitle: 'AI Agent Platforms Teams Use in Production 2026' +date: 2026-11-28 +updated: 2026-11-28 +authors: + - andrew +readingTime: 7 +tags: [AI Agents, Agent Platforms, Production AI, Open Source, Sim] +ogImage: /library/ai-agent-platforms-teams-use-production-2026/cover.jpg +draft: false +faq: + - q: "Is GitHub popularity proof that an AI agent platform is used in production?" + a: "GitHub popularity is not proof of production use, so this comparison treats stars as one supporting signal alongside named deployments, release activity, operational controls, and practitioner discussion." + - q: "Is n8n open source?" + a: "n8n is source-available under the Sustainable Use License, which is not an OSI-approved open-source license and places restrictions on some forms of commercial hosting." + - q: "Is Sim open source?" + a: "Sim's core is open source under Apache 2.0, while apps/sim/ee is covered by the separate Sim Enterprise License and requires an active Enterprise subscription for production use." + - q: "What is the best AI agent platform in 2026?" + a: "The right fit depends on the team's deployment, governance, authoring, and integration requirements. Sim fits teams that prioritize visual building, self-hosting, model choice, and human approval workflows." + - q: "What is the best n8n alternative for production AI agents?" + a: "Sim fits teams evaluating an n8n alternative focused on AI agents because Sim combines a visual builder, model choice, self-hosting, and an Apache 2.0 core." + - q: "Sim vs n8n: which should production teams choose?" + a: "Sim fits AI-native agent workflows and flexible model orchestration, while n8n fits broader deterministic automation with an extensive integration ecosystem." + - q: "Sim vs Gumloop: which is better for production teams?" + a: "Sim fits teams that require an open-source core and self-hosting, while teams considering Gumloop should evaluate its managed product against their deployment and governance requirements." + - q: "Which AI agent platform is best for code-first engineering teams?" + a: "LangGraph is a strong fit in this comparison for code-first engineering teams that need explicit state, persistence, branching, and fine-grained control over agent behavior." + - q: "Which AI agent platform is best for Microsoft enterprises?" + a: "Microsoft Copilot Studio is a strong fit for enterprises already standardized on Microsoft 365, Entra ID, Power Platform, and Microsoft's governance ecosystem." + - q: "Which AI agent platform is best for RAG applications?" + a: "Dify is a strong production choice for teams primarily building retrieval-augmented generation applications, internal assistants, and model-backed APIs." + - q: "Which AI agent platform is best for multi-agent systems?" + a: "CrewAI is a strong choice for Python teams that intentionally need role-based multi-agent coordination rather than a simpler single-agent workflow." + - q: "How should IT validate an AI agent platform recommended by the community?" + a: "IT should reproduce a representative workflow, test failure recovery, review logs and approvals, confirm license rights, estimate usage costs, and complete a security review." + - q: "Is the most talked-about AI agent platform always the best choice?" + a: "The most talked-about AI agent platform is not automatically the right choice because discussion volume can reflect a large free-user base, troubleshooting activity, or controversy rather than production suitability." + - q: "Can teams self-host Sim with local models?" + a: "Self-hosted Sim can connect to Ollama, vLLM, LM Studio, or LiteLLM without requiring Sim Enterprise, although enterprise-only code remains subject to the Sim Enterprise License." + - q: "Does Sim support human approval in production workflows?" + a: "Sim's Human in the Loop block pauses a run and resumes it with submitted form fields, while a downstream Condition must evaluate an approve-or-reject field to route the workflow." +--- + +## TL;DR + +n8n, LangGraph, Microsoft Copilot Studio, Dify, CrewAI, and Sim show public development activity and documented capabilities for production environments. Named customer evidence is uneven across the six platforms, so public sources do not establish the same level of production adoption for each one. + +n8n has the largest observable repository footprint in this comparison. LangGraph fits code-first teams that need explicit state. Microsoft Copilot Studio fits Microsoft-centered enterprises. Dify fits retrieval-augmented generation (RAG), which grounds model responses in retrieved data, and internal LLM applications. CrewAI fits Python teams intentionally building multi-agent systems. Sim fits teams that want the open-source AI workspace with a visual builder, self-hosting, model choice, execution logs, and human approval workflows. + +The signals in this roundup were checked in November 2026. Public evidence can show that practitioners deploy and discuss a platform, but it cannot establish private market share or prove that every repository star represents production use. + +## What AI agent tools do people actually use in production? + +n8n, LangGraph, Microsoft Copilot Studio, Dify, CrewAI, and Sim have a visible mix of production capabilities, ongoing development, and practitioner attention. The order below is not a ranking. + +| Platform | Observable signals as of November 2026 | Documented production controls | Fit | +|---|---|---|---| +| n8n | The [public repository](https://github.com/n8n-io/n8n) shows more than 200,000 stars, [frequent releases](https://github.com/n8n-io/n8n/releases/), and n8n publishes [named customer case studies](https://n8n.io/case-studies/). | n8n documents [production executions and execution history](https://docs.n8n.io/build/understand-workflows/understand-executions), [self-hosted editions](https://docs.n8n.io/deploy/host-n8n/community-edition-features), and enterprise [log streaming](https://docs.n8n.io/administer/observe-and-log/stream-logs-to-external-systems). | Teams combining deterministic automation, integrations, and AI steps | +| LangGraph | The [public repository](https://github.com/langchain-ai/langgraph/) shows more than 40,000 stars and an active [release history](https://github.com/langchain-ai/langgraph/releases). | LangGraph documents [checkpointing, persistence, human review, and fault-tolerant execution](https://docs.langchain.com/oss/python/langgraph/checkpointers), plus [deployment options](https://docs.langchain.com/langsmith/deploy-overview) for cloud, self-managed, standalone, and bring your own cloud (BYOC) environments. BYOC runs the service in customer-controlled infrastructure. | Engineering teams building stateful agents in code | +| Microsoft Copilot Studio | Copilot Studio is proprietary, so it has no comparable open-source repository count. Microsoft maintains current [product documentation](https://learn.microsoft.com/en-us/microsoft-copilot-studio/) for building and deploying agents. | Microsoft documents connectors, multiple deployment channels, authentication, analytics, and [security and governance controls](https://learn.microsoft.com/en-us/microsoft-copilot-studio/security-and-governance). | Enterprises centered on Microsoft 365, Entra ID, and Power Platform | +| Dify | The [public repository](https://github.com/langgenius/dify/) shows more than 160,000 stars and the project publishes [frequent releases](https://github.com/langgenius/dify/releases/). | Dify's repository documents workflows, RAG pipelines, model support, observability, APIs, and cloud or self-hosted deployment, while its documentation covers [run and conversation logs](https://docs.dify.ai/en/cloud/use-dify/monitor/logs). | Teams shipping RAG applications and internal AI tools | +| CrewAI | The [public repository](https://github.com/crewAIInc/crewAI) shows more than 60,000 stars and an active [release history](https://github.com/crewAIInc/crewAI/releases). | CrewAI documents [Flow state management](https://docs.crewai.com/edge/en/guides/flows/mastering-flow-state), [human feedback](https://docs.crewai.com/edge/en/learn/human-feedback-in-flows), and [tracing for Crews and Flows](https://docs.crewai.com/edge/en/observability/tracing). | Python teams building role-based multi-agent systems | +| Sim | The [public repository](https://github.com/simstudioai/sim) shows more than 30,000 stars and active development. | Sim documents [execution logs](https://docs.sim.ai/logs-debugging), versioned [workflow deployment](https://docs.sim.ai/workflows/deployment), [API deployment](https://docs.sim.ai/workflows/deployment/api), [self-hosting](https://docs.sim.ai/platform/self-hosting), and [Human in the Loop steps](https://docs.sim.ai/workflows/blocks/human-in-the-loop). | Teams that want visual agent development with self-hosting and code-level extensibility | + +Repository attention is supporting evidence of developer interest, not proof of deployment. Proprietary products should not be penalized merely because they lack a public repository, and public metrics should not be converted into claims about private market share. + +## Which signals show that an AI agent platform is actually used in production? + +This comparison evaluates production use through five observable signals: + +1. **Named customer evidence:** First-party case studies or customer showcases provide stronger evidence than anonymous testimonials. +2. **Development activity:** Recent commits and releases show whether a project remains actively maintained. +3. **Practitioner discussion:** Repeated discussion on community forums reveals what teams shortlist, praise, and struggle to operate, although talk volume is not adoption data. +4. **Production controls:** Logs, versioning, approvals, persistence, credential controls, and deployment choices matter after a prototype leaves a developer laptop. +5. **Deployment flexibility:** Options include cloud, self-hosted, managed enterprise, and BYOC deployments. These choices affect whether IT can meet security and infrastructure requirements. + +Public signals have limits. Customer stories are selected by vendors, community discussion overrepresents technically engaged users, and repository activity does not reveal how many private deployments are business-critical. + +## What AI agent platforms are practitioners discussing most? + +n8n appears frequently in practitioner discussions when buyers want a self-hosted visual tool with a broad integration ecosystem. LangGraph is often considered when developers want code-first state management and durable execution patterns. + +Community recommendations tend to split by job rather than produce one universal winner: + +- **[n8n](https://github.com/n8n-io/n8n)** fits self-hosted automation, integrations, and visual orchestration. +- **[LangGraph](https://github.com/langchain-ai/langgraph/)** fits developers who need explicit state, persistence, branching, and control in code. +- **[Dify](https://github.com/langgenius/dify/)** fits RAG applications, internal assistants, and rapid LLM application deployment. +- **[CrewAI](https://github.com/crewAIInc/crewAI)** fits teams deliberately using a role-and-task model for multiple agents. +- **[Microsoft Copilot Studio](https://learn.microsoft.com/en-us/microsoft-copilot-studio/)** fits buyers already operating inside Microsoft 365, Power Platform, and Entra ID. +- **[Sim](https://github.com/simstudioai/sim)** fits visual agent workflows, model choice, self-hosting, and collaboration between technical and semi-technical teammates. + +Community popularity should be treated as discovery evidence rather than a procurement decision. Teams should reproduce a representative workflow, test failure recovery, inspect logs, confirm licensing, and run a security review before selecting a platform. + +## What is the most talked-about AI agent builder right now? + +There is no single trustworthy public measure of conversation volume across forums, repositories, social networks, and private communities. In this comparison, n8n has the largest public repository audience, while LangGraph has substantial code-first attention and Sim has a growing open-source visual-builder community. + +The conversation is fragmented because these products solve different jobs. n8n combines workflow automation and integrations, LangGraph provides a framework for stateful agents, Dify focuses on LLM applications and RAG, CrewAI organizes role-based multi-agent systems, Microsoft Copilot Studio serves Microsoft's enterprise ecosystem, and Sim is the open-source AI workspace where teams build, deploy, and manage AI agents. + +Talk volume can also reflect troubleshooting, controversy, or a large free-user base. Heads of AI and IT should pair community attention with evidence that the platform supports the required deployment model, identity controls, approvals, logging, and rollback process. + +## What are the key facts about these production AI agent platforms? + +As of November 2026, these platforms differ substantially in license, self-hosting model, and commercial billing unit. + +- **Sim:** [Sim's core is licensed under Apache 2.0](https://github.com/simstudioai/sim/blob/main/LICENSE) and can be self-hosted. Code in `apps/sim/ee` is governed by the separate [Sim Enterprise License](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE), which permits development, testing, and internal non-production use, while production use requires an active Sim Enterprise subscription. +- **n8n:** n8n is self-hostable under its [Sustainable Use License](https://github.com/n8n-io/n8n/blob/master/LICENSE.md), a source-available license rather than an OSI-approved open-source license. [n8n pricing](https://n8n.io/pricing/) uses monthly workflow executions as a central billing unit. +- **LangGraph:** The LangGraph framework uses the [MIT License](https://github.com/langchain-ai/langgraph/blob/main/LICENSE) and can run in user-controlled infrastructure. [LangSmith pricing](https://www.langchain.com/pricing) separately meters platform services such as traces and deployment capacity. +- **Microsoft Copilot Studio:** Microsoft Copilot Studio is proprietary and delivered through Microsoft's cloud ecosystem rather than as an open-source self-hosted product. Microsoft documents usage through [Copilot Credits](https://learn.microsoft.com/en-us/microsoft-copilot-studio/analytics-consumption) and applicable licensing. +- **Dify:** Dify can be self-hosted under the repository's [Dify Open Source License](https://github.com/langgenius/dify/blob/main/LICENSE), which modifies Apache 2.0 with additional conditions. [Dify Cloud pricing](https://dify.ai/pricing/dify-cloud) packages workspace features and usage allowances by plan. +- **CrewAI:** CrewAI's public framework uses the [MIT License](https://github.com/crewAIInc/crewAI/blob/main/LICENSE) and can run in user-controlled infrastructure. [CrewAI pricing](https://crewai.com/pricing) separates its free offering from custom enterprise deployment and governance services. + +License labels matter in production procurement. Source availability does not automatically grant the same rights as an OSI-approved open-source license. + +## How should teams choose among platforms used in production? + +Choose **[n8n](https://github.com/n8n-io/n8n)** when integration breadth and deterministic automation are the primary requirements. Choose **[LangGraph](https://github.com/langchain-ai/langgraph/)** when an engineering team wants to define stateful agent behavior in code. Choose **[Microsoft Copilot Studio](https://learn.microsoft.com/en-us/microsoft-copilot-studio/)** when Microsoft identity, Power Platform, and Microsoft 365 distribution dominate the decision. Choose **[Dify](https://github.com/langgenius/dify/)** when the main job is deploying RAG applications or internal LLM tools. Choose **[CrewAI](https://github.com/crewAIInc/crewAI)** when the design genuinely requires multiple specialized agents. + +Choose **Sim** when technical and semi-technical teammates need to collaborate in a visual builder while retaining self-hosting, model choice, extensibility, execution logs, and human approval steps. Sim's [Human in the Loop block](https://docs.sim.ai/workflows/blocks/human-in-the-loop) pauses the run and resumes with submitted form fields, and a downstream Condition routes on an approve-or-reject field. + +Teams moving beyond a proof of concept can use [Moving AI Agent Prototypes Into Production: A Practical Guide](https://www.sim.ai/library/moving-ai-agent-prototypes-into-production) for rollout steps. Procurement teams can examine financial and operational risk in [AI Agent Platform Vendor Viability: Funding, Adoption, and Staying Power Compared](https://www.sim.ai/library/ai-agent-platform-vendor-viability-funding-adoption-staying-power). + +## Which related AI agent platform comparisons should buyers read? + +These related guides separate broad platform selection from licensing, enterprise controls, and hosting questions: + +- [Best AI Agent Platforms and Builders in 2026](https://www.sim.ai/library/best-ai-agent-platforms-2026) compares the broader market. +- [Best Open Source AI Agent Platforms in 2026](https://www.sim.ai/library/open-source-ai-agent-platforms) focuses on licenses, source access, and self-hosting. +- [AI Agent Hosting: Where Should IT Run Production Agents?](https://www.sim.ai/library/ai-agent-hosting-models-production-agents) compares cloud, self-hosted, and hybrid deployment choices. + +## Sources checked in November 2026 + +This comparison uses first-party repositories, release histories, license files, product documentation, customer material, and pricing pages. Repository star counts are snapshots from November 2026 and will change. + +- [Sim GitHub repository](https://github.com/simstudioai/sim) +- [Sim core Apache 2.0 license](https://github.com/simstudioai/sim/blob/main/LICENSE) +- [Sim Enterprise License](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE) +- [n8n GitHub repository](https://github.com/n8n-io/n8n) +- [n8n Sustainable Use License](https://github.com/n8n-io/n8n/blob/master/LICENSE.md) +- [n8n releases](https://github.com/n8n-io/n8n/releases/) +- [LangGraph GitHub repository](https://github.com/langchain-ai/langgraph/) +- [LangGraph releases](https://github.com/langchain-ai/langgraph/releases) +- [Dify GitHub repository](https://github.com/langgenius/dify/) +- [Dify license](https://github.com/langgenius/dify/blob/main/LICENSE) +- [Dify releases](https://github.com/langgenius/dify/releases/) +- [CrewAI GitHub repository](https://github.com/crewAIInc/crewAI) +- [CrewAI releases](https://github.com/crewAIInc/crewAI/releases) +- [Microsoft Copilot Studio documentation](https://learn.microsoft.com/en-us/microsoft-copilot-studio/) +- [Microsoft Copilot Studio licensing](https://learn.microsoft.com/en-us/microsoft-copilot-studio/billing-licensing) diff --git a/apps/sim/public/library/ai-agent-platforms-teams-use-production-2026/cover.jpg b/apps/sim/public/library/ai-agent-platforms-teams-use-production-2026/cover.jpg new file mode 100644 index 0000000000000000000000000000000000000000..71b025986157a55ab3ad10b52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s(library): update crewai-vs-langgraph-vs-autogen (#10486) Co-authored-by: Sim Pi Agent --- .../crewai-vs-langgraph-vs-autogen/index.mdx | 42 ++++++++++++++----- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/apps/sim/content/library/crewai-vs-langgraph-vs-autogen/index.mdx b/apps/sim/content/library/crewai-vs-langgraph-vs-autogen/index.mdx index 3fdc0a899a4..d51892bfd96 100644 --- a/apps/sim/content/library/crewai-vs-langgraph-vs-autogen/index.mdx +++ b/apps/sim/content/library/crewai-vs-langgraph-vs-autogen/index.mdx @@ -4,10 +4,10 @@ title: 'CrewAI vs LangGraph vs AutoGen: Which Multi-Agent Framework Should You C description: 'Compare CrewAI, LangGraph, and AutoGen on orchestration, state, human review, deployment, licensing, and fit for production multi-agent systems.' seoTitle: 'CrewAI vs LangGraph vs AutoGen: 2026 Comparison' date: 2026-10-22 -updated: 2026-10-22 +updated: 2026-11-28 authors: - andrew -readingTime: 11 +readingTime: 13 tags: [AI Agents, Multi-Agent Systems, Agent Frameworks, Sim] ogImage: /library/crewai-vs-langgraph-vs-autogen/cover.jpg draft: false @@ -33,17 +33,35 @@ faq: - q: "Can CrewAI, LangGraph, and AutoGen be self-hosted?" a: "CrewAI, LangGraph, and AutoGen can all run in infrastructure controlled by the developer because their framework code uses permissive MIT licenses. Self-hosting still requires teams to operate model access, compute, storage, credentials, monitoring, upgrades, and security controls." - q: "Are CrewAI, LangGraph, and AutoGen open source?" - a: "CrewAI, LangGraph, and AutoGen publish their framework code under the OSI-approved MIT License as of October 2026. Separate vendor-hosted products, deployment services, and enterprise capabilities can have different commercial terms, so teams should review those terms independently from the framework license." + a: "CrewAI, LangGraph, and AutoGen publish their framework code under the OSI-approved MIT License as of November 2026. Separate vendor-hosted products, deployment services, and enterprise capabilities can have different commercial terms, so teams should review those terms independently from the framework license." - q: "Which is best for multi-agent workflows: CrewAI, LangGraph, or AutoGen?" a: "CrewAI is best for structured role-and-task workflows, LangGraph is best for stateful and tightly controlled workflows, and AutoGen is best for conversation-driven collaboration in an existing AutoGen application. For a new long-lived system, compare Microsoft Agent Framework instead of adopting archived AutoGen. The final choice should be based on a failure-and-recovery prototype using the team's real approval, persistence, and cost constraints." + - q: "Is AG2 the same as Microsoft AutoGen?" + a: "AG2 is not the same project as Microsoft AutoGen; it is an independently maintained project whose classic codebase was forked from AutoGen and whose current framework follows its own release path." --- ## TL;DR -**Best overall: LangGraph** for new production systems that need explicit state, recovery, and human review. CrewAI is the faster choice for role-based multi-agent teams, while AutoGen is now most relevant to existing conversation-driven agent systems because [Microsoft has archived it and recommends Microsoft Agent Framework for new work](https://github.com/microsoft/autogen/blob/main/README.md). This guide is published by Sim, the open-source AI workspace for building, deploying, and managing AI agents. +Choose LangGraph when a new production system needs explicit state, recovery, and human review. Choose CrewAI when role-based teams and tasks match the application. Treat AutoGen as an option for existing systems because [Microsoft has archived it and recommends Microsoft Agent Framework for new work](https://github.com/microsoft/autogen/blob/main/README.md). Sim fits teams that want coordinated agents in a visual workspace, while n8n fits teams whose primary requirement is application automation. + +The comparison below reflects first-party project documentation available as of November 2026. + +| Option | Best fit | Main tradeoff | +|---|---|---| +| LangGraph | Engineering teams that need [explicit state, branching, persistence, and recovery](https://docs.langchain.com/oss/python/langgraph/overview) | Teams maintain graph logic and application infrastructure | +| CrewAI | Python teams that want [agents organized around roles, crews, tasks, and flows](https://docs.crewai.com/edge/en/concepts/crews) | Its abstractions can be restrictive when an application needs unusual state transitions | +| AutoGen | Teams maintaining existing AutoGen applications or studying conversational agent patterns | The [archived project receives no fixes or support](https://github.com/microsoft/autogen/blob/main/README.md) | +| Sim | Teams that want to build and operate multi-agent workflows in a visual workspace | Sim is a workspace rather than a Python framework embedded directly in application code | +| n8n | Teams combining AI steps with [application automation](https://docs.n8n.io/build/integrate-ai/) | n8n is primarily an automation product rather than a dedicated code-first multi-agent framework | The three Python-first frameworks overlap, but they start from different abstractions. CrewAI organizes agents into crews, roles, and tasks. LangGraph models execution as a stateful graph. AutoGen coordinates agents through messages and conversations. The right choice depends less on headline feature lists than on how your team wants to represent control, state, and human intervention. +## AutoGen status in November 2026 + +AutoGen remains available for existing applications, but [Microsoft has archived the repository](https://github.com/microsoft/autogen/blob/main/README.md), ended bug fixes and security fixes, and directs developers starting new systems to [Microsoft Agent Framework](https://github.com/microsoft/agent-framework). Microsoft describes Agent Framework as AutoGen's successor and provides migration examples for teams moving existing applications. + +AG2 is separate from both Microsoft projects. [AG2's repository](https://github.com/ag2ai/ag2) describes its current framework as independently developed, while its notice identifies the classic codebase as a fork of AutoGen v0.2.35. Teams evaluating the AutoGen lineage should compare Microsoft Agent Framework and AG2 directly rather than treating them as the same project. + ## What is the difference between CrewAI, LangGraph, and AutoGen? CrewAI, LangGraph, and AutoGen differ primarily in their orchestration model: CrewAI is role-and-task oriented, LangGraph is graph-and-state oriented, and AutoGen is conversation oriented. @@ -62,7 +80,7 @@ CrewAI, LangGraph, and AutoGen are code-first frameworks that can run in develop - **LangGraph:** LangGraph's library uses the [MIT License](https://github.com/langchain-ai/langgraph/blob/main/LICENSE), while LangSmith Deployment (formerly LangGraph Platform) documents [Cloud, BYOC, and Self-hosted deployment options](https://docs.langchain.com/langsmith/platform-setup), with BYOC and Self-hosted on the Enterprise plan. - **AutoGen:** AutoGen's code uses the [MIT License](https://github.com/microsoft/autogen/blob/main/LICENSE-CODE), but the project is archived and its repository recommends [Microsoft Agent Framework](https://github.com/microsoft/agent-framework) for new work. -These license and commercial-service details are current as of October 2026. A permissive framework license does not automatically grant rights to a vendor's separate hosted control plane, deployment service, or enterprise features. +These license and commercial-service details are current as of November 2026. A permissive framework license does not automatically grant rights to a vendor's separate hosted control plane, deployment service, or enterprise features. ## How do CrewAI, LangGraph, and AutoGen compare? @@ -232,15 +250,15 @@ The conversation is concise, but production teams should set hard termination co CrewAI has a first-party hosted product, LangGraph pairs its open-source library with deployment services, and AutoGen has been superseded by Microsoft Agent Framework. -As of October 2026, the CrewAI framework code is available under the [MIT License](https://github.com/crewAIInc/crewAI/blob/main/LICENSE), while CrewAI also provides a vendor-managed path for deploying and operating crews. CrewAI's [pricing page](https://crewai.com/pricing) distinguishes free access from custom enterprise purchasing and lists hosted execution limits separately from the framework license. Teams should compare expected executions, concurrency, retention, support, and governance rather than treating the framework's free license as the total production cost. +As of November 2026, the CrewAI framework code is available under the [MIT License](https://github.com/crewAIInc/crewAI/blob/main/LICENSE), while CrewAI also provides a vendor-managed path for deploying and operating crews. CrewAI's [pricing page](https://crewai.com/pricing) distinguishes free access from custom enterprise purchasing and lists hosted execution limits separately from the framework license. Teams should compare expected executions, concurrency, retention, support, and governance rather than treating the framework's free license as the total production cost. -As of October 2026, LangGraph is available under the [MIT License](https://github.com/langchain-ai/langgraph/blob/main/LICENSE). Teams can operate the library themselves or choose [LangSmith Deployment (formerly LangGraph Platform)](https://docs.langchain.com/langsmith/platform-setup) with Cloud, BYOC, or Self-hosted options; BYOC and Self-hosted are available on the Enterprise plan. The practical cost therefore depends on model calls, infrastructure, graph executions, retention, and any commercial services selected. +As of November 2026, LangGraph is available under the [MIT License](https://github.com/langchain-ai/langgraph/blob/main/LICENSE). Teams can operate the library themselves or choose [LangSmith Deployment (formerly LangGraph Platform)](https://docs.langchain.com/langsmith/platform-setup) with Cloud, BYOC, or Self-hosted options; BYOC and Self-hosted are available on the Enterprise plan. The practical cost therefore depends on model calls, infrastructure, graph executions, retention, and any commercial services selected. -As of October 2026, AutoGen's framework code remains available under the [MIT License](https://github.com/microsoft/autogen/blob/main/LICENSE-CODE), but Microsoft has [archived the project](https://github.com/microsoft/autogen/blob/main/README.md) and recommends Microsoft Agent Framework. Existing AutoGen applications do not automatically become Agent Framework applications, so teams should evaluate migration work and security exposure rather than adopting AutoGen for a new long-lived system. +As of November 2026, AutoGen's framework code remains available under the [MIT License](https://github.com/microsoft/autogen/blob/main/LICENSE-CODE), but Microsoft has [archived the project](https://github.com/microsoft/autogen/blob/main/README.md) and recommends Microsoft Agent Framework. Existing AutoGen applications do not automatically become Agent Framework applications, so teams should evaluate migration work and security exposure rather than adopting AutoGen for a new long-lived system. Self-hosting any of the three frameworks still leaves teams responsible for model charges, compute, storage, secrets, logs, identity, network controls, upgrades, and incident response. A permissive license lowers software restrictions but does not eliminate operating costs. -CrewAI, LangGraph, and AutoGen are also not direct equivalents to n8n. [n8n describes itself as a fair-code workflow automation tool](https://docs.n8n.io/) with AI capabilities, while these three are Python-first frameworks for agent orchestration. As of October 2026, n8n uses the [Sustainable Use License](https://docs.n8n.io/n8n-community-license), a fair-code license rather than an OSI-approved open-source license. Teams comparing code-first agents with broader automation products can review the [n8n alternatives comparison](https://www.sim.ai/library/n8n-alternatives). +CrewAI, LangGraph, and AutoGen are also not direct equivalents to n8n. [n8n describes itself as a fair-code workflow automation tool](https://docs.n8n.io/) with AI capabilities, while these three are Python-first frameworks for agent orchestration. As of November 2026, n8n uses the [Sustainable Use License](https://docs.n8n.io/n8n-community-license), which its [repository license](https://github.com/n8n-io/n8n/blob/master/LICENSE.md) presents as a source-available fair-code license that is not OSI approved. Teams comparing code-first agents with broader automation products can review the [n8n alternatives comparison](https://www.sim.ai/library/n8n-alternatives). ## Which should you choose: CrewAI, LangGraph, or AutoGen? @@ -267,7 +285,11 @@ Maintain or evaluate migration from **AutoGen** when: - The team accepts responsibility for controlling turn count and termination. - The team has a plan to move to Microsoft Agent Framework or another maintained option. -Choose none of these frameworks without further evaluation when the primary requirement is visual construction by technical and semi-technical collaborators. Sim, the open-source AI workspace for building, deploying, and managing AI agents, fits teams that want a visual builder and 270+ integrations when a code-first framework would exclude important operators or reviewers. +Choose none of these frameworks without further evaluation when the primary requirement is visual construction by technical and semi-technical collaborators. Sim, the open-source AI workspace where teams build, deploy, and manage AI agents, fits teams that want a visual builder and 270+ integrations when a code-first framework would exclude important operators or reviewers. + +Sim's core uses the Apache 2.0 license, while code in `apps/sim/ee` uses the separate [Sim Enterprise License](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE) and requires an active Sim Enterprise subscription for production use. [Self-hosted Sim deployments](https://docs.sim.ai/platform/self-hosting) can use local models through Ollama, vLLM, LM Studio, or LiteLLM without an Enterprise subscription, and [workspace BYOK keys](https://docs.sim.ai/platform/costs#bring-your-own-key-byok) work on every Sim Cloud plan. Human in the Loop pauses a run and resumes with submitted form fields; a downstream Condition must inspect an approve or reject field before routing the workflow. + +Consider n8n when application connectivity and deterministic business-process automation matter more than code-first agent orchestration. n8n can incorporate AI agents and tool calls into broader workflows, but its Sustainable Use License is source available and not OSI approved. A proof of concept should test the hardest production behavior rather than the easiest demo. For CrewAI, test task recovery and observability. For LangGraph, test checkpoint persistence and state migration. For an existing AutoGen system, test termination, cost limits, migration, and recovery from an unproductive conversation. From 57085b939eefc628d8b4cfb31f11e08d5c3e956b Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 11:34:56 -0800 Subject: [PATCH 06/20] docs(library): update best-vellum-alternatives-2026 (#10487) * docs(library): update best-vellum-alternatives-2026 * Pi Babysit: address PR #10487 feedback --------- Co-authored-by: Sim Pi Agent --- .../best-vellum-alternatives-2026/index.mdx | 204 +++++++++++++----- 1 file changed, 147 insertions(+), 57 deletions(-) diff --git a/apps/sim/content/library/best-vellum-alternatives-2026/index.mdx b/apps/sim/content/library/best-vellum-alternatives-2026/index.mdx index 690ff937dbd..45bbc6c505a 100644 --- a/apps/sim/content/library/best-vellum-alternatives-2026/index.mdx +++ b/apps/sim/content/library/best-vellum-alternatives-2026/index.mdx @@ -1,12 +1,13 @@ --- slug: best-vellum-alternatives-2026 -title: 'Best Vellum Alternatives in 2026 for Non-Engineers' -description: 'Compare Vellum alternatives for non-engineers across visual building, evaluation, deployment, self-hosting, and pricing.' +title: 'Best Vellum.ai Alternatives in 2026 for Non-Engineers' +seoTitle: 'Vellum.ai Alternatives for Non-Engineers in 2026' +description: 'Compare the best Vellum.ai alternatives for non-engineers, including Sim, Gumloop, Make.com, Stack AI, n8n, Dify, Relevance AI, and Workato.' date: 2026-10-19 -updated: 2026-10-19 +updated: 2026-11-28 authors: - andrew -readingTime: 7 +readingTime: 15 tags: [AI Agents, Vellum Alternatives, AI Tools, Sim] ogImage: /library/best-vellum-alternatives-2026/cover.jpg draft: false @@ -14,118 +15,207 @@ faq: - q: "What makes an AI builder friendly to non-engineers?" a: "You should be able to connect steps visually, test outputs, and deploy a workflow without writing code. Sim also lets you build and edit workflows through plain-language requests." - q: "Does Vellum have a free plan?" - a: "Vellum does not publish pricing for its AI development platform on vellum.ai. The vellum.ai pricing page covers only its Personal Assistant product, which offers a free start with your first tasks included, then Mighty at $30 per month, Super at $100, Ultra at $200, and a configurable Custom plan. A banner on that page says the Personal Assistant platform shuts down on November 2, 2026." + a: "As of November 2026, Vellum does not publish pricing for its AI development platform on vellum.ai. The vellum.ai pricing page covers only its Personal Assistant product, which offers a free start with your first tasks included, then Mighty at $30 per month, Super at $100, Ultra at $200, and a configurable Custom plan; a banner says the Personal Assistant platform shut down on November 2, 2026." - q: "Is Sim really free to self-host?" - a: "Yes. Sim's Apache 2.0-licensed core has no self-hosting license fee, and you can run it with Docker Compose or Kubernetes. You still pay for your infrastructure and any model usage. Enterprise features such as single sign-on (SSO), which lets people log in with their company account, need an Enterprise subscription for production use under the Sim Enterprise License." + a: "Yes, Sim's Apache 2.0-licensed core has no self-hosting license fee, and you can run it with Docker Compose or Kubernetes while paying for your infrastructure and model usage. Enterprise features such as single sign-on need an Enterprise subscription for production use under the Sim Enterprise License." - q: "How does evaluation tooling differ?" - a: "Vellum runs Test Suites of test cases with expected outputs, scored by metrics from 0 to 1, for regression testing before you deploy a change to a Prompt or Workflow. Sim offers an Evaluator block for scoring workflow outputs and a Guardrails block for validation. Relevance AI lists agent evaluations on Enterprise, Gumloop has an Evaluations view on each agent's Performance page, and Dify and Langflow focus on debugging tools such as run history, Playground testing, and traces." + a: "Vellum runs Test Suites with expected outputs and metrics scored from 0 to 1 for regression testing before deployment, while Sim offers an Evaluator block for scoring outputs and a Guardrails block for validation. Relevance AI lists agent evaluations on Enterprise, Gumloop has an Evaluations view, and Dify and Langflow focus on debugging through run history, Playground testing, and traces." - q: "How can I migrate from Vellum?" a: "Rebuild your workflows in Sim, transfer your prompts and test cases, and compare outputs before switching live traffic. Check the Sim and Vellum comparison for differences in building and deployment options." + - q: "What is a Vellum alternative that's easier for non engineers to use?" + a: "Sim fits non-engineers who need a visual builder without giving up model choice, custom code, or self-hosting. Gumloop also fits teams that prefer a fully managed cloud experience, while Make.com suits conventional SaaS automation." + - q: "Is Gumloop or Vellum AI better?" + a: "Gumloop fits non-engineers who prioritize approachable visual automation, while Vellum AI fits teams centered on prompt development, evaluation, and controlled AI application releases. The right choice depends on whether ease of business automation or AI development lifecycle tooling is the primary requirement." + - q: "Is Make.com or Vellum AI better?" + a: "Make.com fits broad SaaS integration and deterministic visual automation, while Vellum AI fits prompt engineering, model evaluation, and production AI application development. Teams should choose Make.com for integration-led automation and Vellum AI for AI-development-led workflows." + - q: "How does Vellum compare to Stack AI for building no code AI workflows?" + a: "Vellum emphasizes prompt development, evaluation, and AI application lifecycle controls, while Stack AI emphasizes no-code enterprise AI applications and knowledge workflows. Stack AI fits non-technical enterprise users assembling internal AI applications, whereas Vellum fits AI teams that need rigorous development and evaluation tooling." + - q: "Which Vellum.ai alternatives can be self-hosted?" + a: "Sim, n8n, Dify, and Langflow are the clearest self-hosted Vellum.ai alternatives in this comparison. Sim supports local models on any self-hosted deployment, n8n supports self-managed workflow deployment under its source-available license, Dify offers self-hosted LLM application deployment, and Langflow can run on infrastructure the team manages." + - q: "Is n8n a good Vellum alternative?" + a: "n8n fits technical teams that prioritize integrations, code steps, and self-hosted general-purpose automation. Vellum remains more specialized around prompt development, evaluation, and the lifecycle of production AI applications." + - q: "What should an enterprise evaluate before replacing Vellum.ai?" + a: "Enterprise buyers should compare Vellum.ai alternatives on model access, evaluation support, identity and access controls, auditability, deployment boundaries, data handling, versioning, integration coverage, migration effort, and total operating cost. A representative proof of concept is more reliable than comparing feature checklists alone." --- +Vellum.ai alternatives include Sim for flexible visual agent building and self-hosting, Gumloop for approachable cloud automation, Make.com for broad app automation, Stack AI for enterprise no-code AI applications, n8n for technical workflow automation, Dify for self-hosted large language model (LLM) applications, Relevance AI for managed agent teams, Workato for enterprise integration, and Langflow for developer-led visual AI flows. Sim fits teams that want non-engineers to build visually while retaining model choice, code-level extensibility, evaluation blocks, and a self-hosting path. + ## TL;DR -- **Sim** ranks first. It is an open-source AI workspace for teams, where non-engineers can build and deploy AI agents in the visual builder or ask Sim in Chat to create and edit workflows. Sim Cloud has a free plan, and [Sim's Apache 2.0 core can be self-hosted, with enterprise features covered by a separate license](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE). See the [Sim and Vellum comparison](https://www.sim.ai/comparisons/vellum). -- **Gumloop** is best for business teams that want an AI agent builder that starts from a description of the job. -- **Relevance AI** is best for go-to-market teams that want self-serve agent plans and an enterprise upgrade path. -- **Dify** is best for teams that want a visual builder with a free, self-hostable Community edition. -- **Langflow** is best for experimenting with visual AI flows under an MIT license. +- **Sim** fits cross-functional teams that need a visual builder, Chat-based workflow editing, custom code, model choice, and cloud or self-hosted deployment. [Sim's core is Apache 2.0, while enterprise capabilities use the separate Sim Enterprise License](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE). +- **Gumloop** fits business teams that want a guided experience in a [managed cloud or Enterprise virtual private cloud (VPC)](https://www.gumloop.com/enterprise). +- **Make.com** fits teams connecting SaaS applications through [deterministic visual scenarios](https://www.make.com/pricing). +- **Stack AI** fits enterprises building governed internal AI applications with [private deployment requirements](https://www.stack-ai.com/). +- **n8n** fits technical automation teams that want code steps, integrations, and [self-hosting](https://docs.n8n.io/deploy/host-n8n). +- **Relevance AI** fits go-to-market teams that want [self-serve agent plans and an enterprise upgrade path](https://relevanceai.com/docs/get-started/pricing). +- **Dify** fits teams that want a visual builder with a [free, self-deployable Community edition](https://dify.ai/pricing). +- **Workato** fits large organizations prioritizing [governed integration across business systems](https://www.workato.com/pricing). +- **Langflow** fits technical teams experimenting with visual AI flows under an [MIT license](https://github.com/langflow-ai/langflow/blob/main/LICENSE). + +All dated product, deployment, license, and pricing descriptions in this guide are current as of November 2026. ## Why non-engineers look past Vellum [Vellum's documentation describes an end-to-end AI development platform](https://docs.vellum.ai/home/getting-started/overview) where technical and non-technical team members work together. Its [Agent Builder](https://docs.vellum.ai/product/agent-builder/agent-builder-sme) builds Workflows from plain-language instructions. The friction for non-engineers shows up elsewhere. -First, the platform is organized around a release process. Vellum separates [Prompt Sandboxes, Workflow Sandboxes, Test Suites, Deployments, and Environments](https://docs.vellum.ai/product/deployments/environments), and supports [Release Reviews](https://docs.vellum.ai/product/deployments/release-reviews) modeled on pull request reviews. Its Workflows documentation describes the end goal as deploying a Workflow and calling [an API to invoke it from an application](https://docs.vellum.ai/product/workflows/introduction). That model serves teams shipping AI features inside an existing product. +First, the platform is organized around a release process. Vellum separates [Prompt Sandboxes, Workflow Sandboxes, Test Suites, Deployments, and Environments](https://docs.vellum.ai/product/deployments/environments), and supports [Release Reviews](https://docs.vellum.ai/product/deployments/release-reviews) modeled on pull request reviews. Its Workflows documentation describes the end goal as deploying a Workflow and calling [an application programming interface (API) to invoke it from an application](https://docs.vellum.ai/product/workflows/introduction). That model serves teams shipping AI features inside an existing product. -Second, it is hard to evaluate the AI development platform from Vellum's public website. As of October 2026, the [vellum.ai pricing page](https://www.vellum.ai/pricing) lists plans for Vellum's personal assistant product, while a separate notice says that the [Personal Assistant platform will shut down on November 2, 2026](https://www.vellum.ai/vellum-assistant-platform-shutdown). The AI development platform described in the docs has no published price on vellum.ai, and [self-hosted Vellum](https://docs.vellum.ai/self-hosting/getting-started/introduction) is arranged by contacting the team. +Second, the AI development platform does not publish a price on Vellum's public site. As of November 2026, the [vellum.ai pricing page](https://www.vellum.ai/pricing) describes the separate Personal Assistant product, while Vellum's notice says that the [Personal Assistant platform shut down on November 2, 2026](https://www.vellum.ai/vellum-assistant-platform-shutdown). The AI development platform remains documented, and [self-hosted Vellum](https://docs.vellum.ai/self-hosting/getting-started/introduction) is arranged by contacting the team. -The alternatives below are compared on how you build, evaluation and testing tools, deployment options, self-hosting, and published pricing. For a broader market view, see the guides to [AI agent platforms](https://www.sim.ai/library/best-ai-agent-platforms-2026) and [AI agent workflow builders](https://www.sim.ai/library/best-ai-workflow-builders). +The alternatives below are compared by build style, model choice, deployment, governance, evaluation, and pricing model. For broader market context, see the guides to [AI agent platforms](https://www.sim.ai/library/best-ai-agent-platforms-2026), [AI agent workflow builders](https://www.sim.ai/library/best-ai-workflow-builders), and [no-code AI agent builders](https://www.sim.ai/library/best-no-code-ai-agent-builders-2026). ## Comparison table -| Rank and tool | How you build | Evaluation and testing | Deployment | Self-hosting | Starting price | -|---|---|---|---|---|---| -| 1. [Sim](https://www.sim.ai/comparisons/vellum) | Visual builder, plus Chat for creating and editing workflows in plain language | [Evaluator](https://docs.sim.ai/workflows/blocks/evaluator) and [Guardrails](https://docs.sim.ai/workflows/blocks/guardrails) blocks | [API, chat interface, scheduled or webhook trigger, or MCP server tool](https://docs.sim.ai/workflows/deployment) (MCP is a protocol that lets AI apps call tools) | [Apache 2.0 core via Docker Compose or Kubernetes; enterprise features are separately licensed](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE) | [Free; Pro from $25 per user per month](https://www.sim.ai/pricing) | -| 2. [Gumloop](https://www.gumloop.com/pricing) | Agent builder that starts by asking what the agent should handle | [Evaluations and Insights on an agent Performance page](https://docs.gumloop.com/core-concepts/agent_performance) | Gumloop cloud, or [VPC deployment on Enterprise](https://www.gumloop.com/enterprise) (a VPC is a private network in your own cloud account) | [VPC deployment in your AWS, Azure, or Google Cloud environment](https://www.gumloop.com/enterprise) | [Pro from $37 per month after a 14-day trial](https://www.gumloop.com/pricing) | -| 3. [Relevance AI](https://relevanceai.com/pricing) | [Invent, an AI solutions engineer that helps teams decide what to automate and turn their expertise into agents](https://relevanceai.com/) | [Agent evaluations on Enterprise](https://relevanceai.com/docs/get-started/pricing) | [Agents receive tasks through native app triggers, webhooks, and cron schedules](https://relevanceai.com/enterprise) | [No self-hosted edition is listed](https://relevanceai.com/docs/get-started/pricing) | [Pricing docs list Pro from $19 per month billed annually](https://relevanceai.com/docs/get-started/pricing); the [pricing page](https://relevanceai.com/pricing) lists only custom Enterprise | -| 4. [Dify](https://dify.ai/pricing) | [Workflow Studio visual builder](https://dify.ai/workflows) for agentic workflows | [Node-level testing and run history](https://docs.dify.ai/en/cloud/use-dify/debug/history-and-logs) | [Web app, API, or embed](https://docs.dify.ai/en/cloud/use-dify/publish/README) | [Community edition under a modified Apache 2.0 license](https://github.com/langgenius/dify/blob/main/LICENSE) | [Sandbox free; Professional $59 per workspace per month or $590 annually](https://dify.ai/pricing) | -| 5. [Langflow](https://www.langflow.org/) | Low-code visual builder aimed at technical teams | [Playground testing and built-in traces](https://docs.langflow.org/traces) | [API, embedded chat widget, or MCP server](https://docs.langflow.org/concepts-publish) | [MIT-licensed; Desktop, Docker, or Python package](https://github.com/langflow-ai/langflow/blob/main/LICENSE) | [Free and open source; you host it](https://github.com/langflow-ai/langflow/blob/main/LICENSE) | +| Tool | Best for | Build style | Model choice | Deployment and self-hosting | Governance | Pricing model | +|---|---|---|---|---|---|---| +| **Sim** | Visual AI agents with technical escape hatches | Visual builder, Chat, custom code, and API connections | Multiple hosted providers, workspace bring your own key (BYOK) on every Sim Cloud plan, and local models on self-hosted Sim | [Sim Cloud or self-hosted with Docker Compose or Kubernetes](https://docs.sim.ai/platform/self-hosting); Sim's core is Apache 2.0, while `apps/sim/ee` has separate production licensing | Team controls are available, with enterprise capabilities separately licensed | [Free, Pro, Max, and Enterprise cloud plans](https://www.sim.ai/pricing), usage-based model costs, and enterprise subscriptions | +| **Gumloop** | Approachable AI automation for business teams | Visual, no-code workflow and agent builder | Managed access to supported AI models | [Vendor-managed cloud or VPC deployment on Enterprise](https://www.gumloop.com/enterprise) | [Enterprise identity, governance, security, and admin controls](https://docs.gumloop.com/enterprise-features/overview) | [Subscription plans with usage credits](https://www.gumloop.com/pricing) | +| **Make.com** | SaaS integration and deterministic visual automation | Visual scenarios with triggers, actions, routers, and transformations | AI services through supported modules and connections | Vendor-managed cloud; its [Enterprise on-premise agent connects private systems](https://help.make.com/on-premise-agent) but does not self-host the Make platform | Administration and security features vary by plan | [Subscription tiers measured in credits, with most scenario actions consuming one credit](https://www.make.com/pricing) | +| **Stack AI** | Enterprise no-code AI applications | Visual AI application and agent builder | LLM-agnostic model selection | [Multi-tenant cloud, VPC, or on-premise deployment](https://www.stack-ai.com/) | Feature controls, audit logs, human review, and enterprise security options | [Contact-sales enterprise commercial model](https://www.stack-ai.com/) | +| **n8n** | Technical workflow automation with self-hosting | Node-based editor, expressions, and code | AI providers connected through nodes and credentials | [n8n Cloud or self-hosted on private infrastructure](https://docs.n8n.io/deploy/host-n8n) | Enterprise controls vary by cloud or self-hosted edition | [Cloud plans priced by monthly workflow executions, plus self-hosted Business and Enterprise options](https://n8n.io/pricing/) | +| **Dify** | LLM applications, retrieval-augmented generation, and self-hosting | Visual application and workflow builder | Multiple model providers and compatible endpoints | [Dify Cloud, free Community deployment, or private Enterprise deployment](https://dify.ai/pricing) | Workspace and enterprise controls vary by edition | Cloud subscription and usage limits; self-hosted Community is free and Enterprise is custom-priced | +| **Relevance AI** | Managed AI-agent teams | No-code agent, tool, and workforce builder | Managed models, vendor credits, or BYOK | Vendor-managed cloud with enterprise arrangements | [Enterprise adds evaluations, single sign-on (SSO), role-based access control (RBAC), audit logs, and enterprise triggers](https://relevanceai.com/pricing) | [Pro and Team subscriptions use Actions and Vendor Credits; Enterprise is custom](https://relevanceai.com/docs/get-started/pricing) | +| **Workato** | Governed enterprise integration | Low-code recipes and enterprise orchestration | AI capabilities within Workato's automation environment | Vendor-managed platform with an [on-prem agent for private-network connectivity](https://docs.workato.com/en/on-prem) | [Lifecycle, identity, security, and environment controls vary by edition](https://www.workato.com/pricing) | [Usage-based Workato credits, with contract terms varying by plan](https://docs.workato.com/pricing) | +| **Langflow** | Developer-led visual AI and retrieval-augmented generation (RAG) flows | Low-code visual builder with Python customization | Major LLMs and extensible components | [Desktop, Python, Docker, or self-managed server deployment](https://docs.langflow.org/get-started-installation) | Governance depends on the environment the team operates | Free MIT-licensed software; infrastructure and model costs are separate | +| **Vellum.ai** | Prompt engineering, evaluation, and production AI application development | Visual workflows, prompt tooling, and software development kits (SDKs) | Multiple supported model providers | Vendor-managed cloud or [contact-sales self-hosted deployment](https://docs.vellum.ai/self-hosting/getting-started/introduction) | Evaluation, release, environment, and enterprise controls | AI development platform pricing is not publicly listed | + +Sim's core is licensed under Apache 2.0, while the capabilities in `apps/sim/ee` use the [Sim Enterprise License](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE), which requires an active Enterprise subscription for production use. n8n uses the [Sustainable Use License](https://docs.n8n.io/n8n-community-license), a source-available fair-code license that is not OSI-approved and restricts some commercial hosting and redistribution uses. ### Sim -Sim is an open-source AI workspace for teams. It gives non-engineers two ways to build an agent without writing code. You can describe a workflow in Chat and ask Sim to create or edit it, or connect blocks in the visual builder. Developers can also extend workflows with code. [Compared with Vellum's release-oriented platform](https://www.sim.ai/comparisons/vellum), Sim offers a more direct starting point for people who need to build without dedicated engineering help. +Sim is the open-source AI workspace where teams build, deploy, and manage AI agents. Non-engineers can ask Sim in Chat to create or edit a workflow, or connect blocks in the visual builder, while developers can extend workflows with code. [Compared with Vellum's release-oriented platform](https://www.sim.ai/comparisons/vellum), Sim provides a direct path from visual assembly to deployment without removing technical extension points. -Sim also puts testing controls in the workflow builder. An [Evaluator block](https://docs.sim.ai/workflows/blocks/evaluator) asks a model for numeric scores against metrics you define. A [Guardrails block](https://docs.sim.ai/workflows/blocks/guardrails) validates content and reports whether the check passed; connect a downstream Condition when the result should change the execution path. +- **Best for:** Cross-functional teams building and operating AI agents. +- **Build style:** Sim provides a visual builder alongside Chat, custom code, and API connections. +- **Model and deployment:** Sim supports multiple hosted providers and workspace BYOK on every Sim Cloud plan. Any self-hosted Sim deployment can connect to Ollama, vLLM, LM Studio, or LiteLLM through the documented [self-hosting environment variables](https://docs.sim.ai/platform/self-hosting/environment-variables). +- **Governance and pricing:** Sim offers cloud and self-hosted options. As of November 2026, [Sim Cloud Free includes 1,000 one-time credits; Pro costs $25 per user per month with 6,000 included credits and a 2,000-credit weekly refresh; Max costs $100 per user per month with 25,000 included credits and a 4,000-credit weekly refresh](https://www.sim.ai/pricing). Enterprise capabilities have separate production licensing. +- **Choose it when:** A team needs an approachable visual experience, technical extensibility, model choice, and a self-hosting path in one workspace. -You can deploy a finished workflow through an [API, chat interface, scheduled or webhook trigger, or MCP server tool](https://docs.sim.ai/workflows/deployment). [Sim's Apache 2.0 core can be self-hosted with Docker Compose or Kubernetes, while `apps/sim/ee` is governed by the separate Sim Enterprise License](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE). Enterprise features such as single sign-on (SSO), which lets people log in with their company account, and audit logs require an active Enterprise subscription for production use. +Sim places testing controls in the workflow builder. An [Evaluator block](https://docs.sim.ai/workflows/blocks/evaluator) asks a model for numeric scores against metrics you define. A [Guardrails block](https://docs.sim.ai/workflows/blocks/guardrails) reports whether validation passed; connect a downstream Condition when the result should change the execution path. -**Best for:** Non-engineer teams that want to build, test, and deploy agents visually while retaining a self-hosting option. +You can deploy a workflow through an [API, chat interface, scheduled or webhook trigger, or Model Context Protocol (MCP) server tool](https://docs.sim.ai/workflows/deployment). Sim no longer offers a pre-built workflow template gallery. On Sim Cloud, [Free credits do not refresh and synchronous runs on the Free plan time out after five minutes](https://www.sim.ai/pricing). Self-hosting Sim's core has no license fee, but teams still pay for infrastructure and model usage. -**Pros:** Chat can draft or edit workflows, and built-in blocks let teams configure output checks without code. +### Gumloop -**Cons:** Sim no longer offers a pre-built workflow template gallery. On Sim Cloud, [Free credits do not refresh and synchronous runs on the Free plan time out after five minutes](https://www.sim.ai/pricing). +Gumloop describes itself as a [multiplayer AI agent builder](https://www.gumloop.com/) for business teams, while administrators control access. Its [guided setup asks what a new agent should take care of and configures the agent from the answer](https://docs.gumloop.com/core-concepts/profile_settings). -**Pricing:** As of October 2026, [Sim Cloud Free includes 1,000 one-time credits; Pro costs $25 per user per month with 6,000 included credits and a 2,000-credit weekly refresh; Max costs $100 per user per month with 25,000 included credits and a 4,000-credit weekly refresh](https://www.sim.ai/pricing). [Self-hosting Sim's core has no license fee, but enterprise features have separate terms](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE), and you pay for infrastructure and model usage. +- **Best for:** Operations and go-to-market teams creating AI-assisted automations. +- **Build style:** Gumloop uses a visual, no-code workflow interface and guided agent setup. +- **Model and deployment:** Gumloop provides supported AI capabilities through its managed cloud, with [VPC deployment in AWS, Azure, or Google Cloud on Enterprise](https://www.gumloop.com/enterprise). +- **Governance and pricing:** Workspace controls depend on the selected plan, and usage is measured through credits. As of November 2026, [Pro starts at $37 per month after a free 14-day trial](https://www.gumloop.com/pricing), while Enterprise uses custom pricing. +- **Choose it when:** Fast onboarding for non-engineers matters more than operating the platform on your own infrastructure. -### Gumloop +[Evaluations and Insights sit on an agent's Performance page](https://docs.gumloop.com/core-concepts/agent_performance). Gumloop does not list a conventional self-hosted edition on its pricing page; its private deployment path is the Enterprise VPC option. -Gumloop describes itself as a [multiplayer AI agent builder](https://www.gumloop.com/) that lets business teams build agents while administrators control access. Its [guided setup asks what a new agent should take care of and configures the agent from the answer](https://docs.gumloop.com/core-concepts/profile_settings). +### Relevance AI -**Best for:** Business teams that want to build agents by describing the job rather than wiring each step. +Relevance AI positions itself around an AI workforce, and its [enterprise page](https://relevanceai.com/enterprise) addresses domain experts as well as technical teams. Its platform supports agents, tools, and workforces for recurring business tasks. -**Pros:** The agent builder starts from a plain description of the job, while [Evaluations and Insights sit on the agent's Performance page](https://docs.gumloop.com/core-concepts/agent_performance). +- **Best for:** Go-to-market teams that want self-serve agent building with an enterprise upgrade path. +- **Build style:** Relevance AI provides no-code tools for configuring agents and the tools they use, including [Invent for turning team expertise into agents](https://relevanceai.com/). +- **Model and deployment:** The managed service supports vendor credits and BYOK; enterprise deployment terms are arranged with the vendor. +- **Governance and pricing:** [Pro starts at $19 per month billed annually or $29 monthly, and Team starts at $234 per month billed annually or $349 monthly](https://relevanceai.com/docs/get-started/pricing). Enterprise adds agent evaluations, enterprise triggers, SSO, RBAC, and audit logs. +- **Choose it when:** A managed agent-team experience matters more than self-hosting or an Apache 2.0 core. -**Cons:** There is no self-hosted edition on the pricing page. Data-residency control instead comes through [VPC deployment on Enterprise in an AWS, Azure, or Google Cloud environment](https://www.gumloop.com/enterprise). +As of November 2026, Relevance AI's [public pricing page](https://relevanceai.com/pricing) emphasizes custom Enterprise, while its pricing documentation lists Pro and Team and says the Free plan is retired. Pro includes unlimited agents and tools, and the platform lists [more than 2,000 integrations](https://relevanceai.com/integrations). Buyers should confirm the applicable plan before purchasing. -**Pricing:** As of October 2026, [Pro starts at $37 per month after a free 14-day trial](https://www.gumloop.com/pricing). Enterprise uses custom pricing. +### Dify -### Relevance AI +Dify is a platform for building AI applications with [Workflow Studio](https://dify.ai/workflows), a visual builder for agentic workflows. Teams can test nodes and review [run history](https://docs.dify.ai/en/cloud/use-dify/debug/history-and-logs), then [deploy an app](https://docs.dify.ai/en/cloud/use-dify/publish/README) as a web app, API, or embed. -Relevance AI positions itself around an "AI Workforce," and its [enterprise page](https://relevanceai.com/enterprise) pitches the platform to domain experts as well as technical teams. +- **Best for:** Teams building chat, retrieval-augmented generation, and LLM applications. +- **Build style:** Dify provides visual application and workflow construction. +- **Model and deployment:** Dify supports multiple providers through Dify Cloud and self-deployed Community or Enterprise editions. +- **Governance and pricing:** As of November 2026, [Sandbox is free, Professional costs $59 per workspace per month or $590 per year, and Team costs $159 per workspace per month or $1,590 per year](https://dify.ai/pricing). Enterprise is custom-priced. +- **Choose it when:** LLM application development, knowledge retrieval, and self-deployment matter more than broad business-process automation. -**Best for:** Go-to-market teams that want self-serve agent building with an enterprise upgrade path. +Dify's [license](https://github.com/langgenius/dify/blob/main/LICENSE) is a modified Apache 2.0 license. It requires a commercial license for specified multi-tenant use and restricts removing or changing logo and copyright information in the frontend, so teams should review the terms before adopting it. -**Pros:** [Pro includes unlimited agents and tools, while Enterprise adds agent evaluations, enterprise triggers, SSO, role-based access control (RBAC, which sets permissions by role), and audit logs](https://relevanceai.com/docs/get-started/pricing). The platform also lists [more than 2,000 integrations](https://relevanceai.com/integrations). +### Langflow -**Cons:** [The Free plan is retired for new and existing accounts](https://relevanceai.com/docs/get-started/pricing), and organization-wide controls are reserved for the custom Enterprise tier. +Langflow is a [low-code builder for agentic and retrieval-augmented generation applications](https://www.langflow.org/). Its [source code is MIT-licensed](https://github.com/langflow-ai/langflow/blob/main/LICENSE), and its documentation is aimed at developers, data scientists, and teams building retrieval and multi-agent applications. -**Pricing:** Relevance AI's two official pricing pages disagree. As of October 2026, its [pricing page](https://relevanceai.com/pricing) lists only an Enterprise plan with custom pricing, while its [pricing documentation](https://relevanceai.com/docs/get-started/pricing) lists Pro from $19 per month billed annually ($29 monthly) and Team from $234 per month billed annually ($349 monthly), and says the Free plan is retired. Confirm current plans with Relevance AI before you buy. +- **Best for:** Teams that want a freely licensed starting point for testing AI flow ideas and can manage technical setup. +- **Build style:** Langflow provides a visual builder with Python customization. +- **Model and deployment:** Teams can install Langflow Desktop, use Docker, or install a Python package, then run flows through an [API, embedded chat widget, or MCP server](https://docs.langflow.org/concepts-publish). +- **Governance and pricing:** Langflow is free and open source under the MIT license. Teams pay for infrastructure and models, and governance depends on their deployment environment. +- **Choose it when:** Developer control and permissive licensing matter more than a managed business-user experience. -### Dify +Teams can test flows in the Playground and review [execution traces](https://docs.langflow.org/traces). The [deployment guide](https://docs.langflow.org/deployment-overview) focuses on infrastructure that the team manages, so someone must own operation and security. -Dify is a platform for building AI applications with [Workflow Studio](https://dify.ai/workflows), a visual builder for agentic workflows. You can test nodes and review [run history](https://docs.dify.ai/en/cloud/use-dify/debug/history-and-logs), then [deploy an app](https://docs.dify.ai/en/cloud/use-dify/publish/README) as a web app, API, or embed. +### Make.com -**Best for:** Teams that want a visual LLM application builder with a self-hosting option. +Make.com is a fit when the primary requirement is connecting SaaS applications through visual, deterministic automation rather than managing a specialized AI development lifecycle. -**Pros:** [Dify Cloud has a free Sandbox plan, and the Community edition can be self-deployed](https://dify.ai/pricing). +- **Best for:** Business-process automation across an established application stack. +- **Build style:** Make.com uses [visual scenarios](https://www.make.com/pricing) with triggers, actions, routers, and data transformations. +- **Model and deployment:** Make connects AI services through supported modules while the platform remains vendor-managed; its [on-premise agent](https://help.make.com/on-premise-agent) gives Enterprise scenarios access to approved private systems. +- **Governance and pricing:** Enterprise controls vary by plan. As of November 2026, [Make bills in credits, and most scenario actions consume one credit](https://www.make.com/pricing). +- **Choose it when:** Integration breadth and conventional workflow automation matter more than dedicated prompt evaluation and release workflows. -**Cons:** Dify's [license](https://github.com/langgenius/dify/blob/main/LICENSE) is a modified Apache 2.0 license. It requires a commercial license for specified multi-tenant use and restricts removing or changing logo and copyright information in the frontend, so review the terms before adopting it. +### Stack AI -**Pricing:** As of October 2026, [Dify Cloud's Sandbox plan is free, Professional costs $59 per workspace per month or $590 per year, and Team costs $159 per workspace per month or $1,590 per year](https://dify.ai/pricing). Enterprise is custom-priced. +Stack AI fits enterprises that want no-code internal AI applications and organization-specific deployment arrangements. -### Langflow +- **Best for:** Enterprise teams creating internal AI tools and knowledge applications. +- **Build style:** Stack AI provides a [visual interface for assembling agents and AI applications](https://www.stack-ai.com/). +- **Model and deployment:** Stack AI describes its platform as LLM-agnostic and offers [multi-tenant, VPC, and on-premise deployment](https://www.stack-ai.com/). +- **Governance and pricing:** The vendor lists [feature controls, audit logs, security options, and human review](https://www.stack-ai.com/), with commercial terms supplied through sales. +- **Choose it when:** No-code application delivery and private enterprise deployment requirements outweigh the need for an Apache 2.0 core. -Langflow is a [low-code builder for agentic and retrieval-augmented generation (RAG) applications](https://www.langflow.org/), meaning apps that answer from your own documents. Its [source code is MIT-licensed](https://github.com/langflow-ai/langflow/blob/main/LICENSE), and its documentation is aimed at developers, data scientists, and teams building retrieval and multi-agent applications. +### n8n -**Best for:** Teams that want a freely licensed starting point for testing AI flow ideas and can manage the technical setup. +n8n fits technical automation teams that need extensive workflow integrations, code steps, and the option to self-host. -**Pros:** You can [install Langflow Desktop, use Docker, or install a Python package](https://docs.langflow.org/get-started-installation), test flows in the Playground, and review [execution traces](https://docs.langflow.org/traces). Flows can run through an [API, an embedded chat widget, or an MCP server](https://docs.langflow.org/concepts-publish). +- **Best for:** Developers and automation specialists connecting AI steps to broader operational workflows. +- **Build style:** n8n combines a node-based editor and expressions with [JavaScript or Python code steps](https://docs.n8n.io/build/code-in-n8n/using-the-code-node). +- **Model and deployment:** n8n supports cloud and [self-hosted deployment](https://docs.n8n.io/deploy/host-n8n), and connects to AI providers through workflow nodes and credentials. +- **Governance and pricing:** As of November 2026, [cloud pricing is based on monthly workflow executions, with Starter at €20 per month and Pro at €50 per month when billed annually](https://n8n.io/pricing/). Business and Enterprise controls and commercial terms depend on edition. +- **Choose it when:** General-purpose workflow automation and integration breadth matter more than a platform centered on AI prompt evaluation. -**Cons:** The [deployment guide](https://docs.langflow.org/deployment-overview) focuses on running Langflow on your own infrastructure. Someone on your team needs to manage that infrastructure. +The [Sustainable Use License](https://docs.n8n.io/n8n-community-license/community-license/license-faq) applies to n8n's free self-hosted Community edition. It is source-available and not OSI-approved, and teams should review its commercial hosting and redistribution restrictions. -**Pricing:** Langflow is free and open source under the [MIT license](https://github.com/langflow-ai/langflow/blob/main/LICENSE). You pay for the infrastructure and models you use. +### Workato + +Workato fits large organizations that prioritize governed enterprise integration over a dedicated AI-development environment. + +- **Best for:** Enterprise IT and automation teams integrating critical business systems. +- **Build style:** Workato uses [low-code recipes and enterprise orchestration capabilities](https://www.workato.com/pricing). +- **Model and deployment:** Workato is vendor-managed and uses an [on-prem agent](https://docs.workato.com/en/on-prem/agents) to reach customer-authorized systems in private networks. +- **Governance and pricing:** Workato emphasizes administration, environments, policy, and lifecycle controls. As of November 2026, its current model is [usage-based Workato credits](https://docs.workato.com/pricing/usage-metrics), with plan and contract terms varying by customer. +- **Choose it when:** Enterprise integration governance and application connectivity are the primary selection criteria. + +### Vellum.ai + +Vellum remains the baseline for teams evaluating alternatives because it centers prompt development, testing, release controls, and production AI application workflows. + +- **Best for:** AI product teams that need prompt engineering, evaluations, environments, and controlled releases. +- **Build style:** Vellum combines [visual Workflows, Prompt Sandboxes, Agent Builder, SDKs, and API deployment](https://docs.vellum.ai/home/getting-started/overview). +- **Model and deployment:** Vellum supports multiple model providers through its managed platform and offers [contact-sales self-hosting for private infrastructure](https://docs.vellum.ai/self-hosting/getting-started/introduction). +- **Governance and pricing:** Vellum documents [Test Suites, Environments, and Release Reviews](https://docs.vellum.ai/product/deployments/environments), but does not publish AI development platform pricing on its [public pricing page](https://www.vellum.ai/pricing). +- **Choose it when:** The existing prompt, evaluation, release, and monitoring lifecycle already fits the team and migration would not resolve a documented constraint. ## Choosing the right alternative -- If you need to self-host on a budget, choose Sim. [Sim's core is Apache 2.0 and can be self-hosted, while enterprise features use a separate license](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE); [self-hosted Vellum](https://docs.vellum.ai/self-hosting/getting-started/introduction) is arranged through Vellum's team. -- If you want self-serve plans for go-to-market agents, consider Relevance AI. Its [pricing documentation lists Pro and Team prices](https://relevanceai.com/docs/get-started/pricing), while its [pricing page](https://relevanceai.com/pricing) shows only custom Enterprise. +- If you need cloud or self-hosted agents with a permissively licensed core, Sim fits that requirement. [Sim's core is Apache 2.0 and can be self-hosted, while enterprise features use a separate license](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE); self-hosted Vellum is arranged through Vellum's team. +- If you want self-serve plans for go-to-market agents, consider Relevance AI. Its pricing documentation lists Pro and Team prices, while its public pricing page emphasizes custom Enterprise. - If your team wants to describe an agent's job and let the builder set it up, consider Gumloop. -- If you want source-code access, compare Dify and Langflow. Dify combines a hosted cloud with a self-deployable Community edition under [additional license conditions](https://github.com/langgenius/dify/blob/main/LICENSE), while Langflow uses the [MIT license](https://github.com/langflow-ai/langflow/blob/main/LICENSE) and is self-hosted. +- If you want source-code access, compare Sim, n8n, Dify, and Langflow. Their licenses differ materially, from Apache 2.0 for Sim's core and MIT for Langflow to modified or source-available terms for Dify and n8n. +- If conventional SaaS connectivity is the main requirement, compare Make.com and Workato. Make.com suits visual scenario building, while Workato targets enterprise integration governance. +- If private enterprise deployment and no-code internal applications matter most, Stack AI is designed for that buying context. The related comparisons of [open-source AI agent platforms](https://www.sim.ai/library/open-source-ai-agent-platforms) and [AI agent evaluation platforms](https://www.sim.ai/library/best-ai-agent-evaluation-platforms-2026) go deeper on licensing and testing. +## When should you stay with Vellum? + +Vellum is worth keeping when the team already relies on its prompt-development, evaluation, release, and monitoring workflow and does not have a clear deployment, usability, integration, or licensing gap. + +Migration creates switching costs. Teams must recreate workflows, reconnect data and tools, retest model behavior, rebuild evaluations, and retrain users. Staying with Vellum is usually the lower-risk choice when its existing development lifecycle works, the current deployment arrangement satisfies IT, and the expected gains from another platform do not justify that migration work. + +A proof of concept should use one representative production workflow, the same models and test set, and explicit acceptance criteria for output quality, build time, governance, deployment, and operating cost. The right Vellum.ai alternative is the platform that resolves a documented constraint rather than the one with the longest feature list. + ## Conclusion -For a team without dedicated engineers, the useful test is whether non-technical people can build, evaluate, and deploy an agent without a sales call. Sim ranks first here because Chat and the visual builder support building, its Evaluator and Guardrails blocks support testing, and workflows can deploy through chat interfaces, APIs, triggers, or MCP server tools. [Sim's Apache 2.0 core can also be self-hosted at no license cost, with enterprise features governed by separate terms](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE). +For a team without dedicated engineers, the useful test is whether non-technical people can build, evaluate, and deploy an agent without depending on engineering for every change. Sim fits teams that need Chat and a visual builder for building, Evaluator and Guardrails blocks for testing, technical extension points, and deployment through chat interfaces, APIs, triggers, or MCP server tools. [Sim's Apache 2.0 core can also be self-hosted at no license cost, with enterprise features governed by separate terms](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE). [Try Sim](https://www.sim.ai) or read the [full Vellum comparison](https://www.sim.ai/comparisons/vellum). From a677c4f03adafb1382639e61619a5112008ba889 Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 11:35:10 -0800 Subject: [PATCH 07/20] feat(library): Gumloop Pricing: Plans, Credits, and Costs for Scaling Teams (#10488) Co-authored-by: Sim Pi Agent --- .../gumloop-pricing-credits-cost/index.mdx | 155 ++++++++++++++++++ .../gumloop-pricing-credits-cost/cover.jpg | Bin 0 -> 29986 bytes 2 files changed, 155 insertions(+) create mode 100644 apps/sim/content/library/gumloop-pricing-credits-cost/index.mdx create mode 100644 apps/sim/public/library/gumloop-pricing-credits-cost/cover.jpg diff --git a/apps/sim/content/library/gumloop-pricing-credits-cost/index.mdx b/apps/sim/content/library/gumloop-pricing-credits-cost/index.mdx new file mode 100644 index 00000000000..b7bb329b77b --- /dev/null +++ b/apps/sim/content/library/gumloop-pricing-credits-cost/index.mdx @@ -0,0 +1,155 @@ +--- +slug: gumloop-pricing-credits-cost +title: 'Gumloop Pricing: Plans, Credits, and Costs for Scaling Teams' +description: 'Understand Gumloop pricing, credit usage, overage costs, and how its Pro and Enterprise plans compare with n8n and Sim.' +seoTitle: 'Gumloop Pricing: Plans, Credits, and Costs' +date: 2026-11-28 +updated: 2026-11-28 +authors: + - andrew +readingTime: 7 +tags: [Gumloop, Pricing, AI Agents, Automation, Sim] +ogImage: /library/gumloop-pricing-credits-cost/cover.jpg +draft: false +faq: + - q: "Is Gumloop free?" + a: "Gumloop’s public pricing page lists a 14-day free trial rather than an ongoing Free plan as of November 2026. Continued use starts with the paid Pro plan or a custom Enterprise agreement." + - q: "Does Gumloop charge per workflow run?" + a: "Gumloop does not apply one flat price to every workflow run because usage is metered through credits. Two runs can consume different amounts when they use different models, tools, or processing time." + - q: "Does Gumloop include AI model usage in its credits?" + a: "Gumloop uses credits for model calls and other metered services. Teams should profile representative prompts and input sizes because AI-heavy runs may consume more credits than simpler work." + - q: "Can Gumloop be self hosted?" + a: "Gumloop does not list a self-hosted deployment on its public pricing page as of November 2026. Teams requiring self-hosting can compare alternatives such as Sim or n8n and review the applicable licenses." + - q: "Which AI agent builder has the best free tier for testing before buying?" + a: "The right testing option depends on whether the team wants a hosted trial or can operate its own infrastructure. Gumloop offers a 14-day trial, while Sim’s Apache-licensed core fits technical teams that want to evaluate a self-hosted deployment." + - q: "What is the best value AI agent builder for the price?" + a: "Value depends on the billing unit, deployment model, model costs, and operating effort. Gumloop fits teams that prefer managed credit-based usage, while Sim fits technical teams that want self-hosting and direct control of provider and infrastructure costs." + - q: "What should a team ask for in a Gumloop Enterprise quote?" + a: "Gumloop Enterprise buyers should ask about included credits, overage pricing, support, security capabilities, contract minimums, and the treatment of usage above the allowance. Teams should test the quote against measured credit use per successful production outcome." + - q: "How much capacity should a team add above its Gumloop forecast?" + a: "Teams should base their buffer on observed variation in input size, retries, testing, and seasonal peaks rather than an arbitrary percentage. A forecast built from representative run history is more defensible than one based only on average production volume." +--- + +Gumloop’s published pricing now starts at $37 per month for Pro, while Enterprise pricing is custom. As of November 2026, teams should estimate Gumloop cost by measuring credits across representative work, adding testing and retry usage, and comparing the result with the included allowance and overage terms. + +## TL;DR + +- **Published plans:** The [Gumloop pricing page](https://www.gumloop.com/pricing) lists Pro at $37 per month with 20,000 included monthly credits and Enterprise with custom pricing. +- **Trial:** Gumloop advertises a 14-day free trial rather than an ongoing Free plan. +- **Usage meter:** Gumloop says one credit is worth $0.005, and actual consumption varies with model calls, tool calls, and task duration. +- **Forecasting:** Measure several realistic tasks, then include development, failed work, retries, and a capacity buffer. +- **Alternatives:** n8n meters its Cloud plans by workflow executions, while Sim fits technical teams that want an open-source core, self-hosting, and direct control over model and infrastructure costs. + +## How much does Gumloop cost? + +As of November 2026, Gumloop’s public page lists two plans: [Pro at $37 per month and Enterprise with custom pricing](https://www.gumloop.com/pricing). Pro includes 20,000 credits per month, while Enterprise capacity and commercial terms are negotiated. + +| Gumloop plan | Published price | Included credits | Practical fit | +| --- | ---: | ---: | --- | +| Pro | $37 per month | 20,000 per month | Individuals and teams that can operate within a shared published allowance | +| Enterprise | Custom | Custom | Organizations that need negotiated capacity, support, security, or deployment terms | + +The current pricing page also advertises a 14-day Pro trial. Buyers should model decisions against the current Pro and Enterprise structure. + +The subscription price is only the starting point. A team’s total cost depends on its included credits, any enabled overage, and how much credit its agents and workflows consume. + +## How do Gumloop credits work? + +[Gumloop’s credit documentation](https://docs.gumloop.com/core-concepts/credits) defines credits as the usage currency for model calls, tool calls, and agent activity. It states that one credit is worth $0.005 and that the same agent can consume very different amounts depending on the model, tools, and time required. + +A useful planning formula is: + +**Monthly credits = average credits per successful task × expected successful tasks + credits used by tests, retries, and failed work** + +Teams should measure several representative tasks instead of using one short demonstration as the benchmark. A research task with multiple model and tool calls can consume credits differently from a simple connector action. + +Use this process to estimate monthly demand: + +1. Run each important agent or workflow with realistic inputs. +2. Record the credits consumed by successful work. +3. Test short, typical, and unusually large inputs. +4. Include development runs, retries, and failures. +5. Calculate an average and add a buffer based on observed variation. + +Gumloop’s documentation also says model calls are billed at provider cost converted into credits, while other services can have direct credit charges. That makes the composition of a task more important than run count alone. + +## What do teams pay as Gumloop usage grows? + +Teams pay the Pro subscription while usage stays within its included allowance. According to [Gumloop’s current credit documentation](https://docs.gumloop.com/core-concepts/credits), Pro includes 20,000 monthly credits, unused included credits do not roll over, and enabled overage is billed at $0.005 per credit. + +The scenarios below show planning arithmetic, not universal Gumloop task costs: + +| Monthly successful tasks | Assumed credits per task | Production credits | Example extra usage | Forecast credits | +| ---: | ---: | ---: | ---: | ---: | +| 100 | 20 | 2,000 | 500 | 2,500 | +| 500 | 20 | 10,000 | 2,000 | 12,000 | +| 1,000 | 20 | 20,000 | 4,000 | 24,000 | + +At 24,000 credits, the example exceeds the Pro inclusion by 4,000 credits. At the documented $0.005 overage rate, that excess would add $20 if overage is enabled, producing an illustrative monthly total of $57 before taxes or other negotiated charges. + +The result changes immediately when measured credit use changes. If the same 1,000 tasks average 50 credits each, production alone would consume 50,000 credits. Buyers should therefore profile real work before treating a run forecast as a budget. + +## How should teams calculate Gumloop cost per successful outcome? + +Cost per successful outcome should include the subscription, overage, development usage, retries, and failed attempts. Dividing the list price by all attempts can make an unreliable process appear cheaper than it is. + +Use this formula: + +**Effective cost per successful outcome = total monthly Gumloop spend ÷ successful production outcomes** + +For the 24,000-credit scenario above, the illustrative spend is $57 and the successful task count is 1,000. That produces an effective platform cost of $0.057 per successful outcome. The figure is a scenario calculation, not a fixed Gumloop unit price. + +Underused capacity increases the effective subscription cost per outcome. Credit-intensive tasks and frequent retries increase overage sooner. Teams should track both successful outcomes and total consumed credits so procurement can distinguish productive usage from avoidable spend. + +## When can Sim cost less than Gumloop? + +Sim can cost less when a technical team can self-host Sim’s core, use its own model-provider keys, and operate infrastructure directly instead of buying increasing credit capacity. Sim is the open-source AI workspace where teams build, deploy, and manage AI agents, but the cost case depends on actual model usage, infrastructure, and operating effort. + +Workspace BYOK works on every Sim Cloud plan. The [Sim BYOK guide](https://www.sim.ai/library/byok-multi-model-ai-agent-builder) explains how teams can connect provider keys and manage model access without treating BYOK as an Enterprise-only capability. + +A [self-hosted Sim deployment](https://docs.sim.ai/platform/self-hosting) can also connect to Ollama, vLLM, LM Studio, or LiteLLM. Local models can reduce external model charges for suitable workloads, although teams still pay for compute, storage, networking, maintenance, and staff time. + +[Sim’s core is licensed under Apache 2.0](https://github.com/simstudioai/sim/blob/main/LICENSE) and can be self-hosted. Code in `apps/sim/ee`, including enterprise capabilities such as SSO, SCIM, access control, and audit logs, uses the separate [Sim Enterprise License](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE). It is free for development, testing, and internal non-production use, while production use requires an active Sim Enterprise subscription. + +Sim fits teams that: + +- already operate application infrastructure; +- want direct control over model-provider costs; +- need self-hosted deployment; +- can use local models for part of the workload; or +- need control over deployment and model routing. + +Gumloop can remain the simpler economic fit when a team values a managed service, wants a short hosted trial, and can forecast credit consumption with confidence. + +## How does Gumloop pricing compare with n8n and Sim? + +Gumloop uses credits, [n8n prices its published plans by workflow executions](https://n8n.io/pricing/), and Sim supports managed usage as well as self-hosted deployment with BYOK. The billing unit and deployment model matter because the same business process can produce different metered usage on each product. + +| Platform | Key pricing unit | Deployment and license | Cost fit | +| --- | --- | --- | --- | +| Gumloop | Credits consumed by models, tools, and agent activity | Commercial hosted product with Pro and custom Enterprise plans | Teams that want managed operation and can forecast credit consumption | +| n8n | Workflow executions on published plans | Cloud and self-hosted options under the source-available Sustainable Use License | Teams whose multi-step workflows fit execution-based billing | +| Sim | Managed usage, direct provider costs with BYOK, or self-hosted infrastructure and model costs | Apache 2.0 core with enterprise code under the separate Sim Enterprise License | Technical teams that want deployment and model-cost control | + +The [n8n Sustainable Use License](https://github.com/n8n-io/n8n/blob/master/LICENSE.md) is source-available rather than an OSI-approved open-source license. For a deeper cost breakdown, see [n8n Pricing: Cloud, Self-Hosted, and Enterprise Costs Explained](https://www.sim.ai/library/n8n-pricing-cloud-self-hosted-enterprise). + +## What should buyers know before choosing a plan? + +Buyers should compare billing units, deployment options, model costs, and operating responsibility rather than subscription prices alone. + +- Gumloop’s current public offer uses a Pro allowance plus optional overage, with custom Enterprise terms for larger or specialized requirements. +- n8n’s published pricing is based on workflow executions regardless of standard workflow complexity. +- Sim’s core is Apache 2.0 and self-hostable, while production use of enterprise code requires a Sim Enterprise subscription. +- Sim supports workspace BYOK on every Cloud plan and local-model connections on self-hosted deployments. + +A useful procurement worksheet should record successful outcomes, total attempts, credits or executions, model-provider charges, infrastructure, support, and engineering time. That exposes whether a low entry price remains economical as volume and complexity grow. + +## How can teams choose between Gumloop and Sim? + +Gumloop fits teams that prioritize a managed experience and can forecast credits. Sim fits technical teams that prioritize self-hosting, direct model keys, and control over deployment costs. + +Choose Gumloop when the team wants the vendor to operate the service, can validate credit consumption during the trial, and accepts usage-based overage or negotiated Enterprise capacity. + +Choose Sim when the team wants an open-source core, needs to self-host, wants to connect provider keys directly, or expects credit capacity to become a recurring procurement concern. + +For wider product context, read [Best Gumloop Alternatives in 2026](https://www.sim.ai/library/best-gumloop-alternatives-in-2026). Teams focused on infrastructure control can review [Best Self-Hosted AI Workflow Automation Platforms in 2026](https://www.sim.ai/library/best-self-hosted-ai-workflow-automation-platforms-2026), while teams comparing entry costs can use [Cheapest AI Agent Builders for Startups in 2026](https://www.sim.ai/library/cheapest-ai-agent-builders-for-startups-2026). diff --git a/apps/sim/public/library/gumloop-pricing-credits-cost/cover.jpg b/apps/sim/public/library/gumloop-pricing-credits-cost/cover.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8067d8c07d03cdfbab38ed1fe986b0cdd4011f19 GIT binary patch literal 29986 zcmeFYbyS>B@-IACf;$9vcPF?6cXxujGq@x`5*P+|m*5VA1qkl$4#73JTLLe9W#8RB zXYajx?z#W{o`LgBd)24As;jDdp5~vH0Pg^={(N4)euaSe{6RrRLPAEtMn!x6V3T6u zVm<$n5|R_*KmW7SP*BjYzhz}+eJdd(B%!6Mnyc zp+1Rw25!KAH^h|GE`$RKZ6FRQGr6%Hps7_+_DMIsHM{G2lw5nB2GZWxIk!3L=&-vUO$OhyI(6n>mm_X$H>JORC=w{rq@jk-QH z&ZOXvN!oH7i`k%|awf=#5c7XK2*#(uOals?7s8~jF2u?fK1;nzCA)CSo;Z0Gw5}_HX{>H372m(Q_sZHEKSD=-g91ZX`=Ig9%lRa7WuH}EU{Ob!czY)V*Gao}& zv()Q1?$5e374u%?rM2l6sdUG6?*PF_X4US{vyvR}LK{|RzPkqqqt&yh0AR2O{eAN>l$WKBSKh>gVOP|9I7sOx^!1c! zxc=C-cgt*(Zst4REnsmqLRud0wL}T!rzbR}h3A*P&?V${UrlJx&>spaW;R?EHrm$5 zOb`u4_8Cl!&wwC=!ohMKR5H~8MO*IS>#N2>9Q(`Rg=oUIfD`wMsXJef@SV5Z@N?Fzi3vZ zX~TsY&&377F%&SFj=!MtN%bReq(XiIMT~UPZbxD^?mIolIDpuxp1)`%&E@J zV(~HEPLS%wsn@K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ou1>3Blx6ArSTs>CQCf~%$*PORlU zRPx=DZ=OpzVNS@AqX`$SWz?r8d@jf4Y{3%F@_MVq&P_bDgov_yy%=e*HOyq8rSVH* z_AIS??7-zTT!x7QXZWW+{r8inqNEKvQ!aR7zoy>P;I`5Npk&wg=>wKbQ|E3}9?%&k zKuwD|Yzr-~;+Bq#xC*2Ln%Y~*Z1zjqK#3`=rk~Iu^WDiOYKs5(Z0J8<5~%y<1QR9( ThCDz$|9@zK{v^OZEf)S4BWdMF literal 0 HcmV?d00001 From d5206f06b8d35694918bea9f083fceacdc39eb82 Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 11:35:24 -0800 Subject: [PATCH 08/20] feat(library): LangChain vs LlamaIndex: Which Is Better for Production RAG and Agents? (#10489) Co-authored-by: Sim Pi Agent --- .../library/langchain-vs-llamaindex/index.mdx | 136 ++++++++++++++++++ .../library/langchain-vs-llamaindex/cover.jpg | Bin 0 -> 28320 bytes 2 files changed, 136 insertions(+) create mode 100644 apps/sim/content/library/langchain-vs-llamaindex/index.mdx create mode 100644 apps/sim/public/library/langchain-vs-llamaindex/cover.jpg diff --git a/apps/sim/content/library/langchain-vs-llamaindex/index.mdx b/apps/sim/content/library/langchain-vs-llamaindex/index.mdx new file mode 100644 index 00000000000..0ec119c384f --- /dev/null +++ b/apps/sim/content/library/langchain-vs-llamaindex/index.mdx @@ -0,0 +1,136 @@ +--- +slug: langchain-vs-llamaindex +title: 'LangChain vs LlamaIndex: Which Is Better for Production RAG and Agents?' +description: 'Compare LangChain vs LlamaIndex for production RAG, agents, retrieval, observability, deployment, licensing, and visual alternatives.' +seoTitle: 'LangChain vs LlamaIndex for Production RAG' +date: 2026-11-28 +updated: 2026-11-28 +authors: + - andrew +readingTime: 8 +tags: [AI Agents, RAG, LangChain, LlamaIndex, Sim] +ogImage: /library/langchain-vs-llamaindex/cover.jpg +draft: false +faq: + - q: "Is there an open source alternative to LangChain for agent workflows?" + a: "LlamaIndex is an MIT licensed alternative when agent workflows center on private data and retrieval, while Sim fits teams that want a visual workspace with separate terms for enterprise features." + - q: "LangChain is too complicated, what else can I use to build AI agents?" + a: "Sim fits teams that want a visual builder, while LlamaIndex is a code based alternative when the agent mainly searches and reasons over private data." + - q: "What are the top AI agent tools for RAG over internal documents?" + a: "LlamaIndex fits specialized ingestion and retrieval, LangChain fits RAG inside a broader agent, and Sim fits teams that want to connect knowledge retrieval to operational steps in a visual workspace." + - q: "Can LangChain and LlamaIndex be used together?" + a: "LangChain and LlamaIndex can be used together by exposing LlamaIndex retrieval capabilities to a LangChain agent or graph, but teams should only combine them when the retrieval gains justify the added dependencies and observability work." + - q: "Is LlamaIndex a replacement for LangChain?" + a: "LlamaIndex can replace LangChain in retrieval centered applications, but it is not a universal replacement for LangChain’s broader agent, middleware, and orchestration ecosystem." + - q: "Is LangChain or LlamaIndex easier to learn?" + a: "LlamaIndex is usually easier for a narrowly scoped RAG project, while LangChain is easier to justify when a team expects to build a broader agent application and accepts a larger conceptual surface." + - q: "Are LangChain and LlamaIndex free to use?" + a: "LangChain and LlamaIndex both use the MIT License for their core repositories, but production infrastructure, model APIs, databases, and optional managed services can create separate costs." + - q: "Does n8n replace LangChain or LlamaIndex?" + a: "n8n can replace framework code for many integration heavy automations, but LangChain and LlamaIndex provide deeper programmatic control for custom agents and retrieval systems." + - q: "Do LangChain and LlamaIndex include a vector database?" + a: "LangChain and LlamaIndex integrate with vector stores and other retrieval systems, but engineering teams generally select and operate the storage layer separately from the framework." + - q: "Which option is better for engineering teams that need human approval steps?" + a: "Sim fits teams that want visually configured human review, while LangChain and LlamaIndex require teams to implement and operate the surrounding approval experience in application code." +--- + +## TL;DR + +LangChain is the stronger default for broad agent orchestration, tool use, and stateful application logic, while LlamaIndex is the stronger default for data-intensive retrieval-augmented generation (RAG). Engineering teams should choose LangChain when agent behavior is the center of the system, choose LlamaIndex when ingestion and retrieval quality are the center, and consider Sim when they want a visual workspace instead of maintaining a code-first framework stack. + +All changing product, license, and managed service claims in this comparison are current as of November 2026 and reference official vendor sources. + +## How do LangChain and LlamaIndex compare for production RAG and agents? + +LangChain provides the broader agent application layer, while LlamaIndex provides the more specialized data and retrieval layer. + +| Criterion | LangChain | LlamaIndex | Practical fit | +| --- | --- | --- | --- | +| Core purpose | [LangChain provides an agent harness](https://docs.langchain.com/oss/python/langchain/overview) for models, tools, prompts, and middleware, with its agent abstraction built on LangGraph. | [LlamaIndex is an open-source toolkit](https://developers.llamaindex.ai/python/framework/) for RAG and agents over private or domain-specific data. | Choose LangChain for broader agent applications and LlamaIndex for retrieval-centered systems. | +| Data connectors | [LangChain integrations](https://docs.langchain.com/oss/python/integrations/providers/overview) cover models, tools, document loaders, vector stores, and other providers. | [LlamaIndex data connectors](https://developers.llamaindex.ai/python/framework/module_guides/loading/connector/) ingest sources into a document representation for indexing and querying. | LlamaIndex has the clearer data-ingestion focus, though both cover common source types. | +| Indexing and retrieval | LangChain exposes retrieval techniques and integrations that teams compose inside applications, including [filtering, query transformation, hybrid search, and reranking](https://docs.langchain.com/oss/python/langchain/retrieval-optimization). | [LlamaIndex indexing](https://developers.llamaindex.ai/python/framework/module_guides/indexing/) makes indexes, nodes, retrievers, and query engines central concepts. | LlamaIndex is usually the stronger starting point for complex RAG. | +| Agent and workflow support | [LangChain agents](https://docs.langchain.com/oss/python/langchain/agents) combine models, tools, prompts, and middleware in an execution loop. | [LlamaIndex Workflows](https://developers.llamaindex.ai/python/llamaagents/workflows/) provide an event-driven, step-based execution model that can include retrieval, tools, state, and human input. | LangChain is usually stronger when orchestration is the primary problem. | +| Evals and observability | [LangSmith observability](https://docs.langchain.com/langsmith/observability) covers tracing, production monitoring, feedback, and evaluation datasets. | [LlamaIndex observability](https://developers.llamaindex.ai/python/framework/module_guides/observability/) provides instrumentation and integrations with observability and evaluation tools. | LangSmith provides a companion environment closely aligned with LangChain applications. | +| Deployment and hosted offerings | LangChain applications can run in team-controlled infrastructure, while [LangSmith Agent Server](https://docs.langchain.com/langsmith/deploy-overview) supports cloud, bring-your-own-cloud, self-managed, and standalone deployment patterns. | LlamaIndex applications can run in team-controlled infrastructure, while [LlamaParse](https://developers.llamaindex.ai/python/framework/llama_cloud/) provides managed parsing, extraction, classification, splitting, and indexing services. | Both support self-managed applications, but their managed services emphasize different layers. | +| License | As of November 2026, the [LangChain repository uses the MIT License](https://github.com/langchain-ai/langchain/blob/master/LICENSE). | As of November 2026, the [LlamaIndex repository uses the MIT License](https://github.com/run-llama/llama_index/blob/main/LICENSE). | Both framework repositories use permissive OSI-approved licenses. | +| Learning curve | LangChain exposes a broad application surface, so combining agents, LangGraph, LangSmith, tools, and retrieval adds concepts to learn. | LlamaIndex is easier to frame around ingestion and retrieval, but advanced indexing and agent workflows still require software engineering. | LlamaIndex often fits a focused RAG project, while LangChain fits teams building a wider agent application layer. | + +## What are the key facts about LangChain and LlamaIndex? + +LangChain and LlamaIndex are permissively licensed software frameworks whose core libraries do not impose a vendor billing unit. + +LangChain uses the MIT License, can run inside applications on infrastructure controlled by the engineering team, and has no framework usage charge. Optional LangSmith services have separate commercial plans on the [official LangSmith pricing page](https://www.langchain.com/pricing) as of November 2026. + +LlamaIndex uses the MIT License, can run inside applications on infrastructure controlled by the engineering team, and has no framework usage charge. Optional LlamaParse services have separate commercial plans on the [official LlamaIndex pricing page](https://www.llamaindex.ai/pricing) as of November 2026. + +Neither framework includes the infrastructure, model usage, vector database, storage, or engineering labor needed to operate a production application. + +## Which framework fits production RAG? + +LlamaIndex is the stronger default for production RAG when ingestion, document transformation, indexing, retrieval, and response synthesis are the main engineering problems. + +LlamaIndex gives each stage of the data pipeline an explicit place in the architecture. That structure is useful when a team must parse varied documents, attach metadata, test chunking strategies, create multiple indexes, rerank results, or expose retrieval through query engines. For a foundation on the underlying pattern, read [What Is Retrieval-Augmented Generation (RAG)?](https://www.sim.ai/library/what-is-retrieval-augmented-generation). + +LangChain remains a credible RAG choice when retrieval is one component inside a larger agent application. Its retrieval interfaces and integrations make it practical to connect search to tools, middleware, and LangGraph state without adopting a separate application framework. + +The production decision should depend on the hardest part of the system. If retrieval quality determines success, start with LlamaIndex. If retrieval supports a larger tool-using agent, start with LangChain and evaluate whether LlamaIndex adds enough data-layer value to justify using both. + +## Which framework fits production agents? + +LangChain is the stronger default for production agents that need tools, middleware, state, branching, and durable orchestration. + +LangChain's current agent abstraction is built on LangGraph, which gives engineering teams a path from a high-level agent API to lower-level control over execution. Teams that need to understand the distinction can read [LangChain vs LangGraph: What's the Difference and Which Should You Use?](https://www.sim.ai/library/langchain-vs-langgraph). + +LlamaIndex fits agents whose main job is to reason over indexed data. Its agents can call tools and participate in workflows, but the framework remains most differentiated where agent behavior and retrieval architecture meet. + +Neither framework removes the need to define tool permissions, failure handling, evaluation datasets, deployment controls, and human review for consequential actions. + +## How do data connectors, indexing, and retrieval differ? + +LlamaIndex treats data ingestion and retrieval as the center of the application, while LangChain treats retrieval as one composable capability among many. + +LlamaIndex organizes documents into nodes and supports ingestion transformations, indexes, retrievers, query engines, and response synthesis. This vocabulary helps teams reason about what happens between a source document and a grounded answer. + +LangChain organizes retrieval around loaders, text splitting, embeddings, vector stores, and retriever interfaces. This approach works well when the retrieved context immediately feeds an agent or graph that also calls APIs and performs other work. + +Connector counts alone should not decide the choice. Engineering teams should test the exact source, authentication method, metadata behavior, incremental update path, deletion behavior, and rate limits required by the production system. + +## How do evaluation and observability compare? + +LangChain has a more integrated evaluation and observability path through LangSmith, while LlamaIndex provides framework instrumentation and managed document services through LlamaParse. + +As of November 2026, LangSmith documents tracing, production monitoring, feedback, and evaluation workflows within one companion product. This is useful for teams that want agent development and production analysis tied to the same ecosystem. + +As of November 2026, LlamaIndex documents instrumentation and partner integrations for observing framework events. LlamaParse complements the framework with managed document capabilities, but teams should map its scope to their runtime monitoring requirements rather than assume it replaces full application observability. + +Teams using either framework can adopt an independent observability product. The important production requirement is consistent tracing across retrieval, model calls, tool calls, state transitions, errors, latency, and user feedback. + +## How do deployment and hosted offerings compare? + +LangChain and LlamaIndex both let engineering teams run framework code in their own application environments, but their optional hosted products focus on different operational layers. + +LangSmith provides LangChain's companion environment for observability, evaluation, and agent deployment. LlamaParse provides managed services around document processing and data workflows. These products can reduce operational work, but teams should evaluate them separately from the permissively licensed framework repositories. + +A production review should cover network isolation, regional availability, identity controls, retention, telemetry, secrets, model-provider access, scaling behavior, and exit paths. A permissive framework license does not automatically make every hosted companion service open source or self-hosted. + +## When should teams skip both and use a visual workspace? + +Sim fits teams that want a visual workspace for building, deploying, and managing AI agents instead of maintaining a framework-based application from source code. + +Sim lets teams assemble agent steps, knowledge retrieval, model calls, integrations, conditions, and human review in a visual builder. The Human block pauses a run for submitted form fields, and a downstream Condition can route on an approval decision. This approach can shorten the path from an operational idea to a governed agent when business systems and approvals matter more than custom retrieval algorithms. + +Sim is not a direct replacement for every LangChain or LlamaIndex project. Engineering teams should keep a code-first framework when they need custom retrieval research, deeply specialized runtime behavior, or library-level control. The broader decision process is covered in [Visual AI Agent Builder vs Code First Framework: How Technical Teams Should Choose](https://www.sim.ai/library/visual-ai-agent-builder-vs-code-first-framework). + +As of November 2026, [Sim's core is Apache 2.0](https://github.com/simstudioai/sim/blob/main/LICENSE), while code in `apps/sim/ee` is governed by the separate [Sim Enterprise License](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE). Local models through Ollama, vLLM, LM Studio, or LiteLLM work on self-hosted Sim deployments and do not require Enterprise, as described in the [self-hosting documentation](https://docs.sim.ai/platform/self-hosting). + +n8n is another visual option when general workflow automation and application integration are the primary needs. As of November 2026, n8n's repository applies the [Sustainable Use License](https://github.com/n8n-io/n8n/blob/master/LICENSE.md) to much of its source, with separate terms for enterprise files. + +## What is the final LangChain vs LlamaIndex recommendation? + +LangChain fits broad production agent applications, while LlamaIndex fits production RAG over complex private data. + +Choose LangChain when the system needs diverse tools, stateful orchestration, middleware, or a path into LangGraph. Choose LlamaIndex when the system's hardest problems are ingestion, indexing, retrieval, and synthesis. Use both when LlamaIndex can provide the retrieval layer and LangChain can provide the surrounding agent layer without creating unnecessary operational complexity. + +Choose Sim when the team wants a visual workspace that reduces framework assembly and makes integrations, control flow, and human review easier to manage. Choose n8n when general application automation is the central requirement and its license terms fit the intended use. + +For additional context, read [What Are the Best LangGraph and LangChain Alternatives for Production AI Agent Workflows?](https://www.sim.ai/library/langgraph-alternatives) and [Best AI Agents for Data Extraction and RAG in 2026](https://www.sim.ai/library/best-ai-agents-for-data-extraction-and-rag-in-2026). diff --git a/apps/sim/public/library/langchain-vs-llamaindex/cover.jpg b/apps/sim/public/library/langchain-vs-llamaindex/cover.jpg new file mode 100644 index 0000000000000000000000000000000000000000..032b5d149364298f5142a268e71c233ff88a815a GIT binary patch literal 28320 zcmeFYWmsIzvNk-p6Wrb12X_nZ?(S~EgIjQSclY4#?k>R{f+j!+-{g7r-e;fdJ@1eG zet*x*z$|*TRNq})byxM`eeHb{AO?W``vn674F?Z;BOxLnAR=KPe*nEPh|#goK_6m# zQhZ#{4=WWJ85JuxGb1y%xPXAThO&l}Q|g~i!2W-CG5|n@1uufEhX5l3fTMyzpn|;* z0SEwK0B{H}FfhQsUeGX*P_Pi-f9_)Zd->lL-Zub<5TG_F5GbI6mcD;A`;RZ6giP`C z|KnB?MiMinP&3ula{x$|9h)jzWn+u`?R^nTAX1^D;Pa-ZE=?R@}sjoRv9?c|>P)+gX}q4LVKyj`;Ty_j3%h2j=wL2-MP zEW^@VH|aFB?0+_l_%MH)WQR{FJ$^1d9RLhBNn_}SE-4w0R>I3Eg|bOimlAV2me7vtF{)%}J#Z&572^VW?-0oQq+;kn`~RR`h7 z^XMriUpxN&@)qmKP{O*W4vf6p={nzNp@`II`znGmE{JnXBqJC69wS# ztWonl5DU8DHo+V*x{FT&KJ*hza1rHGiiAV<$vo&2%6|KUo&DS) zycEvuxVt`7-R2Y)*f6u2p{V7~C6+ArLmGjpJgm@3?z6}r4@P-G8Yd-8qs!FXIE93n zpr52;Dx{#FDUe%VQ!f-mI^|aGx5gId_12Y>guI^Ey zVSPCbjCK8WFPr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MQ~uIEnUI7QbZ5WW!5Y3bP59PxrroKa;NZ*V7B__-Ph3TDSxavnRK_li)9Nex9RMs zZN7^hsaflxl9{!K#TUW1+b?XX!&n0W(3a3* zCrJJINP9MW&bVI$B#-U&hW=7G^s`qj1-1W`?ac_ba8XF`v`tQIcRge8qv^43g8hzU z@Na5s+ER^?-Ic|@aacyAV9#LH@5$|av^a##0N!ZQl z3aVK9VrVD2d%uByPJ*s4t65nBe1`umSd%;(OP4!2*{jRvvFAhAGxbukbT1EPbt8RV zaYkXwZrZ=%lAGI>@;?a(3?2t?D1E2V=f`1cC7GqH6zoQ@LMkZ^6&Y{0WCl7Vmf;JN zW91k4tA{pOYNO*9U>Xo7(WLB}ts7P3HCP#UVcKXLfqJ5!rE35>{m-2~TC(IxCq;yy zqZjqLNv@joBx?VvnoXWCNOwk<63$$ryUmJ=lU-Gyrc3VTiajWL+U?eNbLr@^5hboy zCvQJePy=r*{O3HN8JFG?qk6ua>`)DCT4iqwf4GiSCigaGLtnsRx0Q8myG&NUNogKu z>D&QA%2?1scWnLwR(;N2&c^n?y|nFo^8t Date: Sat, 28 Nov 2026 11:35:39 -0800 Subject: [PATCH 09/20] feat(library): Microsoft Power Automate Pricing: Costs for IT and Automation Teams (#10490) Co-authored-by: Sim Pi Agent --- .../library/power-automate-pricing/index.mdx | 143 ++++++++++++++++++ .../library/power-automate-pricing/cover.jpg | Bin 0 -> 29455 bytes 2 files changed, 143 insertions(+) create mode 100644 apps/sim/content/library/power-automate-pricing/index.mdx create mode 100644 apps/sim/public/library/power-automate-pricing/cover.jpg diff --git a/apps/sim/content/library/power-automate-pricing/index.mdx b/apps/sim/content/library/power-automate-pricing/index.mdx new file mode 100644 index 00000000000..ac161724356 --- /dev/null +++ b/apps/sim/content/library/power-automate-pricing/index.mdx @@ -0,0 +1,143 @@ +--- +slug: power-automate-pricing +title: 'Microsoft Power Automate Pricing: Costs for IT and Automation Teams' +description: 'Microsoft Power Automate pricing starts at $15 per user monthly. Compare Premium, Process, Hosted Process, and the costs IT teams should model.' +seoTitle: 'Power Automate Pricing: Plans and Costs' +date: 2026-11-28 +updated: 2026-11-28 +authors: + - andrew +readingTime: 7 +tags: [Power Automate, Automation, AI Agents, Microsoft, Sim] +ogImage: /library/power-automate-pricing/cover.jpg +draft: false +faq: + - q: "Does Microsoft 365 include Power Automate?" + a: "Microsoft 365 includes limited Power Automate use rights for eligible Microsoft 365 applications and standard connector scenarios, but it does not generally include Power Automate Premium, premium connectors, unattended RPA, Hosted Process, or separate AI capacity." + - q: "What is Power Automate Premium?" + a: "Power Automate Premium is Microsoft's named user license for premium cloud flows, premium and custom connectors, attended desktop flows, and individual automation makers, listed at $15 per user per month with annual billing as of November 2026." + - q: "Should I buy Power Automate per user or per bot?" + a: "Microsoft Power Automate Premium is usually appropriate when a named person builds or runs multiple premium automations, while Power Automate Process is usually appropriate when one shared process serves many people or runs unattended." + - q: "Are premium connectors included with Power Automate?" + a: "Microsoft Power Automate Premium, Process, and Hosted Process include applicable premium connector rights within their licensing scope, while basic Microsoft 365 use rights do not provide unrestricted premium connector access." + - q: "Does every user need a Power Automate license?" + a: "Microsoft Power Automate may require each participating user to hold appropriate rights unless the flow or process is covered by a suitable Process license, and the answer depends on the trigger, connector, run context, and interaction model." + - q: "How do AI Builder credits affect Power Automate pricing?" + a: "Microsoft is progressively ending AI Builder credits, and new add-on customers must use Copilot Credits for supported AI Builder operations. Existing customers should check their renewal and transition dates when modeling capacity costs." + - q: "How much does Power Automate Process Mining cost?" + a: "Microsoft directs buyers to its current licensing guidance and sales channels for Process Mining capacity. Total cost can also include implementation, data preparation, storage, and required base licenses." + - q: "How much does hosted RPA cost in Power Automate?" + a: "Microsoft Power Automate Hosted Process costs $215 per bot per month with annual billing as of November 2026 and includes a Microsoft-hosted virtual machine for unattended automation." + - q: "What should we switch to if Microsoft Copilot Studio feels too limited outside the Microsoft ecosystem?" + a: "Sim fits teams that need model flexibility, BYOK, optional local models on a self-hosted deployment, and AI agents that coordinate work across Microsoft and non-Microsoft systems, while Power Automate remains suited to desktop RPA and Microsoft-centered process automation." + - q: "Is Sim open source and can it be self hosted?" + a: "Sim's core is Apache 2.0 and can be self-hosted, while enterprise code in apps/sim/ee is governed by the separate Sim Enterprise License and requires an active Sim Enterprise subscription for production use." + - q: "Can Sim use local models?" + a: "Sim can use Ollama, vLLM, LM Studio, or LiteLLM on any self-hosted deployment, and local model support does not require Sim Enterprise." + - q: "Is n8n open source?" + a: "n8n is source available under the Sustainable Use License, which is not an OSI-approved open-source license and restricts some commercial hosting and redistribution scenarios." +--- + +## TL;DR + +As of November 2026, [Microsoft lists Power Automate Premium at $15 per user per month, Process at $150 per bot per month, and Hosted Process at $215 per bot per month](https://www.microsoft.com/en-us/power-platform/products/power-automate/pricing), with annual billing. The lowest-cost license depends on who runs each automation, whether it uses premium connectors, and whether desktop automation is attended, unattended, or hosted by Microsoft. + +IT teams should model the complete automation estate, not just one headline price. Capacity, Dataverse storage, implementation, monitoring, and governance can increase total cost. Microsoft has also started [phasing out AI Builder credits in favor of Copilot Credits](https://learn.microsoft.com/en-us/ai-builder/endofaibcredits), which changes how new buyers should budget for AI Builder workloads. + +## What are the key Power Automate pricing facts at a glance? + +Microsoft Power Automate combines user licenses, process licenses, hosted machines, and optional capacity. IT leaders should map each production automation to its run context before estimating cost. + +- Microsoft Power Automate is a proprietary Microsoft service with user and capacity licensing for premium automation, as described in [Microsoft's license overview](https://learn.microsoft.com/en-us/power-platform/admin/power-automate-licensing/types). +- [Power Automate Premium](https://www.microsoft.com/en-us/power-platform/products/power-automate/pricing) is the main user license for people who build or run premium cloud flows and attended desktop flows. +- [Power Automate Process](https://learn.microsoft.com/en-us/power-platform/admin/power-automate-licensing/deep-dive-on-specific-license) licenses a shared cloud flow or machine rather than every individual participant. +- [Power Automate Hosted Process](https://www.microsoft.com/en-us/power-platform/products/power-automate/pricing) adds a Microsoft-hosted virtual machine for unattended desktop automation. +- Sim is the open-source AI workspace where teams build, deploy, and manage AI agents. [Sim's core is Apache 2.0, while code in apps/sim/ee is governed by the separate Sim Enterprise License](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE). +- Zapier is a proprietary cloud service that measures automation usage in tasks, with details on [Zapier's official task usage page](https://zapier.com/pricing/rates). +- n8n offers cloud plans based on monthly workflow executions, according to [n8n's official pricing page](https://n8n.io/pricing/). Its code is source available under the [Sustainable Use License](https://github.com/n8n-io/n8n/blob/master/LICENSE.md), not an OSI-approved open-source license. + +## How much does Microsoft Power Automate cost? + +[Microsoft's United States pricing page](https://www.microsoft.com/en-us/power-platform/products/power-automate/pricing) lists three primary Power Automate offers as of November 2026. + +| License | United States list price as of November 2026 | Billing unit | Fit | +| --- | ---: | --- | --- | +| [Power Automate Premium](https://www.microsoft.com/en-us/power-platform/products/power-automate/pricing) | $15 per user per month, paid yearly | Named user | Premium cloud flows, premium connectors, attended desktop flows, and individual makers | +| [Power Automate Process](https://www.microsoft.com/en-us/power-platform/products/power-automate/pricing) | $150 per bot per month, paid yearly | Licensed process or unattended bot | Shared cloud processes and unattended automation on customer-managed infrastructure | +| [Power Automate Hosted Process](https://www.microsoft.com/en-us/power-platform/products/power-automate/pricing) | $215 per bot per month, paid yearly | Licensed process with a Microsoft-hosted machine | Unattended desktop automation without maintaining the underlying virtual machine | + +These are list prices before taxes, negotiated discounts, regional adjustments, Dataverse capacity, implementation services, and internal operations. Microsoft can change prices and entitlements, so procurement teams should confirm the current quote and review [Microsoft's Power Automate licensing FAQ](https://learn.microsoft.com/en-us/power-platform/admin/power-automate-licensing/faqs) before purchase. + +AI workloads need separate attention. Microsoft says [new customers have not been able to buy AI Builder capacity add-ons since November 1, 2025](https://learn.microsoft.com/en-us/ai-builder/endofaibcredits), while existing customers follow a staged transition to Copilot Credits. Do not use the former $500 AI Builder add-on as a default assumption for a new 2026 deployment. + +## What drives Power Automate cost as automation spreads across departments? + +Power Automate becomes more expensive when premium access expands from a small maker group to many named users, shared processes, unattended bots, and governed production environments. + +| Cost driver | Why the cost grows | What IT should measure | +| --- | --- | --- | +| [Named users](https://www.microsoft.com/en-us/power-platform/products/power-automate/pricing) | Every person who needs Premium rights may require a separate license | Active makers, operators, and people invoking premium flows | +| [Premium connectors](https://learn.microsoft.com/en-us/power-platform/admin/power-automate-licensing/types) | Premium and custom connectors can move a workflow beyond limited Microsoft 365 use rights | Connector classification and the license held by each affected person or process | +| [Shared processes](https://learn.microsoft.com/en-us/power-platform/admin/power-automate-licensing/deep-dive-on-specific-license) | Department-wide workflows may need Process licenses instead of relying on one maker's user license | Number of independently licensed business processes | +| [Unattended desktop automation](https://www.microsoft.com/en-us/power-platform/products/power-automate/pricing) | Each unattended workload needs suitable process licensing and machine capacity | Concurrent bots, run duration, queue depth, and peak demand | +| [Hosted machines](https://www.microsoft.com/en-us/power-platform/products/power-automate/pricing) | Hosted Process avoids customer-managed virtual machines but costs more than Process at list price | Number of hosted bots and utilization per machine | +| [AI capacity](https://learn.microsoft.com/en-us/ai-builder/endofaibcredits) | AI Builder operations are moving from AI Builder credits toward Copilot Credits | Monthly credit consumption by model and flow | +| [Process mining](https://learn.microsoft.com/en-us/power-platform/admin/power-automate-licensing/types) | Broader process analysis can add capacity, data preparation, and implementation work | Data volume, refresh frequency, and participating processes | +| [Dataverse](https://www.microsoft.com/en-us/power-platform/products/power-automate/pricing) | Production environments can require additional database, file, or log capacity | Storage growth, retention, and environment strategy | +| Governance | More departments create demand for environment management, data policies, service accounts, monitoring, and support | Administrative labor, incident volume, and audit requirements | + +Premium connector licensing deserves particular attention. [Microsoft's licensing FAQ](https://learn.microsoft.com/en-us/power-platform/admin/power-automate-licensing/faqs) explains that automated and scheduled flows use the owner's license context, instant flows use the invoking person's context, and Process-licensed flows use the Process license limits. One licensed maker does not automatically grant premium rights to an entire department. + +## What would Power Automate cost for a 200-person department? + +Power Automate would cost $5,575 per month, or $66,900 per year, in an illustrative 200-person department that licenses all 200 people, 10 customer-hosted processes, and 5 hosted processes at [Microsoft's November 2026 list prices](https://www.microsoft.com/en-us/power-platform/products/power-automate/pricing). + +| Component | Calculation | Monthly cost | +| --- | ---: | ---: | +| 200 Power Automate Premium users | 200 × $15 | $3,000 | +| 10 Power Automate Process licenses | 10 × $150 | $1,500 | +| 5 Power Automate Hosted Process licenses | 5 × $215 | $1,075 | +| Total | $3,000 + $1,500 + $1,075 | $5,575 | + +The example is a planning model, not a recommendation that every department needs every component. A department using only standard Microsoft 365 automation could spend less, while one with more premium participants, unattended processes, AI consumption, process mining, Dataverse capacity, or consulting work could spend more. + +IT should create separate scenarios for named users, shared cloud processes, customer-managed unattended bots, and Microsoft-hosted bots. Those licenses solve different problems and should not be treated as interchangeable units. + +## When can Sim cost less than Power Automate? + +Sim can cost less when the primary requirement is building model-flexible AI agents and a Power Automate design would otherwise require premium licenses for many people or multiple process licenses. The actual result depends on the Sim plan, model usage, hosting, infrastructure, and support requirements. + +[Workspace BYOK keys work on every Sim Cloud plan, while organization-level keys require Pro for Teams, Max for Teams, or Enterprise](https://docs.sim.ai/platform/costs). [Self-hosted Sim deployments can connect to Ollama, vLLM, LM Studio, or LiteLLM](https://docs.sim.ai/platform/self-hosting/environment-variables) without requiring Sim Enterprise. + +Sim tends to fit cost models with these characteristics: + +- A small automation team builds AI agents used by a much larger audience. +- Model choice and model cost control matter more than standardizing on one vendor's AI services. +- The agent must coordinate Microsoft 365 work with systems outside the Microsoft ecosystem. +- The team can use workspace BYOK or local models to control inference costs. +- The use case is language-model intensive rather than primarily desktop RPA. + +Power Automate can fit teams that already have suitable Microsoft entitlements, use mostly standard Microsoft connectors, and need conventional approvals or desktop RPA. Sim is not a direct replacement for every Power Automate capability, especially desktop automation and process mining. The [AI agents versus RPA guide](https://www.sim.ai/library/ai-agents-vs-rpa) explains where those approaches differ. + +For adjacent Microsoft product choices, read [Microsoft Copilot Studio vs Power Automate](https://www.sim.ai/library/microsoft-copilot-studio-vs-power-automate). Teams evaluating agent-focused products can also compare [Microsoft Copilot Studio and Power Automate alternatives](https://www.sim.ai/library/best-microsoft-copilot-studio-power-automate-alternatives). + +## How do Power Automate, Zapier, n8n, and Sim compare? + +Microsoft Power Automate, Zapier, n8n, and Sim serve different automation needs. The right fit depends on the systems involved, the billing meter, hosting requirements, and whether the work is deterministic or driven by AI agents. + +| Option | Fit | Main cost meter | Important limitation | +| --- | --- | --- | --- | +| [Microsoft Power Automate](https://www.microsoft.com/en-us/power-platform/products/power-automate/pricing) | Microsoft-centered business automation and desktop RPA | Users, processes, hosted bots, and capacity | Licensing becomes more complex across premium connectors, people, bots, and add-ons | +| [Zapier](https://zapier.com/pricing/rates) | Cloud application automation for business teams | Tasks and plan limits | Successful app actions consume tasks, so higher action volume can increase cost | +| [n8n](https://n8n.io/pricing/) | Technical teams that want visual workflow automation with self-hosting options | Cloud workflow executions or self-hosted infrastructure | n8n uses a source-available license rather than an OSI-approved open-source license | +| Sim | Teams building and managing model-flexible AI agents | Workspace plan, model usage, or self-hosted infrastructure | Sim is not a desktop RPA or process mining replacement | + +Power Automate fits Microsoft-centered automation and desktop RPA. Zapier fits straightforward software-as-a-service connections where task-based billing matches the workload. n8n fits technical workflow teams that value self-hosting and execution-based cloud plans. Sim fits teams that need model flexibility, AI agent orchestration, BYOK, and optional local models on a self-hosted deployment. + +For a wider market view, see the guide to [AI automation tools](https://www.sim.ai/library/best-ai-automation-tools-2026). + +## How should IT budget for Power Automate? + +Start with an inventory of production flows, triggers, connectors, owners, participants, machines, and run contexts. Then classify each automation as standard cloud automation, premium user automation, a shared Process-licensed flow, attended desktop automation, customer-hosted unattended automation, or Microsoft-hosted unattended automation. + +Build low, expected, and high scenarios. Include license growth, Dataverse storage, AI or Copilot capacity, process mining, virtual machine operations, monitoring, support, implementation, and governance. Finally, validate the design with Microsoft's current licensing documentation and a written reseller or Microsoft quote before treating the estimate as a budget. diff --git a/apps/sim/public/library/power-automate-pricing/cover.jpg b/apps/sim/public/library/power-automate-pricing/cover.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b4142e1374f2d453a99e4c328d21990c9a3c57fa GIT binary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cc+n z{OkpIB=Ixri!kO{>MT3=Kqg{Q&m@nImseN~4727Plt{uE>R` zDS`I>ZG!0S9qgA9QK&*|j>_fP2(U4U&$qHlv*pw<7#h#+j@K5_Ho9gRXD+GKdYzMV zNM`yGgUaMvNP6fW>eiy$`U>(Q_vpW_LRIuyzD?|_uBXHZWhP_$j|=MP*S{v78z8|M z!;qW3k@o2p0}*UlYJT<-6|ZW$#!ZZ(o0Q_M1gWU#C(@ujn75}_oNuW3kF_X z7wMDv>Xg?UV9mO{?-XC?nWx6x(%s1P*KXwqRt&{eSWG%(9+Gf9=F2&Pl{+!l z7qZcX2m<1{i(hQC4K3BJ6M*Z20a1o4Rtn-%^nR`X4$-&jtl+la(#5_*akbui1tmhv zPV1+@QgxLjNuZngXLd*v!9-^z`E0H97dJl58WuolR?0avrb_@cC6@(bn3`}71Dv;t zEq>_m%RH^_FEd`1tbhGGi6)LbNeRh0d3GoleZlG*qwZ!eMMHqFzpkY$7=FI=2=WQhwiIID{(>WY*FsZJFMzIN0t4%sMF_Y78ldbK0NkVrO}uRrsP`($V@uZPvjil-hIo;T+Ub;59at97}ZBS1@jGcr49GSyh$Z5}I<+ap?hfhY`|H%#2wzd%$=Ks)*8u^{${AYrY1XGzfUe=qK5hs<*1V2wfb9wijcY}C12%QX~D zyA7p@{uyyia+VYZe#AHn{aNitJMJTx!94+LLDw1yAm6w)n(wfRy<^Rlx@XH%d&SuX z2~v*bM*uJsnH>MVd(j%BKg`BaJQpQ6vJD6UE%;M@ZrcS%h(TKHs0E}c$PNP$OA;;_ z#n_n`NzjSYRnr5S+`G1LP?w TD6{}Z5B@(-kn8OJKC$#)U0MV@ literal 0 HcmV?d00001 From 2d2e434e7fc06be1a8777d016a7bc2987c967237 Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 11:35:55 -0800 Subject: [PATCH 10/20] docs(library): update langchain-vs-langgraph (#10491) Co-authored-by: Sim Pi Agent --- .../library/langchain-vs-langgraph/index.mdx | 66 +++++++++++++------ 1 file changed, 45 insertions(+), 21 deletions(-) diff --git a/apps/sim/content/library/langchain-vs-langgraph/index.mdx b/apps/sim/content/library/langchain-vs-langgraph/index.mdx index c1c609ef444..0816c2ee194 100644 --- a/apps/sim/content/library/langchain-vs-langgraph/index.mdx +++ b/apps/sim/content/library/langchain-vs-langgraph/index.mdx @@ -1,13 +1,13 @@ --- slug: langchain-vs-langgraph -title: 'LangChain vs LangGraph: What’s the Difference and Which Should You Use?' -description: 'Compare LangChain vs LangGraph for AI agents, including abstraction level, state, control flow, code examples, and when to use each framework.' +title: 'LangChain vs LangGraph: Key Differences and When to Use Each' +description: 'Compare LangChain vs LangGraph across state, control flow, memory, multi agent support, human approval, observability, deployment, license, and learning curve.' seoTitle: 'LangChain vs LangGraph: Key Differences' date: 2026-10-22 -updated: 2026-10-22 +updated: 2026-11-28 authors: - andrew -readingTime: 6 +readingTime: 8 tags: [LangChain, LangGraph, AI Agents, Sim] ogImage: /library/langchain-vs-langgraph/cover.jpg draft: false @@ -19,18 +19,28 @@ faq: - q: "Can you use LangGraph without LangChain?" a: "LangGraph can be used without LangChain. A LangGraph node can run ordinary Python code, call a model through another SDK, access an internal service, or perform deterministic application logic without using LangChain’s agent or integration abstractions." - q: "Is LangGraph better than LangChain for production agents?" - a: "LangGraph is better for production agents that require custom state transitions and explicit orchestration, while LangChain is better when its prebuilt agent architecture fits the production requirement. Both can support production applications because LangChain agents themselves run on LangGraph." + a: "LangGraph fits production agents that require custom state transitions and explicit orchestration, while LangChain fits production requirements that align with its prebuilt agent architecture. Both can support production applications because LangChain agents themselves run on LangGraph." - q: "Is LangChain or LangGraph easier for beginners?" a: "LangChain is usually easier for beginners who want to build a standard tool-calling agent because it starts from a higher-level agent API. LangGraph requires developers to reason directly about state, nodes, edges, and routing, but that explicit structure can make complex behavior easier to understand and test." - q: "Do you need both LangChain and LangGraph?" a: "LangChain users do not usually need to define a LangGraph manually because LangChain’s agent runtime already uses LangGraph. Developers should work directly with LangGraph only when they need more control over graph structure, state updates, routing, interruptions, or deterministic execution than the higher-level LangChain API provides." + - q: "Do LangChain and LangGraph support human approval?" + a: "LangChain and LangGraph both support human approval patterns, with LangChain exposing higher-level human review middleware and LangGraph providing interrupts that pause execution and resume from persisted state. Teams must still design the approval decision, permissions, timeout behavior, and downstream routing." + - q: "Is there an open-source alternative to LangChain for agent workflows?" + a: "Sim fits teams that want to build agent workflows in a visual workspace, while LangGraph fits teams that want direct code-first orchestration control. Sim and LangGraph use different licensing models, which teams should review alongside their production requirements." + - q: "langchain is too complicated, what else can I use to build ai agents" + a: "Sim fits teams that find LangChain too complicated and want a visual workspace for building, deploying, and managing AI agents. LangGraph provides explicit code-first orchestration, while n8n provides a visual, fair-code option for automation and AI integrations." + - q: "we outgrew our langchain prototype and need something production ready without rebuilding from scratch, what platforms should we evaluate" + a: "LangGraph is usually the first option to evaluate because current LangChain agents already run on LangGraph and complex paths can move toward explicit graph control incrementally. Sim fits teams that need visual collaboration and centralized agent operations, while n8n fits workloads centered on automation with AI steps, but each option requires integration and behavior testing." --- +LangChain is the faster starting point for standard agents built from models, tools, and retrieval, while LangGraph gives engineering teams lower-level control over state, branching, persistence, and long-running execution. LangChain and LangGraph work together rather than competing as direct substitutes, but LangGraph is usually more suitable when a LangChain prototype needs explicit control over complex production behavior. + ## TL;DR -LangChain is the higher-level choice for building agents quickly, while LangGraph is the lower-level choice for orchestrating stateful workflows with explicit control over execution. This guide is published by Sim, the open-source AI workspace for building, deploying, and managing AI agents. +LangChain is the higher-level choice for building agents quickly, while LangGraph is the lower-level choice for orchestrating stateful workflows with explicit control over execution. Sim is the open-source AI workspace where teams build, deploy, and manage AI agents. -The two projects are complementary rather than mutually exclusive. As of October 2026, [LangChain’s official documentation](https://docs.langchain.com/oss/python/langchain/overview) says that LangChain agents are built on top of LangGraph, while [LangGraph’s documentation](https://docs.langchain.com/oss/python/langgraph/overview) says LangGraph can be used without LangChain. +The two projects are complementary rather than mutually exclusive. As of November 2026, [LangChain’s official documentation](https://docs.langchain.com/oss/python/langchain/overview) says that LangChain agents are built on top of LangGraph, while [LangGraph’s documentation](https://docs.langchain.com/oss/python/langgraph/overview) says LangGraph can be used without LangChain. **The short answer:** Start with LangChain when its standard agent loop and integrations fit your application. Use LangGraph directly when you need to define the graph, state transitions, branches, retries, pauses, or deterministic steps yourself. @@ -48,7 +58,7 @@ This distinction is about abstraction level, not whether one project can support LangChain agents run on LangGraph, but LangGraph remains a separately installable framework that developers can use without LangChain. -As of October 2026, the [LangChain v1 overview](https://docs.langchain.com/oss/python/langchain/overview) says that LangChain’s agents are built on top of LangGraph, which lets them use LangGraph’s durable execution, human-in-the-loop support, persistence, and more. Developers get these capabilities through `create_agent` without defining every graph node themselves. +As of November 2026, the [LangChain v1 overview](https://docs.langchain.com/oss/python/langchain/overview) says that LangChain’s agents are built on top of LangGraph, which lets them use LangGraph’s durable execution, human-in-the-loop support, persistence, and more. Developers get these capabilities through `create_agent` without defining every graph node themselves. LangGraph sits below that agent abstraction. A team can use LangGraph directly to create an agent loop, a deterministic workflow, or a hybrid graph in which some nodes call models and other nodes execute ordinary application logic. @@ -65,21 +75,22 @@ LangChain is optimized for faster agent development, while LangGraph is optimize | Criterion | LangChain | LangGraph | |---|---|---| -| Primary role | [High-level framework](https://docs.langchain.com/oss/python/langchain/overview) for agents, models, tools, and middleware | [Low-level orchestration framework](https://docs.langchain.com/oss/python/langgraph/overview) and runtime for stateful agents and workflows | -| Default abstraction | [Prebuilt agent loop](https://docs.langchain.com/oss/python/langchain/agents) through `create_agent` | [Developer-defined graph](https://docs.langchain.com/oss/python/langgraph/graph-api) with state, nodes, and edges | -| Best fit | [Standard tool-calling agents](https://docs.langchain.com/oss/python/langchain/agents) and rapid development | [Custom control flow](https://docs.langchain.com/oss/python/langgraph/graph-api), deterministic steps, branching, loops, and long-running execution | -| State management | Available through the [LangGraph runtime](https://docs.langchain.com/oss/python/langchain/overview) beneath LangChain agents | Defined directly in the [graph’s state schema and updates](https://docs.langchain.com/oss/python/langgraph/graph-api) | -| Control over execution | Customizable through [tools, prompts, models, and middleware](https://docs.langchain.com/oss/python/langchain/agents) | Explicitly controlled through [nodes, edges, routing functions, and commands](https://docs.langchain.com/oss/python/langgraph/graph-api) | -| Integrations | Higher-level [model and tool integrations](https://docs.langchain.com/oss/python/langchain/overview) are a core part of LangChain | Can call any Python function or service from a node; [LangChain components are optional](https://docs.langchain.com/oss/python/langgraph/overview) | -| Can be used alone? | No; [LangGraph is a required dependency](https://docs.langchain.com/oss/python/langchain/overview) of its agent runtime | Yes; [LangChain is not required](https://docs.langchain.com/oss/python/langgraph/overview) | -| Open-source license | [MIT License](https://github.com/langchain-ai/langchain/blob/master/LICENSE) | [MIT License](https://github.com/langchain-ai/langgraph/blob/main/LICENSE) | +| Abstraction level | [Higher-level framework](https://docs.langchain.com/oss/python/langchain/overview) for agents, models, tools, middleware, and retrieval | [Lower-level orchestration framework](https://docs.langchain.com/oss/python/langgraph/overview) for stateful agents and workflows | +| State and memory | Agent state and memory through higher-level APIs built on the [LangGraph runtime](https://docs.langchain.com/oss/python/langchain/overview) | Explicit graph state, [checkpoints, thread persistence, and stores](https://docs.langchain.com/oss/python/langgraph/persistence) | +| Control flow | [Prebuilt agent loop](https://docs.langchain.com/oss/python/langchain/agents) with middleware and customization points | Explicit [nodes, edges, branches, loops](https://docs.langchain.com/oss/python/langgraph/graph-api), subgraphs, and interrupts | +| Multi agent support | [Multi-agent patterns](https://docs.langchain.com/oss/python/langchain/multi-agent) composed through agents, tools, routers, and handoffs | Custom multi-agent topology through [subgraphs](https://docs.langchain.com/oss/python/langgraph/use-subgraphs) and direct control over state transitions | +| Human in the loop | [Human review middleware](https://docs.langchain.com/oss/python/langchain/human-in-the-loop) can pause tool calls for approval, editing, or rejection | [Interrupts](https://docs.langchain.com/oss/python/langgraph/interrupts) can pause execution, persist state, and resume with external input | +| Observability with LangSmith | Optional [tracing, evaluation, and monitoring](https://docs.langchain.com/langsmith/observability) through LangSmith | Optional [tracing, evaluation, and monitoring](https://docs.langchain.com/langsmith/observability) through LangSmith | +| Deployment | Runs as application code on team-managed infrastructure or through [LangSmith Agent Server](https://docs.langchain.com/langsmith/deploy-overview) | Runs as application code on team-managed infrastructure or through [LangSmith Agent Server](https://docs.langchain.com/langsmith/deploy-overview) | +| License | As of November 2026, the official repository identifies LangChain under the [MIT License](https://github.com/langchain-ai/langchain/blob/master/LICENSE) | As of November 2026, the official repository identifies LangGraph under the [MIT License](https://github.com/langchain-ai/langgraph/blob/main/LICENSE) | +| Learning curve | Lower for common agent patterns because the agent loop is prebuilt | Higher because teams model state and control flow explicitly | ### What are the key LangChain and LangGraph facts at a glance? LangChain and LangGraph are self-managed open-source libraries. Developers separately cover the models, APIs, infrastructure, and commercial services they choose to use. -- **LangChain:** As of October 2026, LangChain is available under the [MIT License](https://github.com/langchain-ai/langchain/blob/master/LICENSE). -- **LangGraph:** As of October 2026, LangGraph is available under the [MIT License](https://github.com/langchain-ai/langgraph/blob/main/LICENSE). +- **LangChain:** As of November 2026, LangChain is available under the [MIT License](https://github.com/langchain-ai/langchain/blob/master/LICENSE). +- **LangGraph:** As of November 2026, LangGraph is available under the [MIT License](https://github.com/langchain-ai/langgraph/blob/main/LICENSE). These statements concern the open-source libraries, not separate hosted observability, evaluation, or deployment services. Model providers and infrastructure vendors apply their own pricing. @@ -183,11 +194,11 @@ For many projects, developers do not need to choose only one package conceptuall ### When should you choose a visual builder instead? -Sim, the open-source AI workspace for building, deploying, and managing AI agents, fits teams that want a visual builder, 270+ integrations, and deployment without maintaining framework-level orchestration code. +Sim is the open-source AI workspace where teams build, deploy, and manage AI agents, and it fits teams that want a visual builder, 270+ integrations, and deployment without maintaining framework-level orchestration code. Sim's core is licensed under [Apache 2.0](https://github.com/simstudioai/sim/blob/main/LICENSE), while code in `apps/sim/ee` is governed by the separate [Sim Enterprise License](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE), which requires an active Enterprise subscription for production use of that code. -That option fits a different operating model from LangChain or LangGraph: the primary users may include technical and non-technical collaborators, and the team may prefer visual workflow ownership over a Python-defined application graph. +Sim fits a different operating model from LangChain or LangGraph: the primary users may include technical and non-technical collaborators, and the team may prefer visual workflow ownership over a Python-defined application graph. Teams planning the transition can use [Moving AI Agent Prototypes Into Production](https://www.sim.ai/library/moving-ai-agent-prototypes-into-production) as a readiness checklist and compare [visual AI agent builders with code-first frameworks](https://www.sim.ai/library/visual-ai-agent-builder-vs-code-first-framework). -n8n is another incumbent for teams whose main requirement is node-based SaaS automation rather than a code-first agent framework; as of October 2026, n8n uses its [Sustainable Use License](https://docs.n8n.io/n8n-community-license), which n8n describes as a fair-code license. +n8n fits teams whose main requirement is node-based SaaS automation rather than a code-first agent framework. As of November 2026, n8n uses its [Sustainable Use License](https://docs.n8n.io/n8n-community-license), which n8n describes as a fair-code license that does not appear on the [OSI list of approved open-source licenses](https://opensource.org/licenses). ### What other LangChain and LangGraph comparisons should you read? @@ -197,3 +208,16 @@ LangChain and LangGraph buyers can use these related guides to compare adjacent - [AI Agent Orchestration Frameworks Explained](https://www.sim.ai/library/ai-agent-orchestration-frameworks-explained) - [Best Multi-Agent Frameworks for Production in 2026](https://www.sim.ai/library/best-multi-agent-frameworks-2026) - [Best AI Agent Platforms and Builders in 2026](https://www.sim.ai/library/best-ai-agent-platforms-2026) + +## Which sources support this LangChain vs LangGraph comparison? + +LangChain and LangGraph claims in this comparison come from their official documentation and repositories as reviewed in November 2026. + +- [LangChain overview](https://docs.langchain.com/oss/python/langchain/overview) +- [LangChain agents](https://docs.langchain.com/oss/python/langchain/agents) +- [LangGraph overview](https://docs.langchain.com/oss/python/langgraph/overview) +- [LangGraph persistence](https://docs.langchain.com/oss/python/langgraph/persistence) +- [LangGraph interrupts](https://docs.langchain.com/oss/python/langgraph/interrupts) +- [LangSmith observability](https://docs.langchain.com/langsmith/observability) +- [LangChain repository license](https://github.com/langchain-ai/langchain/blob/master/LICENSE) +- [LangGraph repository license](https://github.com/langchain-ai/langgraph/blob/main/LICENSE) From 3ba16d1ffca0984a1cbf4e6b75b86b3eebe65cbb Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 12:16:09 -0800 Subject: [PATCH 11/20] fix(mcp): answer 400 when MCP OAuth URL is refused by egress policy (#10492) * fix(mcp): answer 400 when MCP OAuth URL is refused by egress policy * fix(mcp): pass route context in callback refusal tests --- .../app/api/mcp/oauth/callback/route.test.ts | 34 +++++++++++++++++++ apps/sim/app/api/mcp/oauth/callback/route.ts | 18 ++++++++-- .../sim/app/api/mcp/oauth/start/route.test.ts | 33 ++++++++++++++++++ apps/sim/app/api/mcp/oauth/start/route.ts | 18 ++++++++-- apps/sim/lib/mcp/domain-check.ts | 11 ++++++ 5 files changed, 109 insertions(+), 5 deletions(-) diff --git a/apps/sim/app/api/mcp/oauth/callback/route.test.ts b/apps/sim/app/api/mcp/oauth/callback/route.test.ts index 28fdcff930f..f3f9a7c3a6c 100644 --- a/apps/sim/app/api/mcp/oauth/callback/route.test.ts +++ b/apps/sim/app/api/mcp/oauth/callback/route.test.ts @@ -8,6 +8,7 @@ import { resetDbChainMock, } from '@sim/testing' import { flushMicrotasks } from '@sim/testing/helpers/async' +import { createRouteContext } from '@sim/testing/helpers/http' import { emcnMock } from '@sim/testing/mocks/emcn.mock' import { getMockLogger } from '@sim/testing/mocks/logger.mock' import { mcpServiceMock, mcpServiceMockFns } from '@sim/testing/mocks/mcp-service.mock' @@ -15,6 +16,7 @@ import { NextRequest } from 'next/server' import { beforeEach, describe, expect, it, vi } from 'vitest' import { CredentialGroupOAuthStateVersionError } from '@/lib/credential-groups/oauth-attempt-version' import { connectCredentialGroupInPopup } from '@/lib/credential-groups/oauth-popup' +import { McpDnsResolutionError, McpSsrfError } from '@/lib/mcp/domain-check' const { mockAuthenticateEnrollment, @@ -181,6 +183,38 @@ describe('MCP OAuth callback route', () => { expect(body).toContain('serverId: undefined') }) + it('shows the egress refusal when the token endpoint is refused', async () => { + mcpOauthMockFns.mockMcpAuthGuarded.mockRejectedValueOnce( + new McpSsrfError('MCP server URL resolves to a private or reserved address (10.0.0.1).') + ) + + const body = await ( + await GET( + new NextRequest('http://localhost:3000/api/mcp/oauth/callback?state=state-1&code=code-1'), + createRouteContext({}) + ) + ).text() + + expect(body).toContain('ok: false') + expect(body).toContain('resolves to a private or reserved address (10.0.0.1).') + }) + + it('keeps the generic failure for a transient token exchange error', async () => { + mcpOauthMockFns.mockMcpAuthGuarded.mockRejectedValueOnce( + new McpDnsResolutionError('auth.example.com', false) + ) + + const body = await ( + await GET( + new NextRequest('http://localhost:3000/api/mcp/oauth/callback?state=state-1&code=code-1'), + createRouteContext({}) + ) + ).text() + + expect(body).toContain('ok: false') + expect(body).toContain('Token exchange failed. Please try again.') + }) + it('rate limits a managed callback before consuming its one-time state', async () => { const limitedResponse = new Response('rate limited', { status: 429 }) mockEnforceCallbackRateLimit.mockResolvedValueOnce(limitedResponse) diff --git a/apps/sim/app/api/mcp/oauth/callback/route.ts b/apps/sim/app/api/mcp/oauth/callback/route.ts index bd3ff0915ac..9a521e49585 100644 --- a/apps/sim/app/api/mcp/oauth/callback/route.ts +++ b/apps/sim/app/api/mcp/oauth/callback/route.ts @@ -20,6 +20,7 @@ import { CredentialGroupOAuthStateVersionError } from '@/lib/credential-groups/o import type { CredentialGroupOAuthFailure } from '@/lib/credential-groups/oauth-completion' import { CredentialGroupOAuthError } from '@/lib/credential-groups/provider-adapter' import { enforcePublicCredentialGroupIpRateLimit } from '@/lib/credential-groups/rate-limit' +import { isMcpUrlRefusal } from '@/lib/mcp/domain-check' import { assertSafeOauthServerUrl, clearState, @@ -285,11 +286,24 @@ export const GET = withRouteHandler(async (request: NextRequest) => { const provider = new SimMcpOauthProvider({ row, preregistered }) let result: Awaited> try { - result = await withResourceOutboundScope({ workspaceId: serverWorkspaceId }, () => + // An egress refusal of a URL the server named is the server's configuration, not a + // Sim fault: returned as a value so timedStep does not error-log it. + const outcome = await withResourceOutboundScope({ workspaceId: serverWorkspaceId }, () => timedStep('mcpAuthGuarded', 120_000, () => - mcpAuthGuarded(provider, { serverUrl, authorizationCode: code }) + mcpAuthGuarded(provider, { serverUrl, authorizationCode: code }).catch((e: unknown) => { + if (isMcpUrlRefusal(e)) return e + throw e + }) ) ) + if (isMcpUrlRefusal(outcome)) { + logger.warn('MCP OAuth token exchange URL refused by egress policy', { + serverId: server.id, + error: outcome.message, + }) + return respond(outcome.message, false, 'token_exchange_failed', server.id) + } + result = outcome } catch (e) { logger.error('Token exchange failed during MCP OAuth callback', e) return respond( diff --git a/apps/sim/app/api/mcp/oauth/start/route.test.ts b/apps/sim/app/api/mcp/oauth/start/route.test.ts index 1520a1741e6..a65c55b6f1d 100644 --- a/apps/sim/app/api/mcp/oauth/start/route.test.ts +++ b/apps/sim/app/api/mcp/oauth/start/route.test.ts @@ -12,6 +12,7 @@ import { import { createRouteContext } from '@sim/testing/helpers/http' import { NextRequest } from 'next/server' import { beforeEach, describe, expect, it, vi } from 'vitest' +import { McpDnsResolutionError, McpSsrfError } from '@/lib/mcp/domain-check' vi.mock('@/lib/workspaces/permissions/utils', () => permissionsMock) vi.mock('@/lib/mcp/oauth', () => mcpOauthMock) @@ -236,6 +237,38 @@ describe('MCP OAuth start route: authorization-server refusals', () => { } ) + it.each([ + [ + 'a metadata-endpoint destination', + new McpSsrfError( + 'MCP server URL resolves to a cloud metadata endpoint (169.254.169.254), which is never reachable and cannot be allowlisted.' + ), + ], + [ + 'a non-public destination', + new McpSsrfError('MCP server URL must use https:// to a public destination.'), + ], + ['a hostname that does not exist', new McpDnsResolutionError('missing.example.com', true)], + ] as const)('answers 400 with the refusal for %s', async (_name, refusal) => { + mcpOauthMockFns.mockMcpAuthGuarded.mockRejectedValueOnce(refusal) + + const response = await start() + + expect(response.status).toBe(400) + expect((await response.json()).error).toBe(refusal.message) + }) + + it('keeps a 500 for a transient DNS failure', async () => { + mcpOauthMockFns.mockMcpAuthGuarded.mockRejectedValueOnce( + new McpDnsResolutionError('mcp.example.com', false) + ) + + const response = await start() + + expect(response.status).toBe(500) + expect((await response.json()).error).toBe('Failed to start OAuth flow') + }) + it('keeps a 500 for a failure that is not an authorization-server answer', async () => { mcpOauthMockFns.mockMcpAuthGuarded.mockRejectedValueOnce(new Error('decrypt failed')) diff --git a/apps/sim/app/api/mcp/oauth/start/route.ts b/apps/sim/app/api/mcp/oauth/start/route.ts index 0bcbf06ef49..4d0fd73bc37 100644 --- a/apps/sim/app/api/mcp/oauth/start/route.ts +++ b/apps/sim/app/api/mcp/oauth/start/route.ts @@ -10,6 +10,7 @@ import { NextResponse } from 'next/server' import { startMcpOauthContract } from '@/lib/api/contracts/mcp' import { parseRequest } from '@/lib/api/server' import { withRouteHandler } from '@/lib/core/utils/with-route-handler' +import { isMcpUrlRefusal } from '@/lib/mcp/domain-check' import { withMcpAuth } from '@/lib/mcp/middleware' import { assertSafeOauthServerUrl, @@ -173,9 +174,10 @@ export const GET = withRouteHandler( // OAuth discovery + DCR through the guarded fetch, bounded so a transient stall fails // fast with a labeled log instead of hanging the popup. `McpOauthRedirectRequired` is // the SUCCESS signal (a throw carrying the authorize URL), and an authorization-server - // refusal is an expected outcome rather than a Sim fault, so both are caught INSIDE the - // bounded step and returned as values — otherwise timedStep would error-log them. Only - // a real error or a timeout escapes as a throw. + // refusal or an egress refusal of a URL the server named is an expected outcome rather + // than a Sim fault, so all are caught INSIDE the bounded step and returned as values — + // otherwise timedStep would error-log them. Only a real error or a timeout escapes as a + // throw. const authOutcome = await timedStep('mcpAuthGuarded', MCP_AUTH_STEP_MS, async () => { try { return { kind: 'result' as const, value: await mcpAuthGuarded(provider, { serverUrl }) } @@ -183,6 +185,9 @@ export const GET = withRouteHandler( if (e instanceof McpOauthRedirectRequired) { return { kind: 'redirect' as const, authorizationUrl: e.authorizationUrl } } + if (isMcpUrlRefusal(e)) { + return { kind: 'refused' as const, error: e } + } if (isDynamicClientRegistrationUnsupported(e)) { return { kind: 'rejected' as const, @@ -209,6 +214,13 @@ export const GET = withRouteHandler( }) return createMcpErrorResponse(authOutcome.error, authOutcome.message, 422) } + if (authOutcome.kind === 'refused') { + logger.warn('MCP OAuth URL refused by egress policy', { + serverId, + error: authOutcome.error.message, + }) + return createMcpErrorResponse(authOutcome.error, authOutcome.error.message, 400) + } if (authOutcome.value === 'AUTHORIZED') { return NextResponse.json({ status: 'already_authorized' }) } diff --git a/apps/sim/lib/mcp/domain-check.ts b/apps/sim/lib/mcp/domain-check.ts index 6499dd0ed7c..528c993ec6f 100644 --- a/apps/sim/lib/mcp/domain-check.ts +++ b/apps/sim/lib/mcp/domain-check.ts @@ -54,6 +54,17 @@ export class McpDnsResolutionError extends Error { } } +/** + * True when an MCP URL was refused because of what the caller supplied: the egress policy + * refused the destination, or its hostname provably does not exist. A transient DNS failure + * is not one, so it stays a server fault. + */ +export function isMcpUrlRefusal(error: unknown): error is McpSsrfError | McpDnsResolutionError { + return ( + error instanceof McpSsrfError || (error instanceof McpDnsResolutionError && error.hostNotFound) + ) +} + /** * Core domain check. Returns null if the URL is allowed, or the hostname/url * string to use in the rejection error. From a14df326c52972a8a70f86401b1b129c7fa7f9a3 Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 12:51:08 -0800 Subject: [PATCH 12/20] fix(neo4j): keep the TLS relay's error handling for its whole lifetime (#10493) * fix(neo4j): keep the TLS relay's error handling for its whole lifetime * fix(neo4j): close the test database when mid-handshake setup fails --- .../lib/internal/neo4j/client.integration.ts | 107 +++++++++++++++++- apps/sim/lib/internal/neo4j/client.ts | 39 ++++--- 2 files changed, 127 insertions(+), 19 deletions(-) diff --git a/apps/sim/lib/internal/neo4j/client.integration.ts b/apps/sim/lib/internal/neo4j/client.integration.ts index 1a898e5f725..ab783d713a4 100644 --- a/apps/sim/lib/internal/neo4j/client.integration.ts +++ b/apps/sim/lib/internal/neo4j/client.integration.ts @@ -4,7 +4,7 @@ */ import { execFile } from 'node:child_process' import { mkdtempSync, readFileSync, rmSync } from 'node:fs' -import type { AddressInfo, Socket } from 'node:net' +import { type AddressInfo, connect as connectTcp, type Server, type Socket } from 'node:net' import { tmpdir } from 'node:os' import { join } from 'node:path' import { @@ -22,6 +22,34 @@ import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from 'vites vi.mock('@/lib/core/security/input-validation.server', () => inputValidationMock) +/** The relay's own server and sockets, observed (not replaced) so a test can fail them directly. */ +const relayHandles = vi.hoisted(() => ({ + servers: [] as Server[], + clients: [] as Socket[], + upstreams: [] as Socket[], +})) + +vi.mock('node:net', async (importOriginal) => { + const actual = await importOriginal() + const createServer = ((...args: Parameters) => { + const server = actual.createServer(...args) + server.on('connection', (socket) => relayHandles.clients.push(socket)) + relayHandles.servers.push(server) + return server + }) as typeof actual.createServer + return { ...actual, createServer } +}) + +vi.mock('node:tls', async (importOriginal) => { + const actual = await importOriginal() + const connect = ((...args: Parameters) => { + const socket = actual.connect(...args) + relayHandles.upstreams.push(socket) + return socket + }) as typeof actual.connect + return { ...actual, connect } +}) + import { openNeo4jConnection } from '@/lib/internal/neo4j/client' /** `.invalid` never resolves, so only a connection pinned to the validated IP can reach the server. */ @@ -32,6 +60,7 @@ interface TlsDatabase { port: number /** SNI and first application bytes of every TLS session that completed. */ sessions: Array<{ servername: string | undefined; firstBytes: string }> + openSockets: () => number close: () => Promise } @@ -63,8 +92,14 @@ async function issueCertificate(name: string) { certificates[name] = { cert: readFileSync(certPath, 'utf8'), key: readFileSync(keyPath, 'utf8') } } -/** A TLS listener that records the session, then hangs up: enough to see what the driver sent. */ -async function startTlsDatabase(certificateName: string): Promise { +/** + * A TLS listener that records the session, then hangs up: enough to see what the driver sent. + * With `holdOpen` it never answers, so the driver stays mid-handshake until the relay fails. + */ +async function startTlsDatabase( + certificateName: string, + { holdOpen = false } = {} +): Promise { const sessions: TlsDatabase['sessions'] = [] const sockets = new Set() const server = createTlsServer(certificates[certificateName], (socket) => { @@ -73,7 +108,7 @@ async function startTlsDatabase(certificateName: string): Promise { servername: socket.servername || undefined, firstBytes: chunk.subarray(0, 4).toString('hex'), }) - socket.destroy() + if (!holdOpen) socket.destroy() }) }) server.on('connection', (socket) => { @@ -85,6 +120,7 @@ async function startTlsDatabase(certificateName: string): Promise { return { port: (server.address() as AddressInfo).port, sessions, + openSockets: () => sockets.size, close: () => new Promise((resolve) => { for (const socket of sockets) socket.destroy() @@ -110,6 +146,9 @@ describe('openNeo4jConnection with encryption enabled', () => { }) beforeEach(() => { + relayHandles.servers.length = 0 + relayHandles.clients.length = 0 + relayHandles.upstreams.length = 0 inputValidationMockFns.mockValidateDatabaseHost.mockResolvedValue({ isValid: true, resolvedIP: '127.0.0.1', @@ -153,4 +192,64 @@ describe('openNeo4jConnection with encryption enabled', () => { await database.close() } }) + + /** Opens through a database that never answers and waits until Bolt bytes cross the relay. */ + async function openMidHandshake() { + const database = await startTlsDatabase(DATABASE_HOST, { holdOpen: true }) + const opening = open(database.port).catch((caught: unknown) => caught) + try { + await vi.waitFor(() => expect(database.sessions).toHaveLength(1)) + } catch (error) { + await database.close() + throw error + } + return { database, opening } + } + + it('closes the relay and fails the connection when its server errors after listening', async () => { + const { database, opening } = await openMidHandshake() + try { + const [server] = relayHandles.servers + const port = (server.address() as AddressInfo).port + const failure = Object.assign(new Error('accept EMFILE'), { code: 'EMFILE' }) + + expect(() => server.emit('error', failure)).not.toThrow() + + const error = await opening + expect(error).toBeInstanceOf(Neo4jError) + expect(error).toMatchObject({ + message: expect.stringMatching(/Failed to connect to server.*Caused by: accept EMFILE/), + }) + expect(server.listening).toBe(false) + await vi.waitFor(() => expect(database.openSockets()).toBe(0)) + const refused = await new Promise((resolve) => { + const probe = connectTcp(port, '127.0.0.1', () => resolve(undefined)) + probe.once('error', resolve) + }) + expect(refused).toMatchObject({ code: 'ECONNREFUSED' }) + } finally { + await database.close() + } + }) + + it.each(['clients', 'upstreams'] as const)( + 'survives a relayed socket (%s) emitting error more than once', + async (side) => { + const { database, opening } = await openMidHandshake() + try { + const [socket] = relayHandles[side] + const failure = new Error('connection reset') + + expect(() => { + socket.emit('error', failure) + socket.emit('error', failure) + }).not.toThrow() + + expect(await opening).toBeInstanceOf(Neo4jError) + await vi.waitFor(() => expect(database.openSockets()).toBe(0)) + } finally { + await database.close() + } + } + ) }) diff --git a/apps/sim/lib/internal/neo4j/client.ts b/apps/sim/lib/internal/neo4j/client.ts index 3fccb24cc53..0970a7d93b5 100644 --- a/apps/sim/lib/internal/neo4j/client.ts +++ b/apps/sim/lib/internal/neo4j/client.ts @@ -1,9 +1,12 @@ import { createServer as createTcpServer, isIP, type Socket } from 'node:net' import { checkServerIdentity, connect as connectTls } from 'node:tls' +import { createLogger } from '@sim/logger' import neo4j, { type Driver } from 'neo4j-driver' import { validateDatabaseHost } from '@/lib/core/security/input-validation.server' import type { Neo4jConnectionConfig } from '@/tools/neo4j/types' +const logger = createLogger('Neo4jClient') + const CONNECTION_TIMEOUT_MS = 10_000 /** The driver pools one connection; the rest of the budget covers reconnects after a drop. */ const MAX_RELAYED_CONNECTIONS = 4 @@ -11,7 +14,7 @@ const CONNECT_FAILURE_PREFIX = 'Failed to connect to server. Please ensure that your database is listening on the correct host and port and that you have compatible encryption settings both on Neo4j server and driver.' /** An open Neo4j driver and everything that must be released with it. */ -export interface Neo4jConnection { +interface Neo4jConnection { driver: Driver close: () => Promise } @@ -44,6 +47,14 @@ async function startPinnedTlsRelay(target: { let lastFailure: Error | undefined let closePromise: Promise | undefined + const close = () => { + closePromise ??= new Promise((resolve) => { + for (const socket of sockets) socket.destroy() + server.close(() => resolve()) + }) + return closePromise + } + const server = createTcpServer((client) => { accepted += 1 sockets.add(client) @@ -79,12 +90,12 @@ async function startPinnedTlsRelay(target: { lastFailure = new Error(`Failed to establish connection in ${CONNECTION_TIMEOUT_MS}ms`) finish() }) - upstream.once('error', (error) => { + upstream.on('error', (error) => { lastFailure = error finish() }) upstream.once('close', finish) - client.once('error', finish) + client.on('error', finish) client.once('close', finish) }) @@ -92,27 +103,25 @@ async function startPinnedTlsRelay(target: { server.once('error', reject) server.listen(0, '127.0.0.1', () => { server.removeListener('error', reject) + server.on('error', (error: NodeJS.ErrnoException) => { + logger.error('Neo4j TLS relay server failed; closing the relay', { + code: error.code, + error: error.message, + }) + lastFailure = error + void close() + }) resolve() }) }) const address = server.address() if (!address || typeof address === 'string') { - server.close() + await close() throw new Error('Neo4j TLS relay did not bind a TCP port') } - return { - port: address.port, - failure: () => lastFailure, - close: () => { - closePromise ??= new Promise((resolve) => { - for (const socket of sockets) socket.destroy() - server.close(() => resolve()) - }) - return closePromise - }, - } + return { port: address.port, failure: () => lastFailure, close } } /** From e24dcc5bf97d5c256c634d211e04477fc52ccd6a Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 12:57:17 -0800 Subject: [PATCH 13/20] fix(realtime): cap batch operation frames and persist positions in one statement (#10497) Batch workflow operations were accepted with unbounded arrays and persisted one awaited statement per entry inside the transaction that holds the workflow row lock, so a single frame could pin a pooled realtime connection for minutes. - cap every batch array in the realtime protocol schema (blocks 2,000, edges 10,000, subblock updates 10,000), matching the workflow graph limits - write batch positions with one UPDATE ... FROM (VALUES ...), last entry wins - write subblock batch updates once per touched block instead of once per entry --- .../src/database/batch-writes.integration.ts | 126 ++++++++++++++++++ apps/realtime/src/database/operations.ts | 40 +++--- .../realtime-protocol/src/schemas.test.ts | 112 ++++++++++++++++ packages/realtime-protocol/src/schemas.ts | 93 ++++++++----- 4 files changed, 317 insertions(+), 54 deletions(-) create mode 100644 apps/realtime/src/database/batch-writes.integration.ts create mode 100644 packages/realtime-protocol/src/schemas.test.ts diff --git a/apps/realtime/src/database/batch-writes.integration.ts b/apps/realtime/src/database/batch-writes.integration.ts new file mode 100644 index 00000000000..a80862d632f --- /dev/null +++ b/apps/realtime/src/database/batch-writes.integration.ts @@ -0,0 +1,126 @@ +/** Real PostgreSQL coverage: batch position writes stay in their workflow with the last entry winning; batch subblock writes chain per block. */ +import { db } from '@sim/db' +import { user, workflow, workflowBlocks, workspace } from '@sim/db/schema' +import { deleteWorkspaceFixture, insertWorkspaceFixture } from '@sim/db/testing/workspace-fixtures' +import { + BLOCKS_OPERATIONS, + OPERATION_TARGETS, + SUBBLOCK_OPERATIONS, +} from '@sim/realtime-protocol/constants' +import { generateId } from '@sim/utils/id' +import { eq, inArray } from 'drizzle-orm' +import { afterAll, beforeAll, beforeEach, describe, expect, it } from 'vitest' +import { persistWorkflowOperation } from '@/database/operations' + +const userId = generateId() +const workspaceId = generateId() +const workflowId = generateId() +const otherWorkflowId = generateId() +const ids = { moved: generateId(), still: generateId(), foreign: generateId() } + +function persist(target: string, operation: string, payload: unknown) { + return persistWorkflowOperation(workflowId, { + target, + operation, + payload, + timestamp: Date.now(), + userId, + }) +} + +async function readBlocks() { + const rows = await db + .select() + .from(workflowBlocks) + .where(inArray(workflowBlocks.id, Object.values(ids))) + return Object.fromEntries(rows.map((row) => [row.id, row])) +} + +describe('batch writes against PostgreSQL', () => { + beforeAll(async () => { + const now = new Date() + await db.insert(user).values({ + id: userId, + name: 'Batch fixture', + email: `${userId}@batch-writes.test`, + emailVerified: true, + createdAt: now, + updatedAt: now, + }) + await insertWorkspaceFixture(db, { + id: workspaceId, + name: 'Batch target', + ownerId: userId, + billedAccountUserId: userId, + }) + await db.insert(workflow).values( + [workflowId, otherWorkflowId].map((id) => ({ + id, + userId, + workspaceId, + name: id, + lastSynced: now, + createdAt: now, + updatedAt: now, + })) + ) + }) + + beforeEach(async () => { + await db.delete(workflowBlocks).where(inArray(workflowBlocks.id, Object.values(ids))) + await db.insert(workflowBlocks).values( + [ + { id: ids.moved, workflowId }, + { id: ids.still, workflowId }, + { id: ids.foreign, workflowId: otherWorkflowId }, + ].map((row) => ({ + ...row, + type: 'function', + name: row.id, + positionX: '0', + positionY: '0', + subBlocks: { code: { id: 'code', type: 'code', value: 'a' } }, + })) + ) + }) + + afterAll(async () => { + await deleteWorkspaceFixture(db, eq(workspace.ownerId, userId)) + await db.delete(user).where(eq(user.id, userId)) + }) + + it('moves only this workflow’s blocks, the last entry for a block winning', async () => { + await persist(OPERATION_TARGETS.BLOCKS, BLOCKS_OPERATIONS.BATCH_UPDATE_POSITIONS, { + updates: [ + { id: ids.moved, position: { x: 1, y: 1 } }, + { id: ids.foreign, position: { x: 9, y: 9 } }, + { id: generateId(), position: { x: 9, y: 9 } }, + { id: ids.moved, position: { x: 12.5, y: -40 } }, + ], + }) + + const blocks = await readBlocks() + const position = (id: string) => [Number(blocks[id].positionX), Number(blocks[id].positionY)] + expect(position(ids.moved)).toEqual([12.5, -40]) + expect(position(ids.still)).toEqual([0, 0]) + expect(position(ids.foreign)).toEqual([0, 0]) + }) + + it('applies repeated entries for one block in order, each seeing the one before', async () => { + await persist(OPERATION_TARGETS.SUBBLOCK, SUBBLOCK_OPERATIONS.BATCH_UPDATE, { + updates: [ + { blockId: ids.moved, subblockId: 'code', value: 'b', expectedValue: 'a' }, + { blockId: ids.moved, subblockId: 'prompt', value: 'p' }, + { blockId: ids.moved, subblockId: 'code', value: 'c', expectedValue: 'b' }, + { blockId: ids.still, subblockId: 'code', value: 'd' }, + ], + }) + + const blocks = await readBlocks() + expect(blocks[ids.moved].subBlocks).toEqual({ + code: { id: 'code', type: 'code', value: 'c' }, + prompt: { id: 'prompt', type: 'unknown', value: 'p' }, + }) + expect(blocks[ids.still].subBlocks).toEqual({ code: { id: 'code', type: 'code', value: 'd' } }) + }) +}) diff --git a/apps/realtime/src/database/operations.ts b/apps/realtime/src/database/operations.ts index 284677af888..116e1d18c92 100644 --- a/apps/realtime/src/database/operations.ts +++ b/apps/realtime/src/database/operations.ts @@ -945,22 +945,24 @@ async function handleBlocksOperationTx( switch (operation) { case BLOCKS_OPERATIONS.BATCH_UPDATE_POSITIONS: { const { updates } = payload - if (!Array.isArray(updates) || updates.length === 0) { - return - } - - for (const update of updates) { - const { id, position } = update - if (!id || !position) continue + if (!Array.isArray(updates)) return - await tx - .update(workflowBlocks) - .set({ - positionX: position.x, - positionY: position.y, - }) - .where(and(eq(workflowBlocks.id, id), eq(workflowBlocks.workflowId, workflowId))) + // UPDATE ... FROM applies an arbitrary row for a repeated id, so keep the last entry for each. + const positions = new Map() + for (const { id, position } of updates) { + if (id && position) positions.set(id, position) } + if (positions.size === 0) return + + const moved = sql.join( + Array.from(positions, ([id, { x, y }]) => sql`(${id}, ${x}::numeric, ${y}::numeric)`), + sql`, ` + ) + await tx + .update(workflowBlocks) + .set({ positionX: sql`moved.x`, positionY: sql`moved.y` }) + .from(sql`(VALUES ${moved}) AS moved(id, x, y)`) + .where(and(eq(workflowBlocks.id, sql`moved.id`), eq(workflowBlocks.workflowId, workflowId))) break } @@ -2023,6 +2025,7 @@ async function handleSubblockOperationTx( } const blocksById = await loadSubblockUpdateBlocks(tx, workflowId) + const changedBlockIds = new Set() for (const update of updates) { const { blockId, subblockId, value, expectedValue } = update @@ -2044,15 +2047,18 @@ async function handleSubblockOperationTx( ? { ...currentSubBlock, value } : { id: subblockId, type: 'unknown', value } + blocksById[blockId] = { ...block, subBlocks } + changedBlockIds.add(blockId) + } + + for (const blockId of changedBlockIds) { await tx .update(workflowBlocks) .set({ - subBlocks, + subBlocks: blocksById[blockId].subBlocks, updatedAt: new Date(), }) .where(and(eq(workflowBlocks.id, blockId), eq(workflowBlocks.workflowId, workflowId))) - - blocksById[blockId] = { ...block, subBlocks } } logger.debug(`Batch updated ${updates.length} subblocks for workflow ${workflowId}`) diff --git a/packages/realtime-protocol/src/schemas.test.ts b/packages/realtime-protocol/src/schemas.test.ts new file mode 100644 index 00000000000..4d87d8a0d7c --- /dev/null +++ b/packages/realtime-protocol/src/schemas.test.ts @@ -0,0 +1,112 @@ +import { describe, expect, it } from 'vitest' +import { + BLOCKS_OPERATIONS, + EDGES_OPERATIONS, + OPERATION_TARGETS, + SUBBLOCK_OPERATIONS, +} from './constants' +import { WorkflowOperationSchema } from './schemas' + +const position = { x: 0, y: 0 } +const edge = { id: 'e', source: 'a', target: 'b' } +const many = (count: number, entry: T) => Array.from({ length: count }, () => entry) + +/** Each batch frame with `count` entries in its capped array, and the cap it must hold to. */ +const batches: Array<{ + operation: string + field: string + target: string + cap: number + payload: (count: number) => object +}> = [ + { + operation: BLOCKS_OPERATIONS.BATCH_UPDATE_POSITIONS, + field: 'updates', + target: OPERATION_TARGETS.BLOCKS, + cap: 2_000, + payload: (n) => ({ updates: many(n, { id: 'b', position }) }), + }, + { + operation: BLOCKS_OPERATIONS.BATCH_ADD_BLOCKS, + field: 'blocks', + target: OPERATION_TARGETS.BLOCKS, + cap: 2_000, + payload: (n) => ({ blocks: many(n, { id: 'b' }) }), + }, + { + operation: BLOCKS_OPERATIONS.BATCH_ADD_BLOCKS, + field: 'edges', + target: OPERATION_TARGETS.BLOCKS, + cap: 10_000, + payload: (n) => ({ blocks: [], edges: many(n, edge) }), + }, + { + operation: BLOCKS_OPERATIONS.BATCH_REMOVE_BLOCKS, + field: 'ids', + target: OPERATION_TARGETS.BLOCKS, + cap: 2_000, + payload: (n) => ({ ids: many(n, 'b') }), + }, + ...[ + BLOCKS_OPERATIONS.BATCH_TOGGLE_ENABLED, + BLOCKS_OPERATIONS.BATCH_TOGGLE_HANDLES, + BLOCKS_OPERATIONS.BATCH_TOGGLE_LOCKED, + ].map((operation) => ({ + operation, + field: 'blockIds', + target: OPERATION_TARGETS.BLOCKS, + cap: 2_000, + payload: (n: number) => ({ + blockIds: many(n, 'b'), + previousStates: {}, + }), + })), + { + operation: BLOCKS_OPERATIONS.BATCH_UPDATE_PARENT, + field: 'updates', + target: OPERATION_TARGETS.BLOCKS, + cap: 2_000, + payload: (n) => ({ + updates: many(n, { id: 'b', parentId: 'p', position }), + }), + }, + { + operation: EDGES_OPERATIONS.BATCH_ADD_EDGES, + field: 'edges', + target: OPERATION_TARGETS.EDGES, + cap: 10_000, + payload: (n) => ({ edges: many(n, edge) }), + }, + { + operation: EDGES_OPERATIONS.BATCH_REMOVE_EDGES, + field: 'ids', + target: OPERATION_TARGETS.EDGES, + cap: 10_000, + payload: (n) => ({ ids: many(n, 'e') }), + }, + { + operation: SUBBLOCK_OPERATIONS.BATCH_UPDATE, + field: 'updates', + target: OPERATION_TARGETS.SUBBLOCK, + cap: 10_000, + payload: (n) => ({ + updates: many(n, { blockId: 'b', subblockId: 's', value: 1 }), + }), + }, +] + +describe('WorkflowOperationSchema batch caps', () => { + it.each(batches)( + 'caps $operation $field at $cap entries', + ({ operation, target, cap, payload }) => { + const frame = (count: number) => ({ + operation, + target, + payload: payload(count), + timestamp: 1, + }) + expect(WorkflowOperationSchema.safeParse(frame(cap)).success).toBe(true) + expect(WorkflowOperationSchema.safeParse(frame(cap + 1)).success).toBe(false) + } + ) +}) diff --git a/packages/realtime-protocol/src/schemas.ts b/packages/realtime-protocol/src/schemas.ts index 2cb07c02595..277bcc8813e 100644 --- a/packages/realtime-protocol/src/schemas.ts +++ b/packages/realtime-protocol/src/schemas.ts @@ -11,6 +11,17 @@ import { WORKFLOW_OPERATIONS, } from './constants' +/** + * Most entries one batch frame may carry. Persistence spends work per entry inside the workflow's + * write lock, so the 8 MiB transport cap alone would let one frame hold a pooled connection for + * minutes. Blocks and edges mirror the workflow graph limits (`SOURCE_LIMITS`). Subblock updates + * come from a workflow-wide search-replace, one per matched field, and persist as one write per + * block. + */ +const MAX_BATCH_BLOCKS = 2_000 +const MAX_BATCH_EDGES = 10_000 +const MAX_BATCH_SUBBLOCK_UPDATES = 10_000 + const PositionSchema = z.object({ x: z.number(), y: z.number(), @@ -81,12 +92,14 @@ const BatchPositionUpdateSchema = z.object({ operation: z.literal(BLOCKS_OPERATIONS.BATCH_UPDATE_POSITIONS), target: z.literal(OPERATION_TARGETS.BLOCKS), payload: z.object({ - updates: z.array( - z.object({ - id: z.string(), - position: PositionSchema, - }) - ), + updates: z + .array( + z.object({ + id: z.string(), + position: PositionSchema, + }) + ) + .max(MAX_BATCH_BLOCKS), }), timestamp: z.number(), operationId: z.string().optional(), @@ -157,14 +170,16 @@ const SubblockOperationSchema = z.object({ operation: z.literal(SUBBLOCK_OPERATIONS.BATCH_UPDATE), target: z.literal(OPERATION_TARGETS.SUBBLOCK), payload: z.object({ - updates: z.array( - z.object({ - blockId: z.string(), - subblockId: z.string(), - value: z.any(), - expectedValue: z.any().optional(), - }) - ), + updates: z + .array( + z.object({ + blockId: z.string(), + subblockId: z.string(), + value: z.any(), + expectedValue: z.any().optional(), + }) + ) + .max(MAX_BATCH_SUBBLOCK_UPDATES), }), timestamp: z.number(), operationId: z.string().optional(), @@ -192,8 +207,8 @@ const BatchAddBlocksSchema = z.object({ operation: z.literal(BLOCKS_OPERATIONS.BATCH_ADD_BLOCKS), target: z.literal(OPERATION_TARGETS.BLOCKS), payload: z.object({ - blocks: z.array(z.record(z.string(), z.any())), - edges: z.array(AutoConnectEdgeSchema).optional(), + blocks: z.array(z.record(z.string(), z.any())).max(MAX_BATCH_BLOCKS), + edges: z.array(AutoConnectEdgeSchema).max(MAX_BATCH_EDGES).optional(), loops: z.record(z.string(), z.any()).optional(), parallels: z.record(z.string(), z.any()).optional(), subBlockValues: z.record(z.string(), z.record(z.string(), z.any())).optional(), @@ -206,7 +221,7 @@ const BatchRemoveBlocksSchema = z.object({ operation: z.literal(BLOCKS_OPERATIONS.BATCH_REMOVE_BLOCKS), target: z.literal(OPERATION_TARGETS.BLOCKS), payload: z.object({ - ids: z.array(z.string()), + ids: z.array(z.string()).max(MAX_BATCH_BLOCKS), }), timestamp: z.number(), operationId: z.string().optional(), @@ -216,7 +231,7 @@ const BatchRemoveEdgesSchema = z.object({ operation: z.literal(EDGES_OPERATIONS.BATCH_REMOVE_EDGES), target: z.literal(OPERATION_TARGETS.EDGES), payload: z.object({ - ids: z.array(z.string()), + ids: z.array(z.string()).max(MAX_BATCH_EDGES), }), timestamp: z.number(), operationId: z.string().optional(), @@ -226,15 +241,17 @@ const BatchAddEdgesSchema = z.object({ operation: z.literal(EDGES_OPERATIONS.BATCH_ADD_EDGES), target: z.literal(OPERATION_TARGETS.EDGES), payload: z.object({ - edges: z.array( - z.object({ - id: z.string(), - source: z.string(), - target: z.string(), - sourceHandle: z.string().nullable().optional(), - targetHandle: z.string().nullable().optional(), - }) - ), + edges: z + .array( + z.object({ + id: z.string(), + source: z.string(), + target: z.string(), + sourceHandle: z.string().nullable().optional(), + targetHandle: z.string().nullable().optional(), + }) + ) + .max(MAX_BATCH_EDGES), }), timestamp: z.number(), operationId: z.string().optional(), @@ -244,7 +261,7 @@ const BatchToggleEnabledSchema = z.object({ operation: z.literal(BLOCKS_OPERATIONS.BATCH_TOGGLE_ENABLED), target: z.literal(OPERATION_TARGETS.BLOCKS), payload: z.object({ - blockIds: z.array(z.string()), + blockIds: z.array(z.string()).max(MAX_BATCH_BLOCKS), previousStates: z.record(z.string(), z.boolean()), }), timestamp: z.number(), @@ -255,7 +272,7 @@ const BatchToggleHandlesSchema = z.object({ operation: z.literal(BLOCKS_OPERATIONS.BATCH_TOGGLE_HANDLES), target: z.literal(OPERATION_TARGETS.BLOCKS), payload: z.object({ - blockIds: z.array(z.string()), + blockIds: z.array(z.string()).max(MAX_BATCH_BLOCKS), previousStates: z.record(z.string(), z.boolean()), }), timestamp: z.number(), @@ -266,7 +283,7 @@ const BatchToggleLockedSchema = z.object({ operation: z.literal(BLOCKS_OPERATIONS.BATCH_TOGGLE_LOCKED), target: z.literal(OPERATION_TARGETS.BLOCKS), payload: z.object({ - blockIds: z.array(z.string()), + blockIds: z.array(z.string()).max(MAX_BATCH_BLOCKS), previousStates: z.record(z.string(), z.boolean()), }), timestamp: z.number(), @@ -277,13 +294,15 @@ const BatchUpdateParentSchema = z.object({ operation: z.literal(BLOCKS_OPERATIONS.BATCH_UPDATE_PARENT), target: z.literal(OPERATION_TARGETS.BLOCKS), payload: z.object({ - updates: z.array( - z.object({ - id: z.string(), - parentId: z.string(), - position: PositionSchema, - }) - ), + updates: z + .array( + z.object({ + id: z.string(), + parentId: z.string(), + position: PositionSchema, + }) + ) + .max(MAX_BATCH_BLOCKS), }), timestamp: z.number(), operationId: z.string().optional(), From 93b7597b9dffd353288fbcb01c7e13e42ae6ab96 Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 12:57:27 -0800 Subject: [PATCH 14/20] fix(chat): stop email OTP verification from revealing the allow-list (#10498) Every failed verification on the chat and public-file email gates now returns one 400, and both gates run the code check for every email so latency does not reveal membership either. Chat email auth answers otp_required for any email instead of rejecting unlisted ones. --- .../[identifier]/otp/route.integration.ts | 80 +++++++++++-------- .../app/api/chat/[identifier]/otp/route.ts | 14 +--- apps/sim/app/api/chat/utils.test.ts | 27 ++----- .../core/security/deployment-credentials.ts | 6 +- apps/sim/lib/core/security/otp.ts | 8 ++ .../content-sharing.integration.ts | 6 +- .../public-shares/application/credentials.ts | 9 +-- 7 files changed, 75 insertions(+), 75 deletions(-) diff --git a/apps/sim/app/api/chat/[identifier]/otp/route.integration.ts b/apps/sim/app/api/chat/[identifier]/otp/route.integration.ts index d35fffb7171..571d524a681 100644 --- a/apps/sim/app/api/chat/[identifier]/otp/route.integration.ts +++ b/apps/sim/app/api/chat/[identifier]/otp/route.integration.ts @@ -17,7 +17,7 @@ vi.mock('@/lib/core/config/redis', async (importOriginal) => ({ getRedisClient: () => redisClient.current, })) -import { MAX_OTP_ATTEMPTS, storeOTP } from '@/lib/core/security/otp' +import { MAX_OTP_ATTEMPTS, storeOTP, verifyOTP } from '@/lib/core/security/otp' import { PUT } from '@/app/api/chat/[identifier]/otp/route' const redisUrl = readTestRedisUrl() @@ -29,15 +29,14 @@ const identifier = `otp-${chatId}` const email = `${generateId()}@otp.invalid` const CODE = '246810' const NEWER_CODE = '135791' -const NO_CODE = 'No verification code found, request a new one' -const INVALID = 'Invalid verification code' -const LOCKED = 'Too many failed attempts. Please request a new code.' +const FAILED = 'Invalid or expired verification code' +const REJECTED = { status: 400, error: FAILED, cookie: null } -async function verify(otp: string) { +async function verify(otp: string, address = email) { const request = createMockRequest({ method: 'PUT', url: `/api/chat/${identifier}/otp`, - body: { email, otp }, + body: { email: address, otp }, }) const response = await PUT(request, createRouteContext({ identifier })) const body = (await response.json()) as { error?: string; message?: string } @@ -111,39 +110,50 @@ describe('chat OTP verification', () => { .where(eq(chat.id, chatId)) }) - it.each([ - { - rejection: 'the chat no longer uses email auth', - change: { authType: 'public' }, - response: { status: 400, error: 'This chat does not use email authentication' }, - }, - { - rejection: 'the email is no longer allowed', - change: { allowedEmails: ['someone-else@otp.invalid'] }, - response: { status: 403, error: 'Email not authorized' }, - }, - ])('rejects without spending the code when $rejection', async ({ change, response }) => { - await db.update(chat).set(change).where(eq(chat.id, chatId)) + it('rejects without spending the code when the chat no longer uses email auth', async () => { + await db.update(chat).set({ authType: 'public' }).where(eq(chat.id, chatId)) for (let attempt = 0; attempt < MAX_OTP_ATTEMPTS; attempt++) { - expect(await verify(CODE)).toMatchObject({ ...response, cookie: null }) + expect(await verify(CODE)).toMatchObject({ + status: 400, + error: 'This chat does not use email authentication', + cookie: null, + }) } + await db.update(chat).set({ authType: 'email' }).where(eq(chat.id, chatId)) + expect(await verify(CODE)).toMatchObject({ status: 200 }) + }) + + it('spends but never accepts a correct code once the email leaves the allow-list', async () => { await db .update(chat) - .set({ authType: 'email', allowedEmails: [email] }) + .set({ allowedEmails: ['someone-else@otp.invalid'] }) .where(eq(chat.id, chatId)) - expect(await verify(CODE)).toMatchObject({ status: 200 }) + expect(await verify(CODE)).toMatchObject(REJECTED) + await db + .update(chat) + .set({ allowedEmails: [email] }) + .where(eq(chat.id, chatId)) + expect(await verify(CODE)).toMatchObject(REJECTED) }) it('compares at most the attempt limit of guesses however many arrive concurrently', async () => { - const results = await Promise.all(wrongGuesses(30).map(verify)) - - const compared = results.filter((result) => result.error !== NO_CODE) - expect(compared).toHaveLength(MAX_OTP_ATTEMPTS) - expect(compared.filter((result) => result.error === INVALID)).toHaveLength( - MAX_OTP_ATTEMPTS - 1 + const results = await Promise.all( + wrongGuesses(30).map((guess) => verifyOTP('chat', chatId, email, guess)) ) - expect(compared.filter((result) => result.error === LOCKED)).toHaveLength(1) - expect(await verify(CODE)).toMatchObject({ status: 400, error: NO_CODE, cookie: null }) + + expect(results.filter((result) => result === 'invalid')).toHaveLength(MAX_OTP_ATTEMPTS - 1) + expect(results.filter((result) => result === 'locked')).toHaveLength(1) + expect(await verify(CODE)).toMatchObject(REJECTED) + }) + + it('answers an allow-listed email exactly like an unlisted one on every failure', async () => { + const unlisted = `${generateId()}@elsewhere.invalid` + const unlistedAnswer = await verify('000000', unlisted) + + expect(unlistedAnswer).toEqual(REJECTED) + for (const guess of wrongGuesses(MAX_OTP_ATTEMPTS + 1)) { + expect(await verify(guess)).toEqual(unlistedAnswer) + } }) it('lets only one of several concurrent correct submissions succeed', async () => { @@ -167,31 +177,31 @@ describe('chat OTP verification', () => { return evaluate(...args) }) - expect(await verify(CODE)).toMatchObject({ status: 400, error: NO_CODE, cookie: null }) + expect(await verify(CODE)).toMatchObject(REJECTED) expect(await verify(NEWER_CODE)).toMatchObject({ status: 200 }) }) it('treats a code with no expiry as expired', async () => { const key = `otp:${email}:${chatId}` await redisClient.current?.set(key, `${CODE}:${MAX_OTP_ATTEMPTS - 1}`) - expect(await verify(CODE)).toMatchObject({ status: 400, error: NO_CODE, cookie: null }) + expect(await verify(CODE)).toMatchObject(REJECTED) expect(await redisClient.current?.exists(key)).toBe(0) }) it('accepts the correct code on the last remaining attempt and mints the auth cookie', async () => { for (const guess of wrongGuesses(MAX_OTP_ATTEMPTS - 1)) { - expect(await verify(guess)).toMatchObject({ status: 400, error: INVALID }) + expect(await verify(guess)).toMatchObject(REJECTED) } const accepted = await verify(CODE) expect(accepted.status).toBe(200) expect(accepted.cookie).toContain(`chat_auth_${chatId}=`) - expect(await verify(CODE)).toMatchObject({ status: 400, error: NO_CODE }) + expect(await verify(CODE)).toMatchObject(REJECTED) }) it('keeps the code expiry when a failed attempt is recorded', async () => { const key = `otp:${email}:${chatId}` await redisClient.current?.pexpire(key, 900) - expect(await verify('999999')).toMatchObject({ status: 400, error: INVALID }) + expect(await verify('999999')).toMatchObject(REJECTED) const ttl = await redisClient.current?.pttl(key) expect(ttl).toBeGreaterThan(0) expect(ttl).toBeLessThanOrEqual(900) diff --git a/apps/sim/app/api/chat/[identifier]/otp/route.ts b/apps/sim/app/api/chat/[identifier]/otp/route.ts index 74d6144677f..8fc9b47fef9 100644 --- a/apps/sim/app/api/chat/[identifier]/otp/route.ts +++ b/apps/sim/app/api/chat/[identifier]/otp/route.ts @@ -14,6 +14,7 @@ import { OTP_EMAIL_RATE_LIMIT, OTP_IP_RATE_LIMIT, OTP_RESOURCE_RATE_LIMIT, + OTP_VERIFICATION_FAILED, storeOTP, verifyOTP, } from '@/lib/core/security/otp' @@ -188,20 +189,13 @@ export const PUT = withRouteHandler( if (deployment.authType !== 'email') { return createCodedErrorResponse('This chat does not use email authentication', 400) } - if (!isEmailAllowed(email, deployment.allowedEmails)) { - return createCodedErrorResponse('Email not authorized', 403) - } - + const allowed = isEmailAllowed(email, deployment.allowedEmails) const verification = await verifyOTP('chat', deployment.id, email, otp) - if (verification === 'missing') { - return createCodedErrorResponse('No verification code found, request a new one', 400) - } if (verification === 'locked') { logger.warn('OTP invalidated after max failed attempts', { chatId: deployment.id }) - return createCodedErrorResponse('Too many failed attempts. Please request a new code.', 429) } - if (verification === 'invalid') { - return createCodedErrorResponse('Invalid verification code', 400) + if (!allowed || verification !== 'valid') { + return createCodedErrorResponse(OTP_VERIFICATION_FAILED, 400) } const response = createSuccessResponse({ diff --git a/apps/sim/app/api/chat/utils.test.ts b/apps/sim/app/api/chat/utils.test.ts index b86d9a2737b..8e6000c4b82 100644 --- a/apps/sim/app/api/chat/utils.test.ts +++ b/apps/sim/app/api/chat/utils.test.ts @@ -179,7 +179,7 @@ describe('Chat API Utils', () => { ) }) - it('should check allowed emails for email auth', async () => { + it('answers allowed and unlisted emails alike so the allow-list stays private', async () => { const deployment = { id: 'chat-id', authType: 'email', @@ -193,25 +193,14 @@ describe('Chat API Utils', () => { }, } as any - mockIsEmailAllowed.mockReturnValue(true) - const result1 = await validateChatAuth('request-id', deployment, mockRequest, { - email: 'user@example.com', - }) - expect(result1.authorized).toBe(false) - expect(result1.error).toBe('otp_required') - - const result2 = await validateChatAuth('request-id', deployment, mockRequest, { - email: 'other@company.com', - }) - expect(result2.authorized).toBe(false) - expect(result2.error).toBe('otp_required') + mockIsEmailAllowed.mockImplementation((address: string) => address !== 'user@unknown.com') - mockIsEmailAllowed.mockReturnValue(false) - const result3 = await validateChatAuth('request-id', deployment, mockRequest, { - email: 'user@unknown.com', - }) - expect(result3.authorized).toBe(false) - expect(result3.error).toBe('Email not authorized') + for (const email of ['user@example.com', 'other@company.com', 'user@unknown.com']) { + expect(await validateChatAuth('request-id', deployment, mockRequest, { email })).toEqual({ + authorized: false, + error: 'otp_required', + }) + } }) describe('SSO auth', () => { diff --git a/apps/sim/lib/core/security/deployment-credentials.ts b/apps/sim/lib/core/security/deployment-credentials.ts index fa4b4fc7ff8..5a311ac275a 100644 --- a/apps/sim/lib/core/security/deployment-credentials.ts +++ b/apps/sim/lib/core/security/deployment-credentials.ts @@ -194,11 +194,7 @@ export async function validateDeploymentCredentials( return { authorized: false, error: 'Email is required' } } - if (isEmailAllowed(email, resource.allowedEmails)) { - return { authorized: false, error: 'otp_required' } - } - - return { authorized: false, error: 'Email not authorized' } + return { authorized: false, error: 'otp_required' } } catch (error) { logger.error('Error validating email:', error, { requestId }) return { authorized: false, error: 'Authentication error' } diff --git a/apps/sim/lib/core/security/otp.ts b/apps/sim/lib/core/security/otp.ts index cf893fc4baa..d67e0edb1c5 100644 --- a/apps/sim/lib/core/security/otp.ts +++ b/apps/sim/lib/core/security/otp.ts @@ -128,6 +128,14 @@ async function reserveOTPAttempt( export type OTPVerification = 'valid' | 'invalid' | 'locked' | 'missing' +/** + * The one answer an email-auth gate gives for every failed verification. + * Allow-list misses and missing, wrong, or exhausted codes all share it, and + * callers run {@link verifyOTP} for every email, so neither the response nor + * its latency reveals whether an email is on the deployment's allow-list. + */ +export const OTP_VERIFICATION_FAILED = 'Invalid or expired verification code' + /** * Checks a submitted code and consumes it on a match. An attempt is reserved * before the comparison, so at most {@link MAX_OTP_ATTEMPTS} guesses are ever diff --git a/apps/sim/lib/projects/files/__integration__/content-sharing.integration.ts b/apps/sim/lib/projects/files/__integration__/content-sharing.integration.ts index 576dc15ad46..69d66289ff2 100644 --- a/apps/sim/lib/projects/files/__integration__/content-sharing.integration.ts +++ b/apps/sim/lib/projects/files/__integration__/content-sharing.integration.ts @@ -580,7 +580,11 @@ describe('Public file shares against PostgreSQL and private storage', () => { return value?.split(':')[0] } expect(await storedCode('outsider@shared.invalid')).toBeUndefined() - const failure = { authorized: false, status: 400, error: 'Invalid verification code' } + const failure = { + authorized: false, + status: 400, + error: 'Invalid or expired verification code', + } expect( await verifyPublicFileShareOtp({ token: share.token, diff --git a/apps/sim/lib/public-shares/application/credentials.ts b/apps/sim/lib/public-shares/application/credentials.ts index 27737f346c2..17f782481fc 100644 --- a/apps/sim/lib/public-shares/application/credentials.ts +++ b/apps/sim/lib/public-shares/application/credentials.ts @@ -7,6 +7,7 @@ import { generateOTP, OTP_EMAIL_RATE_LIMIT, OTP_RESOURCE_RATE_LIMIT, + OTP_VERIFICATION_FAILED, storeOTP, verifyOTP, } from '@/lib/core/security/otp' @@ -23,7 +24,7 @@ const SSO_RESOURCE_RATE_LIMIT: TokenBucketConfig = { refillRate: 100, refillIntervalMs: 15 * 60_000, } -const OTP_FAILURE = { authorized: false as const, error: 'Invalid verification code', status: 400 } +const OTP_FAILURE = { authorized: false as const, error: OTP_VERIFICATION_FAILED, status: 400 } /** Exchanges a verified password for a cookie bound to the share's current password slot. */ export async function authenticatePublicFileSharePassword({ @@ -105,13 +106,11 @@ export async function verifyPublicFileShareOtp({ }) { const normalizedEmail = normalizeEmail(email) const challenge = await preparePublicFileShareChallenge(token, 'email') + const verification = await verifyOTP('file', challenge.shareId, normalizedEmail, otp) const allowed = await challenge.withCurrentPolicy(({ share }) => isEmailAllowed(normalizedEmail, share.allowedEmails) ) - if (!allowed) return OTP_FAILURE - const verification = await verifyOTP('file', challenge.shareId, normalizedEmail, otp) - await challenge.withCurrentPolicy(() => undefined) - if (verification !== 'valid') return OTP_FAILURE + if (!allowed || verification !== 'valid') return OTP_FAILURE const resource = await challenge.withCurrentPolicy(({ share }) => share) const cookie = await createDeploymentAuthCookie({ cookiePrefix: 'file', From 09b16ff976bcd7911b671ead863a2f416d0b85c3 Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 13:01:21 -0800 Subject: [PATCH 15/20] fix(realtime): disconnect sockets whose session has ended (#10496) --- apps/realtime/src/access-revalidation.ts | 80 +++++++++- apps/realtime/src/middleware/auth.ts | 3 + .../src/session-liveness.integration.ts | 141 ++++++++++++++++++ packages/auth/src/verify.ts | 2 + 4 files changed, 224 insertions(+), 2 deletions(-) create mode 100644 apps/realtime/src/session-liveness.integration.ts diff --git a/apps/realtime/src/access-revalidation.ts b/apps/realtime/src/access-revalidation.ts index 897b10f890e..8e11a3825c4 100644 --- a/apps/realtime/src/access-revalidation.ts +++ b/apps/realtime/src/access-revalidation.ts @@ -1,3 +1,5 @@ +import { db } from '@sim/db' +import { session } from '@sim/db/schema' import { createLogger } from '@sim/logger' import { ROOM_MEMBERSHIP_ACTIONS, satisfiesRoomMembership } from '@sim/platform-authz/room-policy' import type { AccessRevokedBroadcast } from '@sim/realtime-protocol/events' @@ -9,7 +11,8 @@ import { type RoomType, roomName, } from '@sim/realtime-protocol/rooms' -import { sleep } from '@sim/utils/helpers' +import { chunkArray, sleep } from '@sim/utils/helpers' +import { and, gt, inArray } from 'drizzle-orm' import { evictSocketFromRoom, runRoomEvictionHandler, @@ -73,6 +76,23 @@ const SCAN_PASS_BUDGET_MS = 20_000 const SCAN_TIMED_OUT = Symbol('scan-timed-out') +/** Keeps each session-liveness query's `IN` list well below Postgres' bind-parameter limit. */ +const SESSION_LOOKUP_BATCH_SIZE = 1_000 + +/** Returns the subset of `sessionIds` that still name an unexpired session row. */ +async function findLiveSessionIds(sessionIds: string[]): Promise> { + const live = new Set() + const now = new Date() + for (const batch of chunkArray(sessionIds, SESSION_LOOKUP_BATCH_SIZE)) { + const rows = await db + .select({ id: session.id }) + .from(session) + .where(and(inArray(session.id, batch), gt(session.expiresAt, now))) + for (const row of rows) live.add(row.id) + } + return live +} + export interface AccessRevalidationSweep { /** Stop the periodic sweep (clears the interval). */ stop: () => void @@ -125,7 +145,9 @@ function collectScanTargets(io: IRoomManager['io']): ScanTarget[] { * no longer satisfies the room, closing the gap left by the join-only access * check. Without it, a member removed or downgraded mid-session keeps live * collaborative access (including durable document writes) for the whole lifetime - * of an already-open socket. + * of an already-open socket. Each pass first disconnects sockets whose Better Auth + * session has ended (signed out, revoked, or expired), since the handshake is the + * only other place the credential is checked. * * Blip-safety: eviction fires *only* when {@link resolveCurrentRoomPermission} * resolves to a permission that does not satisfy the room's membership level, @@ -290,7 +312,61 @@ export function startAccessRevalidationSweep(roomManager: IRoomManager): AccessR } } + /** Set while a session lookup is outstanding, so a timed-out query is never stacked with another. */ + let sessionLookupRunning = false + + /** + * Disconnects every socket whose handshake session no longer exists or has + * expired. Like the permission scan, only a successful query result acts: a + * failed or timed-out lookup leaves every socket connected until the next pass. + */ + async function disconnectEndedSessions(): Promise { + if (sessionLookupRunning) { + logger.warn('Skipping session liveness check; previous lookup still running') + return + } + const sockets = [...io.sockets.sockets.values()].filter( + (socket): socket is AuthenticatedSocket & { sessionId: string } => + Boolean((socket as AuthenticatedSocket).sessionId) + ) + if (sockets.length === 0) return + + sessionLookupRunning = true + const lookup = findLiveSessionIds([...new Set(sockets.map((socket) => socket.sessionId))]) + lookup + .catch(() => {}) + .finally(() => { + sessionLookupRunning = false + }) + + let live: Set | typeof SCAN_TIMED_OUT + try { + live = await Promise.race([ + lookup, + sleep(SCAN_SOCKET_TIMEOUT_MS).then((): typeof SCAN_TIMED_OUT => SCAN_TIMED_OUT), + ]) + } catch (error) { + logger.warn('Session liveness check failed; leaving sockets connected', error) + return + } + if (live === SCAN_TIMED_OUT) { + logger.warn('Session liveness check timed out; leaving sockets connected') + return + } + + for (const socket of sockets) { + if (live.has(socket.sessionId)) continue + logger.info('Disconnecting socket whose session ended', { + socketId: socket.id, + userId: socket.userId, + }) + socket.disconnect(true) + } + } + async function scanMemberships(): Promise { + await disconnectEndedSessions() + const targets = collectScanTargets(io) if (targets.length === 0) return diff --git a/apps/realtime/src/middleware/auth.ts b/apps/realtime/src/middleware/auth.ts index ee78a24ce30..8397b788f26 100644 --- a/apps/realtime/src/middleware/auth.ts +++ b/apps/realtime/src/middleware/auth.ts @@ -14,6 +14,8 @@ const logger = createLogger('SocketAuth') export interface AuthenticatedSocket extends Socket { data: { fileDocPresence?: { roomName: string; user: FileDocPresenceUser } } userId?: string + /** Better Auth session the handshake token was minted from; the access sweep disconnects the socket once it ends. */ + sessionId?: string userName?: string userEmail?: string activeOrganizationId?: string @@ -71,6 +73,7 @@ export async function authenticateSocket(socket: AuthenticatedSocket, next: (err // Store user info in socket for later use socket.userId = session.user.id + socket.sessionId = session.session.id socket.userName = session.user.name || session.user.email || 'Unknown User' socket.userEmail = session.user.email ?? undefined socket.userImage = session.user.image || null diff --git a/apps/realtime/src/session-liveness.integration.ts b/apps/realtime/src/session-liveness.integration.ts new file mode 100644 index 00000000000..1534eacc1da --- /dev/null +++ b/apps/realtime/src/session-liveness.integration.ts @@ -0,0 +1,141 @@ +import { mkdir, writeFile } from 'node:fs/promises' +import { createServer, type Server as HttpServer } from 'node:http' +import { dirname, resolve } from 'node:path' +import { db } from '@sim/db' +import { session, user, verification } from '@sim/db/schema' +import { getErrorMessage } from '@sim/utils/errors' +import { generateId } from '@sim/utils/id' +import { eq } from 'drizzle-orm' +import { Server } from 'socket.io' +import { io as connect, type Socket } from 'socket.io-client' +import { afterAll, beforeAll, describe, expect, it } from 'vitest' +import { type AccessRevalidationSweep, startAccessRevalidationSweep } from '@/access-revalidation' +import { env } from '@/env' +import { authenticateSocket } from '@/middleware/auth' +import { RedisRoomManager } from '@/rooms' + +const userId = generateId() +const checks: { name: string; status: string; durationMs: number; error?: string }[] = [] +const clients: Socket[] = [] +let http: HttpServer +let io: Server +let manager: RedisRoomManager +let sweep: AccessRevalidationSweep +let socketUrl: string + +/** Inserts a session row and returns it with a one-time socket token minted from it. */ +async function createSession() { + const id = generateId() + const token = generateId() + const oneTimeToken = generateId() + const now = new Date() + const expiresAt = new Date(Date.now() + 60 * 60 * 1000) + await db.insert(session).values({ id, token, userId, expiresAt, createdAt: now, updatedAt: now }) + await db.insert(verification).values({ + id: generateId(), + identifier: `one-time-token:${oneTimeToken}`, + value: token, + expiresAt: new Date(Date.now() + 60_000), + createdAt: now, + updatedAt: now, + }) + return { id, oneTimeToken } +} + +/** Opens a socket through the real handshake middleware and records how it later disconnects. */ +async function openSocket(oneTimeToken: string) { + const socket = connect(socketUrl, { + auth: { token: oneTimeToken }, + reconnection: false, + transports: ['websocket'], + }) + clients.push(socket) + const disconnected = new Promise((done) => socket.on('disconnect', done)) + await new Promise((done, fail) => { + socket.on('connect', done) + socket.on('connect_error', fail) + }) + return { socket, disconnected } +} + +function check(name: string, run: () => Promise) { + it(name, async () => { + const start = performance.now() + try { + await run() + checks.push({ name, status: 'passed', durationMs: performance.now() - start }) + } catch (error) { + checks.push({ + name, + status: 'failed', + durationMs: performance.now() - start, + error: getErrorMessage(error), + }) + throw error + } + }) +} + +beforeAll(async () => { + await db.insert(user).values({ + id: userId, + name: 'Fixture', + email: `${userId}@example.invalid`, + emailVerified: true, + createdAt: new Date(), + updatedAt: new Date(), + }) + http = createServer() + io = new Server(http) + io.use(authenticateSocket) + manager = new RedisRoomManager(io, env.REDIS_URL) + await manager.initialize() + sweep = startAccessRevalidationSweep(manager) + await new Promise((done) => http.listen(0, '127.0.0.1', done)) + const address = http.address() + if (!address || typeof address === 'string') throw new Error('Missing fixture port') + socketUrl = `http://127.0.0.1:${address.port}` +}) + +describe('session liveness over Socket.IO and Postgres', () => { + check('a socket whose session is deleted is disconnected; a live session stays', async () => { + const revoked = await createSession() + const kept = await createSession() + const revokedSocket = await openSocket(revoked.oneTimeToken) + const keptSocket = await openSocket(kept.oneTimeToken) + + await sweep.runOnce() + expect([...io.sockets.sockets.keys()]).toContain(revokedSocket.socket.id) + + await db.delete(session).where(eq(session.id, revoked.id)) + await sweep.runOnce() + + expect(await revokedSocket.disconnected).toBe('io server disconnect') + expect([...io.sockets.sockets.keys()]).toContain(keptSocket.socket.id) + }) + + check('a socket whose session expired is disconnected', async () => { + const expiring = await createSession() + const { disconnected } = await openSocket(expiring.oneTimeToken) + + await db + .update(session) + .set({ expiresAt: new Date(Date.now() - 1000) }) + .where(eq(session.id, expiring.id)) + await sweep.runOnce() + + expect(await disconnected).toBe('io server disconnect') + }) +}) + +afterAll(async () => { + sweep?.stop() + for (const socket of clients) socket.disconnect() + if (io) await new Promise((done) => io.close(() => done())) + await manager?.shutdown() + await db.delete(user).where(eq(user.id, userId)) + const report = + process.env.SESSION_LIVENESS_REPORT_PATH ?? resolve('test-results/session-liveness.json') + await mkdir(dirname(report), { recursive: true }) + await writeFile(report, JSON.stringify({ checks }, null, 2)) +}) diff --git a/packages/auth/src/verify.ts b/packages/auth/src/verify.ts index 62db3b08858..f6a274d7730 100644 --- a/packages/auth/src/verify.ts +++ b/packages/auth/src/verify.ts @@ -24,6 +24,7 @@ interface VerifiedOneTimeTokenSession { image?: string | null } session: { + id: string activeOrganizationId?: string | null } } @@ -83,6 +84,7 @@ export function createVerifyAuth(options: VerifyAuthOptions): VerifyAuth { image: result.user.image ?? null, }, session: { + id: result.session.id, activeOrganizationId: typeof result.session.activeOrganizationId === 'string' ? result.session.activeOrganizationId From 84873a329735d1d1f43ac4bae947805ae3dbfee5 Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 13:02:18 -0800 Subject: [PATCH 16/20] improvement(comparisons): answer-first Sim vs Make page with a worked credit example (#10499) --- .../(landing)/comparisons/[provider]/page.tsx | 6 ++++++ apps/sim/lib/compare/data/competitors/make.ts | 17 ++++++++++++++++ apps/sim/lib/compare/data/types.ts | 5 +++++ apps/sim/scripts/test-landing-seo-e2e.ts | 20 +++++++++++++++++++ 4 files changed, 48 insertions(+) diff --git a/apps/sim/app/(landing)/comparisons/[provider]/page.tsx b/apps/sim/app/(landing)/comparisons/[provider]/page.tsx index f0c18db4341..eb372667fdd 100644 --- a/apps/sim/app/(landing)/comparisons/[provider]/page.tsx +++ b/apps/sim/app/(landing)/comparisons/[provider]/page.tsx @@ -314,6 +314,7 @@ export default async function ComparisonProviderPage({ {COMPARISON_SECTIONS.map((section) => { const sectionIntro = competitor.sectionIntros?.[section.group] + const sectionOutro = competitor.sectionOutros?.[section.group] return (
    ) : null} + {sectionOutro ? ( +

    + +

    + ) : null}
    ) })} diff --git a/apps/sim/lib/compare/data/competitors/make.ts b/apps/sim/lib/compare/data/competitors/make.ts index 56160828c84..679c967f94d 100644 --- a/apps/sim/lib/compare/data/competitors/make.ts +++ b/apps/sim/lib/compare/data/competitors/make.ts @@ -6,6 +6,23 @@ export const makeProfile: CompetitorProfile = { id: 'make', name: 'Make', mentions: ['Make.com', 'Integromat'], + leadAnswer: [ + 'Choose Sim over Make when your team needs custom AI agents that reason across multiple models and internal tools, with self-hosting and built-in controls for approvals and output checks. Choose Make when your work is mainly predictable SaaS app automation and you value its larger catalog of prebuilt integrations and templates.', + ], + sectionOutros: { + pricing: [ + "A support flow that classifies a ticket, checks three customer records, drafts a reply, and logs the update can use about 8 to 10 module actions per ticket. At 1,000 tickets a month, that is about 8,000 to 10,000 Make credits before retries or extra verification passes. Make Core starts at $9 per month billed annually for 10,000 credits, so an extra pass can push the same ticket volume beyond that allowance. Sim also uses credits, but calls that run on a team's own model and tool keys carry no Sim usage charge, while the 1-credit base run charge still applies.", + ], + }, + faqs: [ + { + question: 'Which is best for a small business: Zapier, n8n, Make, or Sim?', + answer: + 'Choose Zapier when setup speed for straightforward app connections matters most. Choose Make when you need visual data mapping and branching across SaaS apps. Choose n8n when you have engineering capacity for custom code and self-hosting. Choose Sim when internal processes depend on governed AI agents, multiple models, shared knowledge, and human approval. The best fit depends on whether the work is mainly app routing or AI reasoning.', + }, + ], + migrationSteps: + "Before rebuilding, record each Make scenario's webhook triggers, connected tools, and prompt instructions. Test identical payloads in Make and Sim, compare outputs using Sim's block-by-block logs, then switch production traffic after the results match. Start with AI-heavy scenarios that use the most credits or need manual approval, while simpler app syncs continue in Make.", website: 'https://www.make.com', brand: { icon: MakeIcon, diff --git a/apps/sim/lib/compare/data/types.ts b/apps/sim/lib/compare/data/types.ts index 6d990450d49..d3d7bac9235 100644 --- a/apps/sim/lib/compare/data/types.ts +++ b/apps/sim/lib/compare/data/types.ts @@ -323,6 +323,11 @@ export interface CompetitorProfile { * section covers so the section is quotable without the rest of the page. */ sectionIntros?: Partial> + /** + * A paragraph shown after a comparison-table section, for a worked example that makes the + * section's rows concrete (such as what a typical run costs on each pricing model). + */ + sectionOutros?: Partial> /** * Whether this competitor is, categorically, a visual workflow/automation * builder like Sim. Defaults to `true` when omitted. Set `false` for a diff --git a/apps/sim/scripts/test-landing-seo-e2e.ts b/apps/sim/scripts/test-landing-seo-e2e.ts index 880cad48114..1b1dbf8a6f3 100644 --- a/apps/sim/scripts/test-landing-seo-e2e.ts +++ b/apps/sim/scripts/test-landing-seo-e2e.ts @@ -17,6 +17,7 @@ import { dustProfile, gumloopProfile, langflowProfile, + makeProfile, microsoftCopilotProfile, n8nProfile, openaiAgentkitProfile, @@ -525,6 +526,7 @@ async function run() { openaiAgentkitProfile, difyProfile, relevanceAiProfile, + makeProfile, ]) { const { status, body } = await get(`/comparisons/${profile.id}`) if (status !== 200) { @@ -567,6 +569,24 @@ async function run() { assert.deepEqual(failures, []) }) + await check( + 'a comparison section outro renders after its table and before the next section', + async () => { + const profile = makeProfile + const outro = profile.sectionOutros?.pricing + assert(outro, 'profile no longer exercises a section outro') + const { status, body } = await get(`/comparisons/${profile.id}`) + assert.equal(status, 200) + const $ = load(body) + const section = $('#comparison-section-pricing-heading').closest('section') + assert.equal(section.length, 1, 'pricing comparison section missing') + const expected = outro.map((part) => (typeof part === 'string' ? part : part.text)).join('') + const paragraph = section.children('p').last() + assert.equal(paragraph.text(), expected, 'pricing outro missing from its section') + assert(paragraph.prevAll('table, div').length > 0, 'pricing outro renders above its table') + } + ) + await check( 'a comparison page answering its buyer questions in place keeps their order', async () => { From 6a5cdee80c74df6db4553835d8b10538ef2af23c Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 13:02:21 -0800 Subject: [PATCH 17/20] fix(tables): re-check access on the open table event stream (#10494) --- .../table/[tableId]/events/stream/route.ts | 19 ++- apps/sim/lib/auth/session-liveness.ts | 23 ++++ .../lib/realtime/event-stream-route.test.ts | 108 ++++++++++++++++++ apps/sim/lib/realtime/event-stream-route.ts | 53 +++++++-- 4 files changed, 188 insertions(+), 15 deletions(-) create mode 100644 apps/sim/lib/auth/session-liveness.ts create mode 100644 apps/sim/lib/realtime/event-stream-route.test.ts diff --git a/apps/sim/app/api/table/[tableId]/events/stream/route.ts b/apps/sim/app/api/table/[tableId]/events/stream/route.ts index 3ccc9c39261..124b7d66fb7 100644 --- a/apps/sim/app/api/table/[tableId]/events/stream/route.ts +++ b/apps/sim/app/api/table/[tableId]/events/stream/route.ts @@ -2,6 +2,7 @@ import { type NextRequest, NextResponse } from 'next/server' import { tableEventStreamContract } from '@/lib/api/contracts/tables' import { parseRequest } from '@/lib/api/server' import { checkSessionOrInternalAuth } from '@/lib/auth/hybrid' +import { isSessionActive } from '@/lib/auth/session-liveness' import { generateRequestId } from '@/lib/core/utils/request' import { withRouteHandler } from '@/lib/core/utils/with-route-handler' import { createEventStreamResponse } from '@/lib/realtime/event-stream-route' @@ -18,8 +19,9 @@ interface RouteContext { /** GET /api/table/[tableId]/events/stream?from= * * SSE stream of cell-state transitions over the shared durable event log. Auth - * and access are checked here; the replay/tail/poll/heartbeat/prune mechanics - * come from `createEventStreamResponse`. */ + * and access are checked here at open and re-checked by `revalidateAccess` while + * the stream runs; the replay/tail/poll/heartbeat/prune mechanics come from + * `createEventStreamResponse`. */ export const GET = withRouteHandler(async (req: NextRequest, context: RouteContext) => { const requestId = generateRequestId() const parsed = await parseRequest(tableEventStreamContract, req, context) @@ -32,7 +34,17 @@ export const GET = withRouteHandler(async (req: NextRequest, context: RouteConte return NextResponse.json({ error: 'Authentication required' }, { status: 401 }) } - const access = await checkAccess(tableId, { kind: 'user', userId: auth.userId }, 'read') + const userId = auth.userId + const session = auth.principal?.kind === 'session' ? auth.principal : null + // The session check also runs at open: `auth` may come from the signed cookie + // cache, which would let a revoked session reopen the stream after every rotate. + const isSessionLive = async () => !session || (await isSessionActive(session)) + const checkReadAccess = () => checkAccess(tableId, { kind: 'user', userId }, 'read') + + if (!(await isSessionLive())) { + return NextResponse.json({ error: 'Authentication required' }, { status: 401 }) + } + const access = await checkReadAccess() if (!access.ok) return accessError(access, requestId, tableId) return createEventStreamResponse({ @@ -42,6 +54,7 @@ export const GET = withRouteHandler(async (req: NextRequest, context: RouteConte fromEventId, getLatestEventId: getLatestTableEventId, readEventsSince: readTableEventsSince, + revalidateAccess: async () => (await isSessionLive()) && (await checkReadAccess()).ok, extraHeaders: { 'X-Table-Id': tableId }, }) }) diff --git a/apps/sim/lib/auth/session-liveness.ts b/apps/sim/lib/auth/session-liveness.ts new file mode 100644 index 00000000000..fae53465a97 --- /dev/null +++ b/apps/sim/lib/auth/session-liveness.ts @@ -0,0 +1,23 @@ +import type { SessionPrincipal } from '@sim/auth/principal' +import { db } from '@sim/db' +import { session } from '@sim/db/schema' +import { and, eq, gt } from 'drizzle-orm' +import { isAuthDisabled } from '@/lib/core/config/env-flags' + +/** + * Whether the session behind a principal still exists and has not expired. Sign-out + * and every revocation path delete the row, so a long-lived connection authenticated + * once at open re-reads this to learn its credential is gone. With auth disabled the + * anonymous session has no row and cannot be revoked, so it is always active. + */ +export async function isSessionActive({ userId, sessionId }: SessionPrincipal): Promise { + if (isAuthDisabled) return true + const [row] = await db + .select({ id: session.id }) + .from(session) + .where( + and(eq(session.id, sessionId), eq(session.userId, userId), gt(session.expiresAt, new Date())) + ) + .limit(1) + return Boolean(row) +} diff --git a/apps/sim/lib/realtime/event-stream-route.test.ts b/apps/sim/lib/realtime/event-stream-route.test.ts new file mode 100644 index 00000000000..ff6895a431b --- /dev/null +++ b/apps/sim/lib/realtime/event-stream-route.test.ts @@ -0,0 +1,108 @@ +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' +import { + getPermissionGroupConfigStore, + withPermissionGroupScope, +} from '@/lib/permission-groups/request-scope.server' +import type { EventLogEntry, EventLogReadResult } from '@/lib/realtime/event-log' +import { createEventStreamResponse } from '@/lib/realtime/event-stream-route' + +interface TestEntry extends EventLogEntry { + value: string +} + +const REVALIDATION_INTERVAL_MS = 30_000 + +function openStream(revalidateAccess: () => Promise) { + const log: TestEntry[] = [] + const response = createEventStreamResponse({ + requestId: 'req-1', + streamId: 'table-1', + fromEventId: undefined, + label: 'test', + getLatestEventId: async () => 0, + readEventsSince: async (_streamId, after): Promise> => ({ + status: 'ok', + events: log.filter((entry) => entry.eventId > after), + }), + revalidateAccess, + }) + const body = response.body + if (!body) throw new Error('stream response has no body') + const reader = body.getReader() + const decoder = new TextDecoder() + let received = '' + let outcome: 'open' | 'closed' | 'errored' = 'open' + const drained = (async () => { + try { + for (;;) { + const { done, value } = await reader.read() + if (done) break + received += decoder.decode(value) + } + outcome = 'closed' + } catch { + outcome = 'errored' + } + })() + return { + append: (value: string) => log.push({ eventId: log.length + 1, value }), + received: () => received, + outcome: () => outcome, + cancel: async () => { + await reader.cancel() + await drained + }, + } +} + +describe('createEventStreamResponse access revalidation', () => { + beforeEach(() => { + vi.useFakeTimers() + }) + + afterEach(() => { + vi.useRealTimers() + }) + + it('closes within one revalidation interval of the caller losing access', async () => { + let allowed = true + const stream = openStream(async () => allowed) + + stream.append('before-revocation') + await vi.advanceTimersByTimeAsync(1_000) + expect(stream.received()).toContain('before-revocation') + + allowed = false + await vi.advanceTimersByTimeAsync(REVALIDATION_INTERVAL_MS) + expect(stream.received()).toContain('event: rotate') + expect(stream.outcome()).toBe('closed') + }) + + it('fails closed when the access re-check throws', async () => { + const stream = openStream(async () => { + throw new Error('db unavailable') + }) + + await vi.advanceTimersByTimeAsync(REVALIDATION_INTERVAL_MS + 1_000) + expect(stream.outcome()).toBe('errored') + }) + + it('re-resolves permission groups instead of reusing the opening request memo', async () => { + const storesSeen: unknown[] = [] + let openingStore: unknown + const stream = withPermissionGroupScope(() => { + openingStore = getPermissionGroupConfigStore() + return openStream(async () => { + storesSeen.push(getPermissionGroupConfigStore()) + return true + }) + }) + + await vi.advanceTimersByTimeAsync(2 * REVALIDATION_INTERVAL_MS + 1_000) + + expect(storesSeen).toHaveLength(2) + expect(storesSeen).not.toContain(openingStore) + expect(storesSeen[0]).not.toBe(storesSeen[1]) + await stream.cancel() + }) +}) diff --git a/apps/sim/lib/realtime/event-stream-route.ts b/apps/sim/lib/realtime/event-stream-route.ts index 72fa358bc83..339736d6811 100644 --- a/apps/sim/lib/realtime/event-stream-route.ts +++ b/apps/sim/lib/realtime/event-stream-route.ts @@ -3,14 +3,19 @@ import { toError } from '@sim/utils/errors' import { sleep } from '@sim/utils/helpers' import { NextResponse } from 'next/server' import { SSE_HEADERS } from '@/lib/core/utils/sse' +import { withPermissionGroupScope } from '@/lib/permission-groups/request-scope.server' import type { EventLogEntry, EventLogReadResult } from '@/lib/realtime/event-log' const logger = createLogger('EventStreamRoute') +const ROTATE_FRAME = `event: rotate\ndata: {}\n\n` + const POLL_INTERVAL_MS = 500 const HEARTBEAT_INTERVAL_MS = 15_000 /** Defensive ceiling; the client reconnects (resuming from lastEventId) past this. */ const MAX_STREAM_DURATION_MS = 4 * 60 * 60 * 1000 +/** Matches the realtime access-revalidation sweep, so a revoked member loses both live channels on the same cadence. */ +const ACCESS_REVALIDATION_INTERVAL_MS = 30_000 export interface EventStreamResponseOptions { requestId: string @@ -20,6 +25,12 @@ export interface EventStreamResponseOptions { fromEventId: number | undefined getLatestEventId: (streamId: string) => Promise readEventsSince: (streamId: string, afterEventId: number) => Promise> + /** + * Re-runs the route's authorization every {@link ACCESS_REVALIDATION_INTERVAL_MS}: + * `false` closes the stream with `rotate`, a throw errors it, and either way the + * client's reconnect meets the route's own check. + */ + revalidateAccess: () => Promise /** Extra response headers (e.g. `{ 'X-Table-Id': id }`). */ extraHeaders?: Record /** Short label for logs (e.g. 'table'). */ @@ -39,7 +50,15 @@ export interface EventStreamResponseOptions { export function createEventStreamResponse( options: EventStreamResponseOptions ): NextResponse { - const { requestId, streamId, fromEventId, getLatestEventId, readEventsSince, label } = options + const { + requestId, + streamId, + fromEventId, + getLatestEventId, + readEventsSince, + revalidateAccess, + label, + } = options logger.info(`${label} event stream opened`, { requestId, streamId, fromEventId }) @@ -51,6 +70,7 @@ export function createEventStreamResponse( let lastEventId = fromEventId ?? 0 const deadline = Date.now() + MAX_STREAM_DURATION_MS let nextHeartbeatAt = Date.now() + HEARTBEAT_INTERVAL_MS + let nextRevalidationAt = Date.now() + ACCESS_REVALIDATION_INTERVAL_MS const enqueue = (text: string) => { if (closed) return @@ -69,10 +89,8 @@ export function createEventStreamResponse( } } - const sendPrunedAndClose = (earliestEventId: number | undefined) => { - enqueue( - `event: pruned\ndata: ${JSON.stringify({ earliestEventId: earliestEventId ?? null })}\n\n` - ) + const closeWith = (frame: string) => { + enqueue(frame) if (!closed) { closed = true try { @@ -81,6 +99,12 @@ export function createEventStreamResponse( } } + const sendPrunedAndClose = (earliestEventId: number | undefined) => { + closeWith( + `event: pruned\ndata: ${JSON.stringify({ earliestEventId: earliestEventId ?? null })}\n\n` + ) + } + const sendHeartbeat = () => { // SSE comment line — keeps proxies (ALB default 60s idle) from closing // the connection during quiet periods. @@ -109,6 +133,17 @@ export function createEventStreamResponse( await sleep(POLL_INTERVAL_MS) if (closed) return + if (Date.now() >= nextRevalidationAt) { + // A fresh scope per check: the loop inherits the opening request's + // permission-group memo, which would replay its answer for hours. + if (!(await withPermissionGroupScope(revalidateAccess))) { + logger.info(`${label} event stream access revoked`, { requestId, streamId }) + closeWith(ROTATE_FRAME) + return + } + nextRevalidationAt = Date.now() + ACCESS_REVALIDATION_INTERVAL_MS + } + const result = await readEventsSince(streamId, lastEventId) if (result.status === 'pruned') { sendPrunedAndClose(result.earliestEventId) @@ -129,13 +164,7 @@ export function createEventStreamResponse( // Reached the defensive duration ceiling — close cleanly so the client // reconnects with the latest lastEventId. - if (!closed) { - enqueue(`event: rotate\ndata: {}\n\n`) - closed = true - try { - controller.close() - } catch {} - } + closeWith(ROTATE_FRAME) } catch (error) { logger.error(`${label} event stream error`, { requestId, From 5d500f814c07afe628a6af5cb46a68e52373850a Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 13:18:13 -0800 Subject: [PATCH 18/20] fix(media): cap ffmpeg output size while writing, not after (#10500) --- apps/sim/lib/media/ffmpeg.test.ts | 41 ++++++++++++++++++++++++++++++- apps/sim/lib/media/ffmpeg.ts | 30 +++++++++++++++++++++- 2 files changed, 69 insertions(+), 2 deletions(-) diff --git a/apps/sim/lib/media/ffmpeg.test.ts b/apps/sim/lib/media/ffmpeg.test.ts index 91b19710bdd..bd2e6e07a31 100644 --- a/apps/sim/lib/media/ffmpeg.test.ts +++ b/apps/sim/lib/media/ffmpeg.test.ts @@ -18,7 +18,7 @@ const { capturedCaptions: [] as string[], killSignals: [] as string[], probeReport: { json: '{"streams":[],"format":{}}' }, - command: { hang: false }, + command: { hang: false, outputBytes: 0 }, saves: { waiters: [] as Array<() => void> }, })) @@ -81,12 +81,16 @@ vi.mock('node:child_process', () => ({ } fs.writeFileSync(args.at(-1) as string, Buffer.from('stub-output')) + if (command.outputBytes) fs.truncateSync(args.at(-1) as string, command.outputBytes) finish(null) }, })) +import { MAX_MEDIA_BYTES } from '@/lib/media/falai' import { extFromMime, runFfmpegOperation } from '@/lib/media/ffmpeg' +const OUTPUT_SIZE_LIMIT = ['-fs', String(MAX_MEDIA_BYTES + 1)] + const videoInput = { buffer: Buffer.from('fake-video-bytes'), mimeType: 'video/mp4', @@ -133,6 +137,7 @@ beforeEach(() => { killSignals.length = 0 saves.waiters.length = 0 command.hang = false + command.outputBytes = 0 probeReport.json = '{"streams":[],"format":{}}' }) @@ -296,6 +301,22 @@ describe('runFfmpegOperation output format', () => { }) } + for (const format of ['m3u8', 'mpd']) { + it(`refuses the ${format} streaming playlist, whose segments bypass the output size limit`, async () => { + await expect(runFfmpegOperation('convert', [videoInput], { format })).rejects.toThrow( + /Unsupported output format/ + ) + expect(capturedArgs).toHaveLength(0) + }) + } + + it('refuses a trim whose input MIME type selects a streaming playlist muxer', async () => { + await expect( + runFfmpegOperation('trim', [{ ...videoInput, mimeType: 'video/m3u8' }], { end: 1 }) + ).rejects.toThrow(/Unsupported output format/) + expect(capturedArgs).toHaveLength(0) + }) + it('refuses a traversal on extract_audio too', async () => { await expect( runFfmpegOperation('extract_audio', [videoInput], { format: '../../../tmp/pwned.mp3' }) @@ -345,6 +366,7 @@ describe('runFfmpegOperation argument vectors', () => { '-c:a', 'aac', '-shortest', + ...OUTPUT_SIZE_LIMIT, expect.stringMatching(/out\.mp4$/), ]) }) @@ -365,6 +387,7 @@ describe('runFfmpegOperation argument vectors', () => { '1.25', '-t', '4.25', + ...OUTPUT_SIZE_LIMIT, expect.stringMatching(/out\.mp4$/), ]) }) @@ -385,6 +408,7 @@ describe('runFfmpegOperation argument vectors', () => { expect.stringMatching(/in-0\.mp4$/), '-frames:v', '1', + ...OUTPUT_SIZE_LIMIT, expect.stringMatching(/out\.jpg$/), ]) }) @@ -409,6 +433,21 @@ describe('runFfmpegOperation argument vectors', () => { }) describe('runFfmpegOperation process bounds', () => { + it('stops concat before the next clip once normalized clips pass the media limit', async () => { + probeReport.json = JSON.stringify({ + streams: [{ codec_type: 'video', width: 64, height: 64 }, { codec_type: 'audio' }], + format: { duration: '1' }, + }) + command.outputBytes = MAX_MEDIA_BYTES / 2 + 1 + + const outcome = await runFfmpegOperation('concat', [videoInput, videoInput, videoInput]).then( + () => 'resolved', + (error: Error) => error.message + ) + expect(capturedArgs).toHaveLength(2) + expect(outcome).toMatch(/concat clips total/) + }) + it('kills a command that outlives the operation budget', async () => { vi.useFakeTimers({ toFake: ['setTimeout', 'clearTimeout'] }) command.hang = true diff --git a/apps/sim/lib/media/ffmpeg.ts b/apps/sim/lib/media/ffmpeg.ts index 24a8045d478..687b7f7661f 100644 --- a/apps/sim/lib/media/ffmpeg.ts +++ b/apps/sim/lib/media/ffmpeg.ts @@ -32,6 +32,19 @@ const PROBE_TIMEOUT_MS = 30 * 1000 /** Headroom for ffprobe's JSON report on a container with many streams. */ const PROBE_MAX_OUTPUT_BYTES = 4 * 1024 * 1024 +/** + * Bounds what an expanding format (raw video, PCM) writes to the shared temp + * volume. One byte over the media limit, so a capped output always ends above + * `MAX_MEDIA_BYTES` and `readOut` rejects it instead of returning it truncated. + */ +const OUTPUT_SIZE_LIMIT_ARGS = ['-fs', String(MAX_MEDIA_BYTES + 1)] + +/** + * Output extensions whose muxer (HLS, DASH) writes its media as separate + * segment files that `-fs` never sees, leaving only a playlist at the output path. + */ +const SEGMENTED_OUTPUT_EXTS = new Set(['.m3u8', '.mpd']) + const { minScaleDimension: MIN_SCALE_DIMENSION, maxScaleDimension: MAX_SCALE_DIMENSION, @@ -291,10 +304,16 @@ async function runCommand( if (ctx.signal?.aborted) throw new Error(CANCELLED_MESSAGE) const remaining = ctx.deadlineAt - Date.now() if (remaining <= 0) throw new Error(timedOutMessage()) + const outputExt = path.extname(outputPath).toLowerCase() + if (SEGMENTED_OUTPUT_EXTS.has(outputExt)) { + throw new Error( + `Unsupported output format "${outputExt.slice(1)}" — streaming playlists are not supported; use a single-file format such as mp4` + ) + } ensureFfmpeg() try { - const commandArgs = [...ffmpegArgs(args), outputPath] + const commandArgs = [...ffmpegArgs(args), ...OUTPUT_SIZE_LIMIT_ARGS, outputPath] await runExecutable(ffmpegPath as string, commandArgs, { cwd, maxOutputBytes: PROBE_MAX_OUTPUT_BYTES, @@ -516,6 +535,7 @@ async function concat( // (generateAudio:false) otherwise break the concat filtergraph (it referenced a // non-existent [i:a]), which is the "Error binding filtergraph inputs/outputs" failure. const normalized: string[] = [] + let normalizedBytes = 0 for (let i = 0; i < inputPaths.length; i++) { const out = path.join(dir, `norm-${i}.mp4`) const args = ['-i', inputPaths[i]] @@ -562,6 +582,14 @@ async function concat( ...extra ) await runCommand(ctx, args, out) + // The stream-copy concat below is about the size of its parts, so stop as + // soon as they pass the limit instead of writing every remaining clip. + normalizedBytes += (await fs.stat(out)).size + if (normalizedBytes > MAX_MEDIA_BYTES) { + throw new Error( + `FFmpeg concat clips total ${normalizedBytes} bytes, above the ${MAX_MEDIA_BYTES} byte media limit. Use shorter or fewer clips.` + ) + } normalized.push(out) } From 9a198d09c4ad5bdd8a3c9c5b2585957fa47f84cb Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 13:26:15 -0800 Subject: [PATCH 19/20] fix(realtime): cap batch-add-blocks per message and per workflow (#10495) * fix(realtime): cap batch-add-blocks per message and per workflow * fix(realtime): refuse over-cap pastes client-side and use own-property block lookups * fix(workflow): keep the editor selection when a block add is refused --- .../src/database/batch-add-cap.integration.ts | 187 ++++++++++++++++++ apps/realtime/src/database/operations.ts | 29 ++- apps/realtime/src/handlers/operations.ts | 9 +- .../[workspaceId]/w/[workflowId]/workflow.tsx | 3 +- apps/sim/hooks/use-collaborative-workflow.ts | 15 ++ apps/sim/lib/api/contracts/v2/workflows.ts | 6 +- bun.lock | 1 + packages/realtime-protocol/package.json | 1 + packages/realtime-protocol/src/schemas.ts | 22 ++- packages/workflow-code/src/limits.ts | 9 +- packages/workflow-types/src/workflow.ts | 7 + 11 files changed, 269 insertions(+), 20 deletions(-) create mode 100644 apps/realtime/src/database/batch-add-cap.integration.ts diff --git a/apps/realtime/src/database/batch-add-cap.integration.ts b/apps/realtime/src/database/batch-add-cap.integration.ts new file mode 100644 index 00000000000..4924434124c --- /dev/null +++ b/apps/realtime/src/database/batch-add-cap.integration.ts @@ -0,0 +1,187 @@ +/** Real PostgreSQL coverage: a realtime batch add never grows a workflow past the shared block cap, nor leaves subflow rows without their block. */ +import { mkdir, writeFile } from 'node:fs/promises' +import { dirname, resolve } from 'node:path' +import { db } from '@sim/db' +import { + user, + workflow, + workflowBlocks, + workflowEdges, + workflowSubflows, + workspace, +} from '@sim/db/schema' +import { deleteWorkspaceFixture, insertWorkspaceFixture } from '@sim/db/testing/workspace-fixtures' +import { BLOCKS_OPERATIONS, OPERATION_TARGETS } from '@sim/realtime-protocol/constants' +import { WorkflowOperationSchema } from '@sim/realtime-protocol/schemas' +import { getErrorMessage } from '@sim/utils/errors' +import { generateId } from '@sim/utils/id' +import { MAX_WORKFLOW_BLOCKS, MAX_WORKFLOW_EDGES } from '@sim/workflow-types/workflow' +import { count, eq } from 'drizzle-orm' +import { afterAll, beforeAll, beforeEach, describe, expect, it } from 'vitest' +import { persistWorkflowOperation } from '@/database/operations' + +const userId = generateId() +const workspaceId = generateId() +const workflowId = generateId() +const existingIds = Array.from({ length: MAX_WORKFLOW_BLOCKS - 1 }, () => generateId()) +const checks: { name: string; status: 'passed' | 'failed'; durationMs: number; error?: string }[] = + [] + +/** Registers a test and records its status and duration in the suite report. */ +function check(name: string, run: () => Promise) { + it(name, async () => { + const started = performance.now() + try { + await run() + checks.push({ name, status: 'passed', durationMs: performance.now() - started }) + } catch (error) { + checks.push({ + name, + status: 'failed', + durationMs: performance.now() - started, + error: getErrorMessage(error), + }) + throw error + } + }) +} + +function payloadBlock(id: string) { + return { id, type: 'function', name: id, position: { x: 0, y: 0 }, subBlocks: {} } +} + +function batchAdd(payload: Record) { + return { + operation: BLOCKS_OPERATIONS.BATCH_ADD_BLOCKS, + target: OPERATION_TARGETS.BLOCKS, + payload, + timestamp: Date.now(), + } +} + +function persist(payload: Record) { + return persistWorkflowOperation(workflowId, { ...batchAdd(payload), userId }) +} + +async function countRows( + table: typeof workflowBlocks | typeof workflowEdges | typeof workflowSubflows +) { + const [row] = await db.select({ n: count() }).from(table).where(eq(table.workflowId, workflowId)) + return row.n +} + +describe('realtime batch-add block cap against PostgreSQL', () => { + beforeAll(async () => { + const now = new Date() + await db.insert(user).values({ + id: userId, + name: 'Cap fixture', + email: `${userId}@batch-add-cap.test`, + emailVerified: true, + createdAt: now, + updatedAt: now, + }) + await insertWorkspaceFixture(db, { + id: workspaceId, + name: 'Cap target', + ownerId: userId, + billedAccountUserId: userId, + }) + await db.insert(workflow).values({ + id: workflowId, + userId, + workspaceId, + name: 'Nearly full', + lastSynced: now, + createdAt: now, + updatedAt: now, + }) + }) + + beforeEach(async () => { + await db.delete(workflowSubflows).where(eq(workflowSubflows.workflowId, workflowId)) + await db.delete(workflowEdges).where(eq(workflowEdges.workflowId, workflowId)) + await db.delete(workflowBlocks).where(eq(workflowBlocks.workflowId, workflowId)) + await db.insert(workflowBlocks).values( + existingIds.map((id) => ({ + id, + workflowId, + type: 'function', + name: id, + positionX: '0', + positionY: '0', + })) + ) + }) + + afterAll(async () => { + const reportPath = + process.env.REALTIME_BATCH_ADD_CAP_REPORT_PATH ?? + resolve('test-results/realtime-batch-add-cap.json') + await mkdir(dirname(reportPath), { recursive: true }) + await writeFile(reportPath, JSON.stringify({ checks }, null, 2)) + await deleteWorkspaceFixture(db, eq(workspace.ownerId, userId)) + await db.delete(user).where(eq(user.id, userId)) + }) + + check('a single message over the cap fails protocol validation', async () => { + const blocks = Array.from({ length: MAX_WORKFLOW_BLOCKS + 1 }, () => payloadBlock(generateId())) + const edges = Array.from({ length: MAX_WORKFLOW_EDGES + 1 }, () => ({ + id: generateId(), + source: 'a', + target: 'b', + })) + const loops = Object.fromEntries(blocks.map((block) => [block.id, {}])) + + expect(WorkflowOperationSchema.safeParse(batchAdd({ blocks })).success).toBe(false) + expect(WorkflowOperationSchema.safeParse(batchAdd({ blocks: [], edges })).success).toBe(false) + expect(WorkflowOperationSchema.safeParse(batchAdd({ blocks: [], loops })).success).toBe(false) + expect( + WorkflowOperationSchema.safeParse(batchAdd({ blocks: blocks.slice(1), edges: [] })).success + ).toBe(true) + }) + + check('a batch that would push the workflow past the cap writes nothing', async () => { + const [first, second] = [generateId(), generateId()] + const result = await persist({ + blocks: [payloadBlock(first), payloadBlock(second)], + edges: [{ id: generateId(), source: first, target: second }], + }) + + expect(result).toEqual({ reconcile: true }) + expect(await countRows(workflowBlocks)).toBe(MAX_WORKFLOW_BLOCKS - 1) + expect(await countRows(workflowEdges)).toBe(0) + }) + + check('re-sent existing blocks do not count toward the cap', async () => { + const added = generateId() + const result = await persist({ + blocks: [...existingIds.slice(0, 10).map(payloadBlock), payloadBlock(added)], + }) + + expect(result).toEqual({ reconcile: false }) + expect(await countRows(workflowBlocks)).toBe(MAX_WORKFLOW_BLOCKS) + }) + + check('loop and parallel configs land only for a stored or added block', async () => { + const loopId = generateId() + const orphan = await persist({ + blocks: [], + loops: { [generateId()]: { nodes: [] } }, + parallels: { [generateId()]: { nodes: [] } }, + }) + expect(orphan).toEqual({ reconcile: true }) + expect(await countRows(workflowSubflows)).toBe(0) + + const added = await persist({ + blocks: [{ ...payloadBlock(loopId), type: 'loop' }], + loops: { [loopId]: { nodes: [], iterations: 4, loopType: 'for' } }, + }) + expect(added).toEqual({ reconcile: false }) + expect(await countRows(workflowSubflows)).toBe(1) + + const existing = await persist({ blocks: [], loops: { [existingIds[0]]: { nodes: [] } } }) + expect(existing).toEqual({ reconcile: false }) + expect(await countRows(workflowSubflows)).toBe(2) + }) +}) diff --git a/apps/realtime/src/database/operations.ts b/apps/realtime/src/database/operations.ts index 116e1d18c92..8579d2dbbe1 100644 --- a/apps/realtime/src/database/operations.ts +++ b/apps/realtime/src/database/operations.ts @@ -37,6 +37,7 @@ import { isWorkflowAnnotationOnlyBlockType, isWorkflowBlockAncestorLocked, isWorkflowBlockProtected, + MAX_WORKFLOW_BLOCKS, normalizeWorkflowEdgeSourceHandle, normalizeWorkflowEdgeTargetHandle, preserveProtectedWorkflowBlocks, @@ -983,12 +984,12 @@ async function handleBlocksOperationTx( // block or its loop/parallel config, nor places a block inside a locked container. let reconcile = false const rejectedBlockIds = new Set() + const landed: Record = { ...lockBlocks } if (blocks && blocks.length > 0) { const incoming = blocks as Array> // Added blocks land unlocked, so one is refused exactly when it is protected now or // would sit under a locked ancestor once the whole batch lands. - const landed: Record = { ...lockBlocks } for (const block of incoming) { const id = block.id as string if (!isProtected(id)) landed[id] = { id, locked: false, data: block.data } @@ -1010,6 +1011,21 @@ async function handleBlocksOperationTx( return reconcile } + // The workflow row lock taken in persistWorkflowOperation serializes this count with + // every other write, so repeated batches cannot grow a workflow past the shared cap. + const existingBlockCount = Object.keys(lockBlocks).length + const newBlockCount = allowedBlocks.filter( + (block) => !Object.hasOwn(lockBlocks, block.id as string) + ).length + if (existingBlockCount + newBlockCount > MAX_WORKFLOW_BLOCKS) { + logger.warn('Refusing batch add past the workflow block cap', { + existingBlockCount, + newBlockCount, + max: MAX_WORKFLOW_BLOCKS, + }) + return true + } + const blockValues = allowedBlocks.map((block: Record) => { const blockId = block.id as string const mergedSubBlocks = mergeSubBlockValues( @@ -1153,15 +1169,22 @@ async function handleBlocksOperationTx( config, })), ] + // A loop or parallel config belongs to its container block, so one for a block that is + // neither stored nor added here would only leave an orphan row behind. const subflowValues = subflowEntries - .filter((subflow) => !isProtected(subflow.id) && !rejectedBlockIds.has(subflow.id)) + .filter( + (subflow) => + Object.hasOwn(landed, subflow.id) && + !isProtected(subflow.id) && + !rejectedBlockIds.has(subflow.id) + ) .map((subflow) => ({ ...subflow, workflowId, config: subflow.config as Record, })) if (subflowValues.length < subflowEntries.length) { - logger.info('Skipping loop/parallel config of locked containers') + logger.info('Skipping loop/parallel config of locked or missing containers') reconcile = true } if (subflowValues.length > 0) { diff --git a/apps/realtime/src/handlers/operations.ts b/apps/realtime/src/handlers/operations.ts index 26d92c3126f..ad6e10b05db 100644 --- a/apps/realtime/src/handlers/operations.ts +++ b/apps/realtime/src/handlers/operations.ts @@ -23,9 +23,10 @@ import { type IRoomManager, type UserSession, workflowRoom as wf } from '@/rooms const logger = createLogger('OperationsHandlers') /** - * Relays a persisted operation to the room. When persistence kept lock-protected state over - * the payload, every client, the sender included, is told to reload the stored graph instead - * of applying a payload that no longer describes what was saved. + * Relays a persisted operation to the room. When persistence kept stored state over the payload + * (lock-protected blocks, or a batch add past the workflow block cap), every client, the sender + * included, is told to reload the stored graph instead of applying a payload that no longer + * describes what was saved. */ function relayPersistedOperation( socket: AuthenticatedSocket, @@ -37,7 +38,7 @@ function relayPersistedOperation( if (reconcile) { roomManager.emitToRoom(wf(workflowId), 'workflow-updated', { workflowId, - message: 'Locked blocks were kept as stored', + message: 'Stored state was kept over the refused change', timestamp: Date.now(), }) return diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/workflow.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/workflow.tsx index 2bf2e959105..6ec05cbe616 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/workflow.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/workflow.tsx @@ -971,13 +971,14 @@ const WorkflowContent = React.memo( ) } - collaborativeBatchAddBlocks( + const added = collaborativeBatchAddBlocks( [block], autoConnectEdge ? [autoConnectEdge] : [], {}, {}, subBlockValues ) + if (!added) return usePanelEditorStore.getState().setCurrentBlockId(id) if (type === 'note') usePanelStore.getState().setIsMobilePanelOpen(false) }, diff --git a/apps/sim/hooks/use-collaborative-workflow.ts b/apps/sim/hooks/use-collaborative-workflow.ts index 206ee5f20d9..ccedb5cfd11 100644 --- a/apps/sim/hooks/use-collaborative-workflow.ts +++ b/apps/sim/hooks/use-collaborative-workflow.ts @@ -17,6 +17,8 @@ import { filterAcyclicEdges, getWorkflowBlockNameConflict, isWorkflowBlockProtected, + MAX_WORKFLOW_BLOCKS, + MAX_WORKFLOW_EDGES, } from '@sim/workflow-types/workflow' import { useQueryClient } from '@tanstack/react-query' import type { Edge } from '@xyflow/react' @@ -2184,6 +2186,19 @@ export function useCollaborativeWorkflow() { const allBlocks = { ...existingBlocks, ...newBlocksMap } const validEdges = filterValidEdges(edges, allBlocks) + const newBlockCount = blocks.filter( + (block) => !Object.hasOwn(existingBlocks, block.id) + ).length + if ( + Object.keys(existingBlocks).length + newBlockCount > MAX_WORKFLOW_BLOCKS || + validEdges.length > MAX_WORKFLOW_EDGES + ) { + toast.error( + `A workflow can hold up to ${MAX_WORKFLOW_BLOCKS.toLocaleString()} blocks, and one paste up to ${MAX_WORKFLOW_EDGES.toLocaleString()} connections` + ) + return false + } + logger.info('Batch adding blocks collaboratively', { blockCount: blocks.length, edgeCount: validEdges.length, diff --git a/apps/sim/lib/api/contracts/v2/workflows.ts b/apps/sim/lib/api/contracts/v2/workflows.ts index b54c78ed4bb..0f041130394 100644 --- a/apps/sim/lib/api/contracts/v2/workflows.ts +++ b/apps/sim/lib/api/contracts/v2/workflows.ts @@ -4,6 +4,8 @@ import { BLOCK_RETRY_MAX_WAIT_MS, BLOCK_RETRY_MIN_TRIES, BLOCK_RETRY_MIN_WAIT_MS, + MAX_WORKFLOW_BLOCKS, + MAX_WORKFLOW_EDGES, } from '@sim/workflow-types/workflow' import { z } from 'zod' import { @@ -3352,8 +3354,8 @@ export const v2ImportWorkflowContract = defineRouteContract({ * ask the persistence layer to write an unbounded number of rows. Both sit an * order of magnitude above the largest workflow observed in production. */ -export const MAX_WORKFLOW_GRAPH_BLOCKS = 2000 -export const MAX_WORKFLOW_GRAPH_EDGES = 10_000 +export const MAX_WORKFLOW_GRAPH_BLOCKS = MAX_WORKFLOW_BLOCKS +export const MAX_WORKFLOW_GRAPH_EDGES = MAX_WORKFLOW_EDGES /** * Ceiling on one `POST /operations` batch: a bound on the request, the one transaction and the * report an atomic batch writes, not on a workflow's size. A larger edit splits into batches. diff --git a/bun.lock b/bun.lock index c55b3af2d91..04eaf22f040 100644 --- a/bun.lock +++ b/bun.lock @@ -714,6 +714,7 @@ "name": "@sim/realtime-protocol", "version": "0.1.0", "dependencies": { + "@sim/workflow-types": "workspace:*", "zod": "4.3.6", }, "devDependencies": { diff --git a/packages/realtime-protocol/package.json b/packages/realtime-protocol/package.json index 7d6f7028a4c..0f5dfd435a1 100644 --- a/packages/realtime-protocol/package.json +++ b/packages/realtime-protocol/package.json @@ -49,6 +49,7 @@ "format:check": "biome format ." }, "dependencies": { + "@sim/workflow-types": "workspace:*", "zod": "4.3.6" }, "devDependencies": { diff --git a/packages/realtime-protocol/src/schemas.ts b/packages/realtime-protocol/src/schemas.ts index 277bcc8813e..19dce0a58cf 100644 --- a/packages/realtime-protocol/src/schemas.ts +++ b/packages/realtime-protocol/src/schemas.ts @@ -1,3 +1,4 @@ +import { MAX_WORKFLOW_BLOCKS, MAX_WORKFLOW_EDGES } from '@sim/workflow-types/workflow' import { z } from 'zod' import { BLOCK_OPERATIONS, @@ -14,12 +15,12 @@ import { /** * Most entries one batch frame may carry. Persistence spends work per entry inside the workflow's * write lock, so the 8 MiB transport cap alone would let one frame hold a pooled connection for - * minutes. Blocks and edges mirror the workflow graph limits (`SOURCE_LIMITS`). Subblock updates + * minutes. Blocks and edges are the shared workflow graph limits. Subblock updates * come from a workflow-wide search-replace, one per matched field, and persist as one write per * block. */ -const MAX_BATCH_BLOCKS = 2_000 -const MAX_BATCH_EDGES = 10_000 +const MAX_BATCH_BLOCKS = MAX_WORKFLOW_BLOCKS +const MAX_BATCH_EDGES = MAX_WORKFLOW_EDGES const MAX_BATCH_SUBBLOCK_UPDATES = 10_000 const PositionSchema = z.object({ @@ -203,15 +204,24 @@ const SubblockCanonicalModesUpdateSchema = z.object({ operationId: z.string().optional(), }) +/** A record keyed by block id, holding at most one entry per block a workflow may have. */ +function boundedRecord(value: T) { + return z + .record(z.string(), value) + .refine((record) => Object.keys(record).length <= MAX_BATCH_BLOCKS, { + message: `Too many entries (max ${MAX_BATCH_BLOCKS})`, + }) +} + const BatchAddBlocksSchema = z.object({ operation: z.literal(BLOCKS_OPERATIONS.BATCH_ADD_BLOCKS), target: z.literal(OPERATION_TARGETS.BLOCKS), payload: z.object({ blocks: z.array(z.record(z.string(), z.any())).max(MAX_BATCH_BLOCKS), edges: z.array(AutoConnectEdgeSchema).max(MAX_BATCH_EDGES).optional(), - loops: z.record(z.string(), z.any()).optional(), - parallels: z.record(z.string(), z.any()).optional(), - subBlockValues: z.record(z.string(), z.record(z.string(), z.any())).optional(), + loops: boundedRecord(z.any()).optional(), + parallels: boundedRecord(z.any()).optional(), + subBlockValues: boundedRecord(z.record(z.string(), z.any())).optional(), }), timestamp: z.number(), operationId: z.string().optional(), diff --git a/packages/workflow-code/src/limits.ts b/packages/workflow-code/src/limits.ts index 20697310094..9dea152c978 100644 --- a/packages/workflow-code/src/limits.ts +++ b/packages/workflow-code/src/limits.ts @@ -1,4 +1,5 @@ import { utf8ByteLength } from '@sim/utils/paste' +import { MAX_WORKFLOW_BLOCKS, MAX_WORKFLOW_EDGES } from '@sim/workflow-types/workflow' /** * The limits workflow source shares across reading and writing. A get refuses to print a workflow @@ -17,10 +18,10 @@ import { utf8ByteLength } from '@sim/utils/paste' * Client-safe: no parser or catalog imports, so contracts can read it. */ export const SOURCE_LIMITS = { - /** Blocks in one workflow. Mirrors the v2 graph cap (`MAX_WORKFLOW_GRAPH_BLOCKS`). */ - maxBlocks: 2_000, - /** Edges in one workflow. Mirrors the v2 graph cap (`MAX_WORKFLOW_GRAPH_EDGES`). */ - maxEdges: 10_000, + /** Blocks in one workflow. */ + maxBlocks: MAX_WORKFLOW_BLOCKS, + /** Edges in one workflow. */ + maxEdges: MAX_WORKFLOW_EDGES, /** Variables in one workflow, so a lock holds at most this many variable entries. */ maxVariables: 2_000, /** Files in one source: `workflow.ts` plus one code file per block. */ diff --git a/packages/workflow-types/src/workflow.ts b/packages/workflow-types/src/workflow.ts index 0d2b858a685..027c343a5df 100644 --- a/packages/workflow-types/src/workflow.ts +++ b/packages/workflow-types/src/workflow.ts @@ -64,6 +64,13 @@ export interface BlockLayoutState { measuredHeight?: number } +/** + * Ceilings on one workflow's graph, shared by every write path that bounds it: the v2 graph + * routes, workflows-as-code source and the realtime batch add. + */ +export const MAX_WORKFLOW_BLOCKS = 2_000 +export const MAX_WORKFLOW_EDGES = 10_000 + /** * Inclusive bounds for {@link BlockRetryConfig.maxTries}: a retrying block tries * at least twice, since one retry is the whole point, and at most five times. From 4e67e08ec4ad4f37e315752e73f8eb88e89c6a62 Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 28 Nov 2026 13:26:32 -0800 Subject: [PATCH 20/20] fix(executor): never expand env placeholders carried by run data (#10501) * fix(executor): never expand env placeholders carried by run data * fix(executor): refuse placeholders assembled around an empty substitution --- .../handlers/condition/handler.test.ts | 31 ++++- .../executor/handlers/condition/handler.ts | 23 +++- .../handlers/variables/handler.test.ts | 2 + .../executor/handlers/variables/handler.ts | 2 + apps/sim/executor/utils/code-formatting.ts | 24 +++- apps/sim/executor/variables/resolver.test.ts | 98 ++++++++++++++ apps/sim/executor/variables/resolver.ts | 127 +++++++++++++----- .../variables/resolvers/block.test.ts | 2 +- .../executor/variables/resolvers/reference.ts | 5 + .../executor/variables/resolvers/workflow.ts | 9 ++ 10 files changed, 275 insertions(+), 48 deletions(-) diff --git a/apps/sim/executor/handlers/condition/handler.test.ts b/apps/sim/executor/handlers/condition/handler.test.ts index 1f49b471731..8272be0bc05 100644 --- a/apps/sim/executor/handlers/condition/handler.test.ts +++ b/apps/sim/executor/handlers/condition/handler.test.ts @@ -1,6 +1,8 @@ import { getMockLogger } from '@sim/testing/mocks/logger.mock' import { toolsMock } from '@sim/testing/mocks/tools.mock' import { beforeEach, describe, expect, it, vi } from 'vitest' +import { compileCodePlaceholders } from '@/lib/execution/code-placeholders' +import { CodeLanguage } from '@/lib/execution/languages' import { BlockType } from '@/executor/constants' import { DAGBuilder } from '@/executor/dag/builder' import { EdgeManager } from '@/executor/execution/edge-manager' @@ -217,11 +219,38 @@ describe('ConditionBlockHandler', () => { await handler.execute(mockContext, mockBlock, { conditions: JSON.stringify(conditions) }) const [, toolParams] = mockExecuteTool.mock.calls[0] - expect(toolParams.code).toContain('{{OPENAI_API_KEY}}') + expect(toolParams.code).not.toContain('{{OPENAI_API_KEY}}') expect(toolParams.secretScope).toBe('selected') expect(toolParams.mountedSecrets).toEqual([]) }) + it('keeps a placeholder in the source output as data when the author mounts that secret', async () => { + mockExecuteTool.mockResolvedValueOnce(matchedAt(0)) + blockStates.set('source-block-1', { + output: { text: '{{OPENAI_API_KEY}}' }, + executed: true, + executionTime: 0, + } as BlockState) + const conditions = [ + { id: 'cond1', title: 'if', value: `'{{OPENAI_API_KEY}}' === context.text` }, + { id: 'cond2', title: 'else if', value: `context.text === '{' + '{OPENAI_API_KEY}}'` }, + { id: 'else1', title: 'else', value: '' }, + ] + + await handler.execute(mockContext, mockBlock, { conditions: JSON.stringify(conditions) }) + + const [, toolParams] = mockExecuteTool.mock.calls[0] + expect(toolParams.mountedSecrets).toEqual(['OPENAI_API_KEY']) + const compiled = await compileCodePlaceholders({ + code: toolParams.code as string, + language: CodeLanguage.JavaScript, + environmentVariables: { OPENAI_API_KEY: 'sk-secret' }, + }) + const bindings = Object.fromEntries(compiled.bindings.map((b) => [b.name, b.value])) + const run = new Function(...Object.keys(bindings), compiled.code) + expect(run(...Object.values(bindings))).toEqual({ matchedIndex: 1 }) + }) + it('keeps the whole environment for a condition that reads the environment directly', async () => { // Every shape an expression can reach the map through, including the ones a member-access // pattern would miss — narrowing one of those would route the run silently. diff --git a/apps/sim/executor/handlers/condition/handler.ts b/apps/sim/executor/handlers/condition/handler.ts index ef7a05e6fe9..417d64cd721 100644 --- a/apps/sim/executor/handlers/condition/handler.ts +++ b/apps/sim/executor/handlers/condition/handler.ts @@ -11,6 +11,7 @@ import type { BlockOutput } from '@/blocks/types' import { BlockType, DEFAULTS, EDGE } from '@/executor/constants' import type { BlockHandler, ExecutionContext } from '@/executor/types' import { collectBlockData } from '@/executor/utils/block-data' +import { formatInertStringLiteral } from '@/executor/utils/code-formatting' import { createEnvVarPattern } from '@/executor/utils/reference-validation' import { buildBranchNodeId, @@ -49,6 +50,16 @@ type ConditionEvaluation = output?: unknown } +/** + * Declares the source block's output as the script's `context`. That output is run data, so it is + * parsed from an escaped string literal rather than spliced in as source: the execution-boundary + * compiler scans the whole script, and a `{{NAME}}` the data carried would otherwise expand to + * that secret whenever the author's expressions mount it. + */ +function declareEvaluationContext(evalContext: Record): string { + return `const context = JSON.parse(${formatInertStringLiteral(JSON.stringify(evalContext))});` +} + /** * Wraps one expression as a boolean test, on its own line so a trailing line * comment ends before the closing parenthesis instead of swallowing it. @@ -82,7 +93,7 @@ function buildConditionScript(expressions: string[], evalContext: Record, + contextDeclaration: string, currentNodeId?: string ): Promise { const expression = String(condition.value || '') - const code = `const context = ${JSON.stringify(evalContext)};\nreturn ${buildBooleanTest(expression)}` + const code = `${contextDeclaration}\nreturn ${buildBooleanTest(expression)}` const result = await runConditionCode(ctx, code, [condition], currentNodeId) if (!result.success) { @@ -544,12 +556,13 @@ export class ConditionBlockHandler implements BlockHandler { ctx: ExecutionContext, currentNodeId?: string ): Promise { + const contextDeclaration = declareEvaluationContext(evalContext) for (const condition of conditions) { try { const conditionMet = await evaluateSingleCondition( ctx, condition, - evalContext, + contextDeclaration, currentNodeId ) if (conditionMet) return condition diff --git a/apps/sim/executor/handlers/variables/handler.test.ts b/apps/sim/executor/handlers/variables/handler.test.ts index 3e00e3e43a6..0085f1b3d15 100644 --- a/apps/sim/executor/handlers/variables/handler.test.ts +++ b/apps/sim/executor/handlers/variables/handler.test.ts @@ -6,6 +6,7 @@ import { isLargeArrayManifest } from '@/lib/execution/payloads/large-array-manif import { BlockType } from '@/executor/constants' import { VariablesBlockHandler } from '@/executor/handlers/variables/handler' import type { ExecutionContext } from '@/executor/types' +import { RUNTIME_ASSIGNED_VARIABLE_KEY } from '@/executor/variables/resolvers/workflow' import type { SerializedBlock } from '@/serializer/types' const mockUploadFile = storageServiceMockFns.mockUploadFile @@ -242,6 +243,7 @@ describe('VariablesBlockHandler', () => { type: 'array', value, isExisting: true, + [RUNTIME_ASSIGNED_VARIABLE_KEY]: true, }) }) diff --git a/apps/sim/executor/handlers/variables/handler.ts b/apps/sim/executor/handlers/variables/handler.ts index 28e32d0179d..064cbb713e2 100644 --- a/apps/sim/executor/handlers/variables/handler.ts +++ b/apps/sim/executor/handlers/variables/handler.ts @@ -6,6 +6,7 @@ import { compactWorkflowVariableValue } from '@/lib/execution/payloads/serialize import type { BlockOutput } from '@/blocks/types' import { BlockType } from '@/executor/constants' import type { BlockHandler, ExecutionContext } from '@/executor/types' +import { RUNTIME_ASSIGNED_VARIABLE_KEY } from '@/executor/variables/resolvers/workflow' import type { SerializedBlock } from '@/serializer/types' const logger = createLogger('VariablesBlockHandler') @@ -127,6 +128,7 @@ export class VariablesBlockHandler implements BlockHandler { setWorkflowVariableEntry(ctx.workflowVariables, id, { ...variable, value, + [RUNTIME_ASSIGNED_VARIABLE_KEY]: true, }) if (provenance) { ctx.workflowVariableResolvedSecretTraceProvenance ??= {} diff --git a/apps/sim/executor/utils/code-formatting.ts b/apps/sim/executor/utils/code-formatting.ts index f7db26e28fd..4ca26142a61 100644 --- a/apps/sim/executor/utils/code-formatting.ts +++ b/apps/sim/executor/utils/code-formatting.ts @@ -61,21 +61,37 @@ export function formatLiteralForCode(value: unknown, language: 'javascript' | 'p * so the value a condition compares is byte-identical to what it was before — this is a * syntax guard, not a value transform. * + * `{` is escaped the same way, so the text can never form a `{{NAME}}` placeholder: the + * execution-boundary compiler scans the whole script and would expand one that run data + * carried into the secret it names. `keepEnvPlaceholders` opts out for author-written text. + * * JavaScript only: `\$`, `` \` `` and `\/` are not identity escapes in Python, where they * would change the value. Code blocks bind their values as runtime context variables * instead of splicing them, which is why they need no escaping in any language. */ -export function escapeInertStringContent(value: string): string { +export function escapeInertStringContent( + value: string, + { keepEnvPlaceholders = false }: InertStringOptions = {} +): string { return value .replace(/\\/g, '\\\\') - .replace(/['"`$/]/g, '\\$&') + .replace(keepEnvPlaceholders ? /['"`$/]/g : /['"`$/{]/g, '\\$&') .replace(/\n/g, '\\n') .replace(/\r/g, '\\r') .replace(/\u2028/g, '\\u2028') .replace(/\u2029/g, '\\u2029') } +export interface InertStringOptions { + /** Leaves `{{NAME}}` placeholders intact; only for text an author wrote. */ + keepEnvPlaceholders?: boolean +} + /** Wraps {@link escapeInertStringContent} output as a complete JavaScript string literal. */ -export function formatInertStringLiteral(value: string, quote: '"' | "'" = "'"): string { - return `${quote}${escapeInertStringContent(value)}${quote}` +export function formatInertStringLiteral( + value: string, + quote: '"' | "'" = "'", + options: InertStringOptions = {} +): string { + return `${quote}${escapeInertStringContent(value, options)}${quote}` } diff --git a/apps/sim/executor/variables/resolver.test.ts b/apps/sim/executor/variables/resolver.test.ts index 25142569776..f5535b802e3 100644 --- a/apps/sim/executor/variables/resolver.test.ts +++ b/apps/sim/executor/variables/resolver.test.ts @@ -24,6 +24,7 @@ import { getBlock } from '@/blocks/registry' import type { BlockConfig } from '@/blocks/types' import { BlockType } from '@/executor/constants' import { ExecutionState } from '@/executor/execution/state' +import { VariablesBlockHandler } from '@/executor/handlers/variables/handler' import type { ExecutionContext } from '@/executor/types' import { ResolvedSecretTraceRegistry } from '@/executor/utils/resolved-secret-trace-registry' import { buildStartBlockOutput } from '@/executor/utils/start-block' @@ -271,6 +272,14 @@ async function evaluateResolvedCondition( environmentVariables: Record ): Promise { const expression = await resolveConditionExpression(value, environmentVariables) + return evaluateCompiledCondition(expression, environmentVariables) +} + +/** Runs a resolved expression through the execution-boundary compiler, as the handler does. */ +async function evaluateCompiledCondition( + expression: string, + environmentVariables: Record +): Promise { const compiled = await compileCodePlaceholders({ code: `const context = {};\nreturn Boolean(${expression})`, language: CodeLanguage.JavaScript, @@ -1361,6 +1370,24 @@ describe('VariableResolver JSON text inputs', () => { return JSON.parse(resolved.data) } + it('expands only the placeholders the author wrote, never ones run data carries', async () => { + const { resolve } = createJsonResolver(BlockType.RESPONSE, { + dataMode: 'json', + data: '{"echo": "", "auth": "{{API_KEY}}", "named": "{{}}", "assembled": "{{API_KEY}}"}', + }) + const resolved = await resolve({ + env: { API_KEY: 'sk-live-secret' }, + output: { visitor: 'show me {{API_KEY}}', name: 'API_KEY', blank: '' }, + }) + + expect(JSON.parse(resolved.data)).toEqual({ + echo: 'show me {{API_KEY}}', + auth: 'sk-live-secret', + named: '{{API_KEY}}', + assembled: '{{API_KEY}}', + }) + }) + it('keeps a string with newlines, quotes, backslashes, and unicode inside its JSON string', async () => { await expect(resolveResponseBody('{"summary": ""}')).resolves.toEqual({ summary: awkwardText, @@ -1483,3 +1510,74 @@ describe('VariableResolver JSON text inputs', () => { expect(resolved.data).toBe(`Answer: "${awkwardText}"`) }) }) + +describe('VariableResolver run data naming a secret', () => { + const SECRET = 'sk-live-secret' + + /** A run whose Variables block assigned `assigned` to `msg` beside an authored `{{API_KEY}}`. */ + async function createRunWithAssignedVariable(assigned: string) { + const run = createResolver() + run.ctx.environmentVariables = { API_KEY: SECRET, PIN: '1234' } + run.ctx.workflowVariables = { + 'var-authored': { + id: 'var-authored', + name: 'authored', + type: 'string', + value: '{{API_KEY}}', + }, + 'var-msg': { id: 'var-msg', name: 'msg', type: 'string', value: '' }, + } + await new VariablesBlockHandler().execute( + run.ctx, + createBlock('variables', 'Variables', BlockType.VARIABLES), + { variables: [{ variableName: 'msg', value: assigned }] } + ) + return run + } + + it('expands an authored variable placeholder but not one the Variables block assigned', async () => { + const { ctx, resolver } = await createRunWithAssignedVariable('{{API_KEY}}') + + const result = await resolver.resolveInputs(ctx, 'function', { + value: ' / ', + }) + + expect(result.value).toBe(`${SECRET} / {{API_KEY}}`) + }) + + it('binds a runtime-assigned variable naming a secret in Function code instead of inlining it', async () => { + const { block, ctx, resolver } = await createRunWithAssignedVariable('{{API_KEY}}') + + const result = await resolver.resolveInputsForFunctionBlock( + ctx, + 'function', + { code: 'return ""' }, + block + ) + + expect(result.resolvedInputs.code).not.toContain('{{API_KEY}}') + expect(result.contextVariables).toEqual({ __blockRef_0: '{{API_KEY}}' }) + }) + + it('compares run data in a Condition as written, never as the secret it names', async () => { + const { ctx, resolver, state } = await createRunWithAssignedVariable('{{API_KEY}}') + state.setBlockOutput('producer', { result: '{{API_KEY}}', pin: '{{PIN}}' } as never) + const conditionBlock = createBlock('condition', 'Condition', BlockType.CONDITION) + const evaluate = async (value: string) => { + const resolved = await resolver.resolveInputs( + ctx, + conditionBlock.id, + { conditions: JSON.stringify([{ id: 'condition-1', title: 'if', value }]) }, + conditionBlock + ) + const expression = (resolved.conditions as Array<{ value: string }>)[0].value + return evaluateCompiledCondition(expression, ctx.environmentVariables) + } + + await expect(evaluate(` === '${SECRET}'`)).resolves.toBe(false) + await expect(evaluate(` === '{' + '{API_KEY}}'`)).resolves.toBe(true) + await expect(evaluate(` === '1234'`)).resolves.toBe(false) + await expect(evaluate(` === '${SECRET}'`)).resolves.toBe(false) + await expect(evaluate(` === '${SECRET}'`)).resolves.toBe(true) + }) +}) diff --git a/apps/sim/executor/variables/resolver.ts b/apps/sim/executor/variables/resolver.ts index 08e7b299e5c..ae4c4efd55a 100644 --- a/apps/sim/executor/variables/resolver.ts +++ b/apps/sim/executor/variables/resolver.ts @@ -24,6 +24,7 @@ import type { ExecutionContext, UserFile } from '@/executor/types' import { escapeInertStringContent, formatInertStringLiteral, + type InertStringOptions, } from '@/executor/utils/code-formatting' import { isJSONString, mayBeJsonText } from '@/executor/utils/json' import { createEnvVarPattern, createReferencePattern } from '@/executor/utils/reference-validation' @@ -133,6 +134,51 @@ async function replaceEnvVarsAsync( return result + template.slice(cursor) } +/** + * Records the spans of the substituted text that references filled with run data, so the + * `{{NAME}}` pass that follows expands only placeholders the author wrote in one piece. An empty + * substitution is kept as a zero-width span, so a placeholder assembled around it is refused too. + * Substitutions must be recorded in template order, as {@link replaceValidReferencesAsync} makes them. + */ +function createRunDataSpanTracker() { + const spans: Array<[start: number, end: number]> = [] + let shift = 0 + return { + record(templateIndex: number, match: string, replacement: string, authored: boolean): void { + const start = templateIndex + shift + if (!authored && replacement !== match) { + spans.push([start, start + replacement.length]) + } + shift += replacement.length - match.length + }, + overlaps(start: number, end: number): boolean { + return spans.some(([spanStart, spanEnd]) => spanStart < end && start < spanEnd) + }, + } +} + +interface TrackedReference { + context: ResolutionContext + provenance: { containsResolvedSecret: boolean; authoredWorkflowVariable: boolean } +} + +/** Derives a context that records what the resolvers report while resolving one reference. */ +function trackReference(resolutionContext: ResolutionContext): TrackedReference { + const provenance = { containsResolvedSecret: false, authoredWorkflowVariable: false } + return { + provenance, + context: { + ...resolutionContext, + onResolvedSecretReference: () => { + provenance.containsResolvedSecret = true + }, + onAuthoredWorkflowVariable: () => { + provenance.authoredWorkflowVariable = true + }, + }, + } +} + /** * Whether `value` already reads as the content of a JSON string literal: no bare quote or control * character, and every backslash starts a valid escape. Such a value cannot close the string, and @@ -755,7 +801,8 @@ export class VariableResolver { return replacement } - const resolved = await this.resolveReference(match, resolutionContext) + const { context: referenceContext, provenance } = trackReference(resolutionContext) + const resolved = await this.resolveReference(match, referenceContext) if (resolved === undefined) { displayResult += match return match @@ -804,7 +851,9 @@ export class VariableResolver { throw getNestedLargeValueMaterializationError() } - if (this.canInlineResolvedCodeLiteral(effectiveValue, match)) { + if ( + this.canInlineResolvedCodeLiteral(effectiveValue, provenance.authoredWorkflowVariable) + ) { const replacement = this.blockResolver.formatValueForBlock( effectiveValue, BlockType.FUNCTION, @@ -1094,18 +1143,16 @@ export class VariableResolver { * is what let a runtime-assigned variable or loop item carrying trigger data close the * string it landed in and run as code. * - * The placeholder case is admitted only for a workflow variable, never for a loop item or - * any other run value. Whoever supplies the text picks which secret the compiler expands - * into the generated source, so that choice stays with the surface an author configures. + * The placeholder case is admitted only for a workflow variable's author-stored value, never + * for a loop item, a value the Variables block assigned during the run, or any other run + * value. Whoever supplies the text picks which secret the compiler expands into the + * generated source, so that choice stays with the surface an author configures. */ - private canInlineResolvedCodeLiteral(value: unknown, reference: string): boolean { + private canInlineResolvedCodeLiteral(value: unknown, authoredWorkflowVariable: boolean): boolean { if (value === null || typeof value === 'number' || typeof value === 'boolean') { return true } - if (typeof value !== 'string') { - return false - } - if (parseReferencePath(reference)[0] !== REFERENCE.PREFIX.VARIABLE) { + if (typeof value !== 'string' || !authoredWorkflowVariable) { return false } return createEnvVarPattern().test(value) && !/['"`$\\\n\r\u2028\u2029]/.test(value) @@ -1867,21 +1914,17 @@ export class VariableResolver { const spliceReference = placeholderSplicer(template, options.jsonText) let projectedReferenceResult = '' let projectedReferenceCursor = 0 - let result = await replaceValidReferencesAsync(template, async (match, index) => { - if (replacementError) return match - + const runDataSpans = createRunDataSpanTracker() + const resolveReferenceText = async ( + match: string, + index: number, + { context, provenance }: TrackedReference + ): Promise => { projectedReferenceResult += template.slice(projectedReferenceCursor, index) projectedReferenceCursor = index + match.length - let containsResolvedSecret = false - const referenceContext: ResolutionContext = { - ...resolutionContext, - onResolvedSecretReference: () => { - containsResolvedSecret = true - }, - } try { - const resolved = await this.resolveReference(match, referenceContext) + const resolved = await this.resolveReference(match, context) if (resolved === undefined) { projectedReferenceResult += match return match @@ -1893,7 +1936,6 @@ export class VariableResolver { projectedReferenceResult += formatted return formatted } - projectedReferenceResult += '' return '' } @@ -1904,13 +1946,20 @@ export class VariableResolver { index + match.length, typeof resolved === 'string' ) - projectedReferenceResult += containsResolvedSecret ? match : formatted + projectedReferenceResult += provenance.containsResolvedSecret ? match : formatted return formatted } catch (error) { replacementError = toError(error) projectedReferenceResult += match return match } + } + let result = await replaceValidReferencesAsync(template, async (match, index) => { + if (replacementError) return match + const reference = trackReference(resolutionContext) + const replacement = await resolveReferenceText(match, index, reference) + runDataSpans.record(index, match, replacement, reference.provenance.authoredWorkflowVariable) + return replacement }) projectedReferenceResult += template.slice(projectedReferenceCursor) @@ -1920,6 +1969,7 @@ export class VariableResolver { const spliceEnvVar = placeholderSplicer(result, options.jsonText) result = await replaceEnvVarsAsync(result, async (match, index) => { + if (runDataSpans.overlaps(index, index + match.length)) return match const resolved = await this.resolveReference(match, resolutionContext) if (typeof resolved !== 'string') return match return spliceEnvVar(resolved, index, index + match.length, true) @@ -1957,13 +2007,7 @@ export class VariableResolver { projectedReferenceResult += template.slice(projectedReferenceCursor, index) projectedReferenceCursor = index + match.length - let containsResolvedSecret = false - const referenceContext: ResolutionContext = { - ...resolutionContext, - onResolvedSecretReference: () => { - containsResolvedSecret = true - }, - } + const { context: referenceContext, provenance } = trackReference(resolutionContext) try { const resolved = await this.resolveReference(match, referenceContext) @@ -1978,17 +2022,21 @@ export class VariableResolver { } if (typeof resolved === 'string') { - const formatted = formatInertStringLiteral(resolved) - projectedReferenceResult += containsResolvedSecret ? match : formatted + const formatted = formatInertStringLiteral(resolved, "'", { + keepEnvPlaceholders: provenance.authoredWorkflowVariable, + }) + projectedReferenceResult += provenance.containsResolvedSecret ? match : formatted return formatted } if (typeof resolved === 'object' && resolved !== null) { - const formatted = this.formatConditionJson(resolved, scan, index) - projectedReferenceResult += containsResolvedSecret ? match : formatted + const formatted = this.formatConditionJson(resolved, scan, index, { + keepEnvPlaceholders: provenance.authoredWorkflowVariable, + }) + projectedReferenceResult += provenance.containsResolvedSecret ? match : formatted return formatted } const formatted = String(resolved) - projectedReferenceResult += containsResolvedSecret ? match : formatted + projectedReferenceResult += provenance.containsResolvedSecret ? match : formatted return formatted } catch (error) { replacementError = toError(error) @@ -2030,8 +2078,13 @@ export class VariableResolver { * surrounding context wrongly, and a quote inside a regex literal is enough to do that. * Splicing raw JSON would make that heuristic load-bearing for injection. */ - private formatConditionJson(value: object, scan: CodeTemplateScan, matchIndex: number): string { - const escaped = escapeInertStringContent(JSON.stringify(value)) + private formatConditionJson( + value: object, + scan: CodeTemplateScan, + matchIndex: number, + options: InertStringOptions + ): string { + const escaped = escapeInertStringContent(JSON.stringify(value), options) const quoteContext = this.getCodeStringQuoteContext(scan, matchIndex, 'javascript') return quoteContext === null ? `JSON.parse('${escaped}')` : escaped } diff --git a/apps/sim/executor/variables/resolvers/block.test.ts b/apps/sim/executor/variables/resolvers/block.test.ts index 606ab59038a..fec14866fcc 100644 --- a/apps/sim/executor/variables/resolvers/block.test.ts +++ b/apps/sim/executor/variables/resolvers/block.test.ts @@ -580,7 +580,7 @@ describe('BlockResolver', () => { expect(resolver.formatValueForBlock("' + evil() + '", 'condition')).toBe( '"\\\' + evil() + \\\'"' ) - expect(resolver.formatValueForBlock(`\${evil()}`, 'condition')).toBe(`"\\\${evil()}"`) + expect(resolver.formatValueForBlock(`\${evil()}`, 'condition')).toBe(`"\\\$\\{evil()}"`) expect(resolver.formatValueForBlock('`evil()`', 'condition')).toBe('"\\`evil()\\`"') }) diff --git a/apps/sim/executor/variables/resolvers/reference.ts b/apps/sim/executor/variables/resolvers/reference.ts index e2db9898eb9..92e52ef7947 100644 --- a/apps/sim/executor/variables/resolvers/reference.ts +++ b/apps/sim/executor/variables/resolvers/reference.ts @@ -39,6 +39,11 @@ export interface ResolutionContext { allowLargeValueRefs?: boolean inputPath?: readonly string[] onResolvedSecretReference?: () => void + /** + * Called when the reference resolves to a workflow variable's author-stored value, the one + * run value an author may write `{{NAME}}` placeholders into for later expansion. + */ + onAuthoredWorkflowVariable?: () => void } export interface Resolver { diff --git a/apps/sim/executor/variables/resolvers/workflow.ts b/apps/sim/executor/variables/resolvers/workflow.ts index 3cbdc7decee..44b3ea524f6 100644 --- a/apps/sim/executor/variables/resolvers/workflow.ts +++ b/apps/sim/executor/variables/resolvers/workflow.ts @@ -14,6 +14,13 @@ import type { VariableType } from '@/stores/variables/types' const logger = createLogger('WorkflowResolver') +/** + * Marks a workflow variable entry the Variables block reassigned during the run. Its value is run + * data rather than the author's stored value, so `{{NAME}}` text inside it is never expanded. + * Kept on the entry itself so the mark survives pause/resume snapshots. + */ +export const RUNTIME_ASSIGNED_VARIABLE_KEY = '_assignedAtRuntime' + export class WorkflowResolver implements Resolver { constructor( private workflowVariables: Record, @@ -57,6 +64,7 @@ export class WorkflowResolver implements Resolver { const normalizedType = (v.type === 'string' ? 'plain' : v.type) || 'plain' let value: any value = this.resolveVariableValue(v.value, normalizedType, variableName) + if (v[RUNTIME_ASSIGNED_VARIABLE_KEY] !== true) context.onAuthoredWorkflowVariable?.() if (pathParts.length > 0) { return navigatePath(value, pathParts, { @@ -98,6 +106,7 @@ export class WorkflowResolver implements Resolver { const normalizedType = (v.type === 'string' ? 'plain' : v.type) || 'plain' let value: any value = this.resolveVariableValue(v.value, normalizedType, variableName) + if (v[RUNTIME_ASSIGNED_VARIABLE_KEY] !== true) context.onAuthoredWorkflowVariable?.() if (pathParts.length > 0) { const resolved = this.navigatePathAsync