> For the complete documentation index, see [llms.txt](https://docs.auroralabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.auroralabs.com/ai-binary-analysis-in-your-ci-cd/performance-gates-loci.yml.md). Agents can also search and read this documentation through its [MCP server](https://docs.auroralabs.com/~gitbook/mcp).

# Performance gates (loci.yml)

The Performance Per Binary check on each pull request passes or fails from a YAML file in your repository. LOCI reads it from the pull request's head commit.

Where it goes

* GitHub: .loci/loci.yml, or .github/loci.yml (.loci/ is checked first)
* Azure DevOps: .loci/loci.yml

Example

threshold: 5 # allowed increase in response time, in percent. Default 30\
targets: # optional. Omit to check every binary\
firmware.elf: \[] # an empty list checks the whole binary\
libcodec.so: # a list checks only these functions

* decode\_frame
* crc32

How each binary is judged (target vs base, mean response time)

* lower: improved
* equal: unchanged
* higher, up to threshold: stable (within threshold)
* higher than threshold: degraded

Any degraded binary fails the check. Throughput is shown for reference only. With no file, LOCI uses threshold 30 and every binary, and the check summary says "Default configuration used."

This file is separate from the Contract Envelope (.loci/contract.yaml), which holds the coding-agent plugin's bounds. The CI/CD check does not read it.
