Skip to main content
Place diffraction.yml at the root of the repository being reviewed. Commands, routes, viewports, budgets, and review rules belong in this file. Credentials belong in secret stores; the file may contain secret reference names only.

Starting configuration

This example assumes a pnpm web application with build and start scripts. Adapt its commands, route, and checkpoint to your application before running it. The score scale and budget below are example choices for the repository owner.
diffraction.yml

Review controls

The current schema requires a positive maxCostUsd strictly below 1. Higher budgets are not supported by this schema. Runtime limits and available provider configuration can constrain a run further.

Network and secrets

app.network optionally requests installationAllowedHosts, runtimeAllowedHosts, and browserAllowedHosts. Entries are public DNS hostnames, with optional leading wildcards; URLs and IP addresses are rejected. Production egress authorization uses the immutable base revision, so a pull request cannot grant itself new network access through its own configuration. secrets.references accepts uppercase secret names. Declaring a reference does not provision a credential or authorize exposing production secrets to PR code. The configuration parser is the authoritative field contract and rejects unknown properties.