Expand description
Shared AI visual-rubric runner for screenshot review.
This crate owns the Codex ACP plumbing so browser screenshots, offscreen renderer captures, and VM/VNC screenshots can use one rubric path.
Re-exports§
pub use cli::Cli;
Modules§
- cli
- Command-line interface and audit report types.
Structs§
- Pool
Config - Configuration for a
RubricPool. - Pool
Stats - Snapshot of pool execution counters.
- Rate
Limit Event - One observed Codex ACP rate-limit event.
- Rubric
Effort - Validated Codex ACP reasoning effort value.
- Rubric
Options - Optional model settings for one rubric request.
- Rubric
Pool - Reusable worker pool for evaluating screenshot rubrics through Codex ACP.
- Rubric
RunConfig - Runtime configuration for direct Codex ACP calls.
- Rubric
Verdict - Parsed rubric verdict returned by Codex ACP.
- Rubric
Verdict Status - Validated rubric verdict status.
Enums§
- Pool
Error - Errors produced by the Codex ACP pool and worker runtime.
- Rubric
Error - Errors returned by public one-shot rubric APIs.
Constants§
- DEFAULT_
CODEX_ ACP_ MODEL - Default Codex ACP model.
- DEFAULT_
CODEX_ ACP_ REASONING_ EFFORT - Default Codex ACP reasoning effort.
- DEFAULT_
SYSTEM_ PROMPT - Default system prompt used for screenshot rubric requests.
Functions§
- assert_
image_ rubric - Evaluates a PNG and returns an error when the verdict is not pass.
- assert_
verdict - Converts a verdict into an assertion-style result.
- default_
codex_ acp_ binary - Returns the default Codex ACP executable name.
- default_
options - Returns the default rubric options.
- encode_
png - Reads and base64-encodes a PNG file.
- evaluate_
image_ rubric - Evaluates a PNG with default options.
- evaluate_
image_ rubric_ with_ config - Evaluates a PNG with caller-provided model and runtime configuration.
- evaluate_
image_ rubric_ with_ options - Evaluates a PNG with caller-provided model options.
- parse_
verdict - Parses strict rubric JSON into a typed verdict.
- run
- Runs the CLI command.