Skip to content

Commit 9e02521

Browse files
thebiglabaskyclaude
andcommitted
feat(cli): force runParallel for agentic checks
Agentic checks always run in parallel for better reporting UX. The construct omits runParallel from props (users can't override it) and hardcodes it to true in synthesize(). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 66a5913 commit 9e02521

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/cli/src/constructs/__tests__/agentic-check.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ describe('AgenticCheck', () => {
6666
activated: true,
6767
frequency: 30,
6868
locations: ['us-east-1', 'eu-west-1'],
69+
runParallel: true,
6970
}),
7071
}),
7172
]),

packages/cli/src/constructs/agentic-check.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { CheckTypes } from '../constants'
44
import { Diagnostics } from './diagnostics'
55
import { InvalidPropertyValueDiagnostic } from './construct-diagnostics'
66

7-
export interface AgenticCheckProps extends CheckProps {
7+
export interface AgenticCheckProps extends Omit<CheckProps, 'runParallel'> {
88
/**
99
* The prompt that defines what the agentic check should verify.
1010
* Maximum 10,000 characters.
@@ -83,6 +83,7 @@ export class AgenticCheck extends Check {
8383
...super.synthesize(),
8484
checkType: CheckTypes.AGENTIC,
8585
prompt: this.prompt,
86+
runParallel: true,
8687
}
8788
}
8889
}

0 commit comments

Comments
 (0)