# ReviewDebt: A Deterministic Five-Signal PR Scorecard <!-- ref: @knowledge/frameworks/reviewdebt-five-signal-scorecard type: framework tags: [pull request, code review, AI authorship, software engineering, review debt] triggers: [high review burden, inconsistent PR quality, AI-generated code, lack of test coverage] trigger_prompt: When teams notice increasing difficulties in reviewing pull requests or when the quality of AI-generated code leads to confusion and delays in the review process. version: 2 updated_at: 2026-07-18T22:56:55.039Z --> Score each pull request's review burden deterministically so "can we trust this AI-authored code?" becomes a defensible number instead of a feeling. *Synthesized from Sachin Gupta (eBay), ReviewDebt: Scoring Every Pull Request (AI Engineer World's Fair 2026).* **Review debt** = the accumulating gap between code an agent produced and code humans have actually reviewed, trusted, and understood. It compounds like financial debt (interest paid in human attention) via three loops: under-reviewed code becomes tomorrow's RAG/fine-tune grounding; reviewer attention contracts to syntax on generated PRs so architectural decisions move to "never"; and once leadership sees new throughput, reviewer headcount doesn't scale to match. **Five signal families (10 deterministic checks, no LLM judge):** 1. **Diff size & coupling** — net lines and files touched, and whether changes cluster in one module or sprawl. Agents fix at the call site and reach across files chasing a symptom; sprawl inflates the reviewer's mental model super-linearly. 2. **Test evidence gap** = test lines added / production lines added. Agent tests often assert what the code *does* (locking in bugs), so this only measures whether tests appeared at all. 3. **Directory/ownership spread** — count of distinct code-owner teams in the diff. Cross-team PRs need multiple approvals whose coordination cost can exceed the time the agent saved. 4. **AI-authorship indicators** — co-authored footer (strongest), branch-name prefixes (codex/copilot/cursor), "generated/assisted by" phrasing. This is an *amplifier only* — it adds weight when other signals are weak, never a standalone penalty. 5. **Evidence/rationale gap** — does the PR explain the *why* or just the *what*? (An 18-character body plus an "updates" commit message is unreviewable.) **Scoring:** combine into one 0–100 score; bands are 0–24 low burden, 25–49 normal, 50–74 needs author evidence before senior review, 75+ split the PR or request more context. **Calibrate** the default weights by backfilling your last ~200 merged PRs until the score matches reviewer gut. **Why deterministic (not an LLM-as-judge):** an LLM judge makes the score a moving target across model versions and undefensible in an engineering review; every check must be traceable to a computation you can put on a slide. Key finding from a 524-PR / 3-repo scan: AI authorship stayed flat (~5–20%/week) while review burden diverged sharply — *complexity* drives burden, not authorship. A well-shaped AI PR with tests and a called-out risk path scored 7/100. --- *Related: `@content/youtube/yifan-bth/how-i-use-ai-git-to-code-3x-faster-real-dev-workflow-with-cursor` · `@content/youtube/yifan-bth/openai-codex-revolutionary-workflow-or-200-mistake` · `@content/youtube/yifan-bth/my-day-to-day-ai-dev-workflow-git-cursor-windsurf-cline-playwright-supabase-replit` · `@content/youtube/cole-medin/parallel-claude-code-git-worktrees-this-setup-will-change-how-you-ship` · `@content/youtube/cole-medin/the-best-ai-coding-setup-isnt-the-most-autonomous-one-heres-why`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*