visual-rubric
visual-rubric runs AI-assisted rubric checks against screenshots through
codex-acp. It is intended for local visual UX review loops where deterministic
tests can prove structure and screenshots can catch layout, hierarchy, and
readability regressions.
The crate exposes:
evaluate_image_rubric_with_optionsfor one-off screenshot checks.evaluate_image_rubric_with_configwhen callers need a customcodex-acpbinary, environment, or working directory.RubricPoolfor repeated checks with process reuse, retry backoff, quota detection, and worker recycling.visual-rubricCLI for image checks, local static hosting, screenshot capture, and advisory audit reports.
Project-specific judgment belongs in the caller-provided system_prompt; the
default prompt only covers generic screenshot breakage such as clipped text,
overlapping controls, blank regions, illegible contrast, and visibly broken
layout.
The same form is available as an explicit subcommand:
For local website iteration, serve a static directory, capture browser screenshots, and write a report:
Audit reports are versioned JSON. They include an aggregate status, capture URL,
elapsed time, effective high-level options, and one rubric result per screenshot.
Use --fail-on-rubric when CI should fail on rubric failures or rubric errors.
For manual inspection without rubric evaluation:
The model must return strict JSON: