OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security
TypeScript ai-securityapplication-securityclicode-scanningcodexcodex-securitycybersecuritydevsecopsnodejsnpmopenaisdksecuritytypescriptvulnerability-scanning
fix: reduce deduplication pair review effort to high (#813)
Kyle Brownf2ec53dcc93c
diff --git a/docker/fixtures/mock-reviews.mjs b/docker/fixtures/mock-reviews.mjsindex 115de2845..df3e2e4dd 100644--- a/docker/fixtures/mock-reviews.mjs+++ b/docker/fixtures/mock-reviews.mjs@@ -57,7 +57,10 @@ const server = createServer(async (request, response) => {body.model,stage === "screen" ? "gpt-5.6-luna" : "gpt-5.6-sol",);- assert.equal(body.reasoning.effort, "xhigh");+ assert.equal(+ body.reasoning.effort,+ stage === "screen" ? "xhigh" : "high",+ );const tools = body.input.filter((entry) => entry.type === "additional_tools").flatMap((entry) => entry.tools);diff --git a/sdk/typescript/README.md b/sdk/typescript/README.mdindex 6c01e20e4..6cbee5318 100644--- a/sdk/typescript/README.md+++ b/sdk/typescript/README.md@@ -1560,7 +1560,7 @@ use another workflow ID for a fresh review rather than changing that saved resul2. Screen each nonempty neighborhood with `gpt-5.6-luna` at `xhigh` reasoningeffort. The review covers every anchor-neighbor pair; nominations betweenneighbors are rejected.-3. Independently review each nominated pair once with `gpt-5.6-sol` at `xhigh`+3. Independently review each nominated pair once with `gpt-5.6-sol` at `high`reasoning effort. Only accepted pairs contribute to duplicate groups.4. Group accepted duplicate pairs transitively unless a Luna or Sol `DISTINCT`decision contradicts the resulting component. Contradicted components arediff --git a/sdk/typescript/src/deduplication/deduplication-reviewer.ts b/sdk/typescript/src/deduplication/deduplication-reviewer.tsindex 5e4c72eea..effcfde7f 100644--- a/sdk/typescript/src/deduplication/deduplication-reviewer.ts+++ b/sdk/typescript/src/deduplication/deduplication-reviewer.ts@@ -161,7 +161,7 @@ export class CodexDeduplicationReviewer implements DeduplicationReviewer {return await this.runner.run({stage: "pair-review",model: "gpt-5.6-sol",- effort: "xhigh",+ effort: "high",prompt: pairReviewPrompt(findings),schema: {type: "object",diff --git a/sdk/typescript/tests-ts/finding-deduplication.test.ts b/sdk/typescript/tests-ts/finding-deduplication.test.tsindex 1c7598908..de6967a81 100644--- a/sdk/typescript/tests-ts/finding-deduplication.test.ts+++ b/sdk/typescript/tests-ts/finding-deduplication.test.ts@@ -596,8 +596,8 @@ test("keeps recommendation-only screening independent from complete pair reviewscalls.map(({ stage, model, effort }) => [stage, model, effort]),).toEqual([["screening", "gpt-5.6-luna", "xhigh"],- ["pair-review", "gpt-5.6-sol", "xhigh"],- ["pair-review", "gpt-5.6-sol", "xhigh"],+ ["pair-review", "gpt-5.6-sol", "high"],+ ["pair-review", "gpt-5.6-sol", "high"],]);expect(calls[0]!.prompt).toContain(JSON.stringify({ findings }));expect(calls[1]!.prompt).toContain(