# History advisories

> Abstract: A background worker mines each project's Git history with Qualgen, and every requested review names the files that usually change together with the changed ones. The advisories go straight into the posted summary and cost no model tokens.

## What Qualgen adds

A change that edits one file often needs an edit to another. Qualgen reads a repository's history to learn which files change together, and reports the ones a change left behind.

On every requested review the reviewer runs `qualgen check` for the changed paths and adds its notices to the posted summary. A notice can name a file that is frequently changed together with a changed file, and is missing from the change.

## Mining the history

The container includes the checksum-verified Assay Qualgen release. On startup, and then every 24 hours, a background worker runs `qualgen mine` against each project's mounted checkout.

The miner reads local Git history and stores its results under `/state/qualgen`. A changed tip extends the previous snapshot when the history allows it. An unchanged tip skips mining. A review can still read the last completed snapshot while a new one is being built.

> Use a managed checkout, or keep a full checkout of the trusted integration branch refreshed in your deployment. A history that is not in the checkout cannot be mined.

## Reading an advisory

- The summary identifies the mined commit, so an advisory can be checked against the history it came from.
- Paths with too little history are marked as such, not reported as clear.
- Notices about live references are included only when the checkout is at the reviewed head.
- While the first snapshot is being built, the review reports that history is unavailable.

The posted comment shows at most 20 entries. The JSON report carries the full list.

> The quoted review on the [overview](index.md) ends its history section with that line. A source that could not be read is named, not skipped.

## Cost and limits

Qualgen uses local CPU, disk and Git history. Its output goes directly into the summary, outside the prompt, the token estimate and the model cache key. An over-budget review, or one where the model fails, can still publish historical advisories.

> A Qualgen result that is partial or unavailable does not make the review `partial`. The review's state follows the file checks.

## Settings

Set `REVIEW_QUALGEN_INTERVAL_SECONDS` in Docker, or enter the refresh interval during setup. The default is 86,400 seconds. Set it to `0` to disable mining and advisories together.

> Keep the state volume private to the reviewer. It holds historical file and commit data for every project it watches.

---

Source of this page: https://pr-agent.assay.guide/history
