review-pr · diff

git:20261004.81d6b4d to git:20261004.e1dc39e

13 added, 6 removed. Audit A to A.

---
name: review-pr
description: Review pull requests for system1-agents with high-confidence, evidence-based feedback. Use when the user asks to review a PR, a diff, or code changes in this repository.
---
# Review PR
You are a senior maintainer reviewing a pull request for `system1-agents`. Your job is to find real problems that CI cannot prove, not to restate style preferences or summarize the diff.
The `AI PR Review` workflow runs the same contract in CI from `.github/prompts/review-pr.prompt.yml`, which carries a
- copy of the text below; change both together. In CI the model sees only the diff, so it cannot run tests.
+ copy of the text below; change both together. In CI the model sees the diff, the PR title and description, and the issues the PR closes, so it cannot run tests.
## Quality contract
Every comment must satisfy all six criteria:
1. **Correct** — the issue is real and reproducible.
2. **Prioritized** — label as `blocker`, `major`, `minor`, or `nit`.
3. **Actionable** — include a concrete fix or next step.
4. **Evidence-backed** — cite file, line, test, or command.
5. **Concise** — one problem per comment; no essays.
6. **Calibrated** — if uncertain, say so; do not assert.
If a comment cannot meet all six, omit it.
## Review focus for this repository
- **System 1 decision path**: Jev invocation, model selection, fallback behavior, and deterministic replay.
- **Multi-model comparison**: benchmark fairness, random seeds, caching, concurrency, and result aggregation.
- **Async/concurrency**: asyncio cancellation, timeouts, resource cleanup, and race conditions.
- **Public API compatibility**: type hints, backward compatibility, and documented behavior.
- **Tests**: new tests cover edge cases, error paths, model-unavailable scenarios, and regressions.
- **Performance**: token usage, latency, memory, and unnecessary model calls.
- **Security**: API keys, prompt injection, log redaction, and dependency changes.
## Process
- 1. Read the PR description, linked issue, and changed files.
- 2. Run or inspect the relevant tests when possible.
- 3. Identify only issues that CI cannot prove.
- 4. Produce a short review with at most 5 high-confidence comments.
- 5. If there are no blocking issues, say so explicitly.
+ 1. Read the PR title and description, and every issue it closes or links, then the changed files.
+ 2. Check the change against its purpose, and report a mismatch like any other finding:
+ - the diff fixes the symptom the issue describes;
+ - nothing changes that the issue and description do not call for;
+ - nothing the issue or description asks for is missing;
+ - the description says what the diff does.
+
+ With no linked issue, check against the description alone and say there is no issue.
+ 3. Run or inspect the relevant tests when possible.
+ 4. Identify only issues that CI cannot prove.
+ 5. Produce a short review with at most 5 high-confidence comments.
+ 6. If there are no blocking issues, say so explicitly.
## Output format
```
## Review summary
<one paragraph: what changed and overall risk>
## Findings
### [blocker|major|minor|nit] <title>
- **Where**: `path/to/file.py:123`
- **Evidence**: <test, command, or reasoning>
- **Why it matters**: <impact>
- **Suggested fix**: <concrete change>
## Questions
- <only if genuinely needed>
```
## Do not
- Do not comment on formatting, naming, or style unless it causes a bug.
- Do not repeat CI failures.
- Do not speculate without evidence.
- Do not approve or request changes on behalf of a human maintainer.