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.
It also provides a two-stage pipeline: vision model extraction via an OpenAI-compatible HTTP API, then rubric scoring via ACP.
Re-exports§
pub use cli::Cli;
Modules§
- cli
- Command-line interface and audit report types.
- presets
- Question preset interface for standardized rubric questions.
- vision
- OpenAI-compatible vision API client for the vision extraction stage.
Structs§
- Asset
Rubric Report - Per-asset report item.
- Asset
Snapshot - Content-hash snapshot for a caller-provided asset set.
- Batch
Rubric Config - Batch rubric runner configuration.
- Batch
Rubric Report - Serializable batch rubric report.
- Batch
Rubric Run - Generic batch runner around
RubricPool. - Issue
Classification Input - Input passed to caller-provided issue classifiers.
- Issue
Recommendation - Caller-provided issue recommendation.
- LogCapture
Config - Directories used to capture logs produced by Codex ACP.
- Pool
Config - Configuration for a
crate::RubricPool. - Pool
Stats - Snapshot of pool execution counters.
- Rate
Limit Event - One observed 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 ACP calls.
- Rubric
Verdict - Parsed rubric verdict returned by ACP.
- Rubric
Verdict Status - Validated rubric verdict status.
Enums§
- Aggregate
Status - Overall status for a batch rubric report.
- Asset
Change - Content change for one asset between two snapshots.
- Asset
Rubric Result - Per-asset rubric result.
- LogPath
Mode - Path representation for copied ACP logs in batch reports.
- Pool
Error - Errors produced by the ACP pool, worker runtime, or vision API.
- Recommendation
Severity - Severity for a caller-provided recommendation.
- Rubric
Error - Errors returned by public one-shot rubric APIs.
- Selection
Mode - Asset selection mode for a batch rubric run.
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.
- DEFAULT_
VISION_ PROMPT - Default prompt for the vision extraction stage.
Traits§
- Issue
Classifier - Optional caller hook for mapping failed/error assets to reusable recommendations.
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.
- build_
codex_ acp_ args - Builds the default CLI arguments for the codex-acp binary from a model name and reasoning effort.
- default_
codex_ acp_ binary - Returns the default Codex ACP executable name.
- default_
options - Returns the default rubric options.
- diff_
snapshots - Compares two asset snapshots.
- encode_
png - Reads and base64-encodes a PNG file.
- evaluate_
image_ rubric - Evaluates a PNG with default options.
- evaluate_
image_ rubric_ pipeline - Two-stage pipeline evaluation: vision model → rubric model.
- 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.
- select_
changed - Selects the assets that should be evaluated from a snapshot diff.