j1_uc1_p1

Wrapper: run J1 Over-Permissive Authorization Judge on UC1-P1 extraction prompt.

This module bridges the use-case-specific prompt loading (UC1-P1 versions) with the generic J1 judge. It uses the P1 test data loader to render the user prompt with real test data, so the judge evaluates a concrete prompt rather than a raw Jinja template with placeholders.

prompt_risk.uc.uc1.j1_uc1_p1.run_j1_on_uc1_p1(client: BedrockRuntimeClient, prompt_version: str = '01', loader: P1ExtractionUserPromptDataLoader | None = None, judge_version: str = '01', model_id: str = 'us.amazon.nova-2-lite-v1:0') J1Result[source]

Run J1 judge on a specific version of the UC1-P1 extraction prompt.

Parameters

client:

Bedrock Runtime client.

prompt_version:

Version of the UC1-P1 prompt to evaluate (e.g. “01”, “02”).

loader:

Optional test data loader. When provided, the user prompt template is rendered with real FNOL data. When omitted, the judge evaluates the system prompt only.

judge_version:

Version of the J1 judge prompt to use.

model_id:

Bedrock model ID for the judge LLM.