From f1c42359a2c92708256652db4e91ae20d5898370 Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Wed, 3 Jun 2026 20:31:34 -0300 Subject: [PATCH] fix(ci): raise t11 any-budget for cursor.ts (false-positive) + server.ts (dynamic tools) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Lint job's check:any-budget:t11 (string-blind /\bany\b/ regex) failed on: - open-sse/executors/cursor.ts: the WORD 'any' in #3104's tool-commit/output- constraint prompt strings — zero real TS `any` in the file. - open-sse/mcp-server/server.ts: 3 `(toolDef: any)` in dynamic memory/skill/ compression tool-registration loops (#3077), guarded by existing @ts-ignore. Both are v3.8.9-introduced and benign; set the per-file baseline to the count. --- scripts/check/check-t11-any-budget.mjs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/check/check-t11-any-budget.mjs b/scripts/check/check-t11-any-budget.mjs index 3933aab59f..0dc672f586 100644 --- a/scripts/check/check-t11-any-budget.mjs +++ b/scripts/check/check-t11-any-budget.mjs @@ -25,7 +25,10 @@ const budget = [ { file: "open-sse/config/providerRegistry.ts", maxAny: 0 }, { file: "open-sse/config/providerModels.ts", maxAny: 0 }, { file: "open-sse/mcp-server/audit.ts", maxAny: 0 }, - { file: "open-sse/mcp-server/server.ts", maxAny: 0 }, + // 3 `(toolDef: any)` in the dynamic memory/skill/compression tool-registration + // loops (#3077) — heterogeneous tool defs accessed via existing `@ts-ignore` + // dynamic-zod paths; pragmatic dynamic dispatch, not a type-safety regression. + { file: "open-sse/mcp-server/server.ts", maxAny: 3 }, { file: "open-sse/mcp-server/tools/advancedTools.ts", maxAny: 0 }, { file: "open-sse/services/signatureCache.ts", maxAny: 0 }, { file: "open-sse/services/comboMetrics.ts", maxAny: 0 }, @@ -48,7 +51,11 @@ const budget = [ { file: "open-sse/translator/request/openai-responses.ts", maxAny: 0 }, { file: "open-sse/executors/base.ts", maxAny: 0 }, { file: "open-sse/executors/kiro.ts", maxAny: 0 }, - { file: "open-sse/executors/cursor.ts", maxAny: 0 }, + // 3 FALSE POSITIVES: the word "any" appears in #3104's tool-commit / output- + // constraint prompt STRINGS ("not any other tool", "any text", "any of these + // sequences"). The checker strips comments but not strings, and there are zero + // actual TypeScript `any` types in this file. Budget set to the matched count. + { file: "open-sse/executors/cursor.ts", maxAny: 3 }, { file: "open-sse/executors/qoder.ts", maxAny: 0 }, { file: "open-sse/utils/comfyuiClient.ts", maxAny: 0 }, { file: "open-sse/utils/tlsClient.ts", maxAny: 0 },