diff --git a/packages/core/src/tools/report-findings.test.ts b/packages/core/src/tools/report-findings.test.ts index be5a2f5381c..2eacad408b8 100644 --- a/packages/core/src/tools/report-findings.test.ts +++ b/packages/core/src/tools/report-findings.test.ts @@ -39,6 +39,21 @@ function displayOf(result: { returnDisplay: unknown }): FindingsResultDisplay { } describe('ReportFindingsTool', () => { + it('does not constrain finding summaries in its tool schema', () => { + const tool = new ReportFindingsTool(); + const schema = tool.schema.parametersJsonSchema as { + properties: { + findings: { + items: { properties: { summary: Record } }; + }; + }; + }; + + expect( + schema.properties.findings.items.properties.summary, + ).not.toHaveProperty('maxLength'); + }); + it('reports findings as a findings_list display with counts in llmContent', async () => { const result = await run({ level: 'high', diff --git a/packages/core/src/tools/report-findings.ts b/packages/core/src/tools/report-findings.ts index 25ac39fbeb5..cdf7502aa70 100644 --- a/packages/core/src/tools/report-findings.ts +++ b/packages/core/src/tools/report-findings.ts @@ -162,7 +162,6 @@ const FINDING_ITEM_SCHEMA = { }, summary: { type: 'string', - maxLength: 2000, description: 'One sentence stating the defect.', }, shortSummary: {