All research

Evaluation framework

The Software Integrity Evaluation Scorecard

A practical framework for evaluating AI-assisted code, code review, and developer workflows with stronger evidence, clearer gates, and better operational judgment.

View the scorecard

Designed for engineering leaders, staff and senior engineers, platform teams, developer productivity teams, and organizations adopting AI-assisted development responsibly.

Executive summary

The first version of this scorecard was already grounded in a strong code integrity doctrine. The research base strengthens it in a more operational direction. Modern code review research shows that review is both technical and social, and that review quality depends on context, scope, and reviewer cognition, not simply whether review occurred [2][21]. Software quality standards and secure development guidance show that confidence should be backed by artifacts such as tests, review evidence, and explicit controls, not by intuition alone [9][10]. AI coding research shows that speed gains are real, but so are trust, security, and repository-scale reasoning gaps [11][12][13][14]. Incident postmortems show the business stakes by explaining how weak controls, hidden worst-case behavior, and poor recovery readiness turn technical failures into operational events [17][18][19][20].

This edition therefore treats code integrity as a layered system. It evaluates the code itself, the review unit, the evidence attached to the change, the workflow controls around the merge, the operability of the release path, and the long-term effect on trust and sustainable speed.

  • What changed in this edition: reviewability and cognitive load are now explicit dimensions, because modern review can fail through overload and poor presentation even when a review exists [2][21].
  • Evidence-backed verification is now its own dimension, because secure and reliable development standards emphasize artifacts, not just reviewer confidence [9][10].
  • Workflow governance and ownership are now first-class concerns, because platform policies such as protected branches, code owners, required reviews, and team rulesets determine whether integrity controls are optional or enforced [5][7][8][22].
  • Operability, rollback, and blast radius are now explicit scoring criteria, because major incidents repeatedly show that the cost of weak review and weak controls is operational, financial, and reputational [16][17][18][19][20].
  • AI-assisted changes now carry an explicit verification tax. The question isn’t whether AI sped up authoring. The question is what extra verification is required to offset additional uncertainty [11][12][13][14].
Timeline of ten milestones in code review, from Fagan-style inspections in 1976 to team review rulesets in 2025.
Figure 1. Code review evolved from formal inspections to lightweight, tool-mediated, and policy-enforced workflows [1][2][3][4][5][6][7][23][24].
Read the timeline
  1. 1976 — Fagan-style inspections
  2. 1993 — NASA’s formal inspections guide
  3. 2008 — Rietveld announced
  4. 2009 — Gerrit emerges
  5. 2010 — GitHub Pull Requests 2.0
  6. 2011 — Inline comments on diffs
  7. 2016 — Review requests
  8. 2017 — CODEOWNERS
  9. 2018 — Suggested changes
  10. 2025 — Team review rulesets

Why this scorecard exists

The industry still over-weights throughput when it evaluates AI-assisted development. That’s too narrow. AI can compress authoring time, but it doesn’t remove the need to understand code, review changes deeply, or defend what ships into production. In DORA's 2024 AI preview, only 24% of respondents said they trusted AI-generated code a lot or a great deal, and 39% reported little to no trust [13]. That split is important. Teams want the leverage, but they still feel the verification burden.

A research-backed scorecard should therefore answer a harder question than 'did this help us move faster?' It should answer whether the change is understandable, reviewable, sufficiently evidenced, operationally safe, and worthy of long-term trust.

Four studies on authoring speed, issue resolution, developer trust, and security. The findings and study conditions appear in the text version.
Figure 2. Selected evidence snapshots highlight different parts of the integrity problem: speed, realism, trust, and security [11][12][13][14].
Read the study findings
  • Participants completed a task 55.8% faster in a controlled GitHub Copilot trial [11].
  • The best model in the original SWE-bench paper solved 1.96% of the benchmark’s issues [12].
  • In DORA’s 2024 AI preview, 24% of respondents trusted AI-generated code a lot or a great deal [13].
  • About 40% of Copilot’s outputs contained vulnerabilities in the study’s security-sensitive scenarios [14].

