Skip to content

    Set Up a Release Check for Content Ranking

    Compare saved staging and production revisions in CI and report simulated ranking changes before a release.

    Prepare the release check

    Use Node.js 22 or later and an Optimizer key with brand access and an editor, owner, or service role. Grant analytics:read, optimizations:read, audits:read, and collections:read.

    In the manifest, set brand_id, staging_revision, production_revision, prompt_ids, prompt_snapshots, and max_units. Supply 1 to 100 distinct prompt IDs and matching saved snapshots in groups of up to eight. Keep each group in the same order as prompt_ids. Use max_units to cap credits across the comparison.

    Set policy.mode to warning or blocking. Use policy.critical_prompt_ids for prompts that can block a release. Set the thresholds with max_coverage_drop, max_rank_drop, and max_lost_facts inside policy.

    Run the comparison

    From a workspace that contains the plug-in source, save the manifest as regression.json. Load AEO_API_KEY from your CI secrets. Replace the checkpoint path with a private path and set a stable ID for this comparison.

    AEO_REGRESSION_MANIFEST=regression.json \
    AEO_REGRESSION_CHECKPOINT=/path/to/private/checkpoint.json \
    AEO_REGRESSION_EXECUTION_ID=your-stable-execution-id \
    node integrations/retrieval-regression-ci/src/cli.js

    The plug-in estimates each retrieval_regression batch before starting any run. It starts the comparison only if the combined estimates fit the cap. It reads each accepted job and follows its result pages.

    Read the outcome

    • 0 means the check completed with no blocking breach. Warning mode reports verified breaches as warnings.
    • 1 means blocking mode found a verified breach on a critical prompt. Check the summary for any incomplete batches.
    • 2 means validation failed or the check could not finish, for example because the check could not read the evidence or a batch timed out.

    Resume an incomplete check

    Keep the checkpoint private. To resume, restore it and rerun with the same manifest and execution ID. The plug-in reads already accepted runs and can start pending batches while their estimates are valid.