Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

docs(contributing): ask for automated tests that pin a change instead of manual testing (#7445)

LearningCircuite3cd9f7c246a
diff --git a/.github/PULL_REQUEST_TEMPLATE/first_time_contributor.md b/.github/PULL_REQUEST_TEMPLATE/first_time_contributor.md
index 8844a54042..ad667047d3 100644
--- a/.github/PULL_REQUEST_TEMPLATE/first_time_contributor.md
+++ b/.github/PULL_REQUEST_TEMPLATE/first_time_contributor.md
@@ -2,6 +2,11 @@
Fixes #
+## Tests
+
+<!-- Name the automated tests that pin this change. For a bug fix, include a
+regression test that fails on `main` and passes on this branch. -->
+
## Note on File Types
This project uses a file whitelist for security (configured in `.gitignore`). Currently allowed: `.py`, `.js`, `.html`, `.css`, `.json`, `.md`, `.yml`, `.yaml`, `.sh`, `.cfg`, `.ipynb`, `.template`
diff --git a/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md b/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md
index 9fb83dc4eb..ffc95e90af 100644
--- a/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md
+++ b/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md
@@ -2,6 +2,11 @@
Fixes #
+## Tests
+
+<!-- Name the automated tests that pin this change. For a bug fix, include a
+regression test that fails on `main` and passes on this branch. -->
+
## CI test coverage
Lint, security and focused checks run automatically. The shared test image is built only when full pytest or a selected focused check needs it. When this PR is nearly ready, add `test:pytest`, `code-ready`, `code-ready-preliminary`, or `auto-merge` to request the full pytest suite. Passing full pytest remains required before merge; until requested, that check reports a short failure explaining the missing label. Later pushes rerun the suite while any of those labels remains.
diff --git a/.github/workflows/welcome-first-time.yml b/.github/workflows/welcome-first-time.yml
index 673ede8581..4c9a2f8a6c 100644
--- a/.github/workflows/welcome-first-time.yml
+++ b/.github/workflows/welcome-first-time.yml
@@ -100,7 +100,7 @@ jobs:
`**Before you ask for review**`,
`- Open PRs against \`main\` unless a maintainer says otherwise.`,
`- Confirm your PR has a single clear purpose ([PR process](https://github.com/LearningCircuit/local-deep-research/blob/main/CONTRIBUTING.md#-pull-request-process)).`,
- `- Describe in your PR body what you tested by hand — "CI is green" alone isn't enough.`,
+ `- Add automated tests that pin your change — for a bug fix, a regression test that fails on \`main\` — and name them in your PR body; green CI alone isn't enough.`,
`- Drop by [Discord](https://discord.gg/ttcqQeFcJ3) if you'd like to chat with maintainers or other contributors.`,
``,
`A maintainer will take a look — if you don't hear back within 7 days, feel free to ping.`,
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 985f36b85f..dce8c9601e 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -133,7 +133,7 @@ For maintainer-side details — search filters, escalation paths, and how review
AI tooling is welcome — we use it too. What helps reviewers most is seeing that you've engaged with the change. The simplest ways to make that visible:
-- **Describe what you tested by hand** in your PR body. "CI is green" only tells us the test runner ran — a sentence or two on what you actually exercised goes a long way.
+- **Add automated tests that pin your change** — a bug fix needs a regression test that fails on `main` and passes on your branch, and a new feature needs tests that exercise its real code paths (see [No shadow tests](#no-shadow-tests)). In your PR body, name the tests and say what they cover. "CI is green" only tells us the test runner ran; a test that fails without your change shows it actually does what it claims. A manual check is a welcome extra for UI or provider-integration changes, but it does not replace automated tests.
- **Keep the PR focused on a single logical change** so it can be reviewed in one pass.
- **Respond to review questions directly** — if a reviewer asks why X, answer about X rather than re-generating a fresh patch.
diff --git a/docs/processes/review-process/README.md b/docs/processes/review-process/README.md
index 2e4c88f3f7..0dbdd77e9c 100644
--- a/docs/processes/review-process/README.md
+++ b/docs/processes/review-process/README.md
@@ -98,7 +98,7 @@ awaiting-codeowner ──[codeowner: changes_requested]─> awaiting-autho
## Reviewer responsibilities
When you pick up a PR with `needs-codeowner-review`:
-- Read the PR description for the contributor's verification narrative — what they tested by hand. Missing or generic descriptions are a signal — see "Spotting low-engagement PRs" below.
+- Check that the PR adds automated tests that pin the change — for a bug fix, a regression test that fails on `main` and passes on the branch. Missing tests, or tests that would still pass without the change, are a signal — see "Spotting low-engagement PRs" below.
- Submit one of: approve, request changes, or comment-with-questions. Don't leave the PR in limbo.
- For external/bot PRs, double-check tests actually pass on the branch (CI green != tests pass meaningfully).
@@ -115,7 +115,7 @@ Reviewers should look for these heuristics — they're stronger signals than "wa
- **Broken tests on the branch.** The author didn't run them locally before submitting.
- **Mechanical churn across many files.** 30+ files of same-shape edits suggests a one-shot generation rather than considered changes.
- **Author doesn't respond to specific review questions**, or responds with another regenerated diff rather than addressing the question directly.
-- **Generic description with no concrete verification narrative** — nothing in the PR body suggests the author exercised the change beyond pushing it.
+- **No automated tests pinning the change** — no regression test for a bug fix, or only tests that would pass without the change (mock-only or shadow tests), so nothing shows the change does what the description claims.
- **Atomic-scope violations.** Multiple unrelated changes bundled. CONTRIBUTING.md is explicit: one logical change per PR.
### Recommended response