The studies used different tasks, populations, and outcomes. Each figure applies to its own study.

Six stages connect change intent, authoring, pull request context, automated checks, human review, and rollout. The text version describes each stage.
Figure 3. Integrity is enforced by workflow controls, not individual heroics [8][15][16][17][18][19][22].
Read the workflow
  1. Describe the intent of the change and classify its risk.
  2. Author the change with human and AI contributions.
  3. Record the scope, links, and tests in the pull request.
  4. Run automated checks, including lint, tests, static application security testing, and dependency checks.
  5. Have owners and domain experts review the change.
  6. Roll the change out progressively, plan for rollback, and learn from the outcome.

Gaps in context, evidence, ownership, or understanding of the blast radius can undermine the checks, review, and rollout.

Research foundation

1. Code review became lightweight, not optional

Formal inspections emphasized roles, stages, and early defect removal [1]. Modern code review shifted toward asynchronous, tool-based workflows that also provide knowledge transfer, team awareness, and alternative solution discovery [2]. That evolution’s important because lightweight review is often mistaken for low-stakes review. The evidence points the other way. Review remains a core control surface. It just looks different now.

2. Quality needs a model, not vibes

ISO/IEC 25010:2023 defines a product quality model with nine characteristics, including maintainability, security, reliability, flexibility, and safety [9]. NIST SP 800-218 frames secure software development as a set of high-level practices that should leave behind evidence artifacts [10]. Together, these sources argue for a scorecard that’s broader than correctness and stronger than personal confidence.

3. AI changes the economics of generation, not the need for verification

The GitHub Copilot productivity trial found materially faster task completion in a controlled setting [11]. But repository-scale reasoning remains difficult: the original SWE-bench paper reported that the best-performing model solved only 1.96% of issues in its benchmark [12]. Security-sensitive evaluation is also sobering, with approximately 40% vulnerable outputs in the Copilot security study [14]. AI can speed up authoring. It doesn’t erase the need for review, tests, or operational safeguards.

4. Failures become business events

Cloudflare's 2019 outage, Fastly's 2021 outage, GitLab's database loss event, and the Knight Capital enforcement action each show a version of the same lesson: weak controls, hidden worst-case behavior, or insufficient recovery readiness can turn a single change into a large operational or financial event [17][18][19][20]. The scorecard therefore treats blast radius, rollback, and business impact as integral to code integrity.

The updated scorecard at a glance

Use a 1 to 5 score for each dimension. A 1 is weak and risky. A 3 is mixed or acceptable only with mitigation. A 5 is strong, defensible, and trustworthy under scrutiny. The maximum raw score is 50. Hard gates override the total.

Dimension What it asks Primary evidence Gate?
1. Comprehension Can a competent engineer understand the change under pressure? Clear intent, naming, visible side effects, bounded scope No
2. Reviewability and cognitive load Is the change small and contextual enough to review deeply? Focused PR, clear description, test plan, staged changes No
3. Evidence-backed verification What artifacts prove the change is correct and safe? Tests, CI evidence, repro steps, logs, analysis output Yes
4. Maintainability Will future engineers be able to modify this safely? Stable interfaces, modularity, low duplication, resilient tests No
5. Risk visibility and blast radius Are failure modes explicit and worst-case behavior bounded? Risk notes, resource limits, flags, blast radius analysis Yes
6. Architectural fit and responsible abstraction Does the change fit the system without hiding behavior? Consistent patterns, clear boundaries, traceable abstractions No
7. Judgment preservation Does the workflow keep humans in discernment mode? Challenge, explanation, human sign-off, room to slow down No
8. Workflow governance and ownership Are approvals, status checks, and ownership enforced? Protected branches, CODEOWNERS, rulesets, review policy Yes
9. Operability and recovery readiness Can the team detect failure, rollback, and recover quickly? Canary plan, telemetry, rollback path, runbook, recovery steps Yes
10. Business impact and sustainable speed Does the change make the organization stronger over time? Lower change risk, less toil, cleaner path to future change No

Scoring bands

Band Raw score Decision default
Strong integrity posture 42-50 Proceed if no hard gate fails. Capture notable risks, then merge or release with confidence.
Acceptable but exposed 34-41 Proceed only with explicit mitigation, owner assignment, or follow-up work.
Fragile and cautionary 25-33 Reduce blast radius, decompose the change, or require additional review and evidence.
False confidence zone Below 25 Don’t normalize. Rework the change or the workflow before shipping.

Hard gates that cap the final outcome

These gates override the raw score. A high average can’t rescue a broken responsibility boundary.

Gate Requirement Why it exists Source
G1 No top-tier outcome without executable verification on the changed surface area. Confidence must be backed by artifacts, not appearance. [10][11][12]
G2 Sensitive paths require enforced human approval and explicit ownership. AI comments don’t replace accountable approvals. [5][7][8][22]
G3 Security-critical changes require explicit security checks. Speed gains don’t offset security blind spots. [10][14]
G4 High blast-radius changes require a rollout and rollback plan. Progressive delivery is part of integrity, not separate from it. [16][17][18]
G5 Stateful or data-critical changes require a recovery path. Recovery readiness is part of safe change, not only operations work. [16][19][20]
G6 Oversized or low-context changes can’t score high on reviewability. Review can fail through overload even when it nominally occurs. [2][21]

Detailed dimensions

1. Comprehension

Key question: Can a competent engineer understand the change under pressure? [2][9]

  • Prompt: Is the intent clear without reading model transcripts or tribal notes?
  • Prompt: Are side effects, dependencies, and invariants visible in the code or accompanying context?
  • Look for: clear naming, bounded scope, readable control flow, and explanations where the code alone isn’t enough.
  • A 5 requires: another engineer can explain the change and reason about its failure modes without relying on the original author.

2. Reviewability and cognitive load

Key question: Is this a deep-review unit or just a merge unit? [2][21]

  • Prompt: Is the change small enough to review deeply, or has it bundled too many concerns together?
  • Prompt: Does the PR description explain intent, constraints, validation steps, and notable tradeoffs?
  • Look for: staged changes, explicit test plans, domain context, and clear file navigation.
  • A 5 requires: reviewers can assess the change without heroics, and large work is decomposed rather than normalized.

3. Evidence-backed verification

Key question: What artifacts prove the change is correct and safe? [10][11][12]

  • Prompt: What tests changed, and what failure-to-pass evidence exists?
  • Prompt: What logs, CI runs, static analysis, or reproduction steps support the claim?
  • Look for: executable verification, not screenshots alone.
  • A 5 requires: the changed surface area has evidence that’s directly runnable or inspectable.

4. Maintainability

Key question: Will a future engineer be able to modify this safely? [9]

  • Prompt: Does the change reduce or increase future cognitive burden?
  • Prompt: Are interfaces, assumptions, and ownership boundaries clearer after the change?
  • Look for: modularity, low duplication, resilient tests, and a lower maintenance tax.
  • A 5 requires: future change is safer after this PR than before it.

5. Risk visibility and blast radius

Key question: Are failure modes visible now, or deferred until later? [17][18][20]

  • Prompt: What’s the worst-case runtime, security, or data impact if this goes wrong?
  • Prompt: Are timeouts, limits, feature flags, or bounded rollouts present where needed?
  • Look for: explicit blast radius analysis and clear tradeoffs in the review context.
  • A 5 requires: worst-case behavior is understood, bounded, and intentionally mitigated.

6. Architectural fit and responsible abstraction

Key question: Does abstraction clarify the system or hide it? [9]

  • Prompt: Does this fit the surrounding architecture and ownership model?
  • Prompt: Does the abstraction reduce cognitive load responsibly, or compress behavior out of sight?
  • Look for: traceable abstractions, consistent local idioms, and failure modes that remain understandable.
  • A 5 requires: the architecture is clearer after the change, not just more compressed.

7. Judgment preservation

Key question: Does the workflow keep humans in discernment mode? [13][14]

  • Prompt: Are engineers encouraged to challenge, reject, or slow down when something feels off?
  • Prompt: Does AI provide context and rationale, or only plausible output?
  • Look for: explicit review comments, challenged assumptions, and clear human sign-off.
  • A 5 requires: the system amplifies questioning instead of making passivity easy.

8. Workflow governance and ownership

Key question: Are integrity controls enforced in the platform? [5][7][8][22]

  • Prompt: Are protected branches, required reviews, and ownership rules enabled for sensitive paths?
  • Prompt: Do AI reviews or self-approvals count toward merge requirements?
  • Look for: branch protections, CODEOWNERS, review rulesets, and team-specific review requirements.
  • A 5 requires: ownership and human approval are enforceable, not aspirational.

9. Operability and recovery readiness

Key question: If this ships and fails, can the team detect, rollback, and recover quickly? [16][17][18][19]

  • Prompt: What’s the rollout plan? What telemetry exists? How does rollback work?
  • Prompt: What data could be lost or corrupted, and how would the team restore it?
  • Look for: canaries, alerts, runbooks, recovery steps, and named owners.
  • A 5 requires: failure is detectable, reversible, and operationally owned.

10. Business impact and sustainable speed

Key question: Is this change building durable capability or borrowing time from the future? [13][20]

  • Prompt: Does it reduce change risk, maintenance burden, or incident exposure over time?
  • Prompt: Is the speed gain real in production conditions, or only at authoring time?
  • Look for: smaller batches, lower toil, and clearer long-term ownership.
  • A 5 requires: the change improves pace and resilience together.

How to use the scorecard in practice

  1. Classify the change before scoring it. Note whether the change is low-risk, shared-infrastructure, customer-facing, security-sensitive, or stateful.
  2. Collect artifacts first. Gather the PR description, tests, CI outputs, rollout plan, ownership metadata, and any relevant risk notes before scoring.
  3. Score independently for consequential changes. Two reviewers scoring separately will often surface disagreements that are more valuable than the final average.
  4. Resolve the disagreements explicitly. Ask where the confidence comes from, what evidence is missing, and which gate would fail first if the change went wrong.
  5. Decide the path: proceed, proceed with mitigation, decompose, escalate, or stop.

References

  1. NASA. Formal Inspections Guidebook, 1993.
  2. Bacchelli, A. and Bird, C. Expectations, Outcomes, and Challenges of Modern Code Review, 2013.
  3. GitHub. Pull Requests 2.0, 2010.
  4. GitHub. Introducing review requests, 2016.
  5. GitHub. Introducing code owners, 2017.
  6. GitHub. Suggested Changes, 2018.
  7. GitHub. Required review by specific teams now available in rulesets, 2025.
  8. GitHub Docs. Using GitHub Copilot code review, 2025.
  9. ISO. ISO/IEC 25010:2023 product quality model.
  10. NIST. SP 800-218 Secure Software Development Framework Version 1.1, 2022.
  11. Peng, S. et al. The Impact of AI on Developer Productivity: Evidence from GitHub Copilot, 2023.
  12. Jimenez, C. et al. SWE-bench: Can Language Models Resolve Real-World GitHub Issues?, ICLR 2024.
  13. DORA. 2024 DORA Report Preview: AI Preview.
  14. Pearce, H. et al. Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributions. CACM / IEEE S&P.
  15. Microsoft. Enhancing code quality at scale with AI-powered code reviews, 2025.
  16. Google SRE. Release Engineering.
  17. Cloudflare. Details of the Cloudflare outage on July 2, 2019.
  18. Fastly. Summary of June 8 outage, 2021.
  19. GitLab. Postmortem of database outage of January 31, 2017.
  20. U.S. SEC. In the Matter of Knight Capital Americas LLC, 2013.
  21. Fregnan, E. et al. First Come First Served: The Impact of File Position on Code Review, 2022.
  22. GitHub Docs. About protected branches.
  23. Google App Engine Blog. An open source app: Rietveld code review, 2008.
  24. Gerrit Code Review. About Gerrit Code Review.