Repository navigation
docs: add a review guide and a pre-PR self-review checklist - #206
vchamarthi wants to merge 2 commits into
Conversation
REVIEW.md says what a defect looks like in dokimi, how to raise a finding, and how to keep review rounds short. AGENTS.md gains a self-review section to run before opening a PR and a soft size limit. The PR template asks how to revert the change and whether it was self-reviewed. Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
Changelog fragments are reviewed for accuracy, findings on unchanged code are noted as pre-existing, a finding is raised again when its fix did not hold, re-review covers callers of the changed code, and threads close with a commit or a reason. The self-review checklist reverts mutation checks, keeps sibling fixes within the PR's scope, and asks to say what could not be run. The soft PR size limit is removed. .github/copilot-instructions.md points Copilot review at REVIEW.md. Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
The four documentation changes are consistent with the stated scope, with no unresolved defects identified.
No open issues 🎉
What changed in this PR
Adds contributor and reviewer guidance to catch defects before PR submission and reduce repeated review rounds. The changes affect workflow documentation only; application code, CI, and merge checks are unchanged.
Changes:
- Defines actionable findings, review rounds, and thread-resolution expectations.
- Adds pre-PR self-review checks for test effectiveness, related bug sites, bad inputs, and documentation accuracy.
- Connects Copilot to the guidance and adds rollback and self-review prompts to the PR template.
| File | Description |
|---|---|
REVIEW.md |
Defines defects, finding expectations, and review follow-up. |
AGENTS.md |
Adds the pre-PR self-review checklist. |
.github/pull_request_template.md |
Adds a Revert section and self-review checkbox. |
.github/copilot-instructions.md |
Points Copilot to review and coding guidance. |
Review effort: Balanced
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #206 +/- ##
=======================================
Coverage 91.85% 91.86%
=======================================
Files 223 223
Lines 27712 27712
Branches 4563 4563
=======================================
+ Hits 25455 25457 +2
+ Misses 1600 1599 -1
+ Partials 657 656 -1 🚀 New features to boost your workflow:
|
|
I ran dokimi's own repo eval on this change, with and without the PR. It is safe to merge as text, but at this sample size it doesn't change what agents do, and agents never open Static ( Agent run (
Suggestions:
Caveats: n=3, one model, guidance ported onto an older base. A stronger test would re-pin the tasks to a base that has AGENTS.md and add a task with a test that can't fail. Runs are available if useful. |
Summary
Adds a review guide and a pre-PR self-review checklist, so that most findings are caught before a PR is opened and each review round closes more of them. Text only; no code, CI or gate changes.
Why: what the data shows
PR history of intel/dokimi (GitHub API, all 185 PRs, 13 to 23 Oct 2026):
Recurring themes in thread openers (keyword match, overlapping): tests that cannot fail 680, nits 387, docs or docstrings that disagree with code 246, timing or flakiness 161, error handling 121, changelog 101, exit codes 88, Windows paths 35. Several are the same bug class found one command at a time, for example the unreadable-input exit code across #189 to #194, a docstring claiming exit 1 where the code exits 2 (#190),
Nonefromos.cpu_count()(#112), and backslash paths in generated config (#116).One week of agent review on this repo (self-measured audit of 301 review points on 65 PRs, 14 to 20 Oct 2026):
main, a mutation check), not from reading it.How the Claude Code team runs review (Solving code review at Anthropic):
REVIEW.mdper repo: say what failure looks like there, cap nits, require file and line as evidence, open with a count and say plainly when there is nothing to fix.Changes
REVIEW.md: defects defined for this repo (wrong number, verdict or exit code; a test that cannot fail; docs that say what the code does not; schema drift; Windows orNonebehaviour). Findings name file, line and a breaking input, name the bug class and its other sites, are pushed as fix plus test when short, are marked must-fix or nit (three nits at most), and are not repeated unless the fix did not hold. Bugs in unchanged code are noted once as pre-existing. Later rounds review the new diff and its callers and re-run the original input. After three rounds of must-fix findings, agree the approach in the thread. Threads close with the fixing commit or a reason. Repeated comments become a test, amake ci-localcheck or anAGENTS.mdline.AGENTS.md, "Before opening a PR": mutate the code under each test of changed behaviour and revert; fix sibling sites in scope and list the rest; run bad inputs where they apply and say what was not run; check the title, docs and changelog against the code; re-review your own fix commits..github/copilot-instructions.md: Copilot review followsREVIEW.md.How this helps later PRs
AGENTS.mdNothing here adds a required check or blocks a merge.
Risk
Two-way door: text only, reverted in one commit. Blast radius: contributor and reviewer workflow. Agents that load
AGENTS.mdorREVIEW.mdchange how they self-review and comment; CI, the package and stored records are unaffected.Testing
pytest tests/test_docs_code_refs.py: 40 passed (paths and commands named inAGENTS.mdresolve).Revert
git revertof this PR. Nothing is left behind.Checklist
pytestpasses (no code change; doc reference test run)ruff,mypy, and schema checks pass (N/A, no code)AGENTS.md.github/.licenserc.yaml